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,147 @@
|
|
|
1
|
+
import { Texture2D } from './TexturesWebGL';
|
|
2
|
+
export declare const textureCache: {
|
|
3
|
+
_textures: {};
|
|
4
|
+
_textureColorsCache: {};
|
|
5
|
+
_textureKeySeq: number;
|
|
6
|
+
_loadedTexturesBefore: {};
|
|
7
|
+
_initializingRenderer: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* <p>
|
|
10
|
+
* Returns a Texture2D object given an PVR filename <br/>
|
|
11
|
+
* If the file image was not previously loaded, it will create a new CCTexture2D <br/>
|
|
12
|
+
* object and it will return it. Otherwise it will return a reference of a previously loaded image <br/>
|
|
13
|
+
* note: AddPVRTCImage does not support on HTML5
|
|
14
|
+
* </p>
|
|
15
|
+
* @param {String} filename
|
|
16
|
+
* @return {Texture2D}
|
|
17
|
+
*/
|
|
18
|
+
addPVRTCImage: (filename: any) => void;
|
|
19
|
+
/**
|
|
20
|
+
* <p>
|
|
21
|
+
* Returns a Texture2D object given an ETC filename <br/>
|
|
22
|
+
* If the file image was not previously loaded, it will create a new CCTexture2D <br/>
|
|
23
|
+
* object and it will return it. Otherwise it will return a reference of a previously loaded image <br/>
|
|
24
|
+
* note:addETCImage does not support on HTML5
|
|
25
|
+
* </p>
|
|
26
|
+
* @param {String} filename
|
|
27
|
+
* @return {Texture2D}
|
|
28
|
+
*/
|
|
29
|
+
addETCImage: (filename: any) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Description
|
|
32
|
+
* @return {String}
|
|
33
|
+
*/
|
|
34
|
+
description: () => string;
|
|
35
|
+
/**
|
|
36
|
+
* Returns an already created texture. Returns null if the texture doesn't exist.
|
|
37
|
+
* @param {String} textureKeyName
|
|
38
|
+
* @return {Texture2D|Null}
|
|
39
|
+
* @deprecated
|
|
40
|
+
* @example
|
|
41
|
+
* //example
|
|
42
|
+
* const key = textureCache.textureForKey("hello.png");
|
|
43
|
+
*/
|
|
44
|
+
textureForKey: (textureKeyName: any) => any;
|
|
45
|
+
/**
|
|
46
|
+
* Returns an already created texture. Returns null if the texture doesn't exist.
|
|
47
|
+
* @param {String} textureKeyName
|
|
48
|
+
* @return {Texture2D|Null}
|
|
49
|
+
* @example
|
|
50
|
+
* //example
|
|
51
|
+
* const key = textureCache.getTextureForKey("hello.png");
|
|
52
|
+
*/
|
|
53
|
+
getTextureForKey: (textureKeyName: any) => Texture2D | null;
|
|
54
|
+
/**
|
|
55
|
+
* @param {Image} texture
|
|
56
|
+
* @return {String|Null}
|
|
57
|
+
* @example
|
|
58
|
+
* //example
|
|
59
|
+
* const key = textureCache.getKeyByTexture(texture);
|
|
60
|
+
*/
|
|
61
|
+
getKeyByTexture: (texture: any) => string;
|
|
62
|
+
_generalTextureKey: (id: any) => string;
|
|
63
|
+
/**
|
|
64
|
+
* @param {Image} texture
|
|
65
|
+
* @return {Array}
|
|
66
|
+
* @example
|
|
67
|
+
* //example
|
|
68
|
+
* const cacheTextureForColor = textureCache.getTextureColors(texture);
|
|
69
|
+
*/
|
|
70
|
+
getTextureColors: (texture: any) => any;
|
|
71
|
+
/**
|
|
72
|
+
* <p>Returns a Texture2D object given an PVR filename<br />
|
|
73
|
+
* If the file image was not previously loaded, it will create a new Texture2D<br />
|
|
74
|
+
* object and it will return it. Otherwise it will return a reference of a previously loaded image </p>
|
|
75
|
+
* @param {String} path
|
|
76
|
+
* @return {Texture2D}
|
|
77
|
+
*/
|
|
78
|
+
addPVRImage: (path: any) => void;
|
|
79
|
+
/**
|
|
80
|
+
* <p>Purges the dictionary of loaded textures. <br />
|
|
81
|
+
* Call this method if you receive the "Memory Warning" <br />
|
|
82
|
+
* In the short term: it will free some resources preventing your app from being killed <br />
|
|
83
|
+
* In the medium term: it will allocate more resources <br />
|
|
84
|
+
* In the long term: it will be the same</p>
|
|
85
|
+
* @example
|
|
86
|
+
* //example
|
|
87
|
+
* textureCache.removeAllTextures();
|
|
88
|
+
*/
|
|
89
|
+
removeAllTextures: () => void;
|
|
90
|
+
/**
|
|
91
|
+
* Deletes a texture from the cache given a texture
|
|
92
|
+
* @param {Image} texture
|
|
93
|
+
* @example
|
|
94
|
+
* //example
|
|
95
|
+
* textureCache.removeTexture(texture);
|
|
96
|
+
*/
|
|
97
|
+
removeTexture: (texture: any) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Deletes a texture from the cache given a its key name
|
|
100
|
+
* @param {String} textureKeyName
|
|
101
|
+
* @example
|
|
102
|
+
* //example
|
|
103
|
+
* textureCache.removeTexture("hello.png");
|
|
104
|
+
*/
|
|
105
|
+
removeTextureForKey: (textureKeyName: any) => void;
|
|
106
|
+
/**
|
|
107
|
+
* Cache the image data
|
|
108
|
+
* @param {String} path
|
|
109
|
+
* @param {Image|HTMLImageElement|HTMLCanvasElement} texture
|
|
110
|
+
*/
|
|
111
|
+
cacheImage: (path: any, texture: any) => void;
|
|
112
|
+
/**
|
|
113
|
+
* <p>Returns a Texture2D object given an UIImage image<br />
|
|
114
|
+
* If the image was not previously loaded, it will create a new Texture2D object and it will return it.<br />
|
|
115
|
+
* Otherwise it will return a reference of a previously loaded image<br />
|
|
116
|
+
* The "key" parameter will be used as the "key" for the cache.<br />
|
|
117
|
+
* If "key" is null, then a new texture will be created each time.</p>
|
|
118
|
+
* @param {HTMLImageElement|HTMLCanvasElement} image
|
|
119
|
+
* @param {String} key
|
|
120
|
+
* @return {Texture2D}
|
|
121
|
+
*/
|
|
122
|
+
addUIImage: (image: any, key: any) => any;
|
|
123
|
+
/**
|
|
124
|
+
* <p>Output to log the current contents of this TextureCache <br />
|
|
125
|
+
* This will attempt to calculate the size of each texture, and the total texture memory in use. </p>
|
|
126
|
+
*/
|
|
127
|
+
dumpCachedTextureInfo: () => void;
|
|
128
|
+
_clear: () => void;
|
|
129
|
+
handleLoadedTexture: (url: any, img: any) => any;
|
|
130
|
+
/**
|
|
131
|
+
* <p>Returns a Texture2D object given an file image <br />
|
|
132
|
+
* If the file image was not previously loaded, it will create a new Texture2D <br />
|
|
133
|
+
* object and it will return it. It will use the filename as a key.<br />
|
|
134
|
+
* Otherwise it will return a reference of a previously loaded image. <br />
|
|
135
|
+
* Supported image extensions: .png, .jpg, .gif</p>
|
|
136
|
+
* @param {String} url
|
|
137
|
+
* @param {Function} cb
|
|
138
|
+
* @param {Object} target
|
|
139
|
+
* @return {Texture2D}
|
|
140
|
+
* @example
|
|
141
|
+
* //example
|
|
142
|
+
* textureCache.addImage("hello.png");
|
|
143
|
+
*/
|
|
144
|
+
addImage: (url: any, cb?: any, target?: any) => any;
|
|
145
|
+
addImageAsync: (url: any, cb: any, target: any) => any;
|
|
146
|
+
};
|
|
147
|
+
//# sourceMappingURL=TextureCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextureCache.d.ts","sourceRoot":"","sources":["../../src/textures/TextureCache.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;IAsBvB;;;;;;;;;OASG;;IAKH;;;;;;;;;OASG;;IAKH;;;OAGG;;IAKH;;;;;;;;OAQG;;IAMH;;;;;;;OAOG;+CAC0C,SAAS,GAAG,IAAI;IAI7D;;;;;;OAMG;;;IAcH;;;;;;OAMG;;IAaH;;;;;;OAMG;;IAKH;;;;;;;;;OASG;;IASH;;;;;;OAMG;;IAaH;;;;;;OAMG;;IAYH;;;;OAIG;;IAYH;;;;;;;;;OASG;;IAgBH;;;OAGG;;;;IAiEH;;;;;;;;;;;;;OAaG;;;CA0CJ,CAAA"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { game } from '..';
|
|
2
|
+
import { _LogInfos, assert, log } from '../helper/Debugger';
|
|
3
|
+
import { loader } from '../helper/loader';
|
|
4
|
+
import { path } from '../helper/path';
|
|
5
|
+
import { Texture2D } from './TexturesWebGL';
|
|
6
|
+
export const textureCache = /** @lends textureCache# */ {
|
|
7
|
+
_textures: {},
|
|
8
|
+
_textureColorsCache: {},
|
|
9
|
+
_textureKeySeq: 0 | (Math.random() * 1000),
|
|
10
|
+
_loadedTexturesBefore: {},
|
|
11
|
+
//handleLoadedTexture move to Canvas/WebGL
|
|
12
|
+
_initializingRenderer: function () {
|
|
13
|
+
let selPath;
|
|
14
|
+
//init texture from _loadedTexturesBefore
|
|
15
|
+
const locLoadedTexturesBefore = this._loadedTexturesBefore, locTextures = this._textures;
|
|
16
|
+
for (selPath in locLoadedTexturesBefore) {
|
|
17
|
+
const tex2d = locLoadedTexturesBefore[selPath];
|
|
18
|
+
tex2d.handleLoadedTexture();
|
|
19
|
+
locTextures[selPath] = tex2d;
|
|
20
|
+
}
|
|
21
|
+
this._loadedTexturesBefore = {};
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* <p>
|
|
25
|
+
* Returns a Texture2D object given an PVR filename <br/>
|
|
26
|
+
* If the file image was not previously loaded, it will create a new CCTexture2D <br/>
|
|
27
|
+
* object and it will return it. Otherwise it will return a reference of a previously loaded image <br/>
|
|
28
|
+
* note: AddPVRTCImage does not support on HTML5
|
|
29
|
+
* </p>
|
|
30
|
+
* @param {String} filename
|
|
31
|
+
* @return {Texture2D}
|
|
32
|
+
*/
|
|
33
|
+
addPVRTCImage: function (filename) {
|
|
34
|
+
log(_LogInfos.textureCache_addPVRTCImage);
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* <p>
|
|
38
|
+
* Returns a Texture2D object given an ETC filename <br/>
|
|
39
|
+
* If the file image was not previously loaded, it will create a new CCTexture2D <br/>
|
|
40
|
+
* object and it will return it. Otherwise it will return a reference of a previously loaded image <br/>
|
|
41
|
+
* note:addETCImage does not support on HTML5
|
|
42
|
+
* </p>
|
|
43
|
+
* @param {String} filename
|
|
44
|
+
* @return {Texture2D}
|
|
45
|
+
*/
|
|
46
|
+
addETCImage: function (filename) {
|
|
47
|
+
log(_LogInfos.textureCache_addETCImage);
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* Description
|
|
51
|
+
* @return {String}
|
|
52
|
+
*/
|
|
53
|
+
description: function () {
|
|
54
|
+
return `<TextureCache | Number of textures = ${this._textures.length}>`;
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Returns an already created texture. Returns null if the texture doesn't exist.
|
|
58
|
+
* @param {String} textureKeyName
|
|
59
|
+
* @return {Texture2D|Null}
|
|
60
|
+
* @deprecated
|
|
61
|
+
* @example
|
|
62
|
+
* //example
|
|
63
|
+
* const key = textureCache.textureForKey("hello.png");
|
|
64
|
+
*/
|
|
65
|
+
textureForKey: function (textureKeyName) {
|
|
66
|
+
log(_LogInfos.textureCache_textureForKey);
|
|
67
|
+
return this.getTextureForKey(textureKeyName);
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* Returns an already created texture. Returns null if the texture doesn't exist.
|
|
71
|
+
* @param {String} textureKeyName
|
|
72
|
+
* @return {Texture2D|Null}
|
|
73
|
+
* @example
|
|
74
|
+
* //example
|
|
75
|
+
* const key = textureCache.getTextureForKey("hello.png");
|
|
76
|
+
*/
|
|
77
|
+
getTextureForKey: function (textureKeyName) {
|
|
78
|
+
return this._textures[textureKeyName] || this._textures[loader._getAliase(textureKeyName)];
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* @param {Image} texture
|
|
82
|
+
* @return {String|Null}
|
|
83
|
+
* @example
|
|
84
|
+
* //example
|
|
85
|
+
* const key = textureCache.getKeyByTexture(texture);
|
|
86
|
+
*/
|
|
87
|
+
getKeyByTexture: function (texture) {
|
|
88
|
+
for (const key in this._textures) {
|
|
89
|
+
if (this._textures[key] === texture) {
|
|
90
|
+
return key;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
},
|
|
95
|
+
_generalTextureKey: function (id) {
|
|
96
|
+
return `_textureKey_${id}`;
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* @param {Image} texture
|
|
100
|
+
* @return {Array}
|
|
101
|
+
* @example
|
|
102
|
+
* //example
|
|
103
|
+
* const cacheTextureForColor = textureCache.getTextureColors(texture);
|
|
104
|
+
*/
|
|
105
|
+
getTextureColors: function (texture) {
|
|
106
|
+
const image = texture._htmlElementObj;
|
|
107
|
+
let key = this.getKeyByTexture(image);
|
|
108
|
+
if (!key) {
|
|
109
|
+
if (image instanceof HTMLImageElement)
|
|
110
|
+
key = image.src;
|
|
111
|
+
else
|
|
112
|
+
key = this._generalTextureKey(texture.__instanceId);
|
|
113
|
+
}
|
|
114
|
+
if (!this._textureColorsCache[key])
|
|
115
|
+
this._textureColorsCache[key] = texture._generateTextureCacheForColor();
|
|
116
|
+
return this._textureColorsCache[key];
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* <p>Returns a Texture2D object given an PVR filename<br />
|
|
120
|
+
* If the file image was not previously loaded, it will create a new Texture2D<br />
|
|
121
|
+
* object and it will return it. Otherwise it will return a reference of a previously loaded image </p>
|
|
122
|
+
* @param {String} path
|
|
123
|
+
* @return {Texture2D}
|
|
124
|
+
*/
|
|
125
|
+
addPVRImage: function (path) {
|
|
126
|
+
log(_LogInfos.textureCache_addPVRImage);
|
|
127
|
+
},
|
|
128
|
+
/**
|
|
129
|
+
* <p>Purges the dictionary of loaded textures. <br />
|
|
130
|
+
* Call this method if you receive the "Memory Warning" <br />
|
|
131
|
+
* In the short term: it will free some resources preventing your app from being killed <br />
|
|
132
|
+
* In the medium term: it will allocate more resources <br />
|
|
133
|
+
* In the long term: it will be the same</p>
|
|
134
|
+
* @example
|
|
135
|
+
* //example
|
|
136
|
+
* textureCache.removeAllTextures();
|
|
137
|
+
*/
|
|
138
|
+
removeAllTextures: function () {
|
|
139
|
+
const locTextures = this._textures;
|
|
140
|
+
for (const selKey in locTextures) {
|
|
141
|
+
if (locTextures[selKey])
|
|
142
|
+
locTextures[selKey].releaseTexture();
|
|
143
|
+
}
|
|
144
|
+
this._textures = {};
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Deletes a texture from the cache given a texture
|
|
148
|
+
* @param {Image} texture
|
|
149
|
+
* @example
|
|
150
|
+
* //example
|
|
151
|
+
* textureCache.removeTexture(texture);
|
|
152
|
+
*/
|
|
153
|
+
removeTexture: function (texture) {
|
|
154
|
+
if (!texture)
|
|
155
|
+
return;
|
|
156
|
+
const locTextures = this._textures;
|
|
157
|
+
for (const selKey in locTextures) {
|
|
158
|
+
if (locTextures[selKey] === texture) {
|
|
159
|
+
locTextures[selKey].releaseTexture();
|
|
160
|
+
delete locTextures[selKey];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
* Deletes a texture from the cache given a its key name
|
|
166
|
+
* @param {String} textureKeyName
|
|
167
|
+
* @example
|
|
168
|
+
* //example
|
|
169
|
+
* textureCache.removeTexture("hello.png");
|
|
170
|
+
*/
|
|
171
|
+
removeTextureForKey: function (textureKeyName) {
|
|
172
|
+
if (textureKeyName == null)
|
|
173
|
+
return;
|
|
174
|
+
const tex = this._textures[textureKeyName];
|
|
175
|
+
if (tex) {
|
|
176
|
+
tex.releaseTexture();
|
|
177
|
+
delete this._textures[textureKeyName];
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
//addImage move to Canvas/WebGL
|
|
181
|
+
/**
|
|
182
|
+
* Cache the image data
|
|
183
|
+
* @param {String} path
|
|
184
|
+
* @param {Image|HTMLImageElement|HTMLCanvasElement} texture
|
|
185
|
+
*/
|
|
186
|
+
cacheImage: function (path, texture) {
|
|
187
|
+
if (texture instanceof Texture2D) {
|
|
188
|
+
this._textures[path] = texture;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const texture2d = new Texture2D();
|
|
192
|
+
texture2d.initWithElement(texture);
|
|
193
|
+
texture2d.handleLoadedTexture();
|
|
194
|
+
this._textures[path] = texture2d;
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* <p>Returns a Texture2D object given an UIImage image<br />
|
|
198
|
+
* If the image was not previously loaded, it will create a new Texture2D object and it will return it.<br />
|
|
199
|
+
* Otherwise it will return a reference of a previously loaded image<br />
|
|
200
|
+
* The "key" parameter will be used as the "key" for the cache.<br />
|
|
201
|
+
* If "key" is null, then a new texture will be created each time.</p>
|
|
202
|
+
* @param {HTMLImageElement|HTMLCanvasElement} image
|
|
203
|
+
* @param {String} key
|
|
204
|
+
* @return {Texture2D}
|
|
205
|
+
*/
|
|
206
|
+
addUIImage: function (image, key) {
|
|
207
|
+
assert(image, _LogInfos.textureCache_addUIImage_2);
|
|
208
|
+
if (key) {
|
|
209
|
+
if (this._textures[key])
|
|
210
|
+
return this._textures[key];
|
|
211
|
+
}
|
|
212
|
+
// prevents overloading the autorelease pool
|
|
213
|
+
const texture = new Texture2D();
|
|
214
|
+
texture.initWithImage(image);
|
|
215
|
+
if (key != null)
|
|
216
|
+
this._textures[key] = texture;
|
|
217
|
+
else
|
|
218
|
+
log(_LogInfos.textureCache_addUIImage);
|
|
219
|
+
return texture;
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* <p>Output to log the current contents of this TextureCache <br />
|
|
223
|
+
* This will attempt to calculate the size of each texture, and the total texture memory in use. </p>
|
|
224
|
+
*/
|
|
225
|
+
dumpCachedTextureInfo: function () {
|
|
226
|
+
let count = 0;
|
|
227
|
+
let totalBytes = 0;
|
|
228
|
+
const locTextures = this._textures;
|
|
229
|
+
for (const key in locTextures) {
|
|
230
|
+
const selTexture = locTextures[key];
|
|
231
|
+
count++;
|
|
232
|
+
if (selTexture.getHtmlElementObj() instanceof HTMLImageElement)
|
|
233
|
+
log(_LogInfos.textureCache_dumpCachedTextureInfo, key, selTexture.getHtmlElementObj().src, selTexture.getPixelsWide(), selTexture.getPixelsHigh());
|
|
234
|
+
else {
|
|
235
|
+
log(_LogInfos.textureCache_dumpCachedTextureInfo_2, key, selTexture.getPixelsWide(), selTexture.getPixelsHigh());
|
|
236
|
+
}
|
|
237
|
+
totalBytes += selTexture.getPixelsWide() * selTexture.getPixelsHigh() * 4;
|
|
238
|
+
}
|
|
239
|
+
const locTextureColorsCache = this._textureColorsCache;
|
|
240
|
+
for (const key in locTextureColorsCache) {
|
|
241
|
+
const selCanvasColorsArr = locTextureColorsCache[key];
|
|
242
|
+
for (const selCanvasKey in selCanvasColorsArr) {
|
|
243
|
+
const selCanvas = selCanvasColorsArr[selCanvasKey];
|
|
244
|
+
count++;
|
|
245
|
+
log(_LogInfos.textureCache_dumpCachedTextureInfo_2, key, selCanvas.width, selCanvas.height);
|
|
246
|
+
totalBytes += selCanvas.width * selCanvas.height * 4;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
log(_LogInfos.textureCache_dumpCachedTextureInfo_3, count, totalBytes / 1024, (totalBytes / (1024.0 * 1024.0)).toFixed(2));
|
|
250
|
+
},
|
|
251
|
+
_clear: function () {
|
|
252
|
+
this._textures = {};
|
|
253
|
+
this._textureColorsCache = {};
|
|
254
|
+
this._textureKeySeq = 0 | (Math.random() * 1000);
|
|
255
|
+
this._loadedTexturesBefore = {};
|
|
256
|
+
},
|
|
257
|
+
handleLoadedTexture: function (url, img) {
|
|
258
|
+
let locTexs = this._textures, tex;
|
|
259
|
+
//remove judge(webgl)
|
|
260
|
+
if (!game._rendererInitialized) {
|
|
261
|
+
locTexs = this._loadedTexturesBefore;
|
|
262
|
+
}
|
|
263
|
+
tex = locTexs[url];
|
|
264
|
+
if (!tex) {
|
|
265
|
+
tex = locTexs[url] = new Texture2D();
|
|
266
|
+
tex.url = url;
|
|
267
|
+
}
|
|
268
|
+
tex.initWithElement(img);
|
|
269
|
+
const ext = path.extname(url);
|
|
270
|
+
if (ext === '.png') {
|
|
271
|
+
tex.handleLoadedTexture(true);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
tex.handleLoadedTexture();
|
|
275
|
+
}
|
|
276
|
+
return tex;
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* <p>Returns a Texture2D object given an file image <br />
|
|
280
|
+
* If the file image was not previously loaded, it will create a new Texture2D <br />
|
|
281
|
+
* object and it will return it. It will use the filename as a key.<br />
|
|
282
|
+
* Otherwise it will return a reference of a previously loaded image. <br />
|
|
283
|
+
* Supported image extensions: .png, .jpg, .gif</p>
|
|
284
|
+
* @param {String} url
|
|
285
|
+
* @param {Function} cb
|
|
286
|
+
* @param {Object} target
|
|
287
|
+
* @return {Texture2D}
|
|
288
|
+
* @example
|
|
289
|
+
* //example
|
|
290
|
+
* textureCache.addImage("hello.png");
|
|
291
|
+
*/
|
|
292
|
+
addImage: function (url, cb, target) {
|
|
293
|
+
assert(url, _LogInfos.Texture2D_addImage_2);
|
|
294
|
+
let locTexs = this._textures;
|
|
295
|
+
//remove judge(webgl)
|
|
296
|
+
if (!game._rendererInitialized) {
|
|
297
|
+
locTexs = this._loadedTexturesBefore;
|
|
298
|
+
}
|
|
299
|
+
let tex = locTexs[url] || locTexs[loader._getAliase(url)];
|
|
300
|
+
if (tex) {
|
|
301
|
+
if (tex.isLoaded()) {
|
|
302
|
+
cb && cb.call(target, tex);
|
|
303
|
+
return tex;
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
tex.addEventListener('load', function () {
|
|
307
|
+
cb && cb.call(target, tex);
|
|
308
|
+
}, target);
|
|
309
|
+
return tex;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
tex = locTexs[url] = new Texture2D();
|
|
313
|
+
tex.url = url;
|
|
314
|
+
const basePath = loader.resPath;
|
|
315
|
+
loader.loadImg(path.join(basePath || '', url), function (err, img) {
|
|
316
|
+
if (err)
|
|
317
|
+
return cb && cb.call(target, err);
|
|
318
|
+
const texResult = textureCache.handleLoadedTexture(url, img);
|
|
319
|
+
cb && cb.call(target, texResult);
|
|
320
|
+
});
|
|
321
|
+
return tex;
|
|
322
|
+
},
|
|
323
|
+
addImageAsync: function (url, cb, target) {
|
|
324
|
+
return this.addImage(url, cb, target);
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
//# sourceMappingURL=TextureCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextureCache.js","sourceRoot":"","sources":["../../src/textures/TextureCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,2BAA2B,CAAC;IACtD,SAAS,EAAE,EAAE;IACb,mBAAmB,EAAE,EAAE;IACvB,cAAc,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAE1C,qBAAqB,EAAE,EAAE;IAEzB,0CAA0C;IAE1C,qBAAqB,EAAE;QACrB,IAAI,OAAO,CAAA;QACX,yCAAyC;QACzC,MAAM,uBAAuB,GAAG,IAAI,CAAC,qBAAqB,EACxD,WAAW,GAAG,IAAI,CAAC,SAAS,CAAA;QAC9B,KAAK,OAAO,IAAI,uBAAuB,EAAE,CAAC;YACxC,MAAM,KAAK,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAA;YAC9C,KAAK,CAAC,mBAAmB,EAAE,CAAA;YAC3B,WAAW,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;QAC9B,CAAC;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,YAAY,CAAC,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAC5D,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;QAClC,CAAC,CAAC,CAAA;QAEF,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,aAAa,EAAE,UAAU,GAAG,EAAE,EAAE,EAAE,MAAM;QACtC,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IACvC,CAAC;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TexturesPropertyDefine.d.ts","sourceRoot":"","sources":["../../src/textures/TexturesPropertyDefine.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,YAsB9B,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineGetterSetter } from '../helper/getset';
|
|
2
|
+
import { Texture2D } from './TexturesWebGL';
|
|
3
|
+
export const PrototypeTexture2D = function () {
|
|
4
|
+
const _p = Texture2D.prototype;
|
|
5
|
+
// Extended properties
|
|
6
|
+
/** @expose */
|
|
7
|
+
// _p.name;
|
|
8
|
+
defineGetterSetter(_p, 'name', _p.getName);
|
|
9
|
+
/** @expose */
|
|
10
|
+
// _p.pixelFormat;
|
|
11
|
+
defineGetterSetter(_p, 'pixelFormat', _p.getPixelFormat);
|
|
12
|
+
/** @expose */
|
|
13
|
+
// _p.pixelsWidth;
|
|
14
|
+
defineGetterSetter(_p, 'pixelsWidth', _p.getPixelsWide);
|
|
15
|
+
/** @expose */
|
|
16
|
+
// _p.pixelsHeight;
|
|
17
|
+
defineGetterSetter(_p, 'pixelsHeight', _p.getPixelsHigh);
|
|
18
|
+
//defineGetterSetter(_p, "size", _p.getContentSize, _p.setContentSize);
|
|
19
|
+
/** @expose */
|
|
20
|
+
// _p.width;
|
|
21
|
+
defineGetterSetter(_p, 'width', _p._getWidth);
|
|
22
|
+
/** @expose */
|
|
23
|
+
// _p.height;
|
|
24
|
+
defineGetterSetter(_p, 'height', _p._getHeight);
|
|
25
|
+
};
|
|
26
|
+
// export const PrototypeTextureAtlas = function () {
|
|
27
|
+
// const _p = TextureAtlas.prototype
|
|
28
|
+
// // Extended properties
|
|
29
|
+
// /** @expose */
|
|
30
|
+
// _p.totalQuads
|
|
31
|
+
// defineGetterSetter(_p, 'totalQuads', _p.getTotalQuads)
|
|
32
|
+
// /** @expose */
|
|
33
|
+
// _p.capacity
|
|
34
|
+
// defineGetterSetter(_p, 'capacity', _p.getCapacity)
|
|
35
|
+
// /** @expose */
|
|
36
|
+
// _p.quads
|
|
37
|
+
// defineGetterSetter(_p, 'quads', _p.getQuads, _p.setQuads)
|
|
38
|
+
// }
|
|
39
|
+
//# sourceMappingURL=TexturesPropertyDefine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TexturesPropertyDefine.js","sourceRoot":"","sources":["../../src/textures/TexturesPropertyDefine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,GAAG,SAAS,CAAC,SAAS,CAAA;IAC9B,sBAAsB;IACtB,cAAc;IACd,WAAW;IACX,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAA;IAC1C,cAAc;IACd,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,EAAE,aAAa,EAAE,EAAE,CAAC,cAAc,CAAC,CAAA;IACxD,cAAc;IACd,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,EAAE,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,CAAA;IACvD,cAAc;IACd,mBAAmB;IACnB,kBAAkB,CAAC,EAAE,EAAE,cAAc,EAAE,EAAE,CAAC,aAAa,CAAC,CAAA;IACxD,uEAAuE;IACvE,cAAc;IACd,YAAY;IACZ,kBAAkB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,CAAA;IAC7C,cAAc;IACd,aAAa;IACb,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,CAAA;AACjD,CAAC,CAAA;AAED,qDAAqD;AACrD,sCAAsC;AAEtC,2BAA2B;AAC3B,mBAAmB;AACnB,kBAAkB;AAClB,2DAA2D;AAC3D,mBAAmB;AACnB,gBAAgB;AAChB,uDAAuD;AACvD,mBAAmB;AACnB,aAAa;AACb,8DAA8D;AAC9D,IAAI"}
|