@eva/plugin-renderer-graphics 2.0.1 → 2.0.2-beta.1

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 +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;
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;
@@ -55,19 +55,19 @@ class Graphics$2 extends eva_js.Component {
55
55
  /** 组件名称 */
56
56
  Graphics$2.componentName = 'Graphics';
57
57
 
58
- /*! *****************************************************************************
59
- Copyright (c) Microsoft Corporation. All rights reserved.
60
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
61
- this file except in compliance with the License. You may obtain a copy of the
62
- License at http://www.apache.org/licenses/LICENSE-2.0
58
+ /******************************************************************************
59
+ Copyright (c) Microsoft Corporation.
63
60
 
64
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
65
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
66
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
67
- MERCHANTABLITY OR NON-INFRINGEMENT.
61
+ Permission to use, copy, modify, and/or distribute this software for any
62
+ purpose with or without fee is hereby granted.
68
63
 
69
- See the Apache Version 2.0 License for specific language governing permissions
70
- and limitations under the License.
64
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
65
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
66
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
67
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
68
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
69
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
70
+ PERFORMANCE OF THIS SOFTWARE.
71
71
  ***************************************************************************** */
72
72
 
73
73
  function __decorate(decorators, target, key, desc) {
@@ -78,13 +78,19 @@ function __decorate(decorators, target, key, desc) {
78
78
  }
79
79
 
80
80
  function __awaiter(thisArg, _arguments, P, generator) {
81
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
81
82
  return new (P || (P = Promise))(function (resolve, reject) {
82
83
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
83
84
  function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
84
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
85
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
85
86
  step((generator = generator.apply(thisArg, _arguments || [])).next());
86
87
  });
87
- }
88
+ }
89
+
90
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
91
+ var e = new Error(message);
92
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
93
+ };
88
94
 
89
95
  let Graphics = class Graphics extends pluginRenderer.Renderer {
90
96
  constructor() {
@@ -1,16 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@eva/eva.js"),t=require("pixi.js"),r=require("@eva/plugin-renderer");class n extends t.Graphics{}class i extends e.Component{constructor(){super(...arguments),this.graphics=null}init(){this.graphics=new n}}i.componentName="Graphics";let s=class extends r.Renderer{constructor(){super(...arguments),this.name="Graphics"}init(){this.renderSystem=this.game.getSystem(r.RendererSystem),this.renderSystem.rendererManager.register(this)}componentChanged(t){return r=this,n=void 0,s=function*(){t.type===e.OBSERVER_TYPE.ADD?this.containerManager.getContainer(t.gameObject.id).addChildAt(t.component.graphics,0):t.type===e.OBSERVER_TYPE.REMOVE&&(this.containerManager.getContainer(t.gameObject.id).removeChild(t.component.graphics),t.component.graphics.destroy({children:!0}))},new((i=void 0)||(i=Promise))((function(e,t){function c(e){try{a(s.next(e))}catch(e){t(e)}}function o(e){try{a(s.throw(e))}catch(e){t(e)}}function a(t){t.done?e(t.value):new i((function(e){e(t.value)})).then(c,o)}a((s=s.apply(r,n||[])).next())}));var r,n,i,s}};s.systemName="Graphics",s=
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
- this file except in compliance with the License. You may obtain a copy of the
6
- License at http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
- MERCHANTABLITY OR NON-INFRINGEMENT.
12
-
13
- See the Apache Version 2.0 License for specific language governing permissions
14
- and limitations under the License.
15
- ***************************************************************************** */
16
- function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c}([e.decorators.componentObserver({Graphics:["graphics"]})],s);var c=s;exports.Graphics=i,exports.GraphicsSystem=c;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@eva/eva.js"),t=require("pixi.js"),r=require("@eva/plugin-renderer");class n extends t.Graphics{}class s extends e.Component{constructor(){super(...arguments),this.graphics=null}init(){this.graphics=new n}}function i(e,t,r,n){return new(r||(r=Promise))(function(s,i){function o(e){try{a(n.next(e))}catch(e){i(e)}}function c(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,c)}a((n=n.apply(e,t||[])).next())})}s.componentName="Graphics","function"==typeof SuppressedError&&SuppressedError;let o=class extends r.Renderer{constructor(){super(...arguments),this.name="Graphics"}init(){this.renderSystem=this.game.getSystem(r.RendererSystem),this.renderSystem.rendererManager.register(this)}componentChanged(t){return i(this,void 0,void 0,function*(){t.type===e.OBSERVER_TYPE.ADD?this.containerManager.getContainer(t.gameObject.id).addChildAt(t.component.graphics,0):t.type===e.OBSERVER_TYPE.REMOVE&&(this.containerManager.getContainer(t.gameObject.id).removeChild(t.component.graphics),t.component.graphics.destroy({children:!0}))})}};o.systemName="Graphics",o=function(e,t,r,n){var s,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}([e.decorators.componentObserver({Graphics:["graphics"]})],o);var c=o;exports.Graphics=s,exports.GraphicsSystem=c;
@@ -51,19 +51,19 @@ class Graphics$2 extends Component {
51
51
  /** 组件名称 */
52
52
  Graphics$2.componentName = 'Graphics';
53
53
 
54
- /*! *****************************************************************************
55
- Copyright (c) Microsoft Corporation. All rights reserved.
56
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
57
- this file except in compliance with the License. You may obtain a copy of the
58
- License at http://www.apache.org/licenses/LICENSE-2.0
54
+ /******************************************************************************
55
+ Copyright (c) Microsoft Corporation.
59
56
 
60
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
61
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
62
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
63
- MERCHANTABLITY OR NON-INFRINGEMENT.
57
+ Permission to use, copy, modify, and/or distribute this software for any
58
+ purpose with or without fee is hereby granted.
64
59
 
65
- See the Apache Version 2.0 License for specific language governing permissions
66
- and limitations under the License.
60
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
61
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
62
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
63
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
64
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66
+ PERFORMANCE OF THIS SOFTWARE.
67
67
  ***************************************************************************** */
68
68
 
69
69
  function __decorate(decorators, target, key, desc) {
@@ -74,13 +74,19 @@ function __decorate(decorators, target, key, desc) {
74
74
  }
75
75
 
76
76
  function __awaiter(thisArg, _arguments, P, generator) {
77
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
77
78
  return new (P || (P = Promise))(function (resolve, reject) {
78
79
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
79
80
  function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
80
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
81
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
81
82
  step((generator = generator.apply(thisArg, _arguments || [])).next());
82
83
  });
83
- }
84
+ }
85
+
86
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
87
+ var e = new Error(message);
88
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
89
+ };
84
90
 
85
91
  let Graphics = class Graphics extends Renderer {
86
92
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/plugin-renderer-graphics",
3
- "version": "2.0.1",
3
+ "version": "2.0.2-beta.1",
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.1",
22
- "@eva/eva.js": "2.0.1"
21
+ "@eva/plugin-renderer": "2.0.2-beta.1",
22
+ "@eva/eva.js": "2.0.2-beta.1"
23
23
  }
24
24
  }