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,70 @@
|
|
|
1
|
+
import { Point } from '../core';
|
|
2
|
+
export declare class TMXObjectGroup {
|
|
3
|
+
groupName: string;
|
|
4
|
+
_positionOffset: Point;
|
|
5
|
+
properties: any;
|
|
6
|
+
_objects: any[];
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* Offset position of child objects
|
|
10
|
+
* @return {Point}
|
|
11
|
+
*/
|
|
12
|
+
getPositionOffset(): Point;
|
|
13
|
+
/**
|
|
14
|
+
* Offset position of child objects
|
|
15
|
+
* @param {Point} offset
|
|
16
|
+
*/
|
|
17
|
+
setPositionOffset(offset: any): void;
|
|
18
|
+
/**
|
|
19
|
+
* List of properties stored in a dictionary
|
|
20
|
+
* @return {Array}
|
|
21
|
+
*/
|
|
22
|
+
getProperties(): any;
|
|
23
|
+
/**
|
|
24
|
+
* List of properties stored in a dictionary
|
|
25
|
+
* @param {object} Var
|
|
26
|
+
*/
|
|
27
|
+
setProperties(v: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the Group name.
|
|
30
|
+
* @return {String}
|
|
31
|
+
*/
|
|
32
|
+
getGroupName(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Set the Group name
|
|
35
|
+
* @param {String} groupName
|
|
36
|
+
*/
|
|
37
|
+
setGroupName(groupName: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* Return the value for the specific property name
|
|
40
|
+
* @param {String} propertyName
|
|
41
|
+
* @return {object}
|
|
42
|
+
*/
|
|
43
|
+
propertyNamed(propertyName: any): any;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Return the dictionary for the specific object name. <br />
|
|
46
|
+
* It will return the 1st object found on the array for the given name.</p>
|
|
47
|
+
* @deprecated since v3.4 please use .getObject
|
|
48
|
+
* @param {String} objectName
|
|
49
|
+
* @return {object|Null}
|
|
50
|
+
*/
|
|
51
|
+
objectNamed(objectName: any): any;
|
|
52
|
+
/**
|
|
53
|
+
* <p>Return the dictionary for the specific object name. <br />
|
|
54
|
+
* It will return the 1st object found on the array for the given name.</p>
|
|
55
|
+
* @param {String} objectName
|
|
56
|
+
* @return {object|Null}
|
|
57
|
+
*/
|
|
58
|
+
getObject(objectName: any): any;
|
|
59
|
+
/**
|
|
60
|
+
* Gets the objects.
|
|
61
|
+
* @return {Array}
|
|
62
|
+
*/
|
|
63
|
+
getObjects(): any[];
|
|
64
|
+
/**
|
|
65
|
+
* Set the objects.
|
|
66
|
+
* @param {object} objects
|
|
67
|
+
*/
|
|
68
|
+
setObjects(objects: any): void;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=TMXObjectGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TMXObjectGroup.d.ts","sourceRoot":"","sources":["../../src/tilemap/TMXObjectGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,EAAE,MAAM,SAAS,CAAA;AAElC,qBAAa,cAAc;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,KAAK,CAAA;IACd,UAAU,EAAE,GAAG,CAAA;IACvB,QAAQ,EAAE,GAAG,EAAE,CAAA;;IASf;;;OAGG;IACH,iBAAiB;IAIjB;;;OAGG;IACH,iBAAiB,CAAC,MAAM,KAAA;IAKxB;;;OAGG;IACH,aAAa;IAIb;;;OAGG;IACH,aAAa,CAAC,CAAC,KAAA;IAIf;;;OAGG;IACH,YAAY;IAIZ;;;OAGG;IACH,YAAY,CAAC,SAAS,KAAA;IAItB;;;;OAIG;IACH,aAAa,CAAC,YAAY,KAAA;IAI1B;;;;;;OAMG;IACH,WAAW,CAAC,UAAU,KAAA;IAItB;;;;;OAKG;IACH,SAAS,CAAC,UAAU,KAAA;IAYpB;;;OAGG;IACH,UAAU;IAIV;;;OAGG;IACH,UAAU,CAAC,OAAO,KAAA;CAGnB"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { p, Point } from '../core';
|
|
2
|
+
export class TMXObjectGroup {
|
|
3
|
+
groupName;
|
|
4
|
+
_positionOffset;
|
|
5
|
+
_objects;
|
|
6
|
+
constructor() {
|
|
7
|
+
this.groupName = '';
|
|
8
|
+
this._positionOffset = p(0, 0);
|
|
9
|
+
this.properties = [];
|
|
10
|
+
this._objects = [];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Offset position of child objects
|
|
14
|
+
* @return {Point}
|
|
15
|
+
*/
|
|
16
|
+
getPositionOffset() {
|
|
17
|
+
return p(this._positionOffset);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Offset position of child objects
|
|
21
|
+
* @param {Point} offset
|
|
22
|
+
*/
|
|
23
|
+
setPositionOffset(offset) {
|
|
24
|
+
this._positionOffset.x = offset.x;
|
|
25
|
+
this._positionOffset.y = offset.y;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* List of properties stored in a dictionary
|
|
29
|
+
* @return {Array}
|
|
30
|
+
*/
|
|
31
|
+
getProperties() {
|
|
32
|
+
return this.properties;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* List of properties stored in a dictionary
|
|
36
|
+
* @param {object} Var
|
|
37
|
+
*/
|
|
38
|
+
setProperties(v) {
|
|
39
|
+
this.properties.push(v);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Gets the Group name.
|
|
43
|
+
* @return {String}
|
|
44
|
+
*/
|
|
45
|
+
getGroupName() {
|
|
46
|
+
return this.groupName.toString();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Set the Group name
|
|
50
|
+
* @param {String} groupName
|
|
51
|
+
*/
|
|
52
|
+
setGroupName(groupName) {
|
|
53
|
+
this.groupName = groupName;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Return the value for the specific property name
|
|
57
|
+
* @param {String} propertyName
|
|
58
|
+
* @return {object}
|
|
59
|
+
*/
|
|
60
|
+
propertyNamed(propertyName) {
|
|
61
|
+
return this.properties[propertyName];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* <p>Return the dictionary for the specific object name. <br />
|
|
65
|
+
* It will return the 1st object found on the array for the given name.</p>
|
|
66
|
+
* @deprecated since v3.4 please use .getObject
|
|
67
|
+
* @param {String} objectName
|
|
68
|
+
* @return {object|Null}
|
|
69
|
+
*/
|
|
70
|
+
objectNamed(objectName) {
|
|
71
|
+
return this.getObject(objectName);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* <p>Return the dictionary for the specific object name. <br />
|
|
75
|
+
* It will return the 1st object found on the array for the given name.</p>
|
|
76
|
+
* @param {String} objectName
|
|
77
|
+
* @return {object|Null}
|
|
78
|
+
*/
|
|
79
|
+
getObject(objectName) {
|
|
80
|
+
if (this._objects && this._objects.length > 0) {
|
|
81
|
+
const locObjects = this._objects;
|
|
82
|
+
for (let i = 0, len = locObjects.length; i < len; i++) {
|
|
83
|
+
const name = locObjects[i]['name'];
|
|
84
|
+
if (name && name === objectName)
|
|
85
|
+
return locObjects[i];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// object not found
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Gets the objects.
|
|
93
|
+
* @return {Array}
|
|
94
|
+
*/
|
|
95
|
+
getObjects() {
|
|
96
|
+
return this._objects;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Set the objects.
|
|
100
|
+
* @param {object} objects
|
|
101
|
+
*/
|
|
102
|
+
setObjects(objects) {
|
|
103
|
+
this._objects.push(objects);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=TMXObjectGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TMXObjectGroup.js","sourceRoot":"","sources":["../../src/tilemap/TMXObjectGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAElC,MAAM,OAAO,cAAc;IACzB,SAAS,CAAQ;IACjB,eAAe,CAAO;IAEtB,QAAQ,CAAO;IAEf;QACE,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAC9B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACpB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;IACpB,CAAC;IAED;;;OAGG;IACH,iBAAiB;QACf,OAAO,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAChC,CAAC;IAED;;;OAGG;IACH,iBAAiB,CAAC,MAAM;QACtB,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAA;QACjC,IAAI,CAAC,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAA;IACnC,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAA;IACxB,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,CAAC;QACb,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACzB,CAAC;IAED;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAA;IAClC,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,SAAS;QACpB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,YAAY;QACxB,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;IACtC,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CAAC,UAAU;QACpB,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;IACnC,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,UAAU;QAClB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9C,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAA;YAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;gBACtD,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;gBAClC,IAAI,IAAI,IAAI,IAAI,KAAK,UAAU;oBAAE,OAAO,UAAU,CAAC,CAAC,CAAC,CAAA;YACvD,CAAC;QACH,CAAC;QACD,mBAAmB;QACnB,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO;QAChB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { Node } from '../core';
|
|
2
|
+
import { TMXLayer } from './TMXLayer';
|
|
3
|
+
/**
|
|
4
|
+
Orthogonal orientation
|
|
5
|
+
* @constant
|
|
6
|
+
* @type Number
|
|
7
|
+
*/
|
|
8
|
+
export declare const TMX_ORIENTATION_ORTHO = 0;
|
|
9
|
+
/**
|
|
10
|
+
* Hexagonal orientation
|
|
11
|
+
* @constant
|
|
12
|
+
* @type Number
|
|
13
|
+
*/
|
|
14
|
+
export declare const TMX_ORIENTATION_HEX = 1;
|
|
15
|
+
/**
|
|
16
|
+
* Isometric orientation
|
|
17
|
+
* @constant
|
|
18
|
+
* @type Number
|
|
19
|
+
*/
|
|
20
|
+
export declare const TMX_ORIENTATION_ISO = 2;
|
|
21
|
+
export declare class TMXTiledMap extends Node {
|
|
22
|
+
properties: any;
|
|
23
|
+
mapOrientation: any;
|
|
24
|
+
objectGroups: any;
|
|
25
|
+
_mapSize: any;
|
|
26
|
+
_tileSize: any;
|
|
27
|
+
_tileProperties: any;
|
|
28
|
+
_className: string;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a TMX Tiled Map with a TMX file or content string. <br/>
|
|
31
|
+
* Constructor of TMXTiledMap
|
|
32
|
+
* @param {String} tmxFile tmxFile fileName or content string
|
|
33
|
+
* @param {String} resourcePath If tmxFile is a file name ,it is not required.If tmxFile is content string ,it is must required.
|
|
34
|
+
*/
|
|
35
|
+
constructor(tmxFile?: any, resourcePath?: any);
|
|
36
|
+
/**
|
|
37
|
+
* Gets the map size.
|
|
38
|
+
* @return {Size}
|
|
39
|
+
*/
|
|
40
|
+
getMapSize(): import("..")._Size;
|
|
41
|
+
/**
|
|
42
|
+
* Set the map size.
|
|
43
|
+
* @param {Size} Var
|
|
44
|
+
*/
|
|
45
|
+
setMapSize(Var: any): void;
|
|
46
|
+
_getMapWidth(): any;
|
|
47
|
+
_setMapWidth(width: any): void;
|
|
48
|
+
_getMapHeight(): any;
|
|
49
|
+
_setMapHeight(height: any): void;
|
|
50
|
+
/**
|
|
51
|
+
* Gets the tile size.
|
|
52
|
+
* @return {Size}
|
|
53
|
+
*/
|
|
54
|
+
getTileSize(): import("..")._Size;
|
|
55
|
+
/**
|
|
56
|
+
* Set the tile size
|
|
57
|
+
* @param {Size} Var
|
|
58
|
+
*/
|
|
59
|
+
setTileSize(Var: any): void;
|
|
60
|
+
_getTileWidth(): any;
|
|
61
|
+
_setTileWidth(width: any): void;
|
|
62
|
+
_getTileHeight(): any;
|
|
63
|
+
_setTileHeight(height: any): void;
|
|
64
|
+
/**
|
|
65
|
+
* map orientation
|
|
66
|
+
* @return {Number}
|
|
67
|
+
*/
|
|
68
|
+
getMapOrientation(): any;
|
|
69
|
+
/**
|
|
70
|
+
* map orientation
|
|
71
|
+
* @param {Number} Var
|
|
72
|
+
*/
|
|
73
|
+
setMapOrientation(Var: any): void;
|
|
74
|
+
/**
|
|
75
|
+
* object groups
|
|
76
|
+
* @return {Array}
|
|
77
|
+
*/
|
|
78
|
+
getObjectGroups(): any;
|
|
79
|
+
/**
|
|
80
|
+
* object groups
|
|
81
|
+
* @param {Array} Var
|
|
82
|
+
*/
|
|
83
|
+
setObjectGroups(Var: any): void;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the properties
|
|
86
|
+
* @return {object}
|
|
87
|
+
*/
|
|
88
|
+
getProperties(): any;
|
|
89
|
+
/**
|
|
90
|
+
* Set the properties
|
|
91
|
+
* @param {object} Var
|
|
92
|
+
*/
|
|
93
|
+
setProperties(Var: any): void;
|
|
94
|
+
/**
|
|
95
|
+
* Initializes the instance of TMXTiledMap with tmxFile
|
|
96
|
+
* @param {String} tmxFile
|
|
97
|
+
* @return {Boolean} Whether the initialization was successful.
|
|
98
|
+
* @example
|
|
99
|
+
* //example
|
|
100
|
+
* var map = new TMXTiledMap()
|
|
101
|
+
* map.initWithTMXFile("hello.tmx");
|
|
102
|
+
*/
|
|
103
|
+
initWithTMXFile(tmxFile: any): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Initializes the instance of TMXTiledMap with tmxString
|
|
106
|
+
* @param {String} tmxString
|
|
107
|
+
* @param {String} resourcePath
|
|
108
|
+
* @return {Boolean} Whether the initialization was successful.
|
|
109
|
+
*/
|
|
110
|
+
initWithXML(tmxString: any, resourcePath: any): boolean;
|
|
111
|
+
_buildWithMapInfo(mapInfo: any): void;
|
|
112
|
+
/**
|
|
113
|
+
* Return All layers array.
|
|
114
|
+
* @returns {Array}
|
|
115
|
+
*/
|
|
116
|
+
allLayers(): any[];
|
|
117
|
+
/**
|
|
118
|
+
* return the TMXLayer for the specific layer
|
|
119
|
+
* @param {String} layerName
|
|
120
|
+
* @return {TMXLayer}
|
|
121
|
+
*/
|
|
122
|
+
getLayer(layerName: any): Node;
|
|
123
|
+
/**
|
|
124
|
+
* Return the TMXObjectGroup for the specific group
|
|
125
|
+
* @param {String} groupName
|
|
126
|
+
* @return {TMXObjectGroup}
|
|
127
|
+
*/
|
|
128
|
+
getObjectGroup(groupName: any): any;
|
|
129
|
+
/**
|
|
130
|
+
* Return the value for the specific property name
|
|
131
|
+
* @param {String} propertyName
|
|
132
|
+
* @return {String}
|
|
133
|
+
*/
|
|
134
|
+
getProperty(propertyName: any): any;
|
|
135
|
+
/**
|
|
136
|
+
* Return properties dictionary for tile GID
|
|
137
|
+
* @param {Number} GID
|
|
138
|
+
* @return {object}
|
|
139
|
+
* @deprecated
|
|
140
|
+
*/
|
|
141
|
+
propertiesForGID(GID: any): any;
|
|
142
|
+
/**
|
|
143
|
+
* Return properties dictionary for tile GID
|
|
144
|
+
* @param {Number} GID
|
|
145
|
+
* @return {object}
|
|
146
|
+
*/
|
|
147
|
+
getPropertiesForGID(GID: any): any;
|
|
148
|
+
_parseLayer(layerInfo: any, mapInfo: any): TMXLayer;
|
|
149
|
+
_tilesetForLayer(layerInfo: any, mapInfo: any): any;
|
|
150
|
+
/** @expose */
|
|
151
|
+
get mapWidth(): any;
|
|
152
|
+
set mapWidth(width: any);
|
|
153
|
+
/** @expose */
|
|
154
|
+
get mapHeight(): any;
|
|
155
|
+
set mapHeight(height: any);
|
|
156
|
+
/** @expose */
|
|
157
|
+
get tileWidth(): any;
|
|
158
|
+
set tileWidth(width: any);
|
|
159
|
+
/** @expose */
|
|
160
|
+
get tileHeight(): any;
|
|
161
|
+
set tileHeight(height: any);
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=TMXTiledMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TMXTiledMap.d.ts","sourceRoot":"","sources":["../../src/tilemap/TMXTiledMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAQ,MAAM,SAAS,CAAA;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAIrC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAA;AAEtC;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,qBAAa,WAAY,SAAQ,IAAI;IACnC,UAAU,EAAE,GAAG,CAAO;IACtB,cAAc,EAAE,GAAG,CAAO;IAC1B,YAAY,EAAE,GAAG,CAAO;IAGxB,QAAQ,EAAE,GAAG,CAAO;IACpB,SAAS,EAAE,GAAG,CAAO;IAErB,eAAe,EAAE,GAAG,CAAO;IAC3B,UAAU,SAAgB;IAE1B;;;;;OAKG;gBACS,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG;IAY7C;;;OAGG;IACH,UAAU;IAIV;;;OAGG;IACH,UAAU,CAAC,GAAG,EAAE,GAAG;IAKnB,YAAY;IAGZ,YAAY,CAAC,KAAK,EAAE,GAAG;IAGvB,aAAa;IAGb,aAAa,CAAC,MAAM,EAAE,GAAG;IAIzB;;;OAGG;IACH,WAAW;IAIX;;;OAGG;IACH,WAAW,CAAC,GAAG,EAAE,GAAG;IAKpB,aAAa;IAGb,aAAa,CAAC,KAAK,EAAE,GAAG;IAGxB,cAAc;IAGd,cAAc,CAAC,MAAM,EAAE,GAAG;IAI1B;;;OAGG;IACH,iBAAiB;IAIjB;;;OAGG;IACH,iBAAiB,CAAC,GAAG,EAAE,GAAG;IAI1B;;;OAGG;IACH,eAAe;IAIf;;;OAGG;IACH,eAAe,CAAC,GAAG,EAAE,GAAG;IAIxB;;;OAGG;IACH,aAAa;IAIb;;;OAGG;IACH,aAAa,CAAC,GAAG,EAAE,GAAG;IAItB;;;;;;;;OAQG;IACH,eAAe,CAAC,OAAO,EAAE,GAAG;IAY5B;;;;;OAKG;IACH,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG;IAU7C,iBAAiB,CAAC,OAAO,EAAE,GAAG;IA2B9B;;;OAGG;IACH,SAAS;IAUT;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,GAAG;IAWvB;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,GAAG;IAe7B;;;;OAIG;IACH,WAAW,CAAC,YAAY,EAAE,GAAG;IAI7B;;;;;OAKG;IACH,gBAAgB,CAAC,GAAG,EAAE,GAAG;IAKzB;;;;OAIG;IACH,mBAAmB,CAAC,GAAG,EAAE,GAAG;IAI5B,WAAW,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAQxC,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IA6B7C,cAAc;IACd,IAAI,QAAQ,IAGQ,GAAG,CADtB;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,GAAG,EAEtB;IAED,cAAc;IACd,IAAI,SAAS,IAGS,GAAG,CADxB;IACD,IAAI,SAAS,CAAC,MAAM,EAAE,GAAG,EAExB;IAED,cAAc;IACd,IAAI,SAAS,IAGQ,GAAG,CADvB;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,GAAG,EAEvB;IAED,cAAc;IACd,IAAI,UAAU,IAGS,GAAG,CADzB;IACD,IAAI,UAAU,CAAC,MAAM,EAAE,GAAG,EAEzB;CACF"}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { Node, Size } from '../core';
|
|
2
|
+
import { log } from '../helper/Debugger';
|
|
3
|
+
import { TMXLayer } from './TMXLayer';
|
|
4
|
+
import { TMXMapInfo } from './TMXMapInfo';
|
|
5
|
+
import { TMX_TILE_FLIPPED_MASK } from './TMXXMLParser';
|
|
6
|
+
/**
|
|
7
|
+
Orthogonal orientation
|
|
8
|
+
* @constant
|
|
9
|
+
* @type Number
|
|
10
|
+
*/
|
|
11
|
+
export const TMX_ORIENTATION_ORTHO = 0;
|
|
12
|
+
/**
|
|
13
|
+
* Hexagonal orientation
|
|
14
|
+
* @constant
|
|
15
|
+
* @type Number
|
|
16
|
+
*/
|
|
17
|
+
export const TMX_ORIENTATION_HEX = 1;
|
|
18
|
+
/**
|
|
19
|
+
* Isometric orientation
|
|
20
|
+
* @constant
|
|
21
|
+
* @type Number
|
|
22
|
+
*/
|
|
23
|
+
export const TMX_ORIENTATION_ISO = 2;
|
|
24
|
+
export class TMXTiledMap extends Node {
|
|
25
|
+
properties = null;
|
|
26
|
+
mapOrientation = null;
|
|
27
|
+
objectGroups = null;
|
|
28
|
+
//the map's size property measured in tiles
|
|
29
|
+
_mapSize = null;
|
|
30
|
+
_tileSize = null;
|
|
31
|
+
//tile properties
|
|
32
|
+
_tileProperties = null;
|
|
33
|
+
_className = 'TMXTiledMap';
|
|
34
|
+
/**
|
|
35
|
+
* Creates a TMX Tiled Map with a TMX file or content string. <br/>
|
|
36
|
+
* Constructor of TMXTiledMap
|
|
37
|
+
* @param {String} tmxFile tmxFile fileName or content string
|
|
38
|
+
* @param {String} resourcePath If tmxFile is a file name ,it is not required.If tmxFile is content string ,it is must required.
|
|
39
|
+
*/
|
|
40
|
+
constructor(tmxFile, resourcePath) {
|
|
41
|
+
super();
|
|
42
|
+
this._mapSize = Size(0, 0);
|
|
43
|
+
this._tileSize = Size(0, 0);
|
|
44
|
+
if (resourcePath !== undefined) {
|
|
45
|
+
this.initWithXML(tmxFile, resourcePath);
|
|
46
|
+
}
|
|
47
|
+
else if (tmxFile !== undefined) {
|
|
48
|
+
this.initWithTMXFile(tmxFile);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Gets the map size.
|
|
53
|
+
* @return {Size}
|
|
54
|
+
*/
|
|
55
|
+
getMapSize() {
|
|
56
|
+
return Size(this._mapSize.width, this._mapSize.height);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Set the map size.
|
|
60
|
+
* @param {Size} Var
|
|
61
|
+
*/
|
|
62
|
+
setMapSize(Var) {
|
|
63
|
+
this._mapSize.width = Var.width;
|
|
64
|
+
this._mapSize.height = Var.height;
|
|
65
|
+
}
|
|
66
|
+
_getMapWidth() {
|
|
67
|
+
return this._mapSize.width;
|
|
68
|
+
}
|
|
69
|
+
_setMapWidth(width) {
|
|
70
|
+
this._mapSize.width = width;
|
|
71
|
+
}
|
|
72
|
+
_getMapHeight() {
|
|
73
|
+
return this._mapSize.height;
|
|
74
|
+
}
|
|
75
|
+
_setMapHeight(height) {
|
|
76
|
+
this._mapSize.height = height;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Gets the tile size.
|
|
80
|
+
* @return {Size}
|
|
81
|
+
*/
|
|
82
|
+
getTileSize() {
|
|
83
|
+
return Size(this._tileSize.width, this._tileSize.height);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Set the tile size
|
|
87
|
+
* @param {Size} Var
|
|
88
|
+
*/
|
|
89
|
+
setTileSize(Var) {
|
|
90
|
+
this._tileSize.width = Var.width;
|
|
91
|
+
this._tileSize.height = Var.height;
|
|
92
|
+
}
|
|
93
|
+
_getTileWidth() {
|
|
94
|
+
return this._tileSize.width;
|
|
95
|
+
}
|
|
96
|
+
_setTileWidth(width) {
|
|
97
|
+
this._tileSize.width = width;
|
|
98
|
+
}
|
|
99
|
+
_getTileHeight() {
|
|
100
|
+
return this._tileSize.height;
|
|
101
|
+
}
|
|
102
|
+
_setTileHeight(height) {
|
|
103
|
+
this._tileSize.height = height;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* map orientation
|
|
107
|
+
* @return {Number}
|
|
108
|
+
*/
|
|
109
|
+
getMapOrientation() {
|
|
110
|
+
return this.mapOrientation;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* map orientation
|
|
114
|
+
* @param {Number} Var
|
|
115
|
+
*/
|
|
116
|
+
setMapOrientation(Var) {
|
|
117
|
+
this.mapOrientation = Var;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* object groups
|
|
121
|
+
* @return {Array}
|
|
122
|
+
*/
|
|
123
|
+
getObjectGroups() {
|
|
124
|
+
return this.objectGroups;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* object groups
|
|
128
|
+
* @param {Array} Var
|
|
129
|
+
*/
|
|
130
|
+
setObjectGroups(Var) {
|
|
131
|
+
this.objectGroups = Var;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Gets the properties
|
|
135
|
+
* @return {object}
|
|
136
|
+
*/
|
|
137
|
+
getProperties() {
|
|
138
|
+
return this.properties;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Set the properties
|
|
142
|
+
* @param {object} Var
|
|
143
|
+
*/
|
|
144
|
+
setProperties(Var) {
|
|
145
|
+
this.properties = Var;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Initializes the instance of TMXTiledMap with tmxFile
|
|
149
|
+
* @param {String} tmxFile
|
|
150
|
+
* @return {Boolean} Whether the initialization was successful.
|
|
151
|
+
* @example
|
|
152
|
+
* //example
|
|
153
|
+
* var map = new TMXTiledMap()
|
|
154
|
+
* map.initWithTMXFile("hello.tmx");
|
|
155
|
+
*/
|
|
156
|
+
initWithTMXFile(tmxFile) {
|
|
157
|
+
if (!tmxFile || tmxFile.length === 0)
|
|
158
|
+
throw new Error('TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.');
|
|
159
|
+
this.setContentSize(0, 0);
|
|
160
|
+
const mapInfo = new TMXMapInfo(tmxFile);
|
|
161
|
+
if (!mapInfo)
|
|
162
|
+
return false;
|
|
163
|
+
const locTilesets = mapInfo.getTilesets();
|
|
164
|
+
if (!locTilesets || locTilesets.length === 0)
|
|
165
|
+
log('TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.');
|
|
166
|
+
this._buildWithMapInfo(mapInfo);
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Initializes the instance of TMXTiledMap with tmxString
|
|
171
|
+
* @param {String} tmxString
|
|
172
|
+
* @param {String} resourcePath
|
|
173
|
+
* @return {Boolean} Whether the initialization was successful.
|
|
174
|
+
*/
|
|
175
|
+
initWithXML(tmxString, resourcePath) {
|
|
176
|
+
this.setContentSize(0, 0);
|
|
177
|
+
const mapInfo = new TMXMapInfo(tmxString, resourcePath);
|
|
178
|
+
const locTilesets = mapInfo.getTilesets();
|
|
179
|
+
if (!locTilesets || locTilesets.length === 0)
|
|
180
|
+
log('TMXTiledMap.initWithXML(): Map not found. Please check the filename.');
|
|
181
|
+
this._buildWithMapInfo(mapInfo);
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
_buildWithMapInfo(mapInfo) {
|
|
185
|
+
this._mapSize = mapInfo.getMapSize();
|
|
186
|
+
this._tileSize = mapInfo.getTileSize();
|
|
187
|
+
this.mapOrientation = mapInfo.orientation;
|
|
188
|
+
this.objectGroups = mapInfo.getObjectGroups();
|
|
189
|
+
this.properties = mapInfo.properties;
|
|
190
|
+
this._tileProperties = mapInfo.getTileProperties();
|
|
191
|
+
let idx = 0;
|
|
192
|
+
const layers = mapInfo.getLayers();
|
|
193
|
+
if (layers) {
|
|
194
|
+
let layerInfo;
|
|
195
|
+
for (let i = 0, len = layers.length; i < len; i++) {
|
|
196
|
+
layerInfo = layers[i];
|
|
197
|
+
if (layerInfo && layerInfo.visible) {
|
|
198
|
+
const child = this._parseLayer(layerInfo, mapInfo);
|
|
199
|
+
this.addChild(child, idx, idx);
|
|
200
|
+
// update content size with the max size
|
|
201
|
+
const width = Math.max(this._getWidth(), child._getWidth());
|
|
202
|
+
const height = Math.max(this._getHeight(), child._getHeight());
|
|
203
|
+
this.setContentSize(width, height);
|
|
204
|
+
idx++;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Return All layers array.
|
|
211
|
+
* @returns {Array}
|
|
212
|
+
*/
|
|
213
|
+
allLayers() {
|
|
214
|
+
const retArr = [], locChildren = this._children;
|
|
215
|
+
for (let i = 0, len = locChildren.length; i < len; i++) {
|
|
216
|
+
const layer = locChildren[i];
|
|
217
|
+
if (layer && layer instanceof TMXLayer)
|
|
218
|
+
retArr.push(layer);
|
|
219
|
+
}
|
|
220
|
+
return retArr;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* return the TMXLayer for the specific layer
|
|
224
|
+
* @param {String} layerName
|
|
225
|
+
* @return {TMXLayer}
|
|
226
|
+
*/
|
|
227
|
+
getLayer(layerName) {
|
|
228
|
+
if (!layerName || layerName.length === 0)
|
|
229
|
+
throw new Error('TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.');
|
|
230
|
+
const locChildren = this._children;
|
|
231
|
+
for (let i = 0; i < locChildren.length; i++) {
|
|
232
|
+
const layer = locChildren[i];
|
|
233
|
+
if (layer && layer.layerName === layerName)
|
|
234
|
+
return layer;
|
|
235
|
+
}
|
|
236
|
+
// layer not found
|
|
237
|
+
return null;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Return the TMXObjectGroup for the specific group
|
|
241
|
+
* @param {String} groupName
|
|
242
|
+
* @return {TMXObjectGroup}
|
|
243
|
+
*/
|
|
244
|
+
getObjectGroup(groupName) {
|
|
245
|
+
if (!groupName || groupName.length === 0)
|
|
246
|
+
throw new Error('TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.');
|
|
247
|
+
if (this.objectGroups) {
|
|
248
|
+
for (let i = 0; i < this.objectGroups.length; i++) {
|
|
249
|
+
const objectGroup = this.objectGroups[i];
|
|
250
|
+
if (objectGroup && objectGroup.groupName === groupName) {
|
|
251
|
+
return objectGroup;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
// objectGroup not found
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Return the value for the specific property name
|
|
260
|
+
* @param {String} propertyName
|
|
261
|
+
* @return {String}
|
|
262
|
+
*/
|
|
263
|
+
getProperty(propertyName) {
|
|
264
|
+
return this.properties[propertyName.toString()];
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Return properties dictionary for tile GID
|
|
268
|
+
* @param {Number} GID
|
|
269
|
+
* @return {object}
|
|
270
|
+
* @deprecated
|
|
271
|
+
*/
|
|
272
|
+
propertiesForGID(GID) {
|
|
273
|
+
log('propertiesForGID is deprecated. Please use getPropertiesForGID instead.');
|
|
274
|
+
return this.getPropertiesForGID(GID);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Return properties dictionary for tile GID
|
|
278
|
+
* @param {Number} GID
|
|
279
|
+
* @return {object}
|
|
280
|
+
*/
|
|
281
|
+
getPropertiesForGID(GID) {
|
|
282
|
+
return this._tileProperties[GID];
|
|
283
|
+
}
|
|
284
|
+
_parseLayer(layerInfo, mapInfo) {
|
|
285
|
+
const tileset = this._tilesetForLayer(layerInfo, mapInfo);
|
|
286
|
+
const layer = new TMXLayer(tileset, layerInfo, mapInfo);
|
|
287
|
+
// tell the layerinfo to release the ownership of the tiles map.
|
|
288
|
+
layerInfo.ownTiles = false;
|
|
289
|
+
return layer;
|
|
290
|
+
}
|
|
291
|
+
_tilesetForLayer(layerInfo, mapInfo) {
|
|
292
|
+
const size = layerInfo._layerSize;
|
|
293
|
+
const tilesets = mapInfo.getTilesets();
|
|
294
|
+
if (tilesets) {
|
|
295
|
+
for (let i = tilesets.length - 1; i >= 0; i--) {
|
|
296
|
+
const tileset = tilesets[i];
|
|
297
|
+
if (tileset) {
|
|
298
|
+
for (let y = 0; y < size.height; y++) {
|
|
299
|
+
for (let x = 0; x < size.width; x++) {
|
|
300
|
+
const pos = x + size.width * y;
|
|
301
|
+
const gid = layerInfo._tiles[pos];
|
|
302
|
+
if (gid !== 0) {
|
|
303
|
+
// Optimization: quick return
|
|
304
|
+
// if the layer is invalid (more than 1 tileset per layer) an assert will be thrown later
|
|
305
|
+
if ((gid & TMX_TILE_FLIPPED_MASK) >>> 0 >= tileset.firstGid) {
|
|
306
|
+
return tileset;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
// If all the tiles are 0, return empty tileset
|
|
315
|
+
log(`cocos2d: Warning: TMX Layer ${layerInfo.name} has no tiles`);
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
/** @expose */
|
|
319
|
+
get mapWidth() {
|
|
320
|
+
return this._getMapWidth();
|
|
321
|
+
}
|
|
322
|
+
set mapWidth(width) {
|
|
323
|
+
this._setMapWidth(width);
|
|
324
|
+
}
|
|
325
|
+
/** @expose */
|
|
326
|
+
get mapHeight() {
|
|
327
|
+
return this._getMapHeight();
|
|
328
|
+
}
|
|
329
|
+
set mapHeight(height) {
|
|
330
|
+
this._setMapHeight(height);
|
|
331
|
+
}
|
|
332
|
+
/** @expose */
|
|
333
|
+
get tileWidth() {
|
|
334
|
+
return this._getTileWidth();
|
|
335
|
+
}
|
|
336
|
+
set tileWidth(width) {
|
|
337
|
+
this._setTileWidth(width);
|
|
338
|
+
}
|
|
339
|
+
/** @expose */
|
|
340
|
+
get tileHeight() {
|
|
341
|
+
return this._getTileHeight();
|
|
342
|
+
}
|
|
343
|
+
set tileHeight(height) {
|
|
344
|
+
this._setTileHeight(height);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
//# sourceMappingURL=TMXTiledMap.js.map
|