Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetIDListToUint64List ¶
Types ¶
type Asset ¶
type Asset struct { ID AssetID `json:"id,omitempty"` Name string `json:"name"` Path string `json:"path"` BoundingBoxes []*BoundingBox `json:"boundingBoxes"` }
func NewAssetFromFilePath ¶
func (*Asset) HasAnyOneOfTagID ¶
type BoundingBox ¶
type BoundingBox struct { ID BoundingBoxID `json:"id"` TagID TagID `json:"tagID"` X int `json:"x"` Y int `json:"y"` Width int `json:"width"` Height int `json:"height"` }
func RemoveBoundingBoxByID ¶
func RemoveBoundingBoxByID(boxes []*BoundingBox, replaceBoxID BoundingBoxID) (newBoxes []*BoundingBox)
func ReplaceBoundingBoxByID ¶
func ReplaceBoundingBoxByID(boxes []*BoundingBox, replaceBox *BoundingBox) (newBoxes []*BoundingBox)
type BoundingBoxID ¶
type BoundingBoxID uint64
type ImportAsset ¶ added in v0.1.1
type ImportAsset struct { *Asset `mapstructure:",squash"` BoundingBoxes []*ImportBoundingBox `json:"boundingBoxes"` }
func NewImportAssetFromFilePath ¶ added in v0.1.1
func NewImportAssetFromFilePath(filePath string) *ImportAsset
type ImportBoundingBox ¶ added in v0.1.1
type ImportBoundingBox struct { *BoundingBox TagName string }
type TagWithIndex ¶
type WorkSpace ¶
type WorkSpace struct { ID WorkSpaceID `json:"id"` Name WSName `json:"name"` BasePath string `json:"basePath"` }
type WorkSpaceID ¶
type WorkSpaceID uint64
Click to show internal directories.
Click to hide internal directories.