@eva/renderer-adapter 1.3.0-alpha.1 → 2.0.0-beta.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/dist/EVA.rendererAdapter.js +69 -86
- package/dist/EVA.rendererAdapter.min.js +1 -1
- package/dist/packages/eva.js/lib/core/Component.d.ts +35 -0
- package/dist/packages/eva.js/lib/core/Component.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/ComponentObserver.d.ts +22 -0
- package/dist/packages/eva.js/lib/core/ComponentObserver.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/GameObject.d.ts +31 -0
- package/dist/packages/eva.js/lib/core/GameObject.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/System.d.ts +30 -0
- package/dist/packages/eva.js/lib/core/System.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/Transform.d.ts +51 -0
- package/dist/packages/eva.js/lib/core/Transform.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/observer.d.ts +23 -0
- package/dist/packages/eva.js/lib/core/observer.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/decorators/ide.d.ts +2 -0
- package/dist/packages/eva.js/lib/decorators/ide.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/decorators/system.d.ts +11 -0
- package/dist/packages/eva.js/lib/decorators/system.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/game/Game.d.ts +72 -0
- package/dist/packages/eva.js/lib/game/Game.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/game/Scene.d.ts +12 -0
- package/dist/packages/eva.js/lib/game/Scene.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/game/Ticker.d.ts +25 -0
- package/dist/packages/eva.js/lib/game/Ticker.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/index.d.ts +26 -0
- package/dist/packages/eva.js/lib/index.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/loader/Progress.d.ts +21 -0
- package/dist/packages/eva.js/lib/loader/Progress.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/loader/Resource.d.ts +99 -0
- package/dist/packages/eva.js/lib/loader/Resource.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/loader/resourceLoader.d.ts +14 -0
- package/dist/packages/eva.js/lib/loader/resourceLoader.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/timeline/index.d.ts +40 -0
- package/dist/packages/eva.js/lib/timeline/index.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/timeline/utils.d.ts +2 -0
- package/dist/packages/eva.js/lib/timeline/utils.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/A11y.d.ts +26 -0
- package/dist/packages/plugin-a11y/lib/A11y.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/A11ySystem.d.ts +54 -0
- package/dist/packages/plugin-a11y/lib/A11ySystem.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/constant.d.ts +34 -0
- package/dist/packages/plugin-a11y/lib/constant.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/index.d.ts +4 -0
- package/dist/packages/plugin-a11y/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/utils.d.ts +6 -0
- package/dist/packages/plugin-a11y/lib/utils.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/EvaXComponent.d.ts +20 -0
- package/dist/packages/plugin-evax/lib/EvaXComponent.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/EvaXSystem.d.ts +33 -0
- package/dist/packages/plugin-evax/lib/EvaXSystem.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/index.d.ts +10 -0
- package/dist/packages/plugin-evax/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/utils.d.ts +3 -0
- package/dist/packages/plugin-evax/lib/utils.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/BodiesFactory.d.ts +31 -0
- package/dist/packages/plugin-matterjs/lib/BodiesFactory.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/Physics.d.ts +32 -0
- package/dist/packages/plugin-matterjs/lib/Physics.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsEngine.d.ts +35 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsEngine.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsSystem.d.ts +32 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsSystem.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/index.d.ts +5 -0
- package/dist/packages/plugin-matterjs/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/matter.d.ts +3 -0
- package/dist/packages/plugin-matterjs/lib/matter.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/Renderer.d.ts +19 -0
- package/dist/packages/plugin-renderer/lib/Renderer.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/System.d.ts +40 -0
- package/dist/packages/plugin-renderer/lib/System.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/Transform.d.ts +28 -0
- package/dist/packages/plugin-renderer/lib/Transform.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/ability.d.ts +20 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/ability.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/fix/loader.d.ts +2 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/fix/loader.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/index.d.ts +7 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/index.d.ts +8 -0
- package/dist/packages/plugin-renderer/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/manager/ContainerManager.d.ts +18 -0
- package/dist/packages/plugin-renderer/lib/manager/ContainerManager.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/manager/RendererManager.d.ts +17 -0
- package/dist/packages/plugin-renderer/lib/manager/RendererManager.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/mixin.d.ts +2 -0
- package/dist/packages/plugin-renderer/lib/mixin.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/component.d.ts +26 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/db.d.ts +3 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/db.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/engine.d.ts +10 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/engine.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/system.d.ts +24 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-event/lib/component.d.ts +52 -0
- package/dist/packages/plugin-renderer-event/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-event/lib/index.d.ts +5 -0
- package/dist/packages/plugin-renderer-event/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-event/lib/system.d.ts +19 -0
- package/dist/packages/plugin-renderer-event/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-graphics/lib/component.d.ts +8 -0
- package/dist/packages/plugin-renderer-graphics/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-graphics/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-graphics/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-graphics/lib/system.d.ts +12 -0
- package/dist/packages/plugin-renderer-graphics/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-img/lib/component.d.ts +10 -0
- package/dist/packages/plugin-renderer-img/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-img/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-img/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-img/lib/system.d.ts +18 -0
- package/dist/packages/plugin-renderer-img/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/Lottie.d.ts +27 -0
- package/dist/packages/plugin-renderer-lottie/lib/Lottie.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/LottieSystem.d.ts +18 -0
- package/dist/packages/plugin-renderer-lottie/lib/LottieSystem.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/index.d.ts +3 -0
- package/dist/packages/plugin-renderer-lottie/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/lottie-pixi.d.ts +180 -0
- package/dist/packages/plugin-renderer-lottie/lib/lottie-pixi.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/types.d.ts +18 -0
- package/dist/packages/plugin-renderer-lottie/lib/types.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/utils.d.ts +2 -0
- package/dist/packages/plugin-renderer-lottie/lib/utils.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-mask/lib/component.d.ts +33 -0
- package/dist/packages/plugin-renderer-mask/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-mask/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-mask/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-mask/lib/system.d.ts +31 -0
- package/dist/packages/plugin-renderer-mask/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/component.d.ts +22 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/system.d.ts +19 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-render/lib/component.d.ts +17 -0
- package/dist/packages/plugin-renderer-render/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-render/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-render/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-render/lib/system.d.ts +17 -0
- package/dist/packages/plugin-renderer-render/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-spine/lib/Spine.d.ts +4 -0
- package/dist/packages/plugin-renderer-spine/lib/Spine.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-spine/lib/SpineSystem.d.ts +5 -0
- package/dist/packages/plugin-renderer-spine/lib/SpineSystem.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-spine/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-spine/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite/lib/component.d.ts +12 -0
- package/dist/packages/plugin-renderer-sprite/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-sprite/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite/lib/system.d.ts +17 -0
- package/dist/packages/plugin-renderer-sprite/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/component.d.ts +31 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/system.d.ts +31 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/component.d.ts +20 -0
- package/dist/packages/plugin-renderer-test/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-test/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/system.d.ts +21 -0
- package/dist/packages/plugin-renderer-test/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/system2.d.ts +12 -0
- package/dist/packages/plugin-renderer-test/lib/system2.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-text/lib/component.d.ts +43 -0
- package/dist/packages/plugin-renderer-text/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-text/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-text/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-text/lib/system.d.ts +22 -0
- package/dist/packages/plugin-renderer-text/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/component.d.ts +20 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/system.d.ts +18 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-sound/lib/Sound.d.ts +44 -0
- package/dist/packages/plugin-sound/lib/Sound.d.ts.map +1 -0
- package/dist/packages/plugin-sound/lib/SoundSystem.d.ts +37 -0
- package/dist/packages/plugin-sound/lib/SoundSystem.d.ts.map +1 -0
- package/dist/packages/plugin-sound/lib/index.d.ts +3 -0
- package/dist/packages/plugin-sound/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/Stats.d.ts +19 -0
- package/dist/packages/plugin-stats/lib/Stats.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/StatsComponent.d.ts +7 -0
- package/dist/packages/plugin-stats/lib/StatsComponent.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/StatsSystem.d.ts +28 -0
- package/dist/packages/plugin-stats/lib/StatsSystem.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/hooks/BaseHooks.d.ts +18 -0
- package/dist/packages/plugin-stats/lib/hooks/BaseHooks.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/hooks/GLHook.d.ts +11 -0
- package/dist/packages/plugin-stats/lib/hooks/GLHook.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/hooks/TextureHook.d.ts +16 -0
- package/dist/packages/plugin-stats/lib/hooks/TextureHook.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/index.d.ts +9 -0
- package/dist/packages/plugin-stats/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/Animation.d.ts +38 -0
- package/dist/packages/plugin-transition/lib/Animation.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/component.d.ts +35 -0
- package/dist/packages/plugin-transition/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/index.d.ts +3 -0
- package/dist/packages/plugin-transition/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/system.d.ts +6 -0
- package/dist/packages/plugin-transition/lib/system.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Application.d.ts +3 -0
- package/dist/packages/renderer-adapter/lib/Application.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Container.d.ts +5 -0
- package/dist/packages/renderer-adapter/lib/Container.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Graphics.d.ts +5 -0
- package/dist/packages/renderer-adapter/lib/Graphics.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/NinePatch.d.ts +5 -0
- package/dist/packages/renderer-adapter/lib/NinePatch.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Sprite.d.ts +9 -0
- package/dist/packages/renderer-adapter/lib/Sprite.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/SpriteAnimation.d.ts +14 -0
- package/dist/packages/renderer-adapter/lib/SpriteAnimation.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Text.d.ts +6 -0
- package/dist/packages/renderer-adapter/lib/Text.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/TilingSprite.d.ts +9 -0
- package/dist/packages/renderer-adapter/lib/TilingSprite.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/index.d.ts +9 -0
- package/dist/packages/renderer-adapter/lib/index.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/Spine.d.ts +32 -0
- package/dist/packages/spine-base/lib/Spine.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/SpineData.d.ts +5 -0
- package/dist/packages/spine-base/lib/SpineData.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/SpineSystem.d.ts +20 -0
- package/dist/packages/spine-base/lib/SpineSystem.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/TexCache.d.ts +10 -0
- package/dist/packages/spine-base/lib/TexCache.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/index.d.ts +4 -0
- package/dist/packages/spine-base/lib/index.d.ts.map +1 -0
- package/dist/renderer-adapter.cjs.js +55 -23
- package/dist/renderer-adapter.cjs.prod.js +2 -2
- package/dist/renderer-adapter.esm.js +57 -24
- package/package.json +2 -3
- package/dist/renderer-adapter.d.ts +0 -63
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Texture as PIXITexture, TilingSprite as PIXITilingSprite } from 'pixi.js';
|
|
2
|
+
export default class TilingSprite {
|
|
3
|
+
_image: HTMLImageElement | PIXITexture;
|
|
4
|
+
tilingSprite: PIXITilingSprite;
|
|
5
|
+
constructor(image: HTMLImageElement | PIXITexture);
|
|
6
|
+
set image(val: HTMLImageElement | PIXITexture<import("pixi.js").TextureSource<any>>);
|
|
7
|
+
get image(): HTMLImageElement | PIXITexture<import("pixi.js").TextureSource<any>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=TilingSprite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TilingSprite.d.ts","sourceRoot":"","sources":["TilingSprite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEnF,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,MAAM,EAAE,gBAAgB,GAAG,WAAW,CAAQ;IACvC,YAAY,EAAE,gBAAgB,CAAC;gBAE1B,KAAK,EAAE,gBAAgB,GAAG,WAAW;IAYjD,IAAI,KAAK,CAAC,GAAG,sEAAA,EAWZ;IACD,IAAI,KAAK,yEAER;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as Application } from './Application';
|
|
2
|
+
export { default as Container } from './Container';
|
|
3
|
+
export { default as Graphics } from './Graphics';
|
|
4
|
+
export { default as NinePatch } from './NinePatch';
|
|
5
|
+
export { default as Sprite } from './Sprite';
|
|
6
|
+
export { default as SpriteAnimation } from './SpriteAnimation';
|
|
7
|
+
export { default as Text } from './Text';
|
|
8
|
+
export { default as TilingSprite } from './TilingSprite';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from '@eva/eva.js';
|
|
2
|
+
export interface SpineParams {
|
|
3
|
+
resource: string;
|
|
4
|
+
animationName?: string;
|
|
5
|
+
scale?: number;
|
|
6
|
+
autoPlay?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default class Spine extends Component<SpineParams> {
|
|
9
|
+
static componentName: string;
|
|
10
|
+
resource: string;
|
|
11
|
+
scale: number;
|
|
12
|
+
animationName: string;
|
|
13
|
+
autoPlay: boolean;
|
|
14
|
+
private _armature;
|
|
15
|
+
private waitExecuteInfos;
|
|
16
|
+
set armature(val: any);
|
|
17
|
+
get armature(): any;
|
|
18
|
+
destroied: boolean;
|
|
19
|
+
addHandler: any;
|
|
20
|
+
lastResource: string;
|
|
21
|
+
init(obj?: SpineParams): void;
|
|
22
|
+
onDestroy(): void;
|
|
23
|
+
play(name?: string, loop?: boolean, track?: number): void;
|
|
24
|
+
stop(track?: number): void;
|
|
25
|
+
addAnimation(name?: string, delay?: number, loop?: boolean, track?: number): void;
|
|
26
|
+
setMix(from: string, to: string, duration: number): void;
|
|
27
|
+
getAnim(track?: number): any;
|
|
28
|
+
setDefaultMix(duration: number): void;
|
|
29
|
+
setAttachment(slotName: string, attachmentName: string): void;
|
|
30
|
+
getBone(boneName: string): any;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=Spine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spine.d.ts","sourceRoot":"","sources":["Spine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS,CAAC,WAAW,CAAC;IACvD,MAAM,CAAC,aAAa,EAAE,MAAM,CAAW;IAGvC,QAAQ,EAAE,MAAM,CAAM;IAGtB,KAAK,EAAE,MAAM,CAAK;IAGlB,aAAa,EAAE,MAAM,CAAM;IAG3B,QAAQ,EAAE,OAAO,CAAQ;IAEzB,OAAO,CAAC,SAAS,CAAM;IAEvB,OAAO,CAAC,gBAAgB,CAA8E;IAEtG,IAAI,QAAQ,CAAC,GAAG,KAAA,EAef;IACD,IAAI,QAAQ,QAEX;IAED,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,GAAG,CAAC;IAEhB,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,CAAC,GAAG,CAAC,EAAE,WAAW;IAKtB,SAAS;IAIT,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM;IA2BlD,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM;IAcnB,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM;IAa1E,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOjD,OAAO,CAAC,KAAK,GAAE,MAAU;IAWzB,aAAa,CAAC,QAAQ,EAAE,MAAM;IAO9B,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;IAOtD,OAAO,CAAC,QAAQ,EAAE,MAAM;CAMzB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const registryResource: (pixiSpine: any) => void;
|
|
2
|
+
export default function getSpineData(res: any, scale: any, pixiSpine: any): Promise<any>;
|
|
3
|
+
export declare function clearCache(): void;
|
|
4
|
+
export declare function releaseSpineData(resourceName: any, imageSrc: any): void;
|
|
5
|
+
//# sourceMappingURL=SpineData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpineData.d.ts","sourceRoot":"","sources":["SpineData.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,gBAAgB,0BAgB5B,CAAC;AAEF,wBAA8B,YAAY,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA,EAAE,SAAS,KAAA,gBAc/D;AAED,wBAAgB,UAAU,SAGzB;AAED,wBAAgB,gBAAgB,CAAC,YAAY,KAAA,EAAE,QAAQ,KAAA,QAUtD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Container } from 'pixi.js';
|
|
2
|
+
import { ComponentChanged, UpdateParams } from '@eva/eva.js';
|
|
3
|
+
import { Renderer, RendererSystem, RendererManager, ContainerManager } from '@eva/plugin-renderer';
|
|
4
|
+
export default class SpineSystem extends Renderer {
|
|
5
|
+
static systemName: string;
|
|
6
|
+
armatures: Record<number, Container>;
|
|
7
|
+
renderSystem: RendererSystem;
|
|
8
|
+
rendererManager: RendererManager;
|
|
9
|
+
containerManager: ContainerManager;
|
|
10
|
+
pixiSpine: any;
|
|
11
|
+
init({ pixiSpine }: {
|
|
12
|
+
pixiSpine: any;
|
|
13
|
+
}): void;
|
|
14
|
+
update(e: UpdateParams): void;
|
|
15
|
+
componentChanged(changed: ComponentChanged): Promise<void>;
|
|
16
|
+
add(changed: ComponentChanged, count?: number): Promise<void>;
|
|
17
|
+
change(changed: ComponentChanged): void;
|
|
18
|
+
remove(changed: ComponentChanged): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SpineSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpineSystem.d.ts","sourceRoot":"","sources":["SpineSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAc,gBAAgB,EAA2B,YAAY,EAAE,MAAM,aAAa,CAAC;AAClG,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AASnG,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;IAC/C,MAAM,CAAC,UAAU,SAAiB;IAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAM;IAC1C,YAAY,EAAE,cAAc,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,EAAE;;KAAA;IA6ClB,MAAM,CAAC,CAAC,EAAE,YAAY;IAQhB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB;IAe1C,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM;IA4EnD,MAAM,CAAC,OAAO,EAAE,gBAAgB;IAI1B,MAAM,CAAC,OAAO,EAAE,gBAAgB;CA0BvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Texture } from 'pixi.js';
|
|
2
|
+
interface CacheData {
|
|
3
|
+
image?: any;
|
|
4
|
+
}
|
|
5
|
+
export declare function retainTexture(name: string, data: CacheData): Texture<import("pixi.js").TextureSource<any>>;
|
|
6
|
+
export declare function getTexture(imageSrc: string, data: CacheData): Texture<import("pixi.js").TextureSource<any>>;
|
|
7
|
+
export declare function cleanTextures(): void;
|
|
8
|
+
export declare function releaseTexture(imageSrc: string): void;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=TexCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TexCache.d.ts","sourceRoot":"","sources":["TexCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAWD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,iDAQ1D;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,iDAO3D;AAED,wBAAgB,aAAa,SAQ5B;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,QAiB9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -33,18 +33,6 @@ function __extends(d, b) {
|
|
|
33
33
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var Application = (function (_super) {
|
|
37
|
-
__extends(Application, _super);
|
|
38
|
-
function Application(params) {
|
|
39
|
-
var _this = this;
|
|
40
|
-
params.autoStart = false;
|
|
41
|
-
_this = _super.call(this, params) || this;
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
return Application;
|
|
45
|
-
}(pixi_js.Application));
|
|
46
|
-
var Application$1 = Application;
|
|
47
|
-
|
|
48
36
|
var Container = (function (_super) {
|
|
49
37
|
__extends(Container, _super);
|
|
50
38
|
function Container() {
|
|
@@ -68,17 +56,23 @@ var NinePatch = (function (_super) {
|
|
|
68
56
|
function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
|
|
69
57
|
var _this = this;
|
|
70
58
|
var texture;
|
|
71
|
-
if (img
|
|
72
|
-
texture =
|
|
59
|
+
if (img instanceof pixi_js.Texture) {
|
|
60
|
+
texture = img;
|
|
73
61
|
}
|
|
74
62
|
else {
|
|
75
63
|
texture = pixi_js.Texture.from(img);
|
|
76
64
|
}
|
|
77
|
-
_this = _super.call(this,
|
|
65
|
+
_this = _super.call(this, {
|
|
66
|
+
texture: texture,
|
|
67
|
+
leftWidth: leftWidth,
|
|
68
|
+
topHeight: topHeight,
|
|
69
|
+
rightWidth: rightWidth,
|
|
70
|
+
bottomHeight: bottomHeight,
|
|
71
|
+
}) || this;
|
|
78
72
|
return _this;
|
|
79
73
|
}
|
|
80
74
|
return NinePatch;
|
|
81
|
-
}(pixi_js.
|
|
75
|
+
}(pixi_js.NineSliceSprite));
|
|
82
76
|
var NinePatch$1 = NinePatch;
|
|
83
77
|
|
|
84
78
|
var Sprite = (function () {
|
|
@@ -124,7 +118,7 @@ var Sprite$1 = Sprite;
|
|
|
124
118
|
var SpriteAnimation = (function () {
|
|
125
119
|
function SpriteAnimation(_a) {
|
|
126
120
|
var frames = _a.frames;
|
|
127
|
-
this.animatedSprite = new pixi_js.
|
|
121
|
+
this.animatedSprite = new pixi_js.AnimatedSprite(frames);
|
|
128
122
|
}
|
|
129
123
|
SpriteAnimation.prototype.play = function () {
|
|
130
124
|
this.animatedSprite.play();
|
|
@@ -155,27 +149,65 @@ var SpriteAnimation$1 = SpriteAnimation;
|
|
|
155
149
|
var Text = (function (_super) {
|
|
156
150
|
__extends(Text, _super);
|
|
157
151
|
function Text(text, style) {
|
|
158
|
-
|
|
152
|
+
var _this = this;
|
|
153
|
+
if (style.strokeThickness) {
|
|
154
|
+
var color = style.stroke;
|
|
155
|
+
style.stroke = {
|
|
156
|
+
color: color,
|
|
157
|
+
width: style.strokeThickness,
|
|
158
|
+
};
|
|
159
|
+
delete style['strokeThickness'];
|
|
160
|
+
}
|
|
161
|
+
if (Array.isArray(style.fill)) {
|
|
162
|
+
console.warn('Eva.js Deprecation Warning: fill array is not supported in Eva.js v2.');
|
|
163
|
+
style.fill = style.fill[0];
|
|
164
|
+
}
|
|
165
|
+
if (Array.isArray(style.fillGradientStops)) {
|
|
166
|
+
var fontSize = void 0;
|
|
167
|
+
if (style.fontSize == null) {
|
|
168
|
+
style.fontSize = pixi_js.TextStyle.defaultTextStyle.fontSize;
|
|
169
|
+
}
|
|
170
|
+
else if (typeof style.fontSize === 'string') {
|
|
171
|
+
fontSize = parseInt(style.fontSize, 10);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
fontSize = style.fontSize;
|
|
175
|
+
}
|
|
176
|
+
var gradientFill_1 = new pixi_js.FillGradient(0, 0, 0, fontSize * 1.7);
|
|
177
|
+
var fills_1 = style.fillGradientStops.map(function (color) { return pixi_js.Color.shared.setValue(color).toNumber(); });
|
|
178
|
+
fills_1.forEach(function (number, index) {
|
|
179
|
+
var ratio = index / (fills_1.length - 1);
|
|
180
|
+
gradientFill_1.addColorStop(ratio, number);
|
|
181
|
+
});
|
|
182
|
+
style.fill = {
|
|
183
|
+
fill: gradientFill_1,
|
|
184
|
+
};
|
|
185
|
+
delete style['fillGradientStops'];
|
|
186
|
+
}
|
|
187
|
+
_this = _super.call(this, {
|
|
188
|
+
text: text,
|
|
189
|
+
style: style,
|
|
190
|
+
}) || this;
|
|
191
|
+
return _this;
|
|
159
192
|
}
|
|
160
193
|
return Text;
|
|
161
194
|
}(pixi_js.Text));
|
|
162
195
|
var Text$1 = Text;
|
|
163
196
|
|
|
164
|
-
var PIXITilingSprite = pixi_js.extras.TilingSprite;
|
|
165
197
|
var TilingSprite = (function () {
|
|
166
198
|
function TilingSprite(image) {
|
|
167
199
|
this._image = null;
|
|
168
200
|
this._image = image;
|
|
169
201
|
if (image) {
|
|
170
202
|
if (image instanceof HTMLImageElement) {
|
|
171
|
-
this.tilingSprite = new
|
|
203
|
+
this.tilingSprite = new pixi_js.TilingSprite(pixi_js.Texture.from(image));
|
|
172
204
|
}
|
|
173
205
|
else if (image instanceof pixi_js.Texture) {
|
|
174
|
-
this.tilingSprite = new
|
|
206
|
+
this.tilingSprite = new pixi_js.TilingSprite(image);
|
|
175
207
|
}
|
|
176
208
|
}
|
|
177
209
|
else {
|
|
178
|
-
this.tilingSprite = new
|
|
210
|
+
this.tilingSprite = new pixi_js.TilingSprite(pixi_js.Texture.EMPTY);
|
|
179
211
|
}
|
|
180
212
|
}
|
|
181
213
|
Object.defineProperty(TilingSprite.prototype, "image", {
|
|
@@ -201,7 +233,7 @@ var TilingSprite = (function () {
|
|
|
201
233
|
}());
|
|
202
234
|
var TilingSprite$1 = TilingSprite;
|
|
203
235
|
|
|
204
|
-
exports.Application = Application
|
|
236
|
+
exports.Application = pixi_js.Application;
|
|
205
237
|
exports.Container = Container$1;
|
|
206
238
|
exports.Graphics = Graphics$1;
|
|
207
239
|
exports.NinePatch = NinePatch$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js"),e=function(t,i){return
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("pixi.js"),e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},e(t,i)};
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -12,4 +12,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
12
12
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
|
-
***************************************************************************** */function i(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(t){function e(
|
|
15
|
+
***************************************************************************** */function i(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t.Container),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t.Graphics),o=function(e){function n(i,n,r,o,s){var a;return a=i instanceof t.Texture?i:t.Texture.from(i),e.call(this,{texture:a,leftWidth:n,topHeight:r,rightWidth:o,bottomHeight:s})||this}return i(n,e),n}(t.NineSliceSprite),s=function(){function e(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.sprite=t.Sprite.from(e):e instanceof t.Texture&&(this.sprite=new t.Sprite(e)):this.sprite=new t.Sprite}return Object.defineProperty(e.prototype,"image",{get:function(){return this._image},set:function(e){this._image!==e&&(e instanceof HTMLImageElement?(this.sprite.texture&&this.sprite.texture.destroy(!1),this.sprite.texture=t.Texture.from(e)):e instanceof t.Texture&&(this.sprite.texture=e),this._image=e)},enumerable:!1,configurable:!0}),e}(),a=function(){function e(e){var i=e.frames;this.animatedSprite=new t.AnimatedSprite(i)}return e.prototype.play=function(){this.animatedSprite.play()},e.prototype.stop=function(){this.animatedSprite.stop()},e.prototype.gotoAndPlay=function(t){this.animatedSprite.gotoAndPlay(t)},e.prototype.gotoAndStop=function(t){this.animatedSprite.gotoAndStop(t)},Object.defineProperty(e.prototype,"speed",{get:function(){return this.animatedSprite.animationSpeed},set:function(t){this.animatedSprite.animationSpeed=t},enumerable:!1,configurable:!0}),e}(),p=function(e){function n(i,n){if(n.strokeThickness){var r=n.stroke;n.stroke={color:r,width:n.strokeThickness},delete n.strokeThickness}if(Array.isArray(n.fill)&&(console.warn("Eva.js Deprecation Warning: fill array is not supported in Eva.js v2."),n.fill=n.fill[0]),Array.isArray(n.fillGradientStops)){var o=void 0;null==n.fontSize?n.fontSize=t.TextStyle.defaultTextStyle.fontSize:o="string"==typeof n.fontSize?parseInt(n.fontSize,10):n.fontSize;var s=new t.FillGradient(0,0,0,1.7*o),a=n.fillGradientStops.map((function(e){return t.Color.shared.setValue(e).toNumber()}));a.forEach((function(t,e){var i=e/(a.length-1);s.addColorStop(i,t)})),n.fill={fill:s},delete n.fillGradientStops}return e.call(this,{text:i,style:n})||this}return i(n,e),n}(t.Text),u=function(){function e(e){this._image=null,this._image=e,e?e instanceof HTMLImageElement?this.tilingSprite=new t.TilingSprite(t.Texture.from(e)):e instanceof t.Texture&&(this.tilingSprite=new t.TilingSprite(e)):this.tilingSprite=new t.TilingSprite(t.Texture.EMPTY)}return Object.defineProperty(e.prototype,"image",{get:function(){return this._image},set:function(e){this._image!==e&&(e instanceof HTMLImageElement?this.tilingSprite.texture=t.Texture.from(e):e instanceof t.Texture&&(this.tilingSprite.texture=e),this._image=e)},enumerable:!1,configurable:!0}),e}();exports.Application=t.Application,exports.Container=n,exports.Graphics=r,exports.NinePatch=o,exports.Sprite=s,exports.SpriteAnimation=a,exports.Text=p,exports.TilingSprite=u;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Container as Container$2, Graphics as Graphics$2, Texture, NineSliceSprite, Sprite as Sprite$2, AnimatedSprite, TextStyle, FillGradient, Color, Text as Text$2, TilingSprite as TilingSprite$2 } from 'pixi.js';
|
|
2
|
+
export { Application } from 'pixi.js';
|
|
2
3
|
|
|
3
4
|
/*! *****************************************************************************
|
|
4
5
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -29,18 +30,6 @@ function __extends(d, b) {
|
|
|
29
30
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
var Application = (function (_super) {
|
|
33
|
-
__extends(Application, _super);
|
|
34
|
-
function Application(params) {
|
|
35
|
-
var _this = this;
|
|
36
|
-
params.autoStart = false;
|
|
37
|
-
_this = _super.call(this, params) || this;
|
|
38
|
-
return _this;
|
|
39
|
-
}
|
|
40
|
-
return Application;
|
|
41
|
-
}(Application$2));
|
|
42
|
-
var Application$1 = Application;
|
|
43
|
-
|
|
44
33
|
var Container = (function (_super) {
|
|
45
34
|
__extends(Container, _super);
|
|
46
35
|
function Container() {
|
|
@@ -64,17 +53,23 @@ var NinePatch = (function (_super) {
|
|
|
64
53
|
function NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight) {
|
|
65
54
|
var _this = this;
|
|
66
55
|
var texture;
|
|
67
|
-
if (img
|
|
68
|
-
texture =
|
|
56
|
+
if (img instanceof Texture) {
|
|
57
|
+
texture = img;
|
|
69
58
|
}
|
|
70
59
|
else {
|
|
71
60
|
texture = Texture.from(img);
|
|
72
61
|
}
|
|
73
|
-
_this = _super.call(this,
|
|
62
|
+
_this = _super.call(this, {
|
|
63
|
+
texture: texture,
|
|
64
|
+
leftWidth: leftWidth,
|
|
65
|
+
topHeight: topHeight,
|
|
66
|
+
rightWidth: rightWidth,
|
|
67
|
+
bottomHeight: bottomHeight,
|
|
68
|
+
}) || this;
|
|
74
69
|
return _this;
|
|
75
70
|
}
|
|
76
71
|
return NinePatch;
|
|
77
|
-
}(
|
|
72
|
+
}(NineSliceSprite));
|
|
78
73
|
var NinePatch$1 = NinePatch;
|
|
79
74
|
|
|
80
75
|
var Sprite = (function () {
|
|
@@ -120,7 +115,7 @@ var Sprite$1 = Sprite;
|
|
|
120
115
|
var SpriteAnimation = (function () {
|
|
121
116
|
function SpriteAnimation(_a) {
|
|
122
117
|
var frames = _a.frames;
|
|
123
|
-
this.animatedSprite = new
|
|
118
|
+
this.animatedSprite = new AnimatedSprite(frames);
|
|
124
119
|
}
|
|
125
120
|
SpriteAnimation.prototype.play = function () {
|
|
126
121
|
this.animatedSprite.play();
|
|
@@ -151,27 +146,65 @@ var SpriteAnimation$1 = SpriteAnimation;
|
|
|
151
146
|
var Text = (function (_super) {
|
|
152
147
|
__extends(Text, _super);
|
|
153
148
|
function Text(text, style) {
|
|
154
|
-
|
|
149
|
+
var _this = this;
|
|
150
|
+
if (style.strokeThickness) {
|
|
151
|
+
var color = style.stroke;
|
|
152
|
+
style.stroke = {
|
|
153
|
+
color: color,
|
|
154
|
+
width: style.strokeThickness,
|
|
155
|
+
};
|
|
156
|
+
delete style['strokeThickness'];
|
|
157
|
+
}
|
|
158
|
+
if (Array.isArray(style.fill)) {
|
|
159
|
+
console.warn('Eva.js Deprecation Warning: fill array is not supported in Eva.js v2.');
|
|
160
|
+
style.fill = style.fill[0];
|
|
161
|
+
}
|
|
162
|
+
if (Array.isArray(style.fillGradientStops)) {
|
|
163
|
+
var fontSize = void 0;
|
|
164
|
+
if (style.fontSize == null) {
|
|
165
|
+
style.fontSize = TextStyle.defaultTextStyle.fontSize;
|
|
166
|
+
}
|
|
167
|
+
else if (typeof style.fontSize === 'string') {
|
|
168
|
+
fontSize = parseInt(style.fontSize, 10);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
fontSize = style.fontSize;
|
|
172
|
+
}
|
|
173
|
+
var gradientFill_1 = new FillGradient(0, 0, 0, fontSize * 1.7);
|
|
174
|
+
var fills_1 = style.fillGradientStops.map(function (color) { return Color.shared.setValue(color).toNumber(); });
|
|
175
|
+
fills_1.forEach(function (number, index) {
|
|
176
|
+
var ratio = index / (fills_1.length - 1);
|
|
177
|
+
gradientFill_1.addColorStop(ratio, number);
|
|
178
|
+
});
|
|
179
|
+
style.fill = {
|
|
180
|
+
fill: gradientFill_1,
|
|
181
|
+
};
|
|
182
|
+
delete style['fillGradientStops'];
|
|
183
|
+
}
|
|
184
|
+
_this = _super.call(this, {
|
|
185
|
+
text: text,
|
|
186
|
+
style: style,
|
|
187
|
+
}) || this;
|
|
188
|
+
return _this;
|
|
155
189
|
}
|
|
156
190
|
return Text;
|
|
157
191
|
}(Text$2));
|
|
158
192
|
var Text$1 = Text;
|
|
159
193
|
|
|
160
|
-
var PIXITilingSprite = extras.TilingSprite;
|
|
161
194
|
var TilingSprite = (function () {
|
|
162
195
|
function TilingSprite(image) {
|
|
163
196
|
this._image = null;
|
|
164
197
|
this._image = image;
|
|
165
198
|
if (image) {
|
|
166
199
|
if (image instanceof HTMLImageElement) {
|
|
167
|
-
this.tilingSprite = new
|
|
200
|
+
this.tilingSprite = new TilingSprite$2(Texture.from(image));
|
|
168
201
|
}
|
|
169
202
|
else if (image instanceof Texture) {
|
|
170
|
-
this.tilingSprite = new
|
|
203
|
+
this.tilingSprite = new TilingSprite$2(image);
|
|
171
204
|
}
|
|
172
205
|
}
|
|
173
206
|
else {
|
|
174
|
-
this.tilingSprite = new
|
|
207
|
+
this.tilingSprite = new TilingSprite$2(Texture.EMPTY);
|
|
175
208
|
}
|
|
176
209
|
}
|
|
177
210
|
Object.defineProperty(TilingSprite.prototype, "image", {
|
|
@@ -197,4 +230,4 @@ var TilingSprite = (function () {
|
|
|
197
230
|
}());
|
|
198
231
|
var TilingSprite$1 = TilingSprite;
|
|
199
232
|
|
|
200
|
-
export {
|
|
233
|
+
export { Container$1 as Container, Graphics$1 as Graphics, NinePatch$1 as NinePatch, Sprite$1 as Sprite, SpriteAnimation$1 as SpriteAnimation, Text$1 as Text, TilingSprite$1 as TilingSprite };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eva/renderer-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "@eva/renderer-adapter",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/renderer-adapter.esm.js",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"homepage": "https://eva.js.org",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"
|
|
22
|
-
"pixi.js": "^4.8.9"
|
|
21
|
+
"pixi.js": "^8.6.3"
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Application as Application_2 } from 'pixi.js';
|
|
2
|
-
import type { ApplicationOptions } from 'pixi.js';
|
|
3
|
-
import { Container as Container_2 } from 'pixi.js';
|
|
4
|
-
import { extras } from 'pixi.js';
|
|
5
|
-
import { Graphics as Graphics_2 } from 'pixi.js';
|
|
6
|
-
import { mesh } from 'pixi.js';
|
|
7
|
-
import { Sprite as Sprite_2 } from 'pixi.js';
|
|
8
|
-
import { Text as Text_3 } from 'pixi.js';
|
|
9
|
-
import type { TextStyleOptions } from 'pixi.js';
|
|
10
|
-
import { Texture } from 'pixi.js';
|
|
11
|
-
|
|
12
|
-
export declare class Application extends Application_2 {
|
|
13
|
-
constructor(params: ApplicationOptions);
|
|
14
|
-
[propName: string]: any;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export declare class Container extends Container_2 {
|
|
18
|
-
[propName: string]: any;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare class Graphics extends Graphics_2 {
|
|
22
|
-
[propName: string]: any;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export declare class NinePatch extends mesh.NineSlicePlane {
|
|
26
|
-
constructor(img: any, leftWidth: any, topHeight: any, rightWidth: any, bottomHeight: any);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export declare class Sprite {
|
|
30
|
-
_image: HTMLImageElement | Texture;
|
|
31
|
-
sprite: Sprite_2;
|
|
32
|
-
constructor(image: HTMLImageElement | Texture);
|
|
33
|
-
set image(val: HTMLImageElement | Texture);
|
|
34
|
-
get image(): HTMLImageElement | Texture;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export declare class SpriteAnimation {
|
|
38
|
-
animatedSprite: extras.AnimatedSprite;
|
|
39
|
-
constructor({ frames }: {
|
|
40
|
-
frames: any;
|
|
41
|
-
});
|
|
42
|
-
play(): void;
|
|
43
|
-
stop(): void;
|
|
44
|
-
gotoAndPlay(frameNumber: any): void;
|
|
45
|
-
gotoAndStop(frameNumber: any): void;
|
|
46
|
-
set speed(val: number);
|
|
47
|
-
get speed(): number;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
declare class Text_2 extends Text_3 {
|
|
51
|
-
constructor(text: string, style?: TextStyleOptions);
|
|
52
|
-
}
|
|
53
|
-
export { Text_2 as Text }
|
|
54
|
-
|
|
55
|
-
export declare class TilingSprite {
|
|
56
|
-
_image: HTMLImageElement | Texture;
|
|
57
|
-
tilingSprite: extras.TilingSprite;
|
|
58
|
-
constructor(image: HTMLImageElement | Texture);
|
|
59
|
-
set image(val: HTMLImageElement | Texture);
|
|
60
|
-
get image(): HTMLImageElement | Texture;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export { }
|