Documentation ¶
Index ¶
- Variables
- type Builder
- func (b *Builder) Extension(extension *PluginExtensionID) *Builder
- func (b *Builder) Group() *GroupBuilder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) Infobox(infobox *Infobox) *Builder
- func (b *Builder) IsVisible(visible bool) *Builder
- func (b *Builder) IsVisibleRef(visible *bool) *Builder
- func (b *Builder) Item() *ItemBuilder
- func (b *Builder) Name(name string) *Builder
- func (b *Builder) NewID() *Builder
- func (b *Builder) Plugin(plugin *PluginID) *Builder
- func (b *Builder) Property(p *PropertyID) *Builder
- func (b *Builder) Scene(s SceneID) *Builder
- func (b *Builder) Tags(tags *TagList) *Builder
- type DatasetID
- type DatasetIDList
- type DatasetIDSet
- type DatasetSchemaID
- type Group
- func (l *Group) Extension() *PluginExtensionID
- func (l *Group) HasInfobox() bool
- func (l *Group) ID() ID
- func (l *Group) IDRef() *ID
- func (l *Group) Infobox() *Infobox
- func (l *Group) IsLinked() bool
- func (l *Group) IsRoot() bool
- func (l *Group) IsVisible() bool
- func (l *Group) LayerRef() *Layer
- func (l *Group) Layers() *IDList
- func (l *Group) Link(ds DatasetSchemaID)
- func (l *Group) LinkedDatasetSchema() *DatasetSchemaID
- func (l *Group) MoveLayerFrom(id ID, index int, fromLayerGroup *Group)
- func (l *Group) Name() string
- func (l *Group) Plugin() *PluginID
- func (l *Group) Properties() []PropertyID
- func (l *Group) Property() *PropertyID
- func (l *Group) Rename(name string)
- func (l *Group) Scene() SceneID
- func (l *Group) SetInfobox(infobox *Infobox)
- func (l *Group) SetPlugin(plugin *PluginID)
- func (l *Group) SetVisible(visible bool)
- func (l *Group) Tags() *TagList
- func (l *Group) Unlink()
- func (l *Group) UsesPlugin() bool
- func (l *Group) ValidateProperties(pm property.Map) error
- type GroupBuilder
- func (b *GroupBuilder) Build() (*Group, error)
- func (b *GroupBuilder) Extension(extension *PluginExtensionID) *GroupBuilder
- func (b *GroupBuilder) ID(id ID) *GroupBuilder
- func (b *GroupBuilder) Infobox(infobox *Infobox) *GroupBuilder
- func (b *GroupBuilder) IsVisible(visible bool) *GroupBuilder
- func (b *GroupBuilder) Layers(ll *IDList) *GroupBuilder
- func (b *GroupBuilder) LinkedDatasetSchema(linkedDatasetSchema *DatasetSchemaID) *GroupBuilder
- func (b *GroupBuilder) MustBuild() *Group
- func (b *GroupBuilder) Name(name string) *GroupBuilder
- func (b *GroupBuilder) NewID() *GroupBuilder
- func (b *GroupBuilder) Plugin(plugin *PluginID) *GroupBuilder
- func (b *GroupBuilder) Property(property *PropertyID) *GroupBuilder
- func (b *GroupBuilder) Root(root bool) *GroupBuilder
- func (b *GroupBuilder) Scene(s SceneID) *GroupBuilder
- func (b *GroupBuilder) Tags(tags *TagList) *GroupBuilder
- type GroupList
- type ID
- type IDList
- func (l *IDList) AddLayer(lid ID, index int)
- func (l *IDList) AddOrMoveLayer(lid ID, index int)
- func (l *IDList) AppendLayers(lid ...ID) *IDList
- func (l *IDList) AtRef(index int) *ID
- func (l *IDList) Clone() (l2 *IDList)
- func (l *IDList) Empty()
- func (l *IDList) FindLayerIndex(id ID) int
- func (l *IDList) HasLayer(id ID) bool
- func (l *IDList) LayerAt(index int) ID
- func (l *IDList) LayerCount() int
- func (l *IDList) Layers() []ID
- func (l *IDList) Merge(l2 *IDList)
- func (l *IDList) MoveLayer(id ID, toIndex int)
- func (l *IDList) MoveLayerAt(fromIndex int, toIndex int)
- func (l *IDList) RemoveLayer(ids ...ID)
- func (l *IDList) RemoveLayerAt(index int)
- func (l *IDList) Strings() []string
- type IDSet
- type Infobox
- func (i *Infobox) Add(field *InfoboxField, index int)
- func (i *Infobox) Count() int
- func (i *Infobox) Field(field InfoboxFieldID) *InfoboxField
- func (i *Infobox) FieldAt(index int) *InfoboxField
- func (i *Infobox) Fields() []*InfoboxField
- func (i *Infobox) FieldsByPlugin(pid PluginID, eid *PluginExtensionID) []*InfoboxField
- func (i *Infobox) Has(id InfoboxFieldID) bool
- func (i *Infobox) Move(field InfoboxFieldID, toIndex int)
- func (i *Infobox) MoveAt(fromIndex int, toIndex int)
- func (i *Infobox) Property() PropertyID
- func (i *Infobox) PropertyRef() *PropertyID
- func (i *Infobox) Remove(field InfoboxFieldID)
- func (i *Infobox) RemoveAllByPlugin(pid PluginID, eid *PluginExtensionID) []PropertyID
- func (i *Infobox) RemoveAt(index int)
- func (i *Infobox) ValidateProperties(pm property.Map) error
- type InfoboxFIeldIDSet
- type InfoboxField
- type InfoboxFieldBuilder
- func (b *InfoboxFieldBuilder) Build() (*InfoboxField, error)
- func (b *InfoboxFieldBuilder) Extension(extension PluginExtensionID) *InfoboxFieldBuilder
- func (b *InfoboxFieldBuilder) ID(id InfoboxFieldID) *InfoboxFieldBuilder
- func (b *InfoboxFieldBuilder) MustBuild() *InfoboxField
- func (b *InfoboxFieldBuilder) NewID() *InfoboxFieldBuilder
- func (b *InfoboxFieldBuilder) Plugin(plugin PluginID) *InfoboxFieldBuilder
- func (b *InfoboxFieldBuilder) Property(p PropertyID) *InfoboxFieldBuilder
- type InfoboxFieldID
- type Initializer
- type InitializerInfobox
- type InitializerInfoboxField
- type InitializerResult
- type Item
- func (l *Item) Extension() *PluginExtensionID
- func (l *Item) HasInfobox() bool
- func (l *Item) ID() ID
- func (l *Item) IDRef() *ID
- func (l *Item) Infobox() *Infobox
- func (l *Item) IsLinked() bool
- func (l *Item) IsVisible() bool
- func (l *Item) LayerRef() *Layer
- func (l *Item) Link(ds DatasetID)
- func (l *Item) LinkedDataset() *DatasetID
- func (l *Item) Name() string
- func (l *Item) Plugin() *PluginID
- func (l *Item) Properties() []PropertyID
- func (l *Item) Property() *PropertyID
- func (l *Item) Rename(name string)
- func (l *Item) Scene() SceneID
- func (l *Item) SetInfobox(infobox *Infobox)
- func (l *Item) SetPlugin(plugin *PluginID)
- func (l *Item) SetVisible(visible bool)
- func (l *Item) Tags() *TagList
- func (l *Item) Unlink()
- func (l *Item) UsesPlugin() bool
- func (l *Item) ValidateProperties(pm property.Map) error
- type ItemBuilder
- func (b *ItemBuilder) Build() (*Item, error)
- func (b *ItemBuilder) Extension(extension *PluginExtensionID) *ItemBuilder
- func (b *ItemBuilder) ID(id ID) *ItemBuilder
- func (b *ItemBuilder) Infobox(infobox *Infobox) *ItemBuilder
- func (b *ItemBuilder) IsVisible(visible bool) *ItemBuilder
- func (b *ItemBuilder) LinkedDataset(linkedDataset *DatasetID) *ItemBuilder
- func (b *ItemBuilder) MustBuild() *Item
- func (b *ItemBuilder) Name(name string) *ItemBuilder
- func (b *ItemBuilder) NewID() *ItemBuilder
- func (b *ItemBuilder) Plugin(plugin *PluginID) *ItemBuilder
- func (b *ItemBuilder) Property(p *PropertyID) *ItemBuilder
- func (b *ItemBuilder) Scene(s SceneID) *ItemBuilder
- func (b *ItemBuilder) Tags(tags *TagList) *ItemBuilder
- type ItemList
- type Layer
- type List
- func (ll List) Deref() []Layer
- func (ll List) Find(lid ID) *Layer
- func (ll List) FindByDataset(ds DatasetID) *Item
- func (ll List) IDs() *IDList
- func (ll List) Last() *Layer
- func (ll List) Loader() Loader
- func (ll List) Map() Map
- func (ll List) Pick(il *IDList) List
- func (ll List) Properties() []PropertyID
- func (ll List) Remove(lids ...ID) List
- func (ll List) SeparateLayerItemAndGroup() (ItemList, GroupList)
- func (ll List) ToLayerGroupList() GroupList
- func (ll List) ToLayerItemList() ItemList
- type Loader
- type LoaderByScene
- type Map
- type Merged
- type MergedInfobox
- type MergedInfoboxField
- type MergedTag
- type PluginExtensionID
- type PluginID
- type PropertyID
- type SceneID
- type Tag
- type TagGroup
- type TagID
- type TagIDList
- type TagIDSet
- type TagItem
- type TagList
- func (t *TagList) Add(ti Tag) bool
- func (t *TagList) Clone() *TagList
- func (t *TagList) Delete(ti TagID) (res bool)
- func (t *TagList) Find(ti TagID) (*TagGroup, *TagItem)
- func (t *TagList) FindGroup(ti TagID) *TagGroup
- func (t *TagList) FindItem(ti TagID) *TagItem
- func (t *TagList) Has(ti TagID) bool
- func (t *TagList) IsEmpty() bool
- func (t *TagList) RootItems() []*TagItem
- func (t *TagList) Tags() []Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInitializationInfobox = errors.New("infobox") ErrInitializationInfoboxWith = rerror.With(ErrInitializationInfobox) ErrInitializationProperty = errors.New("property") ErrInitializationPropertyWith = rerror.With(ErrInitializationProperty) )
View Source
var ( ErrDuplicatedTag = errors.New("duplicated tag") ErrTagNotFound = errors.New("tag not found") )
View Source
var DatasetIDFrom = id.DatasetIDFrom
View Source
var DatasetIDFromRef = id.DatasetIDFromRef
View Source
var DatasetSchemaIDFrom = id.DatasetSchemaIDFrom
View Source
var DatasetSchemaIDFromRef = id.DatasetSchemaIDFromRef
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.LayerIDFrom
View Source
var IDFromRef = id.LayerIDFromRef
View Source
var InfoboxFieldIDFrom = id.InfoboxFieldIDFrom
View Source
var InfoboxFieldIDFromRef = id.InfoboxFieldIDFromRef
View Source
var MustID = id.MustLayerID
View Source
var MustInfoboxFieldID = id.MustInfoboxFieldID
View Source
var MustPluginID = id.MustPluginID
View Source
var MustPropertyID = id.MustPropertyID
View Source
var MustSceneID = id.MustSceneID
View Source
var MustTagID = id.MustTagID
View Source
var NewDatasetID = id.NewDatasetID
View Source
var NewDatasetIDSet = id.NewDatasetIDSet
View Source
var NewDatasetSchemaID = id.NewDatasetSchemaID
View Source
var NewID = id.NewLayerID
View Source
var NewIDSet = id.NewLayerIDSet
View Source
var NewInfoboxFIeldIDSet = id.NewInfoboxFieldIDSet
View Source
var NewInfoboxFieldID = id.NewInfoboxFieldID
View Source
var NewPropertyID = id.NewPropertyID
View Source
var NewPropertySchemaID = id.NewPropertySchemaID
View Source
var NewSceneID = id.NewSceneID
View Source
var NewTagID = id.NewTagID
View Source
var NewTagIDSet = id.NewTagIDSet
View Source
var OfficialPluginID = id.OfficialPluginID
View Source
var PropertyIDFrom = id.PropertyIDFrom
View Source
var PropertyIDFromRef = id.PropertyIDFromRef
View Source
var SceneIDFrom = id.SceneIDFrom
View Source
var SceneIDFromRef = id.SceneIDFromRef
View Source
var TagIDFrom = id.TagIDFrom
View Source
var TagIDFromRef = id.TagIDFromRef
View Source
var WalkerSkipChildren = errors.New("LAYER_WALKER_SKIP_CHILDREN")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Extension ¶
func (b *Builder) Extension(extension *PluginExtensionID) *Builder
func (*Builder) Group ¶
func (b *Builder) Group() *GroupBuilder
func (*Builder) IsVisibleRef ¶
func (*Builder) Item ¶
func (b *Builder) Item() *ItemBuilder
func (*Builder) Property ¶
func (b *Builder) Property(p *PropertyID) *Builder
type DatasetIDList ¶ added in v0.6.1
type DatasetIDList = id.DatasetIDList
type DatasetIDSet ¶ added in v0.4.0
type DatasetIDSet = id.DatasetIDSet
type DatasetSchemaID ¶ added in v0.4.0
type DatasetSchemaID = id.DatasetSchemaID
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func GroupFromLayer ¶
func GroupFromLayerRef ¶
func ToLayerGroup ¶
func ToLayerGroupRef ¶
func (*Group) Extension ¶
func (l *Group) Extension() *PluginExtensionID
func (*Group) HasInfobox ¶
func (l *Group) HasInfobox() bool
func (*Group) Link ¶
func (l *Group) Link(ds DatasetSchemaID)
func (*Group) LinkedDatasetSchema ¶
func (l *Group) LinkedDatasetSchema() *DatasetSchemaID
func (*Group) MoveLayerFrom ¶
func (*Group) Properties ¶
func (l *Group) Properties() []PropertyID
func (*Group) Property ¶
func (l *Group) Property() *PropertyID
func (*Group) SetInfobox ¶
func (*Group) SetVisible ¶
func (*Group) UsesPlugin ¶
type GroupBuilder ¶
type GroupBuilder struct {
// contains filtered or unexported fields
}
func NewGroup ¶
func NewGroup() *GroupBuilder
func (*GroupBuilder) Build ¶
func (b *GroupBuilder) Build() (*Group, error)
func (*GroupBuilder) Extension ¶
func (b *GroupBuilder) Extension(extension *PluginExtensionID) *GroupBuilder
func (*GroupBuilder) ID ¶
func (b *GroupBuilder) ID(id ID) *GroupBuilder
func (*GroupBuilder) Infobox ¶
func (b *GroupBuilder) Infobox(infobox *Infobox) *GroupBuilder
func (*GroupBuilder) IsVisible ¶
func (b *GroupBuilder) IsVisible(visible bool) *GroupBuilder
func (*GroupBuilder) Layers ¶
func (b *GroupBuilder) Layers(ll *IDList) *GroupBuilder
func (*GroupBuilder) LinkedDatasetSchema ¶
func (b *GroupBuilder) LinkedDatasetSchema(linkedDatasetSchema *DatasetSchemaID) *GroupBuilder
func (*GroupBuilder) MustBuild ¶
func (b *GroupBuilder) MustBuild() *Group
func (*GroupBuilder) Name ¶
func (b *GroupBuilder) Name(name string) *GroupBuilder
func (*GroupBuilder) NewID ¶
func (b *GroupBuilder) NewID() *GroupBuilder
func (*GroupBuilder) Plugin ¶
func (b *GroupBuilder) Plugin(plugin *PluginID) *GroupBuilder
func (*GroupBuilder) Property ¶
func (b *GroupBuilder) Property(property *PropertyID) *GroupBuilder
func (*GroupBuilder) Root ¶
func (b *GroupBuilder) Root(root bool) *GroupBuilder
func (*GroupBuilder) Scene ¶
func (b *GroupBuilder) Scene(s SceneID) *GroupBuilder
func (*GroupBuilder) Tags ¶
func (b *GroupBuilder) Tags(tags *TagList) *GroupBuilder
type IDList ¶
type IDList struct {
// contains filtered or unexported fields
}
func (*IDList) AddOrMoveLayer ¶
func (*IDList) AppendLayers ¶
func (*IDList) FindLayerIndex ¶
func (*IDList) LayerCount ¶
func (*IDList) MoveLayerAt ¶
func (*IDList) RemoveLayer ¶
func (*IDList) RemoveLayerAt ¶
type IDSet ¶ added in v0.4.0
type IDSet = id.LayerIDSet
type Infobox ¶
type Infobox struct {
// contains filtered or unexported fields
}
func NewInfobox ¶
func NewInfobox(fields []*InfoboxField, p PropertyID) *Infobox
func (*Infobox) Add ¶
func (i *Infobox) Add(field *InfoboxField, index int)
func (*Infobox) Field ¶
func (i *Infobox) Field(field InfoboxFieldID) *InfoboxField
func (*Infobox) FieldAt ¶
func (i *Infobox) FieldAt(index int) *InfoboxField
func (*Infobox) Fields ¶
func (i *Infobox) Fields() []*InfoboxField
func (*Infobox) FieldsByPlugin ¶ added in v0.5.0
func (i *Infobox) FieldsByPlugin(pid PluginID, eid *PluginExtensionID) []*InfoboxField
func (*Infobox) Has ¶
func (i *Infobox) Has(id InfoboxFieldID) bool
func (*Infobox) Move ¶
func (i *Infobox) Move(field InfoboxFieldID, toIndex int)
func (*Infobox) Property ¶
func (i *Infobox) Property() PropertyID
func (*Infobox) PropertyRef ¶
func (i *Infobox) PropertyRef() *PropertyID
func (*Infobox) Remove ¶
func (i *Infobox) Remove(field InfoboxFieldID)
func (*Infobox) RemoveAllByPlugin ¶
func (i *Infobox) RemoveAllByPlugin(pid PluginID, eid *PluginExtensionID) []PropertyID
type InfoboxFIeldIDSet ¶ added in v0.4.0
type InfoboxFIeldIDSet = id.InfoboxFieldIDSet
type InfoboxField ¶
type InfoboxField struct {
// contains filtered or unexported fields
}
func (*InfoboxField) Extension ¶
func (i *InfoboxField) Extension() PluginExtensionID
func (*InfoboxField) ID ¶
func (i *InfoboxField) ID() InfoboxFieldID
func (*InfoboxField) Plugin ¶
func (i *InfoboxField) Plugin() PluginID
func (*InfoboxField) Property ¶
func (i *InfoboxField) Property() PropertyID
func (*InfoboxField) PropertyRef ¶
func (i *InfoboxField) PropertyRef() *PropertyID
func (*InfoboxField) ValidateProperty ¶
func (i *InfoboxField) ValidateProperty(pm property.Map) error
type InfoboxFieldBuilder ¶
type InfoboxFieldBuilder struct {
// contains filtered or unexported fields
}
func NewInfoboxField ¶
func NewInfoboxField() *InfoboxFieldBuilder
func (*InfoboxFieldBuilder) Build ¶
func (b *InfoboxFieldBuilder) Build() (*InfoboxField, error)
func (*InfoboxFieldBuilder) Extension ¶
func (b *InfoboxFieldBuilder) Extension(extension PluginExtensionID) *InfoboxFieldBuilder
func (*InfoboxFieldBuilder) ID ¶
func (b *InfoboxFieldBuilder) ID(id InfoboxFieldID) *InfoboxFieldBuilder
func (*InfoboxFieldBuilder) MustBuild ¶
func (b *InfoboxFieldBuilder) MustBuild() *InfoboxField
func (*InfoboxFieldBuilder) NewID ¶
func (b *InfoboxFieldBuilder) NewID() *InfoboxFieldBuilder
func (*InfoboxFieldBuilder) Plugin ¶
func (b *InfoboxFieldBuilder) Plugin(plugin PluginID) *InfoboxFieldBuilder
func (*InfoboxFieldBuilder) Property ¶
func (b *InfoboxFieldBuilder) Property(p PropertyID) *InfoboxFieldBuilder
type InfoboxFieldID ¶ added in v0.4.0
type InfoboxFieldID = id.InfoboxFieldID
type Initializer ¶
type Initializer struct { ID *ID `json:"id"` Plugin *PluginID `json:"plugin"` Extension *PluginExtensionID `json:"extension"` Name string `json:"name"` Infobox *InitializerInfobox `json:"infobox"` PropertyID *PropertyID `json:"propertyId"` Property *property.Initializer `json:"property"` Layers []*Initializer `json:"layers"` LayerIDs []ID `json:"layerIds"` IsVisible *bool `json:"isVisible"` LinkedDatasetSchema *DatasetSchemaID `json:"linkedDatasetSchema"` LinkedDataset *DatasetID `json:"linkedDataset"` }
func (*Initializer) Clone ¶
func (i *Initializer) Clone() *Initializer
func (*Initializer) Layer ¶
func (i *Initializer) Layer(sid SceneID) (r InitializerResult, err error)
func (*Initializer) MustBeLayer ¶
func (i *Initializer) MustBeLayer(sid SceneID) InitializerResult
type InitializerInfobox ¶
type InitializerInfobox struct { PropertyID *PropertyID `json:"propertyId"` Property *property.Initializer `json:"property"` Fields []*InitializerInfoboxField `json:"fields"` }
func (*InitializerInfobox) Clone ¶
func (i *InitializerInfobox) Clone() *InitializerInfobox
type InitializerInfoboxField ¶
type InitializerInfoboxField struct { ID *InfoboxFieldID `json:"id"` Plugin PluginID `json:"plugin"` Extension PluginExtensionID `json:"extension"` PropertyID *PropertyID `json:"propertyId"` Property *property.Initializer `json:"property"` }
func (*InitializerInfoboxField) Clone ¶
func (i *InitializerInfoboxField) Clone() *InitializerInfoboxField
func (*InitializerInfoboxField) InfoboxField ¶
func (i *InitializerInfoboxField) InfoboxField(scene SceneID) (*InfoboxField, *property.Property, error)
type InitializerResult ¶
func (InitializerResult) RootLayer ¶
func (r InitializerResult) RootLayer() Layer
func (InitializerResult) RootLayerGroup ¶
func (r InitializerResult) RootLayerGroup() *Group
func (InitializerResult) RootLayerItem ¶
func (r InitializerResult) RootLayerItem() *Item
func (InitializerResult) RootLayerRef ¶
func (r InitializerResult) RootLayerRef() *Layer
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func ItemFromLayer ¶
func ItemFromLayerRef ¶
func ToLayerItem ¶
func ToLayerItemRef ¶
func (*Item) Extension ¶
func (l *Item) Extension() *PluginExtensionID
func (*Item) HasInfobox ¶
func (l *Item) HasInfobox() bool
func (*Item) LinkedDataset ¶
func (*Item) Properties ¶
func (l *Item) Properties() []PropertyID
func (*Item) Property ¶
func (l *Item) Property() *PropertyID
func (*Item) SetInfobox ¶
func (*Item) SetVisible ¶
func (*Item) UsesPlugin ¶
type ItemBuilder ¶
type ItemBuilder struct {
// contains filtered or unexported fields
}
func NewItem ¶
func NewItem() *ItemBuilder
func (*ItemBuilder) Build ¶
func (b *ItemBuilder) Build() (*Item, error)
func (*ItemBuilder) Extension ¶
func (b *ItemBuilder) Extension(extension *PluginExtensionID) *ItemBuilder
func (*ItemBuilder) ID ¶
func (b *ItemBuilder) ID(id ID) *ItemBuilder
func (*ItemBuilder) Infobox ¶
func (b *ItemBuilder) Infobox(infobox *Infobox) *ItemBuilder
func (*ItemBuilder) IsVisible ¶
func (b *ItemBuilder) IsVisible(visible bool) *ItemBuilder
func (*ItemBuilder) LinkedDataset ¶
func (b *ItemBuilder) LinkedDataset(linkedDataset *DatasetID) *ItemBuilder
func (*ItemBuilder) MustBuild ¶
func (b *ItemBuilder) MustBuild() *Item
func (*ItemBuilder) Name ¶
func (b *ItemBuilder) Name(name string) *ItemBuilder
func (*ItemBuilder) NewID ¶
func (b *ItemBuilder) NewID() *ItemBuilder
func (*ItemBuilder) Plugin ¶
func (b *ItemBuilder) Plugin(plugin *PluginID) *ItemBuilder
func (*ItemBuilder) Property ¶
func (b *ItemBuilder) Property(p *PropertyID) *ItemBuilder
func (*ItemBuilder) Scene ¶
func (b *ItemBuilder) Scene(s SceneID) *ItemBuilder
func (*ItemBuilder) Tags ¶
func (b *ItemBuilder) Tags(tags *TagList) *ItemBuilder
type Layer ¶
type Layer interface { ID() ID Name() string IsVisible() bool Plugin() *PluginID Extension() *PluginExtensionID UsesPlugin() bool Property() *PropertyID HasInfobox() bool Infobox() *Infobox Scene() SceneID Tags() *TagList Rename(string) SetVisible(bool) SetInfobox(*Infobox) SetPlugin(*PluginID) Properties() []PropertyID ValidateProperties(property.Map) error }
type List ¶
type List []*Layer
func (List) FindByDataset ¶
func (List) Properties ¶ added in v0.4.0
func (ll List) Properties() []PropertyID
func (List) SeparateLayerItemAndGroup ¶
func (List) ToLayerGroupList ¶
func (List) ToLayerItemList ¶
type Merged ¶
type Merged struct { Original ID Parent *ID Name string Scene SceneID Property *property.MergedMetadata Infobox *MergedInfobox PluginID *PluginID ExtensionID *PluginExtensionID IsVisible bool Tags []MergedTag }
Merged represents a merged layer from two layers
func (*Merged) Properties ¶
func (m *Merged) Properties() []PropertyID
Properties returns all property IDs in Merged
type MergedInfobox ¶
type MergedInfobox struct { Property *property.MergedMetadata Fields []*MergedInfoboxField }
MergedInfobox represents a merged info box from two layers
func MergeInfobox ¶
func MergeInfobox(o *Infobox, p *Infobox, linked *DatasetID) *MergedInfobox
MergeInfobox merges two infoboxes
type MergedInfoboxField ¶
type MergedInfoboxField struct { ID InfoboxFieldID Plugin PluginID Extension PluginExtensionID Property *property.MergedMetadata }
MergedInfoboxField represents a field of MergedInfobox
type PluginExtensionID ¶ added in v0.4.0
type PluginExtensionID = id.PluginExtensionID
type PropertyID ¶ added in v0.4.0
type PropertyID = id.PropertyID
type TagGroup ¶ added in v0.3.0
type TagGroup struct {
// contains filtered or unexported fields
}
func NewTagGroup ¶ added in v0.3.0
func TagGroupFrom ¶ added in v0.3.0
func (*TagGroup) CloneGroup ¶ added in v0.3.0
type TagItem ¶ added in v0.3.0
type TagItem struct {
// contains filtered or unexported fields
}
func NewTagItem ¶ added in v0.3.0
func TagItemFrom ¶ added in v0.3.0
type TagList ¶ added in v0.3.0
type TagList struct {
// contains filtered or unexported fields
}
func NewTagList ¶ added in v0.3.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.