UNPKG

phaser3-nineslice

Version:
44 lines (42 loc) 899 B
// TODO: convert to typescript so that it actually means something <_< /* * type NineSliceConfig = { * sourceKey: string, * sourceFrame?: string || number * sourceLayout: LayoutConfig | CornerConfig, * safeOffsets?: UsableSpaceOffsets, * minSizing?: MinSizeConfig | false, * } * * type PositionConfig = { * x?: number, * y?: number, * width?: number, * height?: number, * } * * type LayoutConfig = { * topLeft: CornerConfig, * topRight?: CornerConfig, * bottomLeft?: CornerConfig, * bottomRight?: CornerConfig, * } * * type CornerConfig = { * width: number, * height?: number, * } * * type UsableSpaceOffsets = { * top: number, * right: number, * bottom: number, * left: number, * } * * type MinSizeConfig { * width: number, * height: number, * } * */