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,184 @@
|
|
|
1
|
+
import { ActionInterval } from '../ActionInterval';
|
|
2
|
+
export class ActionEase extends ActionInterval {
|
|
3
|
+
_inner = null;
|
|
4
|
+
/**
|
|
5
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
|
|
6
|
+
* creates the action of ActionEase.
|
|
7
|
+
* @param {ActionInterval} action
|
|
8
|
+
*/
|
|
9
|
+
constructor(action) {
|
|
10
|
+
super();
|
|
11
|
+
action && this.initWithAction(action);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* initializes the action
|
|
15
|
+
*
|
|
16
|
+
* @param {ActionInterval} action
|
|
17
|
+
* @return {Boolean}
|
|
18
|
+
*/
|
|
19
|
+
initWithAction(action) {
|
|
20
|
+
if (!action)
|
|
21
|
+
throw new Error('ActionEase.initWithAction(): action must be non nil');
|
|
22
|
+
if (this.initWithDuration(action.getDuration())) {
|
|
23
|
+
this._inner = action;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* to copy object with deep copy.
|
|
30
|
+
* returns a clone of action.
|
|
31
|
+
*
|
|
32
|
+
* @returns {ActionEase}
|
|
33
|
+
*/
|
|
34
|
+
clone() {
|
|
35
|
+
const action = new ActionEase();
|
|
36
|
+
action.initWithAction(this._inner.clone());
|
|
37
|
+
return action;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* called before the action start. It will also set the target.
|
|
41
|
+
*
|
|
42
|
+
* @param {Node} target
|
|
43
|
+
*/
|
|
44
|
+
startWithTarget(target) {
|
|
45
|
+
super.startWithTarget(target);
|
|
46
|
+
this._inner.startWithTarget(this.target);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Stop the action.
|
|
50
|
+
*/
|
|
51
|
+
stop() {
|
|
52
|
+
this._inner.stop();
|
|
53
|
+
super.stop();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
57
|
+
*
|
|
58
|
+
* @param {Number} dt
|
|
59
|
+
*/
|
|
60
|
+
update(dt) {
|
|
61
|
+
this._inner.update(dt);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Create new action to original operation effect opposite. <br />
|
|
65
|
+
* For example: <br />
|
|
66
|
+
* - The action will be x coordinates of 0 move to 100. <br />
|
|
67
|
+
* - The reversed action will be x of 100 move to 0.
|
|
68
|
+
* - Will be rewritten
|
|
69
|
+
* @return {ActionEase}
|
|
70
|
+
*/
|
|
71
|
+
reverse() {
|
|
72
|
+
return new ActionEase(this._inner.reverse());
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get inner Action.
|
|
76
|
+
*
|
|
77
|
+
* @return {ActionInterval}
|
|
78
|
+
*/
|
|
79
|
+
getInnerAction() {
|
|
80
|
+
return this._inner;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* creates the action of ActionEase
|
|
85
|
+
*
|
|
86
|
+
* @param {ActionInterval} action
|
|
87
|
+
* @return {ActionEase}
|
|
88
|
+
* @example
|
|
89
|
+
* // example
|
|
90
|
+
* var moveEase = actionEase(action);
|
|
91
|
+
*/
|
|
92
|
+
export function actionEase(action) {
|
|
93
|
+
return new ActionEase(action);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Base class for Easing actions with rate parameters
|
|
97
|
+
*
|
|
98
|
+
* @class
|
|
99
|
+
* @extends ActionEase
|
|
100
|
+
* @param {ActionInterval} action
|
|
101
|
+
* @param {Number} rate
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* //The old usage
|
|
105
|
+
* EaseRateAction.create(action, 3.0);
|
|
106
|
+
* //The new usage
|
|
107
|
+
* var moveEaseRateAction = easeRateAction(action, 3.0);
|
|
108
|
+
*/
|
|
109
|
+
export class EaseRateAction extends ActionEase {
|
|
110
|
+
_rate = 0;
|
|
111
|
+
/**
|
|
112
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
|
|
113
|
+
* Creates the action with the inner action and the rate parameter.
|
|
114
|
+
* @param {ActionInterval} action
|
|
115
|
+
* @param {Number} rate
|
|
116
|
+
*/
|
|
117
|
+
constructor(action, rate) {
|
|
118
|
+
super();
|
|
119
|
+
rate !== undefined && this.initWithAction(action, rate);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* set rate value for the actions
|
|
123
|
+
* @param {Number} rate
|
|
124
|
+
*/
|
|
125
|
+
setRate(rate) {
|
|
126
|
+
this._rate = rate;
|
|
127
|
+
}
|
|
128
|
+
/** get rate value for the actions
|
|
129
|
+
* @return {Number}
|
|
130
|
+
*/
|
|
131
|
+
getRate() {
|
|
132
|
+
return this._rate;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Initializes the action with the inner action and the rate parameter
|
|
136
|
+
* @param {ActionInterval} action
|
|
137
|
+
* @param {Number} rate
|
|
138
|
+
* @return {Boolean}
|
|
139
|
+
*/
|
|
140
|
+
initWithAction(action, rate) {
|
|
141
|
+
if (super.initWithAction(action)) {
|
|
142
|
+
if (rate !== undefined)
|
|
143
|
+
this._rate = rate;
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* to copy object with deep copy.
|
|
150
|
+
* returns a clone of action.
|
|
151
|
+
*
|
|
152
|
+
* @returns {EaseRateAction}
|
|
153
|
+
*/
|
|
154
|
+
clone() {
|
|
155
|
+
const action = new EaseRateAction();
|
|
156
|
+
action.initWithAction(this._inner.clone(), this._rate);
|
|
157
|
+
return action;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Create new action to original operation effect opposite. <br />
|
|
161
|
+
* For example: <br />
|
|
162
|
+
* - The action will be x coordinates of 0 move to 100. <br />
|
|
163
|
+
* - The reversed action will be x of 100 move to 0.
|
|
164
|
+
* - Will be rewritten
|
|
165
|
+
* @return {EaseRateAction}
|
|
166
|
+
*/
|
|
167
|
+
reverse() {
|
|
168
|
+
return new EaseRateAction(this._inner.reverse(), 1 / this._rate);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Creates the action with the inner action and the rate parameter.
|
|
173
|
+
*
|
|
174
|
+
* @param {ActionInterval} action
|
|
175
|
+
* @param {Number} rate
|
|
176
|
+
* @return {EaseRateAction}
|
|
177
|
+
* @example
|
|
178
|
+
* // example
|
|
179
|
+
* var moveEaseRateAction = easeRateAction(action, 3.0);
|
|
180
|
+
*/
|
|
181
|
+
export function easeRateAction(action, rate) {
|
|
182
|
+
return new EaseRateAction(action, rate);
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=ActionEase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionEase.js","sourceRoot":"","sources":["../../../src/actions/easing/ActionEase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC5C,MAAM,GAA0B,IAAI,CAAA;IAEpC;;;;OAIG;IACH,YAAY,MAAuB;QACjC,KAAK,EAAE,CAAA;QACP,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;IACvC,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,MAAsB;QACnC,I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4
|
+
* EaseBackIn action. <br />
|
|
5
|
+
* In the opposite direction to move slowly, and then accelerated to the right direction.
|
|
6
|
+
* @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
|
7
|
+
* @class
|
|
8
|
+
* @extends ActionEase
|
|
9
|
+
*
|
|
10
|
+
* @deprecated since v3.0 please use action.easing(easeBackIn())
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* //The old usage
|
|
14
|
+
* EaseBackIn.create(action);
|
|
15
|
+
* //The new usage
|
|
16
|
+
* action.easing(easeBackIn());
|
|
17
|
+
*/
|
|
18
|
+
export declare class EaseBackIn extends ActionEase {
|
|
19
|
+
constructor(action?: ActionInterval);
|
|
20
|
+
/**
|
|
21
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
22
|
+
*
|
|
23
|
+
* @param {Number} dt
|
|
24
|
+
*/
|
|
25
|
+
update(dt: number): void;
|
|
26
|
+
/**
|
|
27
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
28
|
+
* @return {EaseBackOut}
|
|
29
|
+
*/
|
|
30
|
+
reverse(): EaseBackOut;
|
|
31
|
+
/**
|
|
32
|
+
* to copy object with deep copy.
|
|
33
|
+
* returns a clone of action.
|
|
34
|
+
*
|
|
35
|
+
* @returns {EaseBackIn}
|
|
36
|
+
*/
|
|
37
|
+
clone(): EaseBackIn;
|
|
38
|
+
}
|
|
39
|
+
export declare const _easeBackInObj: {
|
|
40
|
+
easing: (time1: any) => any;
|
|
41
|
+
reverse: () => {
|
|
42
|
+
easing: (time1: any) => number;
|
|
43
|
+
reverse: () => /*elided*/ any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Creates the action easing object. <br />
|
|
48
|
+
* In the opposite direction to move slowly, and then accelerated to the right direction.
|
|
49
|
+
* @function
|
|
50
|
+
* @return {Object}
|
|
51
|
+
* @example
|
|
52
|
+
* // example
|
|
53
|
+
* action.easing(easeBackIn());
|
|
54
|
+
*/
|
|
55
|
+
export declare const easeBackIn: () => {
|
|
56
|
+
easing: (time1: any) => any;
|
|
57
|
+
reverse: () => {
|
|
58
|
+
easing: (time1: any) => number;
|
|
59
|
+
reverse: () => /*elided*/ any;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* EaseBackOut action. <br />
|
|
64
|
+
* Fast moving more than the finish, and then slowly back to the finish.
|
|
65
|
+
* @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
|
66
|
+
* @class
|
|
67
|
+
* @extends ActionEase
|
|
68
|
+
*
|
|
69
|
+
* @deprecated since v3.0 please use action.easing(easeBackOut());
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* //The old usage
|
|
73
|
+
* EaseBackOut.create(action);
|
|
74
|
+
* //The new usage
|
|
75
|
+
* action.easing(easeBackOut());
|
|
76
|
+
*/
|
|
77
|
+
export declare class EaseBackOut extends ActionEase {
|
|
78
|
+
constructor(action?: ActionInterval);
|
|
79
|
+
/**
|
|
80
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
81
|
+
*
|
|
82
|
+
* @param {Number} dt
|
|
83
|
+
*/
|
|
84
|
+
update(dt: number): void;
|
|
85
|
+
/**
|
|
86
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
87
|
+
* @return {EaseBackIn}
|
|
88
|
+
*/
|
|
89
|
+
reverse(): EaseBackIn;
|
|
90
|
+
/**
|
|
91
|
+
* to copy object with deep copy.
|
|
92
|
+
* returns a clone of action.
|
|
93
|
+
*
|
|
94
|
+
* @returns {EaseBackOut}
|
|
95
|
+
*/
|
|
96
|
+
clone(): EaseBackOut;
|
|
97
|
+
}
|
|
98
|
+
export declare const _easeBackOutObj: {
|
|
99
|
+
easing: (time1: any) => number;
|
|
100
|
+
reverse: () => {
|
|
101
|
+
easing: (time1: any) => any;
|
|
102
|
+
reverse: () => /*elided*/ any;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Creates the action easing object. <br />
|
|
107
|
+
* Fast moving more than the finish, and then slowly back to the finish.
|
|
108
|
+
* @function
|
|
109
|
+
* @return {Object}
|
|
110
|
+
* @example
|
|
111
|
+
* // example
|
|
112
|
+
* action.easing(easeBackOut());
|
|
113
|
+
*/
|
|
114
|
+
export declare const easeBackOut: () => {
|
|
115
|
+
easing: (time1: any) => number;
|
|
116
|
+
reverse: () => {
|
|
117
|
+
easing: (time1: any) => any;
|
|
118
|
+
reverse: () => /*elided*/ any;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* EaseBackInOut action. <br />
|
|
123
|
+
* Beginning of EaseBackIn. Ending of EaseBackOut.
|
|
124
|
+
* @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
|
125
|
+
* @class
|
|
126
|
+
* @extends ActionEase
|
|
127
|
+
*
|
|
128
|
+
* @deprecated since v3.0 <br /> Please use action.easing(easeBackInOut())
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* //The old usage
|
|
132
|
+
* EaseBackInOut.create(action);
|
|
133
|
+
* //The new usage
|
|
134
|
+
* action.easing(easeBackInOut());
|
|
135
|
+
*/
|
|
136
|
+
export declare class EaseBackInOut extends ActionEase {
|
|
137
|
+
constructor(action?: ActionInterval);
|
|
138
|
+
/**
|
|
139
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
140
|
+
*
|
|
141
|
+
* @param {Number} dt
|
|
142
|
+
*/
|
|
143
|
+
update(dt: number): void;
|
|
144
|
+
/**
|
|
145
|
+
* to copy object with deep copy.
|
|
146
|
+
* returns a clone of action.
|
|
147
|
+
*
|
|
148
|
+
* @returns {EaseBackInOut}
|
|
149
|
+
*/
|
|
150
|
+
clone(): EaseBackInOut;
|
|
151
|
+
/**
|
|
152
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
153
|
+
* @return {EaseBackInOut}
|
|
154
|
+
*/
|
|
155
|
+
reverse(): EaseBackInOut;
|
|
156
|
+
}
|
|
157
|
+
export declare const _easeBackInOutObj: {
|
|
158
|
+
easing: (time1: any) => number;
|
|
159
|
+
reverse: () => /*elided*/ any;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Creates the action easing object. <br />
|
|
163
|
+
* Beginning of EaseBackIn. Ending of EaseBackOut.
|
|
164
|
+
* @function
|
|
165
|
+
* @return {Object}
|
|
166
|
+
* @example
|
|
167
|
+
* // example
|
|
168
|
+
* action.easing(easeBackInOut());
|
|
169
|
+
*/
|
|
170
|
+
export declare const easeBackInOut: () => {
|
|
171
|
+
easing: (time1: any) => number;
|
|
172
|
+
reverse: () => /*elided*/ any;
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=Back.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Back.d.ts","sourceRoot":"","sources":["../../../src/actions/easing/Back.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,UAAW,SAAQ,UAAU;gBAC5B,MAAM,CAAC,EAAE,cAAc;IAKnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMxB;;;OAGG;IACH,OAAO,IAAI,WAAW;IAItB;;;;;OAKG;IACH,KAAK,IAAI,UAAU;CAKpB;AAED,eAAO,MAAM,cAAc;;;;;;CAQ1B,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU;;;;;;CAEtB,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,WAAY,SAAQ,UAAU;gBAC7B,MAAM,CAAC,EAAE,cAAc;IAKnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMxB;;;OAGG;IACH,OAAO,IAAI,UAAU;IAIrB;;;;;OAKG;IACH,KAAK,IAAI,WAAW;CAKrB;AAED,eAAO,MAAM,eAAe;;;;;;CAS3B,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;CAEvB,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,SAAQ,UAAU;gBAC/B,MAAM,CAAC,EAAE,cAAc;IAKnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAWxB;;;;;OAKG;IACH,KAAK,IAAI,aAAa;IAMtB;;;OAGG;IACH,OAAO,IAAI,aAAa;CAGzB;AAED,eAAO,MAAM,iBAAiB;;;CAc7B,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;;;CAEzB,CAAA"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { ActionEase } from './ActionEase';
|
|
2
|
+
import { ActionInterval } from '../ActionInterval';
|
|
3
|
+
/**
|
|
4
|
+
* EaseBackIn action. <br />
|
|
5
|
+
* In the opposite direction to move slowly, and then accelerated to the right direction.
|
|
6
|
+
* @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
|
7
|
+
* @class
|
|
8
|
+
* @extends ActionEase
|
|
9
|
+
*
|
|
10
|
+
* @deprecated since v3.0 please use action.easing(easeBackIn())
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* //The old usage
|
|
14
|
+
* EaseBackIn.create(action);
|
|
15
|
+
* //The new usage
|
|
16
|
+
* action.easing(easeBackIn());
|
|
17
|
+
*/
|
|
18
|
+
export class EaseBackIn extends ActionEase {
|
|
19
|
+
constructor(action) {
|
|
20
|
+
super();
|
|
21
|
+
action && this.initWithAction(action);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
25
|
+
*
|
|
26
|
+
* @param {Number} dt
|
|
27
|
+
*/
|
|
28
|
+
update(dt) {
|
|
29
|
+
const overshoot = 1.70158;
|
|
30
|
+
dt = dt === 0 || dt === 1 ? dt : dt * dt * ((overshoot + 1) * dt - overshoot);
|
|
31
|
+
this._inner.update(dt);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
35
|
+
* @return {EaseBackOut}
|
|
36
|
+
*/
|
|
37
|
+
reverse() {
|
|
38
|
+
return new EaseBackOut(this._inner.reverse());
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* to copy object with deep copy.
|
|
42
|
+
* returns a clone of action.
|
|
43
|
+
*
|
|
44
|
+
* @returns {EaseBackIn}
|
|
45
|
+
*/
|
|
46
|
+
clone() {
|
|
47
|
+
const action = new EaseBackIn();
|
|
48
|
+
action.initWithAction(this._inner.clone());
|
|
49
|
+
return action;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export const _easeBackInObj = {
|
|
53
|
+
easing: function (time1) {
|
|
54
|
+
const overshoot = 1.70158;
|
|
55
|
+
return time1 === 0 || time1 === 1 ? time1 : time1 * time1 * ((overshoot + 1) * time1 - overshoot);
|
|
56
|
+
},
|
|
57
|
+
reverse: function () {
|
|
58
|
+
return _easeBackOutObj;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Creates the action easing object. <br />
|
|
63
|
+
* In the opposite direction to move slowly, and then accelerated to the right direction.
|
|
64
|
+
* @function
|
|
65
|
+
* @return {Object}
|
|
66
|
+
* @example
|
|
67
|
+
* // example
|
|
68
|
+
* action.easing(easeBackIn());
|
|
69
|
+
*/
|
|
70
|
+
export const easeBackIn = function () {
|
|
71
|
+
return _easeBackInObj;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* EaseBackOut action. <br />
|
|
75
|
+
* Fast moving more than the finish, and then slowly back to the finish.
|
|
76
|
+
* @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
|
77
|
+
* @class
|
|
78
|
+
* @extends ActionEase
|
|
79
|
+
*
|
|
80
|
+
* @deprecated since v3.0 please use action.easing(easeBackOut());
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* //The old usage
|
|
84
|
+
* EaseBackOut.create(action);
|
|
85
|
+
* //The new usage
|
|
86
|
+
* action.easing(easeBackOut());
|
|
87
|
+
*/
|
|
88
|
+
export class EaseBackOut extends ActionEase {
|
|
89
|
+
constructor(action) {
|
|
90
|
+
super();
|
|
91
|
+
action && this.initWithAction(action);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
95
|
+
*
|
|
96
|
+
* @param {Number} dt
|
|
97
|
+
*/
|
|
98
|
+
update(dt) {
|
|
99
|
+
const overshoot = 1.70158;
|
|
100
|
+
dt = dt - 1;
|
|
101
|
+
this._inner.update(dt * dt * ((overshoot + 1) * dt + overshoot) + 1);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
105
|
+
* @return {EaseBackIn}
|
|
106
|
+
*/
|
|
107
|
+
reverse() {
|
|
108
|
+
return new EaseBackIn(this._inner.reverse());
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* to copy object with deep copy.
|
|
112
|
+
* returns a clone of action.
|
|
113
|
+
*
|
|
114
|
+
* @returns {EaseBackOut}
|
|
115
|
+
*/
|
|
116
|
+
clone() {
|
|
117
|
+
const action = new EaseBackOut();
|
|
118
|
+
action.initWithAction(this._inner.clone());
|
|
119
|
+
return action;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export const _easeBackOutObj = {
|
|
123
|
+
easing: function (time1) {
|
|
124
|
+
const overshoot = 1.70158;
|
|
125
|
+
time1 = time1 - 1;
|
|
126
|
+
return time1 * time1 * ((overshoot + 1) * time1 + overshoot) + 1;
|
|
127
|
+
},
|
|
128
|
+
reverse: function () {
|
|
129
|
+
return _easeBackInObj;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Creates the action easing object. <br />
|
|
134
|
+
* Fast moving more than the finish, and then slowly back to the finish.
|
|
135
|
+
* @function
|
|
136
|
+
* @return {Object}
|
|
137
|
+
* @example
|
|
138
|
+
* // example
|
|
139
|
+
* action.easing(easeBackOut());
|
|
140
|
+
*/
|
|
141
|
+
export const easeBackOut = function () {
|
|
142
|
+
return _easeBackOutObj;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* EaseBackInOut action. <br />
|
|
146
|
+
* Beginning of EaseBackIn. Ending of EaseBackOut.
|
|
147
|
+
* @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
|
|
148
|
+
* @class
|
|
149
|
+
* @extends ActionEase
|
|
150
|
+
*
|
|
151
|
+
* @deprecated since v3.0 <br /> Please use action.easing(easeBackInOut())
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* //The old usage
|
|
155
|
+
* EaseBackInOut.create(action);
|
|
156
|
+
* //The new usage
|
|
157
|
+
* action.easing(easeBackInOut());
|
|
158
|
+
*/
|
|
159
|
+
export class EaseBackInOut extends ActionEase {
|
|
160
|
+
constructor(action) {
|
|
161
|
+
super();
|
|
162
|
+
action && this.initWithAction(action);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
166
|
+
*
|
|
167
|
+
* @param {Number} dt
|
|
168
|
+
*/
|
|
169
|
+
update(dt) {
|
|
170
|
+
const overshoot = 1.70158 * 1.525;
|
|
171
|
+
dt = dt * 2;
|
|
172
|
+
if (dt < 1) {
|
|
173
|
+
this._inner.update((dt * dt * ((overshoot + 1) * dt - overshoot)) / 2);
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
dt = dt - 2;
|
|
177
|
+
this._inner.update((dt * dt * ((overshoot + 1) * dt + overshoot)) / 2 + 1);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* to copy object with deep copy.
|
|
182
|
+
* returns a clone of action.
|
|
183
|
+
*
|
|
184
|
+
* @returns {EaseBackInOut}
|
|
185
|
+
*/
|
|
186
|
+
clone() {
|
|
187
|
+
const action = new EaseBackInOut();
|
|
188
|
+
action.initWithAction(this._inner.clone());
|
|
189
|
+
return action;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
193
|
+
* @return {EaseBackInOut}
|
|
194
|
+
*/
|
|
195
|
+
reverse() {
|
|
196
|
+
return new EaseBackInOut(this._inner.reverse());
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
export const _easeBackInOutObj = {
|
|
200
|
+
easing: function (time1) {
|
|
201
|
+
const overshoot = 1.70158 * 1.525;
|
|
202
|
+
time1 = time1 * 2;
|
|
203
|
+
if (time1 < 1) {
|
|
204
|
+
return (time1 * time1 * ((overshoot + 1) * time1 - overshoot)) / 2;
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
time1 = time1 - 2;
|
|
208
|
+
return (time1 * time1 * ((overshoot + 1) * time1 + overshoot)) / 2 + 1;
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
reverse: function () {
|
|
212
|
+
return _easeBackInOutObj;
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Creates the action easing object. <br />
|
|
217
|
+
* Beginning of EaseBackIn. Ending of EaseBackOut.
|
|
218
|
+
* @function
|
|
219
|
+
* @return {Object}
|
|
220
|
+
* @example
|
|
221
|
+
* // example
|
|
222
|
+
* action.easing(easeBackInOut());
|
|
223
|
+
*/
|
|
224
|
+
export const easeBackInOut = function () {
|
|
225
|
+
return _easeBackInOutObj;
|
|
226
|
+
};
|
|
227
|
+
//# sourceMappingURL=Back.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Back.js","sourceRoot":"","sources":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AC,CAAA;IACpE,CAAC;CACF;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAE,UAAU,KAAK;QACrB,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;QACjC,KAAK,GAAG,KAAK,GAAG,CAAC,CAAA;QACjB,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,OAAO,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,CAAA;QACpE,CAAC;aAAM,CAAC;YACN,KAAK,GAAG,KAAK,GAAG,CAAC,CAAA;YACjB,OAAO,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACxE,CAAC;IACH,CAAC;IACD,OAAO,EAAE;QACP,OAAO,iBAAiB,CAAA;IAC1B,CAAC;CACF,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ActionInterval } from '../ActionInterval';
|
|
2
|
+
import { ActionEase } from './ActionEase';
|
|
3
|
+
/**
|
|
4
|
+
* EaseBezierAction action. <br />
|
|
5
|
+
* Manually set a 4 order Bessel curve. <br />
|
|
6
|
+
* According to the set point, calculate the trajectory.
|
|
7
|
+
* @class
|
|
8
|
+
* @extends ActionEase
|
|
9
|
+
* @param {Action} action
|
|
10
|
+
*
|
|
11
|
+
* @deprecated since v3.0 <br /> Please use action.easing(easeBezierAction())
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* //The old usage
|
|
15
|
+
* var action = EaseBezierAction.create(action);
|
|
16
|
+
* action.setBezierParamer(0.5, 0.5, 1.0, 1.0);
|
|
17
|
+
* //The new usage
|
|
18
|
+
* action.easing(easeBezierAction(0.5, 0.5, 1.0, 1.0));
|
|
19
|
+
*/
|
|
20
|
+
export declare class EaseBezierAction extends ActionEase {
|
|
21
|
+
_p0: number;
|
|
22
|
+
_p1: number;
|
|
23
|
+
_p2: number;
|
|
24
|
+
_p3: number;
|
|
25
|
+
/**
|
|
26
|
+
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function. <br />
|
|
27
|
+
* Initialization requires the application of Bessel curve of action.
|
|
28
|
+
* @param {Action} action
|
|
29
|
+
*/
|
|
30
|
+
constructor(action?: ActionInterval);
|
|
31
|
+
static _updateTime(a: number, b: number, c: number, d: number, t: number): number;
|
|
32
|
+
/**
|
|
33
|
+
* Called once per frame. Time is the number of seconds of a frame interval.
|
|
34
|
+
*
|
|
35
|
+
* @param {Number} dt
|
|
36
|
+
*/
|
|
37
|
+
update(dt: number): void;
|
|
38
|
+
/**
|
|
39
|
+
* to copy object with deep copy.
|
|
40
|
+
* returns a clone of action.
|
|
41
|
+
*
|
|
42
|
+
* @returns {EaseBezierAction}
|
|
43
|
+
*/
|
|
44
|
+
clone(): EaseBezierAction;
|
|
45
|
+
/**
|
|
46
|
+
* Create a action. Opposite with the original motion trajectory.
|
|
47
|
+
* @return {EaseBezierAction}
|
|
48
|
+
*/
|
|
49
|
+
reverse(): EaseBezierAction;
|
|
50
|
+
/**
|
|
51
|
+
* Set of 4 reference point
|
|
52
|
+
* @param p0
|
|
53
|
+
* @param p1
|
|
54
|
+
* @param p2
|
|
55
|
+
* @param p3
|
|
56
|
+
*/
|
|
57
|
+
setBezierParamer(p0: number, p1: number, p2: number, p3: number): void;
|
|
58
|
+
/**
|
|
59
|
+
* Creates the action. <br />
|
|
60
|
+
* After creating the EaseBezierAction, also need to manually call setBezierParamer. <br />
|
|
61
|
+
* According to the set point, calculate the trajectory.
|
|
62
|
+
* @static
|
|
63
|
+
* @param action
|
|
64
|
+
* @returns {EaseBezierAction}
|
|
65
|
+
*
|
|
66
|
+
* @deprecated since v3.0 <br /> Please use action.easing(easeBezierAction())
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* //The old usage
|
|
70
|
+
* var action = EaseBezierAction.create(action);
|
|
71
|
+
* action.setBezierParamer(0.5, 0.5, 1.0, 1.0);
|
|
72
|
+
* //The new usage
|
|
73
|
+
* action.easing(easeBezierAction(0.5, 0.5, 1.0, 1.0));
|
|
74
|
+
*/
|
|
75
|
+
static create(action: ActionInterval): EaseBezierAction;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates the action easing object. <br />
|
|
79
|
+
* Into the 4 reference point. <br />
|
|
80
|
+
* To calculate the motion curve.
|
|
81
|
+
* @param {Number} p0 The first bezier parameter
|
|
82
|
+
* @param {Number} p1 The second bezier parameter
|
|
83
|
+
* @param {Number} p2 The third bezier parameter
|
|
84
|
+
* @param {Number} p3 The fourth bezier parameter
|
|
85
|
+
* @returns {Object}
|
|
86
|
+
* @example
|
|
87
|
+
* // example
|
|
88
|
+
* action.easing(easeBezierAction(0.5, 0.5, 1.0, 1.0));
|
|
89
|
+
*/
|
|
90
|
+
export declare const easeBezierAction: (p0: number, p1: number, p2: number, p3: number) => {
|
|
91
|
+
easing: (time: number) => number;
|
|
92
|
+
reverse: () => /*elided*/ any;
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=Bezier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bezier.d.ts","sourceRoot":"","sources":["../../../src/actions/easing/Bezier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,GAAG,SAAI;IACP,GAAG,SAAI;IACP,GAAG,SAAI;IACP,GAAG,SAAI;IAEP;;;;OAIG;gBACS,MAAM,CAAC,EAAE,cAAc;IAKnC,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAIjF;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKxB;;;;;OAKG;IACH,KAAK,IAAI,gBAAgB;IAOzB;;;OAGG;IACH,OAAO,IAAI,gBAAgB;IAM3B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAOtE;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,gBAAgB;CAGxD;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,GAAa,IAAI,MAAM,EAAE,IAAI,MAAM,EAAE,IAAI,MAAM,EAAE,IAAI,MAAM;mBAE5D,MAAM;;CAOjC,CAAA"}
|