@eva/plugin-renderer-graphics 2.0.0-beta.9 → 2.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
globalThis.EVA = globalThis.EVA || {};
|
|
2
|
+
globalThis.EVA.plugin = globalThis.EVA.plugin || {};
|
|
3
|
+
globalThis.EVA.plugin.renderer = globalThis.EVA.plugin.renderer || {};
|
|
4
4
|
var _EVA_IIFE_graphics = function (exports, eva_js, pixi_js, pluginRenderer) {
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
@@ -83,4 +83,4 @@ var _EVA_IIFE_graphics = function (exports, eva_js, pixi_js, pluginRenderer) {
|
|
|
83
83
|
});
|
|
84
84
|
return exports;
|
|
85
85
|
}({}, EVA, PIXI, EVA.plugin.renderer);
|
|
86
|
-
|
|
86
|
+
globalThis.EVA.plugin.renderer.graphics = globalThis.EVA.plugin.renderer.graphics || _EVA_IIFE_graphics;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
globalThis.EVA=globalThis.EVA||{},globalThis.EVA.plugin=globalThis.EVA.plugin||{},globalThis.EVA.plugin.renderer=globalThis.EVA.plugin.renderer||{};var _EVA_IIFE_graphics=function(e,r,n,t){"use strict";class i extends n.Graphics{}class s extends r.Component{constructor(){super(...arguments),this.graphics=null}init(){this.graphics=new i}}function c(e,r,n,t){return new(n||(n=Promise))((function(i,s){function c(e){try{o(t.next(e))}catch(e){s(e)}}function a(e){try{o(t.throw(e))}catch(e){s(e)}}function o(e){var r;e.done?i(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(c,a)}o((t=t.apply(e,r||[])).next())}))}s.componentName="Graphics";let a=class extends t.Renderer{constructor(){super(...arguments),this.name="Graphics"}init(){this.renderSystem=this.game.getSystem(t.RendererSystem),this.renderSystem.rendererManager.register(this)}componentChanged(e){return c(this,void 0,void 0,(function*(){e.type===r.OBSERVER_TYPE.ADD?this.containerManager.getContainer(e.gameObject.id).addChildAt(e.component.graphics,0):e.type===r.OBSERVER_TYPE.REMOVE&&(this.containerManager.getContainer(e.gameObject.id).removeChild(e.component.graphics),e.component.graphics.destroy({children:!0}))}))}};a.systemName="Graphics",a=function(e,r,n,t){var i,s=arguments.length,c=s<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,r,n,t);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(r,n,c):i(r,n))||c);return s>3&&c&&Object.defineProperty(r,n,c),c}([r.decorators.componentObserver({Graphics:["graphics"]})],a);var o=a;return e.Graphics=s,e.GraphicsSystem=o,Object.defineProperty(e,"__esModule",{value:!0}),e}({},EVA,PIXI,EVA.plugin.renderer);globalThis.EVA.plugin.renderer.graphics=globalThis.EVA.plugin.renderer.graphics||_EVA_IIFE_graphics;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eva/plugin-renderer-graphics",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "@eva/plugin-renderer-graphics",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-graphics.esm.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"homepage": "https://eva.js.org",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@eva/plugin-renderer": "2.0.0
|
|
22
|
-
"@eva/eva.js": "2.0.0
|
|
21
|
+
"@eva/plugin-renderer": "2.0.0",
|
|
22
|
+
"@eva/eva.js": "2.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|