@tawaship/pixim-animate-runtime - v0.1.0
    Preparing search index...

    Class ContentInternal

    A content: the symbol classes built from generated data, sharing one definition per symbol. Not part of the API: applications get an IContent.

    Implements

    Index
    graphics: Graphics[]

    One Graphics per drawing of the content, shared by every symbol that shows it

    images: { [id: string]: IImageAsset }
    memberWriters: TMemberWriter[]
    scripts: TScript[]
    spriteSheets: { [name: string]: SpriteSheet }
    writers: TWriter[]
    • Parameters

      • bitmap: Bitmap
      • def: IBitmapDef | null

      Returns void

    • Sets the textures of the content's images (by manifest id) and the sprite sheets cut from them. Done before any instance is made: the constructor's assets, or the textures a loader read for the content afterwards.

      Parameters

      • textures: { [id: string]: Texture }

      Returns void

    • Parameters

      • sprite: Sprite
      • def: ISpriteDef | null

      Returns void

    • Builds an instance of a MovieClip symbol: what the published constructor builds, from the shared definition.

      Parameters

      Returns void

    • An instance of a symbol for the application to place, set up as the HTML template sets up the root it creates: a clip that re-caches its children's color effects (it has a filterCacheList) gets the filter cache handling, which published code otherwise gets from the symbol that creates it (an instance made by new lib[id]() in a frame script gets none, as in CreateJS). The handling does not change what the player draws (it draws color effects without caches); it keeps the instance's state the template's.

      Parameters

      • id: string

      Returns DisplayObject

    • Parameters

      • sheet: string
      • index: number

      Returns Texture | null

    • The image a frame of a sheet is drawn into for a bitmap fill (named after the atlas and the frame)

      Parameters

      • sheet: string
      • index: number

      Returns IImageAsset | null

    • Parameters

      • id: string

      Returns Texture | null