@tawaship/pixi-animate-container - v3.1.0
    Preparing search index...

    Class CreatejsMovieClip

    inherited createjs.MovieClip

    mask is a plain data property on the real createjs.DisplayObject, but this wrapper must intercept get/set to route the assigned value into the Pixi mirror. See the class-level comment on CreatejsShape for why a prototype accessor safely intercepts it despite TS2611/TS2416.

    Hierarchy (View Summary)

    Implements

    Indexable

    • [key: string]: any
    Index
    • Parameters

      • ...args:
            | [
                mode?: string,
                startPosition?: number,
                loop?: boolean,
                labels?: Object,
            ]
            | [
                props?: {
                    labels?: Object;
                    loop?: boolean;
                    mode?: string;
                    paused?: boolean;
                    position?: number;
                    reversed?: boolean;
                    startPosition?: number;
                },
            ]

      Returns CreatejsMovieClip

    _fps: number
    _listenFrameEventsBase: IAnimateFrameEventOption
    _off?: boolean
    _rawPosition: number
    _synchOffset: number
    actionsEnabled: boolean
    alpha: number
    autoReset: boolean
    bitmapCache: BitmapCache
    cacheCanvas: Object | HTMLCanvasElement
    cacheID: number
    children: DisplayObject[]
    currentFrame: number
    currentLabel: string
    cursor: string
    duration: number
    frameBounds: Rectangle[]
    hitArea: DisplayObject
    id: number
    labels: { label: string; position: number }[]
    loop: boolean
    mode: string
    mouseChildren: boolean
    mouseEnabled: boolean
    name: string
    numChildren: number
    paused: boolean
    regX: number
    regY: number
    rotation: number
    scale: number
    scaleX: number
    scaleY: number
    shadow: Shadow
    skewX: number
    skewY: number
    snapToPixel: boolean
    stage: Stage
    startPosition: number
    tickChildren: boolean
    tickEnabled: boolean
    timeline: Timeline
    totalFrames: number
    transformMatrix: Matrix2D
    visible: boolean
    x: number
    y: number
    buildDate: string
    INDEPENDENT: string
    inited: boolean
    SINGLE_FRAME: string
    suppressCrossDomainErrors: boolean
    SYNCHED: string
    version: string
    • Returns void

    • Parameters

      • evt: Object

      Returns void

    • Returns void

    • Advances the timeline (delegated to the original createjs implementation) and dispatches the custom frame events right after the frame changes, before the children are ticked — the same timing the previous self-managed walk provided.

      framerate is fixed at -1 and the driver never passes a delta, so one call always advances exactly one frame (determinism lives with the caller).

      Parameters

      • Optionaltime: number

      Returns void

    • Parameters

      • x: number
      • y: number
      • width: number
      • height: number
      • Optionalscale: number

      Returns void

    • Parameters

      • eventObj: Object
      • Optionaltarget: Object

      Returns boolean

    • Parameters

      • eventObj: string
      • Optionaltarget: Object

      Returns boolean

    • Parameters

      • eventObj: Event
      • Optionaltarget: Object

      Returns boolean

    • Parameters

      • ctx: CanvasRenderingContext2D
      • OptionalignoreCache: boolean

      Returns boolean

    • Returns string

    • Returns string

      • use 'currentLabel' property instead
    • Returns number

      • use the 'duration' property instead
    • Returns { label: string; position: number }[]

      • use 'labels' property instead
    • Returns number

      • use numChildren property instead.
    • Returns Stage

    • Parameters

      • x: number
      • y: number
      • Optionalpt: Object | Point

      Returns Point

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • x: number
      • y: number

      Returns boolean

    • Parameters

      • ...args:
            | [
                mode?: string,
                startPosition?: number,
                loop?: boolean,
                labels?: Object,
            ]
            | [
                props?: {
                    labels?: Object;
                    loop?: boolean;
                    mode?: string;
                    paused?: boolean;
                    position?: number;
                    reversed?: boolean;
                    startPosition?: number;
                },
            ]

      Returns void

    • Returns boolean

    • Parameters

      • x: number
      • y: number
      • Optionalpt: Object | Point

      Returns Point

    • Parameters

      • type: string
      • listener: (eventObj: Object) => boolean
      • Optionalscope: Object
      • Optionalonce: boolean
      • Optionaldata: any
      • OptionaluseCapture: boolean

      Returns Function

    • Parameters

      • type: string
      • listener: (eventObj: Object) => void
      • Optionalscope: Object
      • Optionalonce: boolean
      • Optionaldata: any
      • OptionaluseCapture: boolean

      Returns Function

    • Parameters

      • type: string
      • listener: { handleEvent: (eventObj: Object) => boolean }
      • Optionalscope: Object
      • Optionalonce: boolean
      • Optionaldata: any
      • OptionaluseCapture: boolean

      Returns Object

    • Parameters

      • type: string
      • listener: { handleEvent: (eventObj: Object) => void }
      • Optionalscope: Object
      • Optionalonce: boolean
      • Optionaldata: any
      • OptionaluseCapture: boolean

      Returns Object

    • Returns void

    • Parameters

      • x: number
      • y: number
      • width: number
      • height: number

      Returns void

    • Settles the tree for drawing without playing on — what createjs does to each clip when the stage draws (MovieClip.draw -> _updateState): synched and single-frame clips are placed at the frame their parent gives. A clip waiting to start over (an independent clip reset when its parent placed it again, _rawPosition -1) is shown at its first frame the way createjs shows a new clip (_renderFirstFrame: no frame script, the playhead left as it was), so that it starts on the next frame played, as in the Animate template, where createjs draws only after a tick (a draw's _updateState would start it at once, a frame ahead). Children are settled after their parent, in the resolve phase's order. Used right before Pixi draws a tree whose timelines moved between frames (CreatejsController.flushForRender).

      Returns void

    • Parameters

      • Optionalx: number
      • Optionaly: number
      • OptionalscaleX: number
      • OptionalscaleY: number
      • Optionalrotation: number
      • OptionalskewX: number
      • OptionalskewY: number
      • OptionalregX: number
      • OptionalregY: number

      Returns DisplayObject

    • Returns void

    • Parameters

      • index1: number
      • index2: number

      Returns void

    • Returns string

    • Returns void

    • Parameters

      • OptionalcompositeOperation: string

      Returns void

    • Parameters

      • ctx: CanvasRenderingContext2D

      Returns void

    • Recursive _updateState walk: the substitute for the draw phase of the original pipeline (MovieClip.draw -> _updateState), which is what resolves SYNCHED / SINGLE_FRAME / first-render state — advance() only moves INDEPENDENT clips. Runs once per frame after _tick, and once when a root is registered (frame-0 seating). Walks the live children array in reverse, matching the traversal discipline of the original Container._tick.

      Returns void

    • Parameters

      • type: string

      Returns boolean

    • Returns void

    • Parameters

      • target: Object

      Returns void