safex-webgl 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +6 -0
- package/@types/index.d.ts +36 -0
- package/README.md +152 -0
- package/bun.lock +353 -0
- package/dist/actions/Action.d.ts +27 -0
- package/dist/actions/Action.d.ts.map +1 -0
- package/dist/actions/Action.js +62 -0
- package/dist/actions/Action.js.map +1 -0
- package/dist/actions/ActionBezier.d.ts +121 -0
- package/dist/actions/ActionBezier.d.ts.map +1 -0
- package/dist/actions/ActionBezier.js +221 -0
- package/dist/actions/ActionBezier.js.map +1 -0
- package/dist/actions/ActionBlink.d.ts +62 -0
- package/dist/actions/ActionBlink.d.ts.map +1 -0
- package/dist/actions/ActionBlink.js +96 -0
- package/dist/actions/ActionBlink.js.map +1 -0
- package/dist/actions/ActionCatmullRom.d.ts +242 -0
- package/dist/actions/ActionCatmullRom.d.ts.map +1 -0
- package/dist/actions/ActionCatmullRom.js +436 -0
- package/dist/actions/ActionCatmullRom.js.map +1 -0
- package/dist/actions/ActionFade.d.ts +126 -0
- package/dist/actions/ActionFade.d.ts.map +1 -0
- package/dist/actions/ActionFade.js +190 -0
- package/dist/actions/ActionFade.js.map +1 -0
- package/dist/actions/ActionInstant.d.ts +237 -0
- package/dist/actions/ActionInstant.d.ts.map +1 -0
- package/dist/actions/ActionInstant.js +386 -0
- package/dist/actions/ActionInstant.js.map +1 -0
- package/dist/actions/ActionInterval.d.ts +132 -0
- package/dist/actions/ActionInterval.d.ts.map +1 -0
- package/dist/actions/ActionInterval.js +254 -0
- package/dist/actions/ActionInterval.js.map +1 -0
- package/dist/actions/ActionJump.d.ts +146 -0
- package/dist/actions/ActionJump.d.ts.map +1 -0
- package/dist/actions/ActionJump.js +239 -0
- package/dist/actions/ActionJump.js.map +1 -0
- package/dist/actions/ActionMove.d.ts +73 -0
- package/dist/actions/ActionMove.d.ts.map +1 -0
- package/dist/actions/ActionMove.js +164 -0
- package/dist/actions/ActionMove.js.map +1 -0
- package/dist/actions/ActionRotate.d.ts +137 -0
- package/dist/actions/ActionRotate.d.ts.map +1 -0
- package/dist/actions/ActionRotate.js +214 -0
- package/dist/actions/ActionRotate.js.map +1 -0
- package/dist/actions/ActionScale.d.ts +110 -0
- package/dist/actions/ActionScale.d.ts.map +1 -0
- package/dist/actions/ActionScale.js +157 -0
- package/dist/actions/ActionScale.js.map +1 -0
- package/dist/actions/ActionSkew.d.ts +120 -0
- package/dist/actions/ActionSkew.d.ts.map +1 -0
- package/dist/actions/ActionSkew.js +185 -0
- package/dist/actions/ActionSkew.js.map +1 -0
- package/dist/actions/ActionTint.d.ts +132 -0
- package/dist/actions/ActionTint.d.ts.map +1 -0
- package/dist/actions/ActionTint.js +193 -0
- package/dist/actions/ActionTint.js.map +1 -0
- package/dist/actions/Animate.d.ts +77 -0
- package/dist/actions/Animate.d.ts.map +1 -0
- package/dist/actions/Animate.js +177 -0
- package/dist/actions/Animate.js.map +1 -0
- package/dist/actions/DelayTime.d.ts +95 -0
- package/dist/actions/DelayTime.d.ts.map +1 -0
- package/dist/actions/DelayTime.js +145 -0
- package/dist/actions/DelayTime.js.map +1 -0
- package/dist/actions/FiniteTimeAction.d.ts +11 -0
- package/dist/actions/FiniteTimeAction.d.ts.map +1 -0
- package/dist/actions/FiniteTimeAction.js +24 -0
- package/dist/actions/FiniteTimeAction.js.map +1 -0
- package/dist/actions/Follow.d.ts +23 -0
- package/dist/actions/Follow.d.ts.map +1 -0
- package/dist/actions/Follow.js +98 -0
- package/dist/actions/Follow.js.map +1 -0
- package/dist/actions/Repeat.d.ts +151 -0
- package/dist/actions/Repeat.d.ts.map +1 -0
- package/dist/actions/Repeat.js +276 -0
- package/dist/actions/Repeat.js.map +1 -0
- package/dist/actions/Sequence.d.ts +77 -0
- package/dist/actions/Sequence.d.ts.map +1 -0
- package/dist/actions/Sequence.js +190 -0
- package/dist/actions/Sequence.js.map +1 -0
- package/dist/actions/Spawn.d.ts +63 -0
- package/dist/actions/Spawn.d.ts.map +1 -0
- package/dist/actions/Spawn.js +146 -0
- package/dist/actions/Spawn.js.map +1 -0
- package/dist/actions/Speed.d.ts +19 -0
- package/dist/actions/Speed.d.ts.map +1 -0
- package/dist/actions/Speed.js +57 -0
- package/dist/actions/Speed.js.map +1 -0
- package/dist/actions/TargetedAction.d.ts +67 -0
- package/dist/actions/TargetedAction.d.ts.map +1 -0
- package/dist/actions/TargetedAction.js +99 -0
- package/dist/actions/TargetedAction.js.map +1 -0
- package/dist/actions/easing/ActionEase.d.ts +133 -0
- package/dist/actions/easing/ActionEase.d.ts.map +1 -0
- package/dist/actions/easing/ActionEase.js +184 -0
- package/dist/actions/easing/ActionEase.js.map +1 -0
- package/dist/actions/easing/Back.d.ts +174 -0
- package/dist/actions/easing/Back.d.ts.map +1 -0
- package/dist/actions/easing/Back.js +227 -0
- package/dist/actions/easing/Back.js.map +1 -0
- package/dist/actions/easing/Bezier.d.ts +94 -0
- package/dist/actions/easing/Bezier.d.ts.map +1 -0
- package/dist/actions/easing/Bezier.js +124 -0
- package/dist/actions/easing/Bezier.js.map +1 -0
- package/dist/actions/easing/Bounce.d.ts +203 -0
- package/dist/actions/easing/Bounce.d.ts.map +1 -0
- package/dist/actions/easing/Bounce.js +288 -0
- package/dist/actions/easing/Bounce.js.map +1 -0
- package/dist/actions/easing/Circle.d.ts +177 -0
- package/dist/actions/easing/Circle.d.ts.map +1 -0
- package/dist/actions/easing/Circle.js +220 -0
- package/dist/actions/easing/Circle.js.map +1 -0
- package/dist/actions/easing/Cubic.d.ts +165 -0
- package/dist/actions/easing/Cubic.d.ts.map +1 -0
- package/dist/actions/easing/Cubic.js +209 -0
- package/dist/actions/easing/Cubic.js.map +1 -0
- package/dist/actions/easing/Elastic.d.ts +269 -0
- package/dist/actions/easing/Elastic.d.ts.map +1 -0
- package/dist/actions/easing/Elastic.js +358 -0
- package/dist/actions/easing/Elastic.js.map +1 -0
- package/dist/actions/easing/Exponential.d.ts +181 -0
- package/dist/actions/easing/Exponential.d.ts.map +1 -0
- package/dist/actions/easing/Exponential.js +214 -0
- package/dist/actions/easing/Exponential.js.map +1 -0
- package/dist/actions/easing/InOut.d.ts +191 -0
- package/dist/actions/easing/InOut.d.ts.map +1 -0
- package/dist/actions/easing/InOut.js +254 -0
- package/dist/actions/easing/InOut.js.map +1 -0
- package/dist/actions/easing/Quartic.d.ts +232 -0
- package/dist/actions/easing/Quartic.d.ts.map +1 -0
- package/dist/actions/easing/Quartic.js +313 -0
- package/dist/actions/easing/Quartic.js.map +1 -0
- package/dist/actions/easing/Quintic.d.ts +168 -0
- package/dist/actions/easing/Quintic.d.ts.map +1 -0
- package/dist/actions/easing/Quintic.js +212 -0
- package/dist/actions/easing/Quintic.js.map +1 -0
- package/dist/actions/easing/Sine.d.ts +176 -0
- package/dist/actions/easing/Sine.d.ts.map +1 -0
- package/dist/actions/easing/Sine.js +206 -0
- package/dist/actions/easing/Sine.js.map +1 -0
- package/dist/actions/index.d.ts +16 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +16 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/audio/Audio.d.ts +47 -0
- package/dist/audio/Audio.d.ts.map +1 -0
- package/dist/audio/Audio.js +255 -0
- package/dist/audio/Audio.js.map +1 -0
- package/dist/audio/engine.d.ts +171 -0
- package/dist/audio/engine.d.ts.map +1 -0
- package/dist/audio/engine.js +556 -0
- package/dist/audio/engine.js.map +1 -0
- package/dist/audio/index.d.ts +3 -0
- package/dist/audio/index.d.ts.map +1 -0
- package/dist/audio/index.js +3 -0
- package/dist/audio/index.js.map +1 -0
- package/dist/boot.d.ts +80 -0
- package/dist/boot.d.ts.map +1 -0
- package/dist/boot.js +468 -0
- package/dist/boot.js.map +1 -0
- package/dist/clipping-nodes/ClippingNode.d.ts +114 -0
- package/dist/clipping-nodes/ClippingNode.d.ts.map +1 -0
- package/dist/clipping-nodes/ClippingNode.js +177 -0
- package/dist/clipping-nodes/ClippingNode.js.map +1 -0
- package/dist/clipping-nodes/ClippingNodeWebGLRenderCmd.d.ts +25 -0
- package/dist/clipping-nodes/ClippingNodeWebGLRenderCmd.d.ts.map +1 -0
- package/dist/clipping-nodes/ClippingNodeWebGLRenderCmd.js +157 -0
- package/dist/clipping-nodes/ClippingNodeWebGLRenderCmd.js.map +1 -0
- package/dist/core/ActionManager.d.ts +56 -0
- package/dist/core/ActionManager.d.ts.map +1 -0
- package/dist/core/ActionManager.js +253 -0
- package/dist/core/ActionManager.js.map +1 -0
- package/dist/core/Configuration.d.ts +108 -0
- package/dist/core/Configuration.d.ts.map +1 -0
- package/dist/core/Configuration.js +232 -0
- package/dist/core/Configuration.js.map +1 -0
- package/dist/core/Director.d.ts +130 -0
- package/dist/core/Director.d.ts.map +1 -0
- package/dist/core/Director.js +580 -0
- package/dist/core/Director.js.map +1 -0
- package/dist/core/DrawingPrimitivesWebGL.d.ts +32 -0
- package/dist/core/DrawingPrimitivesWebGL.d.ts.map +1 -0
- package/dist/core/DrawingPrimitivesWebGL.js +273 -0
- package/dist/core/DrawingPrimitivesWebGL.js.map +1 -0
- package/dist/core/Scheduler.d.ts +110 -0
- package/dist/core/Scheduler.d.ts.map +1 -0
- package/dist/core/Scheduler.js +687 -0
- package/dist/core/Scheduler.js.map +1 -0
- package/dist/core/base-nodes/BaseNodesPropertyDefine.d.ts +2 -0
- package/dist/core/base-nodes/BaseNodesPropertyDefine.d.ts.map +1 -0
- package/dist/core/base-nodes/BaseNodesPropertyDefine.js +37 -0
- package/dist/core/base-nodes/BaseNodesPropertyDefine.js.map +1 -0
- package/dist/core/base-nodes/CustomRenderCmd.d.ts +9 -0
- package/dist/core/base-nodes/CustomRenderCmd.d.ts.map +1 -0
- package/dist/core/base-nodes/CustomRenderCmd.js +16 -0
- package/dist/core/base-nodes/CustomRenderCmd.js.map +1 -0
- package/dist/core/base-nodes/Node.d.ts +285 -0
- package/dist/core/base-nodes/Node.d.ts.map +1 -0
- package/dist/core/base-nodes/Node.js +1112 -0
- package/dist/core/base-nodes/Node.js.map +1 -0
- package/dist/core/base-nodes/NodeRenderCmd.d.ts +65 -0
- package/dist/core/base-nodes/NodeRenderCmd.d.ts.map +1 -0
- package/dist/core/base-nodes/NodeRenderCmd.js +460 -0
- package/dist/core/base-nodes/NodeRenderCmd.js.map +1 -0
- package/dist/core/base-nodes/NodeWebGLRenderCmd.d.ts +17 -0
- package/dist/core/base-nodes/NodeWebGLRenderCmd.d.ts.map +1 -0
- package/dist/core/base-nodes/NodeWebGLRenderCmd.js +29 -0
- package/dist/core/base-nodes/NodeWebGLRenderCmd.js.map +1 -0
- package/dist/core/cocoa/AffineTransform.d.ts +201 -0
- package/dist/core/cocoa/AffineTransform.d.ts.map +1 -0
- package/dist/core/cocoa/AffineTransform.js +260 -0
- package/dist/core/cocoa/AffineTransform.js.map +1 -0
- package/dist/core/cocoa/Geometry.d.ts +176 -0
- package/dist/core/cocoa/Geometry.d.ts.map +1 -0
- package/dist/core/cocoa/Geometry.js +237 -0
- package/dist/core/cocoa/Geometry.js.map +1 -0
- package/dist/core/event-manager/Event.d.ts +57 -0
- package/dist/core/event-manager/Event.d.ts.map +1 -0
- package/dist/core/event-manager/Event.js +69 -0
- package/dist/core/event-manager/Event.js.map +1 -0
- package/dist/core/event-manager/EventCustom.d.ts +22 -0
- package/dist/core/event-manager/EventCustom.d.ts.map +1 -0
- package/dist/core/event-manager/EventCustom.js +31 -0
- package/dist/core/event-manager/EventCustom.js.map +1 -0
- package/dist/core/event-manager/EventExtension.d.ts +33 -0
- package/dist/core/event-manager/EventExtension.d.ts.map +1 -0
- package/dist/core/event-manager/EventExtension.js +80 -0
- package/dist/core/event-manager/EventExtension.js.map +1 -0
- package/dist/core/event-manager/EventFocus.d.ts +17 -0
- package/dist/core/event-manager/EventFocus.d.ts.map +1 -0
- package/dist/core/event-manager/EventFocus.js +21 -0
- package/dist/core/event-manager/EventFocus.js.map +1 -0
- package/dist/core/event-manager/EventHelper.d.ts +8 -0
- package/dist/core/event-manager/EventHelper.d.ts.map +1 -0
- package/dist/core/event-manager/EventHelper.js +92 -0
- package/dist/core/event-manager/EventHelper.js.map +1 -0
- package/dist/core/event-manager/EventListener.d.ts +53 -0
- package/dist/core/event-manager/EventListener.d.ts.map +1 -0
- package/dist/core/event-manager/EventListener.js +95 -0
- package/dist/core/event-manager/EventListener.js.map +1 -0
- package/dist/core/event-manager/EventListenerCustom.d.ts +11 -0
- package/dist/core/event-manager/EventListenerCustom.d.ts.map +1 -0
- package/dist/core/event-manager/EventListenerCustom.js +37 -0
- package/dist/core/event-manager/EventListenerCustom.js.map +1 -0
- package/dist/core/event-manager/EventListenerFocus.d.ts +10 -0
- package/dist/core/event-manager/EventListenerFocus.d.ts.map +1 -0
- package/dist/core/event-manager/EventListenerFocus.js +28 -0
- package/dist/core/event-manager/EventListenerFocus.js.map +1 -0
- package/dist/core/event-manager/EventListenerMouse.d.ts +13 -0
- package/dist/core/event-manager/EventListenerMouse.d.ts.map +1 -0
- package/dist/core/event-manager/EventListenerMouse.js +49 -0
- package/dist/core/event-manager/EventListenerMouse.js.map +1 -0
- package/dist/core/event-manager/EventListenerTouchAllAtOnce.d.ts +12 -0
- package/dist/core/event-manager/EventListenerTouchAllAtOnce.d.ts.map +1 -0
- package/dist/core/event-manager/EventListenerTouchAllAtOnce.js +28 -0
- package/dist/core/event-manager/EventListenerTouchAllAtOnce.js.map +1 -0
- package/dist/core/event-manager/EventListenerTouchOneByOne.d.ts +16 -0
- package/dist/core/event-manager/EventListenerTouchOneByOne.d.ts.map +1 -0
- package/dist/core/event-manager/EventListenerTouchOneByOne.js +38 -0
- package/dist/core/event-manager/EventListenerTouchOneByOne.js.map +1 -0
- package/dist/core/event-manager/EventListenerVector.d.ts +15 -0
- package/dist/core/event-manager/EventListenerVector.d.ts.map +1 -0
- package/dist/core/event-manager/EventListenerVector.js +38 -0
- package/dist/core/event-manager/EventListenerVector.js.map +1 -0
- package/dist/core/event-manager/EventManager.d.ts +140 -0
- package/dist/core/event-manager/EventManager.d.ts.map +1 -0
- package/dist/core/event-manager/EventManager.js +907 -0
- package/dist/core/event-manager/EventManager.js.map +1 -0
- package/dist/core/event-manager/EventMouse.d.ts +173 -0
- package/dist/core/event-manager/EventMouse.d.ts.map +1 -0
- package/dist/core/event-manager/EventMouse.js +200 -0
- package/dist/core/event-manager/EventMouse.js.map +1 -0
- package/dist/core/event-manager/EventTouch.d.ts +24 -0
- package/dist/core/event-manager/EventTouch.d.ts.map +1 -0
- package/dist/core/event-manager/EventTouch.js +33 -0
- package/dist/core/event-manager/EventTouch.js.map +1 -0
- package/dist/core/event-manager/Touch.d.ts +60 -0
- package/dist/core/event-manager/Touch.d.ts.map +1 -0
- package/dist/core/event-manager/Touch.js +94 -0
- package/dist/core/event-manager/Touch.js.map +1 -0
- package/dist/core/event-manager/index.d.ts +6 -0
- package/dist/core/event-manager/index.d.ts.map +1 -0
- package/dist/core/event-manager/index.js +6 -0
- package/dist/core/event-manager/index.js.map +1 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +16 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/kazmath/gl/mat4stack.d.ts +5 -0
- package/dist/core/kazmath/gl/mat4stack.d.ts.map +1 -0
- package/dist/core/kazmath/gl/mat4stack.js +53 -0
- package/dist/core/kazmath/gl/mat4stack.js.map +1 -0
- package/dist/core/kazmath/gl/matrix.d.ts +21 -0
- package/dist/core/kazmath/gl/matrix.d.ts.map +1 -0
- package/dist/core/kazmath/gl/matrix.js +121 -0
- package/dist/core/kazmath/gl/matrix.js.map +1 -0
- package/dist/core/kazmath/index.d.ts +7 -0
- package/dist/core/kazmath/index.d.ts.map +1 -0
- package/dist/core/kazmath/index.js +7 -0
- package/dist/core/kazmath/index.js.map +1 -0
- package/dist/core/kazmath/mat3.d.ts +45 -0
- package/dist/core/kazmath/mat3.d.ts.map +1 -0
- package/dist/core/kazmath/mat3.js +297 -0
- package/dist/core/kazmath/mat3.js.map +1 -0
- package/dist/core/kazmath/mat4.d.ts +175 -0
- package/dist/core/kazmath/mat4.d.ts.map +1 -0
- package/dist/core/kazmath/mat4.func.d.ts +44 -0
- package/dist/core/kazmath/mat4.func.d.ts.map +1 -0
- package/dist/core/kazmath/mat4.func.js +210 -0
- package/dist/core/kazmath/mat4.func.js.map +1 -0
- package/dist/core/kazmath/mat4.js +671 -0
- package/dist/core/kazmath/mat4.js.map +1 -0
- package/dist/core/kazmath/plane.d.ts +24 -0
- package/dist/core/kazmath/plane.d.ts.map +1 -0
- package/dist/core/kazmath/plane.js +96 -0
- package/dist/core/kazmath/plane.js.map +1 -0
- package/dist/core/kazmath/quaternion.d.ts +135 -0
- package/dist/core/kazmath/quaternion.d.ts.map +1 -0
- package/dist/core/kazmath/quaternion.js +407 -0
- package/dist/core/kazmath/quaternion.js.map +1 -0
- package/dist/core/kazmath/utility.d.ts +8 -0
- package/dist/core/kazmath/utility.d.ts.map +1 -0
- package/dist/core/kazmath/utility.js +14 -0
- package/dist/core/kazmath/utility.js.map +1 -0
- package/dist/core/kazmath/vec3.d.ts +26 -0
- package/dist/core/kazmath/vec3.d.ts.map +1 -0
- package/dist/core/kazmath/vec3.js +170 -0
- package/dist/core/kazmath/vec3.js.map +1 -0
- package/dist/core/kazmath/vec4.d.ts +22 -0
- package/dist/core/kazmath/vec4.d.ts.map +1 -0
- package/dist/core/kazmath/vec4.js +136 -0
- package/dist/core/kazmath/vec4.js.map +1 -0
- package/dist/core/labelttf/LabelTTF.d.ts +310 -0
- package/dist/core/labelttf/LabelTTF.d.ts.map +1 -0
- package/dist/core/labelttf/LabelTTF.js +818 -0
- package/dist/core/labelttf/LabelTTF.js.map +1 -0
- package/dist/core/labelttf/LabelTTFPropertyDefine.d.ts +2 -0
- package/dist/core/labelttf/LabelTTFPropertyDefine.d.ts.map +1 -0
- package/dist/core/labelttf/LabelTTFPropertyDefine.js +27 -0
- package/dist/core/labelttf/LabelTTFPropertyDefine.js.map +1 -0
- package/dist/core/labelttf/LabelTTFWebGLRenderCmd.d.ts +37 -0
- package/dist/core/labelttf/LabelTTFWebGLRenderCmd.d.ts.map +1 -0
- package/dist/core/labelttf/LabelTTFWebGLRenderCmd.js +367 -0
- package/dist/core/labelttf/LabelTTFWebGLRenderCmd.js.map +1 -0
- package/dist/core/layers/Layer.d.ts +35 -0
- package/dist/core/layers/Layer.d.ts.map +1 -0
- package/dist/core/layers/Layer.js +93 -0
- package/dist/core/layers/Layer.js.map +1 -0
- package/dist/core/layers/LayerColor.d.ts +61 -0
- package/dist/core/layers/LayerColor.d.ts.map +1 -0
- package/dist/core/layers/LayerColor.js +144 -0
- package/dist/core/layers/LayerColor.js.map +1 -0
- package/dist/core/layers/LayerGradient.d.ts +196 -0
- package/dist/core/layers/LayerGradient.d.ts.map +1 -0
- package/dist/core/layers/LayerGradient.js +482 -0
- package/dist/core/layers/LayerGradient.js.map +1 -0
- package/dist/core/layers/LayerMultiplex.d.ts +47 -0
- package/dist/core/layers/LayerMultiplex.d.ts.map +1 -0
- package/dist/core/layers/LayerMultiplex.js +87 -0
- package/dist/core/layers/LayerMultiplex.js.map +1 -0
- package/dist/core/layers/LayerWebGLRenderCmd.d.ts +26 -0
- package/dist/core/layers/LayerWebGLRenderCmd.d.ts.map +1 -0
- package/dist/core/layers/LayerWebGLRenderCmd.js +100 -0
- package/dist/core/layers/LayerWebGLRenderCmd.js.map +1 -0
- package/dist/core/layers/index.d.ts +5 -0
- package/dist/core/layers/index.d.ts.map +1 -0
- package/dist/core/layers/index.js +5 -0
- package/dist/core/layers/index.js.map +1 -0
- package/dist/core/platform/BlendFunc.d.ts +30 -0
- package/dist/core/platform/BlendFunc.d.ts.map +1 -0
- package/dist/core/platform/BlendFunc.js +50 -0
- package/dist/core/platform/BlendFunc.js.map +1 -0
- package/dist/core/platform/Color.d.ts +31 -0
- package/dist/core/platform/Color.d.ts.map +1 -0
- package/dist/core/platform/Color.js +71 -0
- package/dist/core/platform/Color.js.map +1 -0
- package/dist/core/platform/Common.d.ts +157 -0
- package/dist/core/platform/Common.d.ts.map +1 -0
- package/dist/core/platform/Common.js +180 -0
- package/dist/core/platform/Common.js.map +1 -0
- package/dist/core/platform/Config.d.ts +230 -0
- package/dist/core/platform/Config.d.ts.map +1 -0
- package/dist/core/platform/Config.js +231 -0
- package/dist/core/platform/Config.js.map +1 -0
- package/dist/core/platform/Dictionary.d.ts +16 -0
- package/dist/core/platform/Dictionary.d.ts.map +1 -0
- package/dist/core/platform/Dictionary.js +65 -0
- package/dist/core/platform/Dictionary.js.map +1 -0
- package/dist/core/platform/EGLView/ContainerStrategy.d.ts +30 -0
- package/dist/core/platform/EGLView/ContainerStrategy.d.ts.map +1 -0
- package/dist/core/platform/EGLView/ContainerStrategy.js +121 -0
- package/dist/core/platform/EGLView/ContainerStrategy.js.map +1 -0
- package/dist/core/platform/EGLView/ContentStrategy.d.ts +56 -0
- package/dist/core/platform/EGLView/ContentStrategy.d.ts.map +1 -0
- package/dist/core/platform/EGLView/ContentStrategy.js +117 -0
- package/dist/core/platform/EGLView/ContentStrategy.js.map +1 -0
- package/dist/core/platform/EGLView/EGLInstance.d.ts +8 -0
- package/dist/core/platform/EGLView/EGLInstance.d.ts.map +1 -0
- package/dist/core/platform/EGLView/EGLInstance.js +16 -0
- package/dist/core/platform/EGLView/EGLInstance.js.map +1 -0
- package/dist/core/platform/EGLView/ResolutionPolicy.d.ts +99 -0
- package/dist/core/platform/EGLView/ResolutionPolicy.d.ts.map +1 -0
- package/dist/core/platform/EGLView/ResolutionPolicy.js +116 -0
- package/dist/core/platform/EGLView/ResolutionPolicy.js.map +1 -0
- package/dist/core/platform/EGLView.d.ts +204 -0
- package/dist/core/platform/EGLView.d.ts.map +1 -0
- package/dist/core/platform/EGLView.js +669 -0
- package/dist/core/platform/EGLView.js.map +1 -0
- package/dist/core/platform/FontDefinition.d.ts +47 -0
- package/dist/core/platform/FontDefinition.d.ts.map +1 -0
- package/dist/core/platform/FontDefinition.js +59 -0
- package/dist/core/platform/FontDefinition.js.map +1 -0
- package/dist/core/platform/InputManager.d.ts +149 -0
- package/dist/core/platform/InputManager.d.ts.map +1 -0
- package/dist/core/platform/InputManager.js +558 -0
- package/dist/core/platform/InputManager.js.map +1 -0
- package/dist/core/platform/Loaders.d.ts +4 -0
- package/dist/core/platform/Loaders.d.ts.map +1 -0
- package/dist/core/platform/Loaders.js +141 -0
- package/dist/core/platform/Loaders.js.map +1 -0
- package/dist/core/platform/Macro.d.ts +634 -0
- package/dist/core/platform/Macro.d.ts.map +1 -0
- package/dist/core/platform/Macro.js +763 -0
- package/dist/core/platform/Macro.js.map +1 -0
- package/dist/core/platform/SAXParser.d.ts +44 -0
- package/dist/core/platform/SAXParser.d.ts.map +1 -0
- package/dist/core/platform/SAXParser.js +122 -0
- package/dist/core/platform/SAXParser.js.map +1 -0
- package/dist/core/platform/Types.d.ts +188 -0
- package/dist/core/platform/Types.d.ts.map +1 -0
- package/dist/core/platform/Types.js +425 -0
- package/dist/core/platform/Types.js.map +1 -0
- package/dist/core/platform/VisibleRect.d.ts +38 -0
- package/dist/core/platform/VisibleRect.d.ts.map +1 -0
- package/dist/core/platform/VisibleRect.js +66 -0
- package/dist/core/platform/VisibleRect.js.map +1 -0
- package/dist/core/platform/index.d.ts +7 -0
- package/dist/core/platform/index.d.ts.map +1 -0
- package/dist/core/platform/index.js +7 -0
- package/dist/core/platform/index.js.map +1 -0
- package/dist/core/platform/miniFramework.d.ts +28 -0
- package/dist/core/platform/miniFramework.d.ts.map +1 -0
- package/dist/core/platform/miniFramework.js +245 -0
- package/dist/core/platform/miniFramework.js.map +1 -0
- package/dist/core/platform/types/Quad2.d.ts +30 -0
- package/dist/core/platform/types/Quad2.d.ts.map +1 -0
- package/dist/core/platform/types/Quad2.js +62 -0
- package/dist/core/platform/types/Quad2.js.map +1 -0
- package/dist/core/platform/types/Quad3.d.ts +18 -0
- package/dist/core/platform/types/Quad3.d.ts.map +1 -0
- package/dist/core/platform/types/Quad3.js +30 -0
- package/dist/core/platform/types/Quad3.js.map +1 -0
- package/dist/core/platform/types/Tex2F.d.ts +20 -0
- package/dist/core/platform/types/Tex2F.d.ts.map +1 -0
- package/dist/core/platform/types/Tex2F.js +33 -0
- package/dist/core/platform/types/Tex2F.js.map +1 -0
- package/dist/core/platform/types/Vertex2F.d.ts +12 -0
- package/dist/core/platform/types/Vertex2F.d.ts.map +1 -0
- package/dist/core/platform/types/Vertex2F.js +25 -0
- package/dist/core/platform/types/Vertex2F.js.map +1 -0
- package/dist/core/platform/types/Vertex3F.d.ts +14 -0
- package/dist/core/platform/types/Vertex3F.d.ts.map +1 -0
- package/dist/core/platform/types/Vertex3F.js +31 -0
- package/dist/core/platform/types/Vertex3F.js.map +1 -0
- package/dist/core/platform/types/WebGLColor.d.ts +17 -0
- package/dist/core/platform/types/WebGLColor.d.ts.map +1 -0
- package/dist/core/platform/types/WebGLColor.js +40 -0
- package/dist/core/platform/types/WebGLColor.js.map +1 -0
- package/dist/core/renderer/GlobalVertexBuffer.d.ts +19 -0
- package/dist/core/renderer/GlobalVertexBuffer.d.ts.map +1 -0
- package/dist/core/renderer/GlobalVertexBuffer.js +99 -0
- package/dist/core/renderer/GlobalVertexBuffer.js.map +1 -0
- package/dist/core/renderer/RendererWebGL.d.ts +47 -0
- package/dist/core/renderer/RendererWebGL.d.ts.map +1 -0
- package/dist/core/renderer/RendererWebGL.js +389 -0
- package/dist/core/renderer/RendererWebGL.js.map +1 -0
- package/dist/core/scenes/Scene.d.ts +6 -0
- package/dist/core/scenes/Scene.d.ts.map +1 -0
- package/dist/core/scenes/Scene.js +12 -0
- package/dist/core/scenes/Scene.js.map +1 -0
- package/dist/core/sprites/Animation.d.ts +147 -0
- package/dist/core/sprites/Animation.d.ts.map +1 -0
- package/dist/core/sprites/Animation.js +277 -0
- package/dist/core/sprites/Animation.js.map +1 -0
- package/dist/core/sprites/AnimationCache.d.ts +37 -0
- package/dist/core/sprites/AnimationCache.d.ts.map +1 -0
- package/dist/core/sprites/AnimationCache.js +159 -0
- package/dist/core/sprites/AnimationCache.js.map +1 -0
- package/dist/core/sprites/Sprite.d.ts +104 -0
- package/dist/core/sprites/Sprite.d.ts.map +1 -0
- package/dist/core/sprites/Sprite.js +388 -0
- package/dist/core/sprites/Sprite.js.map +1 -0
- package/dist/core/sprites/SpriteBatchNode.d.ts +194 -0
- package/dist/core/sprites/SpriteBatchNode.d.ts.map +1 -0
- package/dist/core/sprites/SpriteBatchNode.js +332 -0
- package/dist/core/sprites/SpriteBatchNode.js.map +1 -0
- package/dist/core/sprites/SpriteFrame.d.ts +47 -0
- package/dist/core/sprites/SpriteFrame.d.ts.map +1 -0
- package/dist/core/sprites/SpriteFrame.js +223 -0
- package/dist/core/sprites/SpriteFrame.js.map +1 -0
- package/dist/core/sprites/SpriteFrameCache.d.ts +102 -0
- package/dist/core/sprites/SpriteFrameCache.d.ts.map +1 -0
- package/dist/core/sprites/SpriteFrameCache.js +333 -0
- package/dist/core/sprites/SpriteFrameCache.js.map +1 -0
- package/dist/core/sprites/SpriteLoadManager.d.ts +8 -0
- package/dist/core/sprites/SpriteLoadManager.d.ts.map +1 -0
- package/dist/core/sprites/SpriteLoadManager.js +37 -0
- package/dist/core/sprites/SpriteLoadManager.js.map +1 -0
- package/dist/core/sprites/SpriteWebGLRenderCmd.d.ts +35 -0
- package/dist/core/sprites/SpriteWebGLRenderCmd.d.ts.map +1 -0
- package/dist/core/sprites/SpriteWebGLRenderCmd.js +286 -0
- package/dist/core/sprites/SpriteWebGLRenderCmd.js.map +1 -0
- package/dist/core/sprites/SpritesPropertyDefine.d.ts +2 -0
- package/dist/core/sprites/SpritesPropertyDefine.d.ts.map +1 -0
- package/dist/core/sprites/SpritesPropertyDefine.js +19 -0
- package/dist/core/sprites/SpritesPropertyDefine.js.map +1 -0
- package/dist/core/support/PointExtension.d.ts +296 -0
- package/dist/core/support/PointExtension.d.ts.map +1 -0
- package/dist/core/support/PointExtension.js +443 -0
- package/dist/core/support/PointExtension.js.map +1 -0
- package/dist/core/support/Vertex.d.ts +24 -0
- package/dist/core/support/Vertex.d.ts.map +1 -0
- package/dist/core/support/Vertex.js +120 -0
- package/dist/core/support/Vertex.js.map +1 -0
- package/dist/core/utils/BinaryLoader.d.ts +9 -0
- package/dist/core/utils/BinaryLoader.d.ts.map +1 -0
- package/dist/core/utils/BinaryLoader.js +116 -0
- package/dist/core/utils/BinaryLoader.js.map +1 -0
- package/dist/core/utils/Profiler.d.ts +13 -0
- package/dist/core/utils/Profiler.d.ts.map +1 -0
- package/dist/core/utils/Profiler.js +140 -0
- package/dist/core/utils/Profiler.js.map +1 -0
- package/dist/helper/AsyncPool.d.ts +22 -0
- package/dist/helper/AsyncPool.d.ts.map +1 -0
- package/dist/helper/AsyncPool.js +101 -0
- package/dist/helper/AsyncPool.js.map +1 -0
- package/dist/helper/Base64.d.ts +29 -0
- package/dist/helper/Base64.d.ts.map +1 -0
- package/dist/helper/Base64.js +71 -0
- package/dist/helper/Base64.js.map +1 -0
- package/dist/helper/Debugger.d.ts +179 -0
- package/dist/helper/Debugger.d.ts.map +1 -0
- package/dist/helper/Debugger.js +250 -0
- package/dist/helper/Debugger.js.map +1 -0
- package/dist/helper/ZipUtils.d.ts +2 -0
- package/dist/helper/ZipUtils.d.ts.map +1 -0
- package/dist/helper/ZipUtils.js +20 -0
- package/dist/helper/ZipUtils.js.map +1 -0
- package/dist/helper/async.d.ts +49 -0
- package/dist/helper/async.d.ts.map +1 -0
- package/dist/helper/async.js +95 -0
- package/dist/helper/async.js.map +1 -0
- package/dist/helper/checkType.d.ts +8 -0
- package/dist/helper/checkType.d.ts.map +1 -0
- package/dist/helper/checkType.js +31 -0
- package/dist/helper/checkType.js.map +1 -0
- package/dist/helper/engine.d.ts +6 -0
- package/dist/helper/engine.d.ts.map +1 -0
- package/dist/helper/engine.js +115 -0
- package/dist/helper/engine.js.map +1 -0
- package/dist/helper/getset.d.ts +2 -0
- package/dist/helper/getset.d.ts.map +1 -0
- package/dist/helper/getset.js +51 -0
- package/dist/helper/getset.js.map +1 -0
- package/dist/helper/global.d.ts +6 -0
- package/dist/helper/global.d.ts.map +1 -0
- package/dist/helper/global.js +6 -0
- package/dist/helper/global.js.map +1 -0
- package/dist/helper/index.d.ts +3 -0
- package/dist/helper/index.d.ts.map +1 -0
- package/dist/helper/index.js +3 -0
- package/dist/helper/index.js.map +1 -0
- package/dist/helper/loader.d.ts +102 -0
- package/dist/helper/loader.d.ts.map +1 -0
- package/dist/helper/loader.js +447 -0
- package/dist/helper/loader.js.map +1 -0
- package/dist/helper/path.d.ts +12 -0
- package/dist/helper/path.d.ts.map +1 -0
- package/dist/helper/path.js +75 -0
- package/dist/helper/path.js.map +1 -0
- package/dist/helper/string.d.ts +2 -0
- package/dist/helper/string.d.ts.map +1 -0
- package/dist/helper/string.js +32 -0
- package/dist/helper/string.js.map +1 -0
- package/dist/helper/sys.d.ts +446 -0
- package/dist/helper/sys.d.ts.map +1 -0
- package/dist/helper/sys.js +691 -0
- package/dist/helper/sys.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/motion-streak/MotionStreak.d.ts +56 -0
- package/dist/motion-streak/MotionStreak.d.ts.map +1 -0
- package/dist/motion-streak/MotionStreak.js +301 -0
- package/dist/motion-streak/MotionStreak.js.map +1 -0
- package/dist/motion-streak/MotionStreakWebGLRenderCmd.d.ts +9 -0
- package/dist/motion-streak/MotionStreakWebGLRenderCmd.d.ts.map +1 -0
- package/dist/motion-streak/MotionStreakWebGLRenderCmd.js +52 -0
- package/dist/motion-streak/MotionStreakWebGLRenderCmd.js.map +1 -0
- package/dist/motion-streak/index.d.ts +2 -0
- package/dist/motion-streak/index.d.ts.map +1 -0
- package/dist/motion-streak/index.js +2 -0
- package/dist/motion-streak/index.js.map +1 -0
- package/dist/particle/PNGReader.d.ts +30 -0
- package/dist/particle/PNGReader.d.ts.map +1 -0
- package/dist/particle/PNGReader.js +304 -0
- package/dist/particle/PNGReader.js.map +1 -0
- package/dist/particle/Particle.d.ts +27 -0
- package/dist/particle/Particle.d.ts.map +1 -0
- package/dist/particle/Particle.js +50 -0
- package/dist/particle/Particle.js.map +1 -0
- package/dist/particle/ParticleBatchNode.d.ts +163 -0
- package/dist/particle/ParticleBatchNode.d.ts.map +1 -0
- package/dist/particle/ParticleBatchNode.js +447 -0
- package/dist/particle/ParticleBatchNode.js.map +1 -0
- package/dist/particle/ParticleBatchNodeWebGLRenderCmd.d.ts +8 -0
- package/dist/particle/ParticleBatchNodeWebGLRenderCmd.d.ts.map +1 -0
- package/dist/particle/ParticleBatchNodeWebGLRenderCmd.js +33 -0
- package/dist/particle/ParticleBatchNodeWebGLRenderCmd.js.map +1 -0
- package/dist/particle/ParticleSystem.d.ts +941 -0
- package/dist/particle/ParticleSystem.d.ts.map +1 -0
- package/dist/particle/ParticleSystem.js +2017 -0
- package/dist/particle/ParticleSystem.js.map +1 -0
- package/dist/particle/ParticleSystemWebGLRenderCmd.d.ts +29 -0
- package/dist/particle/ParticleSystemWebGLRenderCmd.d.ts.map +1 -0
- package/dist/particle/ParticleSystemWebGLRenderCmd.js +346 -0
- package/dist/particle/ParticleSystemWebGLRenderCmd.js.map +1 -0
- package/dist/particle/TIFFReader.d.ts +138 -0
- package/dist/particle/TIFFReader.d.ts.map +1 -0
- package/dist/particle/TIFFReader.js +596 -0
- package/dist/particle/TIFFReader.js.map +1 -0
- package/dist/particle/examples/ParticleFire.d.ts +60 -0
- package/dist/particle/examples/ParticleFire.d.ts.map +1 -0
- package/dist/particle/examples/ParticleFire.js +188 -0
- package/dist/particle/examples/ParticleFire.js.map +1 -0
- package/dist/particle/examples/ParticleGalaxy.d.ts +60 -0
- package/dist/particle/examples/ParticleGalaxy.d.ts.map +1 -0
- package/dist/particle/examples/ParticleGalaxy.js +199 -0
- package/dist/particle/examples/ParticleGalaxy.js.map +1 -0
- package/dist/particle/examples/ParticleSmoke.d.ts +60 -0
- package/dist/particle/examples/ParticleSmoke.d.ts.map +1 -0
- package/dist/particle/examples/ParticleSmoke.js +195 -0
- package/dist/particle/examples/ParticleSmoke.js.map +1 -0
- package/dist/particle/examples/ParticleSpiral.d.ts +38 -0
- package/dist/particle/examples/ParticleSpiral.d.ts.map +1 -0
- package/dist/particle/examples/ParticleSpiral.js +130 -0
- package/dist/particle/examples/ParticleSpiral.js.map +1 -0
- package/dist/particle/examples/index.d.ts +5 -0
- package/dist/particle/examples/index.d.ts.map +1 -0
- package/dist/particle/examples/index.js +5 -0
- package/dist/particle/examples/index.js.map +1 -0
- package/dist/particle/index.d.ts +2 -0
- package/dist/particle/index.d.ts.map +1 -0
- package/dist/particle/index.js +2 -0
- package/dist/particle/index.js.map +1 -0
- package/dist/polyfills.d.ts +34 -0
- package/dist/polyfills.d.ts.map +1 -0
- package/dist/polyfills.js +102 -0
- package/dist/polyfills.js.map +1 -0
- package/dist/progress-timer/ActionProgressTimer.d.ts +118 -0
- package/dist/progress-timer/ActionProgressTimer.d.ts.map +1 -0
- package/dist/progress-timer/ActionProgressTimer.js +173 -0
- package/dist/progress-timer/ActionProgressTimer.js.map +1 -0
- package/dist/progress-timer/ProgressTimer.d.ts +143 -0
- package/dist/progress-timer/ProgressTimer.d.ts.map +1 -0
- package/dist/progress-timer/ProgressTimer.js +228 -0
- package/dist/progress-timer/ProgressTimer.js.map +1 -0
- package/dist/progress-timer/ProgressTimerWebGLRenderCmd.d.ts +56 -0
- package/dist/progress-timer/ProgressTimerWebGLRenderCmd.d.ts.map +1 -0
- package/dist/progress-timer/ProgressTimerWebGLRenderCmd.js +445 -0
- package/dist/progress-timer/ProgressTimerWebGLRenderCmd.js.map +1 -0
- package/dist/progress-timer/index.d.ts +3 -0
- package/dist/progress-timer/index.d.ts.map +1 -0
- package/dist/progress-timer/index.js +3 -0
- package/dist/progress-timer/index.js.map +1 -0
- package/dist/render-texture/RenderTexture.d.ts +226 -0
- package/dist/render-texture/RenderTexture.d.ts.map +1 -0
- package/dist/render-texture/RenderTexture.js +332 -0
- package/dist/render-texture/RenderTexture.js.map +1 -0
- package/dist/render-texture/RenderTextureWebGLRenderCmd.d.ts +28 -0
- package/dist/render-texture/RenderTextureWebGLRenderCmd.d.ts.map +1 -0
- package/dist/render-texture/RenderTextureWebGLRenderCmd.js +276 -0
- package/dist/render-texture/RenderTextureWebGLRenderCmd.js.map +1 -0
- package/dist/render-texture/index.d.ts +2 -0
- package/dist/render-texture/index.d.ts.map +1 -0
- package/dist/render-texture/index.js +2 -0
- package/dist/render-texture/index.js.map +1 -0
- package/dist/shaders/GLProgram.d.ts +288 -0
- package/dist/shaders/GLProgram.d.ts.map +1 -0
- package/dist/shaders/GLProgram.js +794 -0
- package/dist/shaders/GLProgram.js.map +1 -0
- package/dist/shaders/GLProgramState.d.ts +58 -0
- package/dist/shaders/GLProgramState.d.ts.map +1 -0
- package/dist/shaders/GLProgramState.js +255 -0
- package/dist/shaders/GLProgramState.js.map +1 -0
- package/dist/shaders/GLStateCache.d.ts +97 -0
- package/dist/shaders/GLStateCache.d.ts.map +1 -0
- package/dist/shaders/GLStateCache.js +255 -0
- package/dist/shaders/GLStateCache.js.map +1 -0
- package/dist/shaders/ShaderCache.d.ts +111 -0
- package/dist/shaders/ShaderCache.d.ts.map +1 -0
- package/dist/shaders/ShaderCache.js +273 -0
- package/dist/shaders/ShaderCache.js.map +1 -0
- package/dist/shaders/Shaders.d.ts +84 -0
- package/dist/shaders/Shaders.d.ts.map +1 -0
- package/dist/shaders/Shaders.js +250 -0
- package/dist/shaders/Shaders.js.map +1 -0
- package/dist/shaders/index.d.ts +5 -0
- package/dist/shaders/index.d.ts.map +1 -0
- package/dist/shaders/index.js +5 -0
- package/dist/shaders/index.js.map +1 -0
- package/dist/shape-nodes/DrawNode.d.ts +61 -0
- package/dist/shape-nodes/DrawNode.d.ts.map +1 -0
- package/dist/shape-nodes/DrawNode.js +597 -0
- package/dist/shape-nodes/DrawNode.js.map +1 -0
- package/dist/shape-nodes/DrawNodeWebGLRenderCmd.d.ts +11 -0
- package/dist/shape-nodes/DrawNodeWebGLRenderCmd.d.ts.map +1 -0
- package/dist/shape-nodes/DrawNodeWebGLRenderCmd.js +27 -0
- package/dist/shape-nodes/DrawNodeWebGLRenderCmd.js.map +1 -0
- package/dist/text-input/IMEDispatcher.d.ts +180 -0
- package/dist/text-input/IMEDispatcher.d.ts.map +1 -0
- package/dist/text-input/IMEDispatcher.js +454 -0
- package/dist/text-input/IMEDispatcher.js.map +1 -0
- package/dist/text-input/TextFieldTTF.d.ts +219 -0
- package/dist/text-input/TextFieldTTF.d.ts.map +1 -0
- package/dist/text-input/TextFieldTTF.js +381 -0
- package/dist/text-input/TextFieldTTF.js.map +1 -0
- package/dist/textures/Texture2D.d.ts +10 -0
- package/dist/textures/Texture2D.d.ts.map +1 -0
- package/dist/textures/Texture2D.js +10 -0
- package/dist/textures/Texture2D.js.map +1 -0
- package/dist/textures/TextureAtlas.d.ts +204 -0
- package/dist/textures/TextureAtlas.d.ts.map +1 -0
- package/dist/textures/TextureAtlas.js +602 -0
- package/dist/textures/TextureAtlas.js.map +1 -0
- package/dist/textures/TextureCache.d.ts +147 -0
- package/dist/textures/TextureCache.d.ts.map +1 -0
- package/dist/textures/TextureCache.js +327 -0
- package/dist/textures/TextureCache.js.map +1 -0
- package/dist/textures/TexturesPropertyDefine.d.ts +2 -0
- package/dist/textures/TexturesPropertyDefine.d.ts.map +1 -0
- package/dist/textures/TexturesPropertyDefine.js +39 -0
- package/dist/textures/TexturesPropertyDefine.js.map +1 -0
- package/dist/textures/TexturesWebGL.d.ts +349 -0
- package/dist/textures/TexturesWebGL.d.ts.map +1 -0
- package/dist/textures/TexturesWebGL.js +765 -0
- package/dist/textures/TexturesWebGL.js.map +1 -0
- package/dist/textures/WebGLTextureCache.d.ts +2 -0
- package/dist/textures/WebGLTextureCache.d.ts.map +1 -0
- package/dist/textures/WebGLTextureCache.js +79 -0
- package/dist/textures/WebGLTextureCache.js.map +1 -0
- package/dist/textures/index.d.ts +3 -0
- package/dist/textures/index.d.ts.map +1 -0
- package/dist/textures/index.js +3 -0
- package/dist/textures/index.js.map +1 -0
- package/dist/tilemap/TGAlib.d.ts +103 -0
- package/dist/tilemap/TGAlib.d.ts.map +1 -0
- package/dist/tilemap/TGAlib.js +338 -0
- package/dist/tilemap/TGAlib.js.map +1 -0
- package/dist/tilemap/TMXLayer.d.ts +225 -0
- package/dist/tilemap/TMXLayer.d.ts.map +1 -0
- package/dist/tilemap/TMXLayer.js +694 -0
- package/dist/tilemap/TMXLayer.js.map +1 -0
- package/dist/tilemap/TMXLayerInfo.d.ts +42 -0
- package/dist/tilemap/TMXLayerInfo.d.ts.map +1 -0
- package/dist/tilemap/TMXLayerInfo.js +57 -0
- package/dist/tilemap/TMXLayerInfo.js.map +1 -0
- package/dist/tilemap/TMXLayerWebGLRenderCmd.d.ts +17 -0
- package/dist/tilemap/TMXLayerWebGLRenderCmd.d.ts.map +1 -0
- package/dist/tilemap/TMXLayerWebGLRenderCmd.js +209 -0
- package/dist/tilemap/TMXLayerWebGLRenderCmd.js.map +1 -0
- package/dist/tilemap/TMXMapInfo.d.ts +210 -0
- package/dist/tilemap/TMXMapInfo.d.ts.map +1 -0
- package/dist/tilemap/TMXMapInfo.js +614 -0
- package/dist/tilemap/TMXMapInfo.js.map +1 -0
- package/dist/tilemap/TMXObjectGroup.d.ts +70 -0
- package/dist/tilemap/TMXObjectGroup.d.ts.map +1 -0
- package/dist/tilemap/TMXObjectGroup.js +106 -0
- package/dist/tilemap/TMXObjectGroup.js.map +1 -0
- package/dist/tilemap/TMXTiledMap.d.ts +163 -0
- package/dist/tilemap/TMXTiledMap.d.ts.map +1 -0
- package/dist/tilemap/TMXTiledMap.js +347 -0
- package/dist/tilemap/TMXTiledMap.js.map +1 -0
- package/dist/tilemap/TMXTilesetInfo.d.ts +38 -0
- package/dist/tilemap/TMXTilesetInfo.d.ts.map +1 -0
- package/dist/tilemap/TMXTilesetInfo.js +59 -0
- package/dist/tilemap/TMXTilesetInfo.js.map +1 -0
- package/dist/tilemap/TMXXMLParser.d.ts +52 -0
- package/dist/tilemap/TMXXMLParser.d.ts.map +1 -0
- package/dist/tilemap/TMXXMLParser.js +52 -0
- package/dist/tilemap/TMXXMLParser.js.map +1 -0
- package/dist/tilemap/index.d.ts +4 -0
- package/dist/tilemap/index.d.ts.map +1 -0
- package/dist/tilemap/index.js +4 -0
- package/dist/tilemap/index.js.map +1 -0
- package/dist/ui/base/FocusNavigationController.d.ts +12 -0
- package/dist/ui/base/FocusNavigationController.d.ts.map +1 -0
- package/dist/ui/base/FocusNavigationController.js +54 -0
- package/dist/ui/base/FocusNavigationController.js.map +1 -0
- package/dist/ui/base/ProtectedNode.d.ts +66 -0
- package/dist/ui/base/ProtectedNode.d.ts.map +1 -0
- package/dist/ui/base/ProtectedNode.js +248 -0
- package/dist/ui/base/ProtectedNode.js.map +1 -0
- package/dist/ui/base/ProtectedNodeWebGLRenderCmd.d.ts +13 -0
- package/dist/ui/base/ProtectedNodeWebGLRenderCmd.d.ts.map +1 -0
- package/dist/ui/base/ProtectedNodeWebGLRenderCmd.js +136 -0
- package/dist/ui/base/ProtectedNodeWebGLRenderCmd.js.map +1 -0
- package/dist/ui/base/UIHelper.d.ts +48 -0
- package/dist/ui/base/UIHelper.d.ts.map +1 -0
- package/dist/ui/base/UIHelper.js +128 -0
- package/dist/ui/base/UIHelper.js.map +1 -0
- package/dist/ui/base/UIScale9Sprite.d.ts +224 -0
- package/dist/ui/base/UIScale9Sprite.d.ts.map +1 -0
- package/dist/ui/base/UIScale9Sprite.js +825 -0
- package/dist/ui/base/UIScale9Sprite.js.map +1 -0
- package/dist/ui/base/UIScale9SpriteWebGLRenderCmd.d.ts +15 -0
- package/dist/ui/base/UIScale9SpriteWebGLRenderCmd.d.ts.map +1 -0
- package/dist/ui/base/UIScale9SpriteWebGLRenderCmd.js +119 -0
- package/dist/ui/base/UIScale9SpriteWebGLRenderCmd.js.map +1 -0
- package/dist/ui/base/UIWidget.d.ts +794 -0
- package/dist/ui/base/UIWidget.d.ts.map +1 -0
- package/dist/ui/base/UIWidget.js +1634 -0
- package/dist/ui/base/UIWidget.js.map +1 -0
- package/dist/ui/base/UIWidgetRenderCmd.d.ts +9 -0
- package/dist/ui/base/UIWidgetRenderCmd.d.ts.map +1 -0
- package/dist/ui/base/UIWidgetRenderCmd.js +41 -0
- package/dist/ui/base/UIWidgetRenderCmd.js.map +1 -0
- package/dist/ui/index.d.ts +9 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +9 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/layout/UILayout.d.ts +486 -0
- package/dist/ui/layout/UILayout.d.ts.map +1 -0
- package/dist/ui/layout/UILayout.js +1430 -0
- package/dist/ui/layout/UILayout.js.map +1 -0
- package/dist/ui/layout/UILayoutParameter.d.ts +344 -0
- package/dist/ui/layout/UILayoutParameter.d.ts.map +1 -0
- package/dist/ui/layout/UILayoutParameter.js +444 -0
- package/dist/ui/layout/UILayoutParameter.js.map +1 -0
- package/dist/ui/layout/UILayoutWebGLRenderCmd.d.ts +30 -0
- package/dist/ui/layout/UILayoutWebGLRenderCmd.d.ts.map +1 -0
- package/dist/ui/layout/UILayoutWebGLRenderCmd.js +136 -0
- package/dist/ui/layout/UILayoutWebGLRenderCmd.js.map +1 -0
- package/dist/ui/layout/constant.d.ts +30 -0
- package/dist/ui/layout/constant.d.ts.map +1 -0
- package/dist/ui/layout/constant.js +31 -0
- package/dist/ui/layout/constant.js.map +1 -0
- package/dist/ui/widget/UIButton.d.ts +248 -0
- package/dist/ui/widget/UIButton.d.ts.map +1 -0
- package/dist/ui/widget/UIButton.js +727 -0
- package/dist/ui/widget/UIButton.js.map +1 -0
- package/dist/ui/widget/UIRichText.d.ts +216 -0
- package/dist/ui/widget/UIRichText.d.ts.map +1 -0
- package/dist/ui/widget/UIRichText.js +549 -0
- package/dist/ui/widget/UIRichText.js.map +1 -0
- package/dist/ui/widget/UIScrollView.d.ts +547 -0
- package/dist/ui/widget/UIScrollView.d.ts.map +1 -0
- package/dist/ui/widget/UIScrollView.js +1544 -0
- package/dist/ui/widget/UIScrollView.js.map +1 -0
- package/dist/ui/widget/UIScrollViewBar.d.ts +101 -0
- package/dist/ui/widget/UIScrollViewBar.d.ts.map +1 -0
- package/dist/ui/widget/UIScrollViewBar.js +277 -0
- package/dist/ui/widget/UIScrollViewBar.js.map +1 -0
- package/dist/ui/widget/UIScrollViewWebGLRenderCmd.d.ts +10 -0
- package/dist/ui/widget/UIScrollViewWebGLRenderCmd.d.ts.map +1 -0
- package/dist/ui/widget/UIScrollViewWebGLRenderCmd.js +42 -0
- package/dist/ui/widget/UIScrollViewWebGLRenderCmd.js.map +1 -0
- package/dist/ui/widget/UISlider.d.ts +229 -0
- package/dist/ui/widget/UISlider.d.ts.map +1 -0
- package/dist/ui/widget/UISlider.js +667 -0
- package/dist/ui/widget/UISlider.js.map +1 -0
- package/dist/ui/widget/UIText.d.ts +90 -0
- package/dist/ui/widget/UIText.d.ts.map +1 -0
- package/dist/ui/widget/UIText.js +325 -0
- package/dist/ui/widget/UIText.js.map +1 -0
- package/dist/ui/widget/UITextField.d.ts +282 -0
- package/dist/ui/widget/UITextField.d.ts.map +1 -0
- package/dist/ui/widget/UITextField.js +549 -0
- package/dist/ui/widget/UITextField.js.map +1 -0
- package/dist/ui/widget/UITextFieldRenderer.d.ts +41 -0
- package/dist/ui/widget/UITextFieldRenderer.d.ts.map +1 -0
- package/dist/ui/widget/UITextFieldRenderer.js +150 -0
- package/dist/ui/widget/UITextFieldRenderer.js.map +1 -0
- package/eslint.config.ts +59 -0
- package/index.html +22 -0
- package/package.json +38 -0
- package/res/Button.mp3 +0 -0
- package/res/SmallSun.plist +108 -0
- package/res/Spiral.plist +102 -0
- package/res/base.png +0 -0
- package/res/button.png +0 -0
- package/res/button_plus.png +0 -0
- package/res/ortho-test1.png +0 -0
- package/res/orthogonal-test1.tmx +9 -0
- package/res/orthogonal-test1.tsx +4 -0
- package/res/particle.png +0 -0
- package/res/sliderThumb.png +0 -0
- package/res/sliderTrack.png +0 -0
- package/res/streak.png +0 -0
- package/res/ui.plist +578 -0
- package/res/ui.png +0 -0
- package/res/vite.svg +1 -0
- package/test/ActionScene.ts +15 -0
- package/test/DemoScene.ts +108 -0
- package/test/GraphicsTest.ts +17 -0
- package/test/ParticleScene.ts +24 -0
- package/test/TiledMapScene.ts +14 -0
- package/test/index.ts +28 -0
- package/vite.config.ts +13 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ActionInterval } from './ActionInterval';
|
|
2
|
+
/** Scales a Node object to a zoom factor by modifying it's scale attribute.
|
|
3
|
+
* @warning This action doesn't support "reverse"
|
|
4
|
+
* @class
|
|
5
|
+
* @extends ActionInterval
|
|
6
|
+
* @param {Number} duration
|
|
7
|
+
* @param {Number} sx scale parameter in X
|
|
8
|
+
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
|
9
|
+
* @example
|
|
10
|
+
* // It scales to 0.5 in both X and Y.
|
|
11
|
+
* var actionTo = new ScaleTo(2, 0.5);
|
|
12
|
+
*
|
|
13
|
+
* // It scales to 0.5 in x and 2 in Y
|
|
14
|
+
* var actionTo = new ScaleTo(2, 0.5, 2);
|
|
15
|
+
*/
|
|
16
|
+
export declare class ScaleTo extends ActionInterval {
|
|
17
|
+
_scaleX: number;
|
|
18
|
+
_scaleY: number;
|
|
19
|
+
_startScaleX: number;
|
|
20
|
+
_startScaleY: number;
|
|
21
|
+
_endScaleX: number;
|
|
22
|
+
_endScaleY: number;
|
|
23
|
+
_deltaX: number;
|
|
24
|
+
_deltaY: number;
|
|
25
|
+
/**
|
|
26
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
|
|
27
|
+
* @param {Number} duration
|
|
28
|
+
* @param {Number} sx scale parameter in X
|
|
29
|
+
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
|
30
|
+
*/
|
|
31
|
+
constructor(duration?: number, sx?: number, sy?: number);
|
|
32
|
+
/**
|
|
33
|
+
* Initializes the action.
|
|
34
|
+
* @param {Number} duration
|
|
35
|
+
* @param {Number} sx
|
|
36
|
+
* @param {Number} [sy=]
|
|
37
|
+
* @return {Boolean}
|
|
38
|
+
*/
|
|
39
|
+
initWithDuration(duration: number, sx: number, sy?: number): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* returns a new clone of the action
|
|
42
|
+
* @returns {ScaleTo}
|
|
43
|
+
*/
|
|
44
|
+
clone(): ScaleTo;
|
|
45
|
+
/**
|
|
46
|
+
* Start the action with target.
|
|
47
|
+
* @param {Node} target
|
|
48
|
+
*/
|
|
49
|
+
startWithTarget(target: any): void;
|
|
50
|
+
/**
|
|
51
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
52
|
+
* @param {Number} dt
|
|
53
|
+
*/
|
|
54
|
+
update(dt: number): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Scales a Node object to a zoom factor by modifying it's scale attribute.
|
|
58
|
+
* @function
|
|
59
|
+
* @param {Number} duration
|
|
60
|
+
* @param {Number} sx scale parameter in X
|
|
61
|
+
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
|
62
|
+
* @return {ScaleTo}
|
|
63
|
+
* @example
|
|
64
|
+
* // example
|
|
65
|
+
* // It scales to 0.5 in both X and Y.
|
|
66
|
+
* var actionTo = scaleTo(2, 0.5);
|
|
67
|
+
*
|
|
68
|
+
* // It scales to 0.5 in x and 2 in Y
|
|
69
|
+
* var actionTo = scaleTo(2, 0.5, 2);
|
|
70
|
+
*/
|
|
71
|
+
export declare const scaleTo: (duration: any, sx: any, sy: any) => ScaleTo;
|
|
72
|
+
/** Scales a Node object a zoom factor by modifying it's scale attribute.
|
|
73
|
+
* Relative to its changes.
|
|
74
|
+
* @class
|
|
75
|
+
* @extends ScaleTo
|
|
76
|
+
*/
|
|
77
|
+
export declare class ScaleBy extends ScaleTo {
|
|
78
|
+
/**
|
|
79
|
+
* Start the action with target.
|
|
80
|
+
* @param {Node} target
|
|
81
|
+
*/
|
|
82
|
+
startWithTarget(target: any): void;
|
|
83
|
+
/**
|
|
84
|
+
* Returns a reversed action.
|
|
85
|
+
* @return {ScaleBy}
|
|
86
|
+
*/
|
|
87
|
+
reverse(): ScaleBy;
|
|
88
|
+
/**
|
|
89
|
+
* returns a new clone of the action
|
|
90
|
+
* @returns {ScaleBy}
|
|
91
|
+
*/
|
|
92
|
+
clone(): ScaleBy;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Scales a Node object a zoom factor by modifying it's scale attribute.
|
|
96
|
+
* Relative to its changes.
|
|
97
|
+
* @function
|
|
98
|
+
* @param {Number} duration duration in seconds
|
|
99
|
+
* @param {Number} sx sx scale parameter in X
|
|
100
|
+
* @param {Number|Null} [sy=] sy scale parameter in Y, if Null equal to sx
|
|
101
|
+
* @return {ScaleBy}
|
|
102
|
+
* @example
|
|
103
|
+
* // example without sy, it scales by 2 both in X and Y
|
|
104
|
+
* var actionBy = scaleBy(2, 2);
|
|
105
|
+
*
|
|
106
|
+
* //example with sy, it scales by 0.25 in X and 4.5 in Y
|
|
107
|
+
* var actionBy2 = scaleBy(2, 0.25, 4.5);
|
|
108
|
+
*/
|
|
109
|
+
export declare const scaleBy: (duration: any, sx: any, sy: any) => ScaleBy;
|
|
110
|
+
//# sourceMappingURL=ActionScale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionScale.d.ts","sourceRoot":"","sources":["../../src/actions/ActionScale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;;;;;;;;;;;GAaG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC,OAAO,SAAI;IACX,OAAO,SAAI;IACX,YAAY,SAAI;IAChB,YAAY,SAAI;IAChB,UAAU,SAAI;IACd,UAAU,SAAI;IACd,OAAO,SAAI;IACX,OAAO,SAAI;IAEX;;;;;OAKG;gBACS,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;IAKvD;;;;;;OAMG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAUpE;;;OAGG;IACH,KAAK,IAAI,OAAO;IAOhB;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAQlC;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAOzB;AACD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,OAAO,GAAa,aAAQ,EAAE,OAAE,EAAE,OAAE,YAGhD,CAAA;AAED;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,OAAO;IAClC;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAMlC;;;OAGG;IACH,OAAO,IAAI,OAAO;IAOlB;;;OAGG;IACH,KAAK,IAAI,OAAO;CAMjB;AACD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,OAAO,GAAa,aAAQ,EAAE,OAAE,EAAE,OAAE,YAEhD,CAAA"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { ActionInterval } from './ActionInterval';
|
|
2
|
+
/** Scales a Node object to a zoom factor by modifying it's scale attribute.
|
|
3
|
+
* @warning This action doesn't support "reverse"
|
|
4
|
+
* @class
|
|
5
|
+
* @extends ActionInterval
|
|
6
|
+
* @param {Number} duration
|
|
7
|
+
* @param {Number} sx scale parameter in X
|
|
8
|
+
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
|
9
|
+
* @example
|
|
10
|
+
* // It scales to 0.5 in both X and Y.
|
|
11
|
+
* var actionTo = new ScaleTo(2, 0.5);
|
|
12
|
+
*
|
|
13
|
+
* // It scales to 0.5 in x and 2 in Y
|
|
14
|
+
* var actionTo = new ScaleTo(2, 0.5, 2);
|
|
15
|
+
*/
|
|
16
|
+
export class ScaleTo extends ActionInterval {
|
|
17
|
+
_scaleX = 1;
|
|
18
|
+
_scaleY = 1;
|
|
19
|
+
_startScaleX = 1;
|
|
20
|
+
_startScaleY = 1;
|
|
21
|
+
_endScaleX = 0;
|
|
22
|
+
_endScaleY = 0;
|
|
23
|
+
_deltaX = 0;
|
|
24
|
+
_deltaY = 0;
|
|
25
|
+
/**
|
|
26
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
|
|
27
|
+
* @param {Number} duration
|
|
28
|
+
* @param {Number} sx scale parameter in X
|
|
29
|
+
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
|
30
|
+
*/
|
|
31
|
+
constructor(duration, sx, sy) {
|
|
32
|
+
super();
|
|
33
|
+
sx !== undefined && this.initWithDuration(duration, sx, sy);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Initializes the action.
|
|
37
|
+
* @param {Number} duration
|
|
38
|
+
* @param {Number} sx
|
|
39
|
+
* @param {Number} [sy=]
|
|
40
|
+
* @return {Boolean}
|
|
41
|
+
*/
|
|
42
|
+
initWithDuration(duration, sx, sy) {
|
|
43
|
+
//function overload here
|
|
44
|
+
if (super.initWithDuration(duration)) {
|
|
45
|
+
this._endScaleX = sx;
|
|
46
|
+
this._endScaleY = sy != null ? sy : sx;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* returns a new clone of the action
|
|
53
|
+
* @returns {ScaleTo}
|
|
54
|
+
*/
|
|
55
|
+
clone() {
|
|
56
|
+
const action = new ScaleTo();
|
|
57
|
+
this._cloneDecoration(action);
|
|
58
|
+
action.initWithDuration(this._duration, this._endScaleX, this._endScaleY);
|
|
59
|
+
return action;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Start the action with target.
|
|
63
|
+
* @param {Node} target
|
|
64
|
+
*/
|
|
65
|
+
startWithTarget(target) {
|
|
66
|
+
super.startWithTarget(target);
|
|
67
|
+
this._startScaleX = target.scaleX;
|
|
68
|
+
this._startScaleY = target.scaleY;
|
|
69
|
+
this._deltaX = this._endScaleX - this._startScaleX;
|
|
70
|
+
this._deltaY = this._endScaleY - this._startScaleY;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
74
|
+
* @param {Number} dt
|
|
75
|
+
*/
|
|
76
|
+
update(dt) {
|
|
77
|
+
dt = this._computeEaseTime(dt);
|
|
78
|
+
if (this.target) {
|
|
79
|
+
this.target.setScaleX(this._startScaleX + this._deltaX * dt);
|
|
80
|
+
this.target.setScaleY(this._startScaleY + this._deltaY * dt);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Scales a Node object to a zoom factor by modifying it's scale attribute.
|
|
86
|
+
* @function
|
|
87
|
+
* @param {Number} duration
|
|
88
|
+
* @param {Number} sx scale parameter in X
|
|
89
|
+
* @param {Number} [sy] scale parameter in Y, if Null equal to sx
|
|
90
|
+
* @return {ScaleTo}
|
|
91
|
+
* @example
|
|
92
|
+
* // example
|
|
93
|
+
* // It scales to 0.5 in both X and Y.
|
|
94
|
+
* var actionTo = scaleTo(2, 0.5);
|
|
95
|
+
*
|
|
96
|
+
* // It scales to 0.5 in x and 2 in Y
|
|
97
|
+
* var actionTo = scaleTo(2, 0.5, 2);
|
|
98
|
+
*/
|
|
99
|
+
export const scaleTo = function (duration, sx, sy) {
|
|
100
|
+
//function overload
|
|
101
|
+
return new ScaleTo(duration, sx, sy);
|
|
102
|
+
};
|
|
103
|
+
/** Scales a Node object a zoom factor by modifying it's scale attribute.
|
|
104
|
+
* Relative to its changes.
|
|
105
|
+
* @class
|
|
106
|
+
* @extends ScaleTo
|
|
107
|
+
*/
|
|
108
|
+
export class ScaleBy extends ScaleTo {
|
|
109
|
+
/**
|
|
110
|
+
* Start the action with target.
|
|
111
|
+
* @param {Node} target
|
|
112
|
+
*/
|
|
113
|
+
startWithTarget(target) {
|
|
114
|
+
super.startWithTarget(target);
|
|
115
|
+
this._deltaX = this._startScaleX * this._endScaleX - this._startScaleX;
|
|
116
|
+
this._deltaY = this._startScaleY * this._endScaleY - this._startScaleY;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Returns a reversed action.
|
|
120
|
+
* @return {ScaleBy}
|
|
121
|
+
*/
|
|
122
|
+
reverse() {
|
|
123
|
+
const action = new ScaleBy(this._duration, 1 / this._endScaleX, 1 / this._endScaleY);
|
|
124
|
+
this._cloneDecoration(action);
|
|
125
|
+
this._reverseEaseList(action);
|
|
126
|
+
return action;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* returns a new clone of the action
|
|
130
|
+
* @returns {ScaleBy}
|
|
131
|
+
*/
|
|
132
|
+
clone() {
|
|
133
|
+
const action = new ScaleBy();
|
|
134
|
+
this._cloneDecoration(action);
|
|
135
|
+
action.initWithDuration(this._duration, this._endScaleX, this._endScaleY);
|
|
136
|
+
return action;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Scales a Node object a zoom factor by modifying it's scale attribute.
|
|
141
|
+
* Relative to its changes.
|
|
142
|
+
* @function
|
|
143
|
+
* @param {Number} duration duration in seconds
|
|
144
|
+
* @param {Number} sx sx scale parameter in X
|
|
145
|
+
* @param {Number|Null} [sy=] sy scale parameter in Y, if Null equal to sx
|
|
146
|
+
* @return {ScaleBy}
|
|
147
|
+
* @example
|
|
148
|
+
* // example without sy, it scales by 2 both in X and Y
|
|
149
|
+
* var actionBy = scaleBy(2, 2);
|
|
150
|
+
*
|
|
151
|
+
* //example with sy, it scales by 0.25 in X and 4.5 in Y
|
|
152
|
+
* var actionBy2 = scaleBy(2, 0.25, 4.5);
|
|
153
|
+
*/
|
|
154
|
+
export const scaleBy = function (duration, sx, sy) {
|
|
155
|
+
return new ScaleBy(duration, sx, sy);
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=ActionScale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionScale.js","sourceRoot":"","sources":["../../src/actions/ActionScale.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ActionInterval } from './ActionInterval';
|
|
2
|
+
/**
|
|
3
|
+
* Skews a Node object to given angles by modifying it's skewX and skewY attributes
|
|
4
|
+
* @class
|
|
5
|
+
* @extends ActionInterval
|
|
6
|
+
* @param {Number} t time in seconds
|
|
7
|
+
* @param {Number} sx
|
|
8
|
+
* @param {Number} sy
|
|
9
|
+
* @example
|
|
10
|
+
* var actionTo = new SkewTo(2, 37.2, -37.2);
|
|
11
|
+
*/
|
|
12
|
+
export declare class SkewTo extends ActionInterval {
|
|
13
|
+
_skewX: number;
|
|
14
|
+
_skewY: number;
|
|
15
|
+
_startSkewX: number;
|
|
16
|
+
_startSkewY: number;
|
|
17
|
+
_endSkewX: number;
|
|
18
|
+
_endSkewY: number;
|
|
19
|
+
_deltaX: number;
|
|
20
|
+
_deltaY: number;
|
|
21
|
+
/**
|
|
22
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
|
|
23
|
+
* @param {Number} t time in seconds
|
|
24
|
+
* @param {Number} sx
|
|
25
|
+
* @param {Number} sy
|
|
26
|
+
*/
|
|
27
|
+
constructor(t?: number, sx?: number, sy?: number);
|
|
28
|
+
/**
|
|
29
|
+
* Initializes the action.
|
|
30
|
+
* @param {Number} t time in seconds
|
|
31
|
+
* @param {Number} sx
|
|
32
|
+
* @param {Number} sy
|
|
33
|
+
* @return {Boolean}
|
|
34
|
+
*/
|
|
35
|
+
initWithDuration(t: number, sx: number, sy?: number): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* returns a new clone of the action
|
|
38
|
+
* @returns {SkewTo}
|
|
39
|
+
*/
|
|
40
|
+
clone(): SkewTo;
|
|
41
|
+
/**
|
|
42
|
+
* Start the action with target.
|
|
43
|
+
* @param {Node} target
|
|
44
|
+
*/
|
|
45
|
+
startWithTarget(target: any): void;
|
|
46
|
+
/**
|
|
47
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
48
|
+
* @param {Number} dt
|
|
49
|
+
*/
|
|
50
|
+
update(dt: number): void;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Create new action.
|
|
54
|
+
* Skews a Node object to given angles by modifying it's skewX and skewY attributes.
|
|
55
|
+
* Changes to the specified value.
|
|
56
|
+
* @function
|
|
57
|
+
* @param {Number} t time in seconds
|
|
58
|
+
* @param {Number} sx
|
|
59
|
+
* @param {Number} sy
|
|
60
|
+
* @return {SkewTo}
|
|
61
|
+
* @example
|
|
62
|
+
* // example
|
|
63
|
+
* var actionTo = skewTo(2, 37.2, -37.2);
|
|
64
|
+
*/
|
|
65
|
+
export declare const skewTo: (t: any, sx: any, sy: any) => SkewTo;
|
|
66
|
+
/**
|
|
67
|
+
* Skews a Node object by skewX and skewY degrees.
|
|
68
|
+
* Relative to its attribute modification.
|
|
69
|
+
* @class
|
|
70
|
+
* @extends SkewTo
|
|
71
|
+
* @param {Number} t time in seconds
|
|
72
|
+
* @param {Number} sx skew in degrees for X axis
|
|
73
|
+
* @param {Number} sy skew in degrees for Y axis
|
|
74
|
+
*/
|
|
75
|
+
export declare class SkewBy extends SkewTo {
|
|
76
|
+
/**
|
|
77
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
|
|
78
|
+
* @param {Number} t time in seconds
|
|
79
|
+
* @param {Number} sx skew in degrees for X axis
|
|
80
|
+
* @param {Number} sy skew in degrees for Y axis
|
|
81
|
+
*/
|
|
82
|
+
constructor(t?: number, sx?: number, sy?: number);
|
|
83
|
+
/**
|
|
84
|
+
* Initializes the action.
|
|
85
|
+
* @param {Number} t time in seconds
|
|
86
|
+
* @param {Number} deltaSkewX skew in degrees for X axis
|
|
87
|
+
* @param {Number} deltaSkewY skew in degrees for Y axis
|
|
88
|
+
* @return {Boolean}
|
|
89
|
+
*/
|
|
90
|
+
initWithDuration(t: number, deltaSkewX: number, deltaSkewY?: number): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* returns a new clone of the action
|
|
93
|
+
* @returns {SkewBy}
|
|
94
|
+
*/
|
|
95
|
+
clone(): SkewBy;
|
|
96
|
+
/**
|
|
97
|
+
* Start the action width target.
|
|
98
|
+
* @param {Node} target
|
|
99
|
+
*/
|
|
100
|
+
startWithTarget(target: any): void;
|
|
101
|
+
/**
|
|
102
|
+
* Returns a reversed action.
|
|
103
|
+
* @return {SkewBy}
|
|
104
|
+
*/
|
|
105
|
+
reverse(): SkewBy;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Skews a Node object by skewX and skewY degrees. <br />
|
|
109
|
+
* Relative to its attribute modification.
|
|
110
|
+
* @function
|
|
111
|
+
* @param {Number} t time in seconds
|
|
112
|
+
* @param {Number} sx sx skew in degrees for X axis
|
|
113
|
+
* @param {Number} sy sy skew in degrees for Y axis
|
|
114
|
+
* @return {SkewBy}
|
|
115
|
+
* @example
|
|
116
|
+
* // example
|
|
117
|
+
* var actionBy = skewBy(2, 0, -90);
|
|
118
|
+
*/
|
|
119
|
+
export declare const skewBy: (t: any, sx: any, sy: any) => SkewBy;
|
|
120
|
+
//# sourceMappingURL=ActionSkew.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionSkew.d.ts","sourceRoot":"","sources":["../../src/actions/ActionSkew.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;;;;;;;GASG;AACH,qBAAa,MAAO,SAAQ,cAAc;IACxC,MAAM,SAAI;IACV,MAAM,SAAI;IACV,WAAW,SAAI;IACf,WAAW,SAAI;IACf,SAAS,SAAI;IACb,SAAS,SAAI;IACb,OAAO,SAAI;IACX,OAAO,SAAI;IAEX;;;;;OAKG;gBACS,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;IAMhD;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAU7D;;;OAGG;IACH,KAAK,IAAI,MAAM;IAOf;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAclC;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAKzB;AACD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,GAAa,MAAC,EAAE,OAAE,EAAE,OAAE,WAExC,CAAA;AAED;;;;;;;;GAQG;AACH,qBAAa,MAAO,SAAQ,MAAM;IAChC;;;;;OAKG;gBACS,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM;IAKhD;;;;;;OAMG;IACH,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO;IAU7E;;;OAGG;IACH,KAAK,IAAI,MAAM;IAOf;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAQlC;;;OAGG;IACH,OAAO,IAAI,MAAM;CAMlB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GAAa,MAAC,EAAE,OAAE,EAAE,OAAE,WAExC,CAAA"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { ActionInterval } from './ActionInterval';
|
|
2
|
+
/**
|
|
3
|
+
* Skews a Node object to given angles by modifying it's skewX and skewY attributes
|
|
4
|
+
* @class
|
|
5
|
+
* @extends ActionInterval
|
|
6
|
+
* @param {Number} t time in seconds
|
|
7
|
+
* @param {Number} sx
|
|
8
|
+
* @param {Number} sy
|
|
9
|
+
* @example
|
|
10
|
+
* var actionTo = new SkewTo(2, 37.2, -37.2);
|
|
11
|
+
*/
|
|
12
|
+
export class SkewTo extends ActionInterval {
|
|
13
|
+
_skewX = 0;
|
|
14
|
+
_skewY = 0;
|
|
15
|
+
_startSkewX = 0;
|
|
16
|
+
_startSkewY = 0;
|
|
17
|
+
_endSkewX = 0;
|
|
18
|
+
_endSkewY = 0;
|
|
19
|
+
_deltaX = 0;
|
|
20
|
+
_deltaY = 0;
|
|
21
|
+
/**
|
|
22
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
|
|
23
|
+
* @param {Number} t time in seconds
|
|
24
|
+
* @param {Number} sx
|
|
25
|
+
* @param {Number} sy
|
|
26
|
+
*/
|
|
27
|
+
constructor(t, sx, sy) {
|
|
28
|
+
super();
|
|
29
|
+
sy !== undefined && this.initWithDuration(t, sx, sy);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Initializes the action.
|
|
33
|
+
* @param {Number} t time in seconds
|
|
34
|
+
* @param {Number} sx
|
|
35
|
+
* @param {Number} sy
|
|
36
|
+
* @return {Boolean}
|
|
37
|
+
*/
|
|
38
|
+
initWithDuration(t, sx, sy) {
|
|
39
|
+
let ret = false;
|
|
40
|
+
if (super.initWithDuration(t)) {
|
|
41
|
+
this._endSkewX = sx;
|
|
42
|
+
this._endSkewY = sy;
|
|
43
|
+
ret = true;
|
|
44
|
+
}
|
|
45
|
+
return ret;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* returns a new clone of the action
|
|
49
|
+
* @returns {SkewTo}
|
|
50
|
+
*/
|
|
51
|
+
clone() {
|
|
52
|
+
const action = new SkewTo();
|
|
53
|
+
this._cloneDecoration(action);
|
|
54
|
+
action.initWithDuration(this._duration, this._endSkewX, this._endSkewY);
|
|
55
|
+
return action;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Start the action with target.
|
|
59
|
+
* @param {Node} target
|
|
60
|
+
*/
|
|
61
|
+
startWithTarget(target) {
|
|
62
|
+
super.startWithTarget(target);
|
|
63
|
+
this._startSkewX = target.skewX % 180;
|
|
64
|
+
this._deltaX = this._endSkewX - this._startSkewX;
|
|
65
|
+
if (this._deltaX > 180)
|
|
66
|
+
this._deltaX -= 360;
|
|
67
|
+
if (this._deltaX < -180)
|
|
68
|
+
this._deltaX += 360;
|
|
69
|
+
this._startSkewY = target.skewY % 360;
|
|
70
|
+
this._deltaY = this._endSkewY - this._startSkewY;
|
|
71
|
+
if (this._deltaY > 180)
|
|
72
|
+
this._deltaY -= 360;
|
|
73
|
+
if (this._deltaY < -180)
|
|
74
|
+
this._deltaY += 360;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
78
|
+
* @param {Number} dt
|
|
79
|
+
*/
|
|
80
|
+
update(dt) {
|
|
81
|
+
dt = this._computeEaseTime(dt);
|
|
82
|
+
this.target.setSkewX(this._startSkewX + this._deltaX * dt);
|
|
83
|
+
this.target.setSkewY(this._startSkewY + this._deltaY * dt);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Create new action.
|
|
88
|
+
* Skews a Node object to given angles by modifying it's skewX and skewY attributes.
|
|
89
|
+
* Changes to the specified value.
|
|
90
|
+
* @function
|
|
91
|
+
* @param {Number} t time in seconds
|
|
92
|
+
* @param {Number} sx
|
|
93
|
+
* @param {Number} sy
|
|
94
|
+
* @return {SkewTo}
|
|
95
|
+
* @example
|
|
96
|
+
* // example
|
|
97
|
+
* var actionTo = skewTo(2, 37.2, -37.2);
|
|
98
|
+
*/
|
|
99
|
+
export const skewTo = function (t, sx, sy) {
|
|
100
|
+
return new SkewTo(t, sx, sy);
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Skews a Node object by skewX and skewY degrees.
|
|
104
|
+
* Relative to its attribute modification.
|
|
105
|
+
* @class
|
|
106
|
+
* @extends SkewTo
|
|
107
|
+
* @param {Number} t time in seconds
|
|
108
|
+
* @param {Number} sx skew in degrees for X axis
|
|
109
|
+
* @param {Number} sy skew in degrees for Y axis
|
|
110
|
+
*/
|
|
111
|
+
export class SkewBy extends SkewTo {
|
|
112
|
+
/**
|
|
113
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
|
|
114
|
+
* @param {Number} t time in seconds
|
|
115
|
+
* @param {Number} sx skew in degrees for X axis
|
|
116
|
+
* @param {Number} sy skew in degrees for Y axis
|
|
117
|
+
*/
|
|
118
|
+
constructor(t, sx, sy) {
|
|
119
|
+
super();
|
|
120
|
+
sy !== undefined && this.initWithDuration(t, sx, sy);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Initializes the action.
|
|
124
|
+
* @param {Number} t time in seconds
|
|
125
|
+
* @param {Number} deltaSkewX skew in degrees for X axis
|
|
126
|
+
* @param {Number} deltaSkewY skew in degrees for Y axis
|
|
127
|
+
* @return {Boolean}
|
|
128
|
+
*/
|
|
129
|
+
initWithDuration(t, deltaSkewX, deltaSkewY) {
|
|
130
|
+
let ret = false;
|
|
131
|
+
if (super.initWithDuration(t, deltaSkewX, deltaSkewY)) {
|
|
132
|
+
this._skewX = deltaSkewX;
|
|
133
|
+
this._skewY = deltaSkewY;
|
|
134
|
+
ret = true;
|
|
135
|
+
}
|
|
136
|
+
return ret;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* returns a new clone of the action
|
|
140
|
+
* @returns {SkewBy}
|
|
141
|
+
*/
|
|
142
|
+
clone() {
|
|
143
|
+
const action = new SkewBy();
|
|
144
|
+
this._cloneDecoration(action);
|
|
145
|
+
action.initWithDuration(this._duration, this._skewX, this._skewY);
|
|
146
|
+
return action;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Start the action width target.
|
|
150
|
+
* @param {Node} target
|
|
151
|
+
*/
|
|
152
|
+
startWithTarget(target) {
|
|
153
|
+
super.startWithTarget(target);
|
|
154
|
+
this._deltaX = this._skewX;
|
|
155
|
+
this._deltaY = this._skewY;
|
|
156
|
+
this._endSkewX = this._startSkewX + this._deltaX;
|
|
157
|
+
this._endSkewY = this._startSkewY + this._deltaY;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Returns a reversed action.
|
|
161
|
+
* @return {SkewBy}
|
|
162
|
+
*/
|
|
163
|
+
reverse() {
|
|
164
|
+
const action = new SkewBy(this._duration, -this._skewX, -this._skewY);
|
|
165
|
+
this._cloneDecoration(action);
|
|
166
|
+
this._reverseEaseList(action);
|
|
167
|
+
return action;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Skews a Node object by skewX and skewY degrees. <br />
|
|
172
|
+
* Relative to its attribute modification.
|
|
173
|
+
* @function
|
|
174
|
+
* @param {Number} t time in seconds
|
|
175
|
+
* @param {Number} sx sx skew in degrees for X axis
|
|
176
|
+
* @param {Number} sy sy skew in degrees for Y axis
|
|
177
|
+
* @return {SkewBy}
|
|
178
|
+
* @example
|
|
179
|
+
* // example
|
|
180
|
+
* var actionBy = skewBy(2, 0, -90);
|
|
181
|
+
*/
|
|
182
|
+
export const skewBy = function (t, sx, sy) {
|
|
183
|
+
return new SkewBy(t, sx, sy);
|
|
184
|
+
};
|
|
185
|
+
//# sourceMappingURL=ActionSkew.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionSkew.js","sourceRoot":"","sources":["../../src/actions/ActionSkew.ts"],"names":[],"mappings":"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"}
|