@eva/plugin-renderer-graphics 1.1.1-alpha.0 → 1.1.1-fix.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.
Files changed (51) hide show
  1. package/README.md +1 -2
  2. package/dist/plugin-renderer-graphics.cjs.js +11 -8
  3. package/dist/plugin-renderer-graphics.cjs.prod.js +1 -1
  4. package/dist/plugin-renderer-graphics.esm.js +11 -8
  5. package/index.js +3 -3
  6. package/package.json +3 -3
  7. package/dist/EVA.plugin.renderer.graphics.js +0 -146
  8. package/dist/EVA.plugin.renderer.graphics.min.js +0 -1
  9. package/dist/examples/index.d.ts +0 -2
  10. package/dist/examples/index.d.ts.map +0 -1
  11. package/dist/examples/src/a11y.d.ts +0 -3
  12. package/dist/examples/src/a11y.d.ts.map +0 -1
  13. package/dist/examples/src/component.d.ts +0 -3
  14. package/dist/examples/src/component.d.ts.map +0 -1
  15. package/dist/examples/src/compressed-texture.d.ts +0 -1
  16. package/dist/examples/src/compressed-texture.d.ts.map +0 -1
  17. package/dist/examples/src/dragonbone.d.ts +0 -3
  18. package/dist/examples/src/dragonbone.d.ts.map +0 -1
  19. package/dist/examples/src/event.d.ts +0 -3
  20. package/dist/examples/src/event.d.ts.map +0 -1
  21. package/dist/examples/src/graphics.d.ts +0 -3
  22. package/dist/examples/src/graphics.d.ts.map +0 -1
  23. package/dist/examples/src/image.d.ts +0 -3
  24. package/dist/examples/src/image.d.ts.map +0 -1
  25. package/dist/examples/src/loader.d.ts +0 -3
  26. package/dist/examples/src/loader.d.ts.map +0 -1
  27. package/dist/examples/src/lottie.d.ts +0 -3
  28. package/dist/examples/src/lottie.d.ts.map +0 -1
  29. package/dist/examples/src/mask.d.ts +0 -4
  30. package/dist/examples/src/mask.d.ts.map +0 -1
  31. package/dist/examples/src/matter.d.ts +0 -3
  32. package/dist/examples/src/matter.d.ts.map +0 -1
  33. package/dist/examples/src/multi-canvas.d.ts +0 -3
  34. package/dist/examples/src/multi-canvas.d.ts.map +0 -1
  35. package/dist/examples/src/ninePatch.d.ts +0 -3
  36. package/dist/examples/src/ninePatch.d.ts.map +0 -1
  37. package/dist/examples/src/sound.d.ts +0 -3
  38. package/dist/examples/src/sound.d.ts.map +0 -1
  39. package/dist/examples/src/spine.d.ts +0 -3
  40. package/dist/examples/src/spine.d.ts.map +0 -1
  41. package/dist/examples/src/sprite.d.ts +0 -3
  42. package/dist/examples/src/sprite.d.ts.map +0 -1
  43. package/dist/examples/src/spriteAnimation.d.ts +0 -3
  44. package/dist/examples/src/spriteAnimation.d.ts.map +0 -1
  45. package/dist/examples/src/text.d.ts +0 -3
  46. package/dist/examples/src/text.d.ts.map +0 -1
  47. package/dist/examples/src/tilingSprite.d.ts +0 -3
  48. package/dist/examples/src/tilingSprite.d.ts.map +0 -1
  49. package/dist/examples/src/transition.d.ts +0 -3
  50. package/dist/examples/src/transition.d.ts.map +0 -1
  51. package/dist/plugin-renderer-graphics.d.ts +0 -25
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
-
2
1
  # @eva/plugin-renderer-graphics
3
2
 
4
3
  More Introduction
4
+
5
5
  - [EN](https://eva.js.org)
6
6
  - [中文](https://eva-engine.gitee.io)
7
-
@@ -79,15 +79,16 @@ function __generator(thisArg, body) {
79
79
  }
80
80
  }
81
81
 
82
- var Graphics$2 = (function (_super) {
82
+ var Graphics$4 = (function (_super) {
83
83
  __extends(Graphics, _super);
84
84
  function Graphics() {
85
85
  return _super !== null && _super.apply(this, arguments) || this;
86
86
  }
87
87
  return Graphics;
88
- }(pixi_js.Graphics));
88
+ }(pixi_js.Graphics));
89
+ var GraphicsEngine = Graphics$4;
89
90
 
90
- var Graphics$1 = (function (_super) {
91
+ var Graphics$2 = (function (_super) {
91
92
  __extends(Graphics, _super);
92
93
  function Graphics() {
93
94
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -95,11 +96,12 @@ var Graphics$1 = (function (_super) {
95
96
  return _this;
96
97
  }
97
98
  Graphics.prototype.init = function () {
98
- this.graphics = new Graphics$2();
99
+ this.graphics = new GraphicsEngine();
99
100
  };
100
101
  Graphics.componentName = 'Graphics';
101
102
  return Graphics;
102
- }(eva_js.Component));
103
+ }(eva_js.Component));
104
+ var Graphics$3 = Graphics$2;
103
105
 
104
106
  var Graphics = (function (_super) {
105
107
  __extends(Graphics, _super);
@@ -137,7 +139,8 @@ var Graphics = (function (_super) {
137
139
  })
138
140
  ], Graphics);
139
141
  return Graphics;
140
- }(pluginRenderer.Renderer));
142
+ }(pluginRenderer.Renderer));
143
+ var Graphics$1 = Graphics;
141
144
 
142
- exports.Graphics = Graphics$1;
143
- exports.GraphicsSystem = Graphics;
145
+ exports.Graphics = Graphics$3;
146
+ exports.GraphicsSystem = Graphics$1;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@eva/eva.js"),t=require("pixi.js"),n=require("@eva/plugin-renderer"),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(t.Graphics),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.graphics=null,t}return o(t,e),t.prototype.init=function(){this.graphics=new c},t.componentName="Graphics",t}(e.Component),u=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="Graphics",e}return o(r,t),r.prototype.init=function(){this.renderSystem=this.game.getSystem(n.RendererSystem),this.renderSystem.rendererManager.register(this)},r.prototype.componentChanged=function(t){return n=this,r=void 0,c=function(){return i(this,(function(n){return 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})),[2]}))},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{u(c.next(e))}catch(e){t(e)}}function a(e){try{u(c.throw(e))}catch(e){t(e)}}function u(t){t.done?e(t.value):new o((function(e){e(t.value)})).then(i,a)}u((c=c.apply(n,r||[])).next())}));var n,r,o,c},r.systemName="Graphics",r=function(e,t,n,r){var o,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(c=(i<3?o(c):i>3?o(t,n,c):o(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c}([e.decorators.componentObserver({Graphics:["graphics"]})],r)}(n.Renderer);exports.Graphics=a,exports.GraphicsSystem=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@eva/eva.js"),t=require("pixi.js"),n=require("@eva/plugin-renderer"),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(t.Graphics),a=c,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.graphics=null,t}return o(t,e),t.prototype.init=function(){this.graphics=new a},t.componentName="Graphics",t}(e.Component),s=u,p=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="Graphics",e}return o(r,t),r.prototype.init=function(){this.renderSystem=this.game.getSystem(n.RendererSystem),this.renderSystem.rendererManager.register(this)},r.prototype.componentChanged=function(t){return n=this,r=void 0,c=function(){return i(this,(function(n){return 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})),[2]}))},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{u(c.next(e))}catch(e){t(e)}}function a(e){try{u(c.throw(e))}catch(e){t(e)}}function u(t){t.done?e(t.value):new o((function(e){e(t.value)})).then(i,a)}u((c=c.apply(n,r||[])).next())}));var n,r,o,c},r.systemName="Graphics",r=function(e,t,n,r){var o,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(c=(i<3?o(c):i>3?o(t,n,c):o(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c}([e.decorators.componentObserver({Graphics:["graphics"]})],r),r}(n.Renderer);exports.Graphics=s,exports.GraphicsSystem=p;
@@ -1,5 +1,5 @@
1
1
  import { Component, decorators, OBSERVER_TYPE } from '@eva/eva.js';
2
- import { Graphics as Graphics$3 } from 'pixi.js';
2
+ import { Graphics as Graphics$5 } from 'pixi.js';
3
3
  import { RendererSystem, Renderer } from '@eva/plugin-renderer';
4
4
 
5
5
  /*! *****************************************************************************
@@ -75,15 +75,16 @@ function __generator(thisArg, body) {
75
75
  }
76
76
  }
77
77
 
78
- var Graphics$2 = (function (_super) {
78
+ var Graphics$4 = (function (_super) {
79
79
  __extends(Graphics, _super);
80
80
  function Graphics() {
81
81
  return _super !== null && _super.apply(this, arguments) || this;
82
82
  }
83
83
  return Graphics;
84
- }(Graphics$3));
84
+ }(Graphics$5));
85
+ var GraphicsEngine = Graphics$4;
85
86
 
86
- var Graphics$1 = (function (_super) {
87
+ var Graphics$2 = (function (_super) {
87
88
  __extends(Graphics, _super);
88
89
  function Graphics() {
89
90
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -91,11 +92,12 @@ var Graphics$1 = (function (_super) {
91
92
  return _this;
92
93
  }
93
94
  Graphics.prototype.init = function () {
94
- this.graphics = new Graphics$2();
95
+ this.graphics = new GraphicsEngine();
95
96
  };
96
97
  Graphics.componentName = 'Graphics';
97
98
  return Graphics;
98
- }(Component));
99
+ }(Component));
100
+ var Graphics$3 = Graphics$2;
99
101
 
100
102
  var Graphics = (function (_super) {
101
103
  __extends(Graphics, _super);
@@ -133,6 +135,7 @@ var Graphics = (function (_super) {
133
135
  })
134
136
  ], Graphics);
135
137
  return Graphics;
136
- }(Renderer));
138
+ }(Renderer));
139
+ var Graphics$1 = Graphics;
137
140
 
138
- export { Graphics$1 as Graphics, Graphics as GraphicsSystem };
141
+ export { Graphics$3 as Graphics, Graphics$1 as GraphicsSystem };
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- 'use strict'
1
+ 'use strict';
2
2
 
3
3
  if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./dist/plugin-renderer-graphics.cjs.prod.js')
4
+ module.exports = require('./dist/plugin-renderer-graphics.cjs.prod.js');
5
5
  } else {
6
- module.exports = require('./dist/plugin-renderer-graphics.cjs.js')
6
+ module.exports = require('./dist/plugin-renderer-graphics.cjs.js');
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/plugin-renderer-graphics",
3
- "version": "1.1.1-alpha.0",
3
+ "version": "1.1.1-fix.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": "1.1.1-alpha.0",
22
- "@eva/eva.js": "1.1.1-alpha.0"
21
+ "@eva/plugin-renderer": "1.1.1-fix.1",
22
+ "@eva/eva.js": "1.1.1-fix.1"
23
23
  }
24
24
  }
@@ -1,146 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@eva/eva.js'), require('pixi.js'), require('@eva/plugin-renderer')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@eva/eva.js', 'pixi.js', '@eva/plugin-renderer'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.EVA = global.EVA || {}, global.EVA.plugin = global.EVA.plugin || {}, global.EVA.plugin.renderer = global.EVA.plugin.renderer || {}, global.EVA.plugin.renderer.graphics = {}), global.EVA, global.PIXI, global.EVA.plugin.renderer));
5
- }(this, (function (exports, eva_js, pixi_js, pluginRenderer) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- function __decorate(decorators, target, key, desc) {
37
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
- return c > 3 && r && Object.defineProperty(target, key, r), r;
41
- }
42
-
43
- function __awaiter(thisArg, _arguments, P, generator) {
44
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
45
- return new (P || (P = Promise))(function (resolve, reject) {
46
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
47
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
48
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
49
- step((generator = generator.apply(thisArg, _arguments || [])).next());
50
- });
51
- }
52
-
53
- function __generator(thisArg, body) {
54
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
55
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
56
- function verb(n) { return function (v) { return step([n, v]); }; }
57
- function step(op) {
58
- if (f) throw new TypeError("Generator is already executing.");
59
- while (_) try {
60
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
61
- if (y = 0, t) op = [op[0] & 2, t.value];
62
- switch (op[0]) {
63
- case 0: case 1: t = op; break;
64
- case 4: _.label++; return { value: op[1], done: false };
65
- case 5: _.label++; y = op[1]; op = [0]; continue;
66
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
67
- default:
68
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
69
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
70
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
71
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
72
- if (t[2]) _.ops.pop();
73
- _.trys.pop(); continue;
74
- }
75
- op = body.call(thisArg, _);
76
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
77
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
78
- }
79
- }
80
-
81
- var Graphics$2 = (function (_super) {
82
- __extends(Graphics, _super);
83
- function Graphics() {
84
- return _super !== null && _super.apply(this, arguments) || this;
85
- }
86
- return Graphics;
87
- }(pixi_js.Graphics));
88
-
89
- var Graphics$1 = (function (_super) {
90
- __extends(Graphics, _super);
91
- function Graphics() {
92
- var _this = _super !== null && _super.apply(this, arguments) || this;
93
- _this.graphics = null;
94
- return _this;
95
- }
96
- Graphics.prototype.init = function () {
97
- this.graphics = new Graphics$2();
98
- };
99
- Graphics.componentName = 'Graphics';
100
- return Graphics;
101
- }(eva_js.Component));
102
-
103
- var Graphics = (function (_super) {
104
- __extends(Graphics, _super);
105
- function Graphics() {
106
- var _this = _super !== null && _super.apply(this, arguments) || this;
107
- _this.name = 'Graphics';
108
- return _this;
109
- }
110
- Graphics.prototype.init = function () {
111
- this.renderSystem = this.game.getSystem(pluginRenderer.RendererSystem);
112
- this.renderSystem.rendererManager.register(this);
113
- };
114
- Graphics.prototype.componentChanged = function (changed) {
115
- return __awaiter(this, void 0, void 0, function () {
116
- return __generator(this, function (_a) {
117
- if (changed.type === eva_js.OBSERVER_TYPE.ADD) {
118
- this.containerManager
119
- .getContainer(changed.gameObject.id)
120
- .addChildAt(changed.component.graphics, 0);
121
- }
122
- else if (changed.type === eva_js.OBSERVER_TYPE.REMOVE) {
123
- this.containerManager
124
- .getContainer(changed.gameObject.id)
125
- .removeChild(changed.component.graphics);
126
- changed.component.graphics.destroy({ children: true });
127
- }
128
- return [2];
129
- });
130
- });
131
- };
132
- Graphics.systemName = 'Graphics';
133
- Graphics = __decorate([
134
- eva_js.decorators.componentObserver({
135
- Graphics: ['graphics'],
136
- })
137
- ], Graphics);
138
- return Graphics;
139
- }(pluginRenderer.Renderer));
140
-
141
- exports.Graphics = Graphics$1;
142
- exports.GraphicsSystem = Graphics;
143
-
144
- Object.defineProperty(exports, '__esModule', { value: true });
145
-
146
- })));
@@ -1 +0,0 @@
1
- var e,t;e=this,t=function(e,t,n,r){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(n.Graphics),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.graphics=null,t}return i(t,e),t.prototype.init=function(){this.graphics=new u},t.componentName="Graphics",t}(t.Component),s=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="Graphics",t}return i(n,e),n.prototype.init=function(){this.renderSystem=this.game.getSystem(r.RendererSystem),this.renderSystem.rendererManager.register(this)},n.prototype.componentChanged=function(e){return a(this,void 0,void 0,(function(){return c(this,(function(n){return e.type===t.OBSERVER_TYPE.ADD?this.containerManager.getContainer(e.gameObject.id).addChildAt(e.component.graphics,0):e.type===t.OBSERVER_TYPE.REMOVE&&(this.containerManager.getContainer(e.gameObject.id).removeChild(e.component.graphics),e.component.graphics.destroy({children:!0})),[2]}))}))},n.systemName="Graphics",n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([t.decorators.componentObserver({Graphics:["graphics"]})],n)}(r.Renderer);e.Graphics=p,e.GraphicsSystem=s,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@eva/eva.js"),require("pixi.js"),require("@eva/plugin-renderer")):"function"==typeof define&&define.amd?define(["exports","@eva/eva.js","pixi.js","@eva/plugin-renderer"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).EVA=e.EVA||{},e.EVA.plugin=e.EVA.plugin||{},e.EVA.plugin.renderer=e.EVA.plugin.renderer||{},e.EVA.plugin.renderer.graphics={}),e.EVA,e.PIXI,e.EVA.plugin.renderer);
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export declare const name = "a11y";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=a11y.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["a11y.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAmYhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "component";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["component.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,cAAc,CAAC;AAChC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAsJhC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=compressed-texture.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compressed-texture.d.ts","sourceRoot":"","sources":["compressed-texture.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export declare const name = "dragonbone";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=dragonbone.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dragonbone.d.ts","sourceRoot":"","sources":["dragonbone.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,eAAe,CAAC;AACjC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA8DhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "event";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["event.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,UAAU,CAAC;AAC5B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAiFhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "graphics";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=graphics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graphics.d.ts","sourceRoot":"","sources":["graphics.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,aAAa,CAAC;AAC/B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAsDhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "image";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=image.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["image.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,UAAU,CAAC;AAC5B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA8ChC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "loader";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["loader.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA0HhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "lottie";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=lottie.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lottie.d.ts","sourceRoot":"","sources":["lottie.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAmHhC"}
@@ -1,4 +0,0 @@
1
- import "@eva/plugin-renderer-sprite";
2
- export declare const name = "mask";
3
- export declare function init(canavs: any): Promise<void>;
4
- //# sourceMappingURL=mask.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["mask.ts"],"names":[],"mappings":"AAGA,OAAO,6BAA6B,CAAC;AAErC,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAoHhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "matter";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=matter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"matter.d.ts","sourceRoot":"","sources":["matter.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA4ahC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "multi-canavs";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=multi-canvas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"multi-canvas.d.ts","sourceRoot":"","sources":["multi-canvas.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,iBAAiB,CAAC;AACnC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAoFhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "ninePatch";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=ninePatch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ninePatch.d.ts","sourceRoot":"","sources":["ninePatch.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,cAAc,CAAC;AAChC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA2EhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "sound";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=sound.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["sound.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI,UAAU,CAAC;AAC5B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA2NhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "spine";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=spine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spine.d.ts","sourceRoot":"","sources":["spine.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,UAAU,CAAC;AAC5B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA+DhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "sprite";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=sprite.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sprite.d.ts","sourceRoot":"","sources":["sprite.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA4HhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "spriteAnimation";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=spriteAnimation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spriteAnimation.d.ts","sourceRoot":"","sources":["spriteAnimation.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,oBAAoB,CAAC;AACtC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAwDhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "text";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["text.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,SAAS,CAAA;AAC1B,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBA+DhC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "tilingSprite";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=tilingSprite.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tilingSprite.d.ts","sourceRoot":"","sources":["tilingSprite.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,iBAAiB,CAAC;AACnC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAuChC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "transition";
2
- export declare function init(canvas: any): Promise<void>;
3
- //# sourceMappingURL=transition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["transition.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,eAAe,CAAC;AACjC,wBAAsB,IAAI,CAAC,MAAM,KAAA,iBAoIhC"}
@@ -1,25 +0,0 @@
1
- import { Component } from '@eva/eva.js';
2
- import { ComponentChanged } from '@eva/eva.js';
3
- import { ContainerManager } from '@eva/plugin-renderer';
4
- import { Graphics as Graphics_2 } from '@eva/renderer-adapter';
5
- import { Renderer } from '@eva/plugin-renderer';
6
- import { RendererManager } from '@eva/plugin-renderer';
7
- import { RendererSystem } from '@eva/plugin-renderer';
8
-
9
- export declare class Graphics extends Component {
10
- static componentName: string;
11
- graphics: Graphics_2;
12
- init(): void;
13
- }
14
-
15
- export declare class GraphicsSystem extends Renderer {
16
- static systemName: string;
17
- name: string;
18
- renderSystem: RendererSystem;
19
- rendererManager: RendererManager;
20
- containerManager: ContainerManager;
21
- init(): void;
22
- componentChanged(changed: ComponentChanged): Promise<void>;
23
- }
24
-
25
- export { }