Skip to content
InterfaceAnimation & Atlases@public

FlxAtlasFrameRect

Raw axis-aligned bounding rect for one atlas sub-image. Produced by the three parsers; consumed by FlxAtlas to build textures.

ts
export interface FlxAtlasFrameRect

Properties

PropertyModifiersTypeDescription
heightreadonlynumber-
namereadonlystring-
rotatedreadonlybooleanWhether TexturePacker stored the pixels rotated 90 degrees clockwise.
sourceHeightreadonlynumberLogical untrimmed source height, when transparent padding was removed.
sourceWidthreadonlynumberLogical untrimmed source width, when transparent padding was removed.
trimHeightreadonlynumberLogical height of the trimmed pixels.
trimWidthreadonlynumberLogical width of the trimmed pixels.
trimXreadonlynumberHorizontal placement of the trimmed pixels in the logical source.
trimYreadonlynumberVertical placement of the trimmed pixels in the logical source.
widthreadonlynumber-
xreadonlynumber-
yreadonlynumber-

Released under the MIT License.