@eva/plugin-renderer-nine-patch 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-nine-patch.cjs.js +9 -16
  3. package/dist/plugin-renderer-nine-patch.cjs.prod.js +1 -1
  4. package/dist/plugin-renderer-nine-patch.esm.js +10 -17
  5. package/index.js +3 -3
  6. package/package.json +4 -4
  7. package/dist/EVA.plugin.renderer.ninePatch.js +0 -224
  8. package/dist/EVA.plugin.renderer.ninePatch.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-nine-patch.d.ts +0 -46
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
-
2
1
  # @eva/plugin-renderer-nine-patch
3
2
 
4
3
  More Introduction
4
+
5
5
  - [EN](https://eva.js.org)
6
6
  - [中文](https://eva-engine.gitee.io)
7
-
@@ -79,7 +79,7 @@ function __generator(thisArg, body) {
79
79
  }
80
80
  }
81
81
 
82
- var NinePatch$1 = (function (_super) {
82
+ var NinePatch$2 = (function (_super) {
83
83
  __extends(NinePatch, _super);
84
84
  function NinePatch() {
85
85
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -119,7 +119,8 @@ var NinePatch$1 = (function (_super) {
119
119
  eva_js.decorators.IDEProp
120
120
  ], NinePatch.prototype, "bottomHeight", void 0);
121
121
  return NinePatch;
122
- }(eva_js.Component));
122
+ }(eva_js.Component));
123
+ var NinePatch$3 = NinePatch$2;
123
124
 
124
125
  var resourceKeySplit = '_s|r|c_';
125
126
  var NinePatch = (function (_super) {
@@ -194,9 +195,7 @@ var NinePatch = (function (_super) {
194
195
  NinePatch.prototype.remove = function (changed) {
195
196
  var sprite = this.ninePatch[changed.gameObject.id];
196
197
  if (sprite) {
197
- this.containerManager
198
- .getContainer(changed.gameObject.id)
199
- .removeChild(sprite);
198
+ this.containerManager.getContainer(changed.gameObject.id).removeChild(sprite);
200
199
  delete this.ninePatch[changed.gameObject.id];
201
200
  sprite.destroy({ children: true });
202
201
  }
@@ -204,18 +203,12 @@ var NinePatch = (function (_super) {
204
203
  NinePatch.systemName = 'NinePatch';
205
204
  NinePatch = __decorate([
206
205
  eva_js.decorators.componentObserver({
207
- NinePatch: [
208
- 'resource',
209
- 'spriteName',
210
- 'leftWidth',
211
- 'topHeight',
212
- 'rightWidth',
213
- 'bottomHeight',
214
- ],
206
+ NinePatch: ['resource', 'spriteName', 'leftWidth', 'topHeight', 'rightWidth', 'bottomHeight'],
215
207
  })
216
208
  ], NinePatch);
217
209
  return NinePatch;
218
- }(pluginRenderer.Renderer));
210
+ }(pluginRenderer.Renderer));
211
+ var NinePatch$1 = NinePatch;
219
212
 
220
- exports.NinePatch = NinePatch$1;
221
- exports.NinePatchSystem = NinePatch;
213
+ exports.NinePatch = NinePatch$3;
214
+ exports.NinePatchSystem = NinePatch$1;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@eva/eva.js"),e=require("@eva/plugin-renderer"),r=require("@eva/renderer-adapter"),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function n(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t,e,r,o){var n,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(i<3?n(a):i>3?n(e,r,a):n(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function a(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{h(o.next(t))}catch(t){i(t)}}function c(t){try{h(o.throw(t))}catch(t){i(t)}}function h(t){t.done?n(t.value):new r((function(e){e(t.value)})).then(a,c)}h((o=o.apply(t,e||[])).next())}))}function c(t,e){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var h=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.resource="",t.spriteName="",t.leftWidth=0,t.topHeight=0,t.rightWidth=0,t.bottomHeight=0,t}return n(r,e),r.prototype.init=function(t){this.resource=t.resource,this.spriteName=t.spriteName,this.leftWidth=t.leftWidth,this.topHeight=t.topHeight,this.rightWidth=t.rightWidth,this.bottomHeight=t.bottomHeight},r.componentName="NinePatch",i([t.decorators.IDEProp],r.prototype,"resource",void 0),i([t.decorators.IDEProp],r.prototype,"spriteName",void 0),i([t.decorators.IDEProp],r.prototype,"leftWidth",void 0),i([t.decorators.IDEProp],r.prototype,"topHeight",void 0),i([t.decorators.IDEProp],r.prototype,"rightWidth",void 0),i([t.decorators.IDEProp],r.prototype,"bottomHeight",void 0),r}(t.Component),s=function(o){function h(){var t=null!==o&&o.apply(this,arguments)||this;return t.name="NinePatch",t.ninePatch={},t}return n(h,o),h.prototype.init=function(){this.renderSystem=this.game.getSystem(e.RendererSystem),this.renderSystem.rendererManager.register(this)},h.prototype.rendererUpdate=function(t){var e=t.transform.size,r=e.width,o=e.height;this.ninePatch[t.id]&&(this.ninePatch[t.id].width=r,this.ninePatch[t.id].height=o)},h.prototype.componentChanged=function(e){return a(this,void 0,void 0,(function(){return c(this,(function(r){return"NinePatch"===e.componentName&&(e.type===t.OBSERVER_TYPE.ADD?this.add(e):e.type===t.OBSERVER_TYPE.REMOVE?this.remove(e):(this.remove(e),this.add(e))),[2]}))}))},h.prototype.add=function(e){return a(this,void 0,void 0,(function(){var o,n,i,a,h,s,p,u,d,l;return c(this,(function(c){switch(c.label){case 0:return o=e.component,[4,t.resource.getResource(o.resource)];case 1:if(n=c.sent(),i=n.type,!(a=n.data))throw new Error("GameObject:"+e.gameObject.name+"'s NinePatch resource load error");return h=i===t.RESOURCE_TYPE.SPRITE?o.resource+"_s|r|c_"+o.spriteName:a.image,s=o.leftWidth,p=o.topHeight,u=o.rightWidth,d=o.bottomHeight,l=new r.NinePatch(h,s,p,u,d),this.ninePatch[e.gameObject.id]=l,o.ninePatch=l,this.containerManager.getContainer(e.gameObject.id).addChildAt(l,0),[2]}}))}))},h.prototype.remove=function(t){var e=this.ninePatch[t.gameObject.id];e&&(this.containerManager.getContainer(t.gameObject.id).removeChild(e),delete this.ninePatch[t.gameObject.id],e.destroy({children:!0}))},h.systemName="NinePatch",h=i([t.decorators.componentObserver({NinePatch:["resource","spriteName","leftWidth","topHeight","rightWidth","bottomHeight"]})],h)}(e.Renderer);exports.NinePatch=h,exports.NinePatchSystem=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@eva/eva.js"),e=require("@eva/plugin-renderer"),r=require("@eva/renderer-adapter"),o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},o(t,e)};function n(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t,e,r,o){var n,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(i<3?n(a):i>3?n(e,r,a):n(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function a(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{h(o.next(t))}catch(t){i(t)}}function c(t){try{h(o.throw(t))}catch(t){i(t)}}function h(t){t.done?n(t.value):new r((function(e){e(t.value)})).then(a,c)}h((o=o.apply(t,e||[])).next())}))}function c(t,e){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var h=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.resource="",t.spriteName="",t.leftWidth=0,t.topHeight=0,t.rightWidth=0,t.bottomHeight=0,t}return n(r,e),r.prototype.init=function(t){this.resource=t.resource,this.spriteName=t.spriteName,this.leftWidth=t.leftWidth,this.topHeight=t.topHeight,this.rightWidth=t.rightWidth,this.bottomHeight=t.bottomHeight},r.componentName="NinePatch",i([t.decorators.IDEProp],r.prototype,"resource",void 0),i([t.decorators.IDEProp],r.prototype,"spriteName",void 0),i([t.decorators.IDEProp],r.prototype,"leftWidth",void 0),i([t.decorators.IDEProp],r.prototype,"topHeight",void 0),i([t.decorators.IDEProp],r.prototype,"rightWidth",void 0),i([t.decorators.IDEProp],r.prototype,"bottomHeight",void 0),r}(t.Component),s=h,p=function(o){function h(){var t=null!==o&&o.apply(this,arguments)||this;return t.name="NinePatch",t.ninePatch={},t}return n(h,o),h.prototype.init=function(){this.renderSystem=this.game.getSystem(e.RendererSystem),this.renderSystem.rendererManager.register(this)},h.prototype.rendererUpdate=function(t){var e=t.transform.size,r=e.width,o=e.height;this.ninePatch[t.id]&&(this.ninePatch[t.id].width=r,this.ninePatch[t.id].height=o)},h.prototype.componentChanged=function(e){return a(this,void 0,void 0,(function(){return c(this,(function(r){return"NinePatch"===e.componentName&&(e.type===t.OBSERVER_TYPE.ADD?this.add(e):e.type===t.OBSERVER_TYPE.REMOVE?this.remove(e):(this.remove(e),this.add(e))),[2]}))}))},h.prototype.add=function(e){return a(this,void 0,void 0,(function(){var o,n,i,a,h,s,p,u,d,l;return c(this,(function(c){switch(c.label){case 0:return o=e.component,[4,t.resource.getResource(o.resource)];case 1:if(n=c.sent(),i=n.type,!(a=n.data))throw new Error("GameObject:"+e.gameObject.name+"'s NinePatch resource load error");return h=i===t.RESOURCE_TYPE.SPRITE?o.resource+"_s|r|c_"+o.spriteName:a.image,s=o.leftWidth,p=o.topHeight,u=o.rightWidth,d=o.bottomHeight,l=new r.NinePatch(h,s,p,u,d),this.ninePatch[e.gameObject.id]=l,o.ninePatch=l,this.containerManager.getContainer(e.gameObject.id).addChildAt(l,0),[2]}}))}))},h.prototype.remove=function(t){var e=this.ninePatch[t.gameObject.id];e&&(this.containerManager.getContainer(t.gameObject.id).removeChild(e),delete this.ninePatch[t.gameObject.id],e.destroy({children:!0}))},h.systemName="NinePatch",h=i([t.decorators.componentObserver({NinePatch:["resource","spriteName","leftWidth","topHeight","rightWidth","bottomHeight"]})],h)}(e.Renderer);exports.NinePatch=s,exports.NinePatchSystem=p;
@@ -1,6 +1,6 @@
1
1
  import { decorators, Component, OBSERVER_TYPE, RESOURCE_TYPE, resource } from '@eva/eva.js';
2
2
  import { RendererSystem, Renderer } from '@eva/plugin-renderer';
3
- import { NinePatch as NinePatch$2 } from '@eva/renderer-adapter';
3
+ import { NinePatch as NinePatch$4 } from '@eva/renderer-adapter';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -75,7 +75,7 @@ function __generator(thisArg, body) {
75
75
  }
76
76
  }
77
77
 
78
- var NinePatch$1 = (function (_super) {
78
+ var NinePatch$2 = (function (_super) {
79
79
  __extends(NinePatch, _super);
80
80
  function NinePatch() {
81
81
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -115,7 +115,8 @@ var NinePatch$1 = (function (_super) {
115
115
  decorators.IDEProp
116
116
  ], NinePatch.prototype, "bottomHeight", void 0);
117
117
  return NinePatch;
118
- }(Component));
118
+ }(Component));
119
+ var NinePatch$3 = NinePatch$2;
119
120
 
120
121
  var resourceKeySplit = '_s|r|c_';
121
122
  var NinePatch = (function (_super) {
@@ -176,7 +177,7 @@ var NinePatch = (function (_super) {
176
177
  img = data.image;
177
178
  }
178
179
  leftWidth = component.leftWidth, topHeight = component.topHeight, rightWidth = component.rightWidth, bottomHeight = component.bottomHeight;
179
- np = new NinePatch$2(img, leftWidth, topHeight, rightWidth, bottomHeight);
180
+ np = new NinePatch$4(img, leftWidth, topHeight, rightWidth, bottomHeight);
180
181
  this.ninePatch[changed.gameObject.id] = np;
181
182
  component.ninePatch = np;
182
183
  this.containerManager
@@ -190,9 +191,7 @@ var NinePatch = (function (_super) {
190
191
  NinePatch.prototype.remove = function (changed) {
191
192
  var sprite = this.ninePatch[changed.gameObject.id];
192
193
  if (sprite) {
193
- this.containerManager
194
- .getContainer(changed.gameObject.id)
195
- .removeChild(sprite);
194
+ this.containerManager.getContainer(changed.gameObject.id).removeChild(sprite);
196
195
  delete this.ninePatch[changed.gameObject.id];
197
196
  sprite.destroy({ children: true });
198
197
  }
@@ -200,17 +199,11 @@ var NinePatch = (function (_super) {
200
199
  NinePatch.systemName = 'NinePatch';
201
200
  NinePatch = __decorate([
202
201
  decorators.componentObserver({
203
- NinePatch: [
204
- 'resource',
205
- 'spriteName',
206
- 'leftWidth',
207
- 'topHeight',
208
- 'rightWidth',
209
- 'bottomHeight',
210
- ],
202
+ NinePatch: ['resource', 'spriteName', 'leftWidth', 'topHeight', 'rightWidth', 'bottomHeight'],
211
203
  })
212
204
  ], NinePatch);
213
205
  return NinePatch;
214
- }(Renderer));
206
+ }(Renderer));
207
+ var NinePatch$1 = NinePatch;
215
208
 
216
- export { NinePatch$1 as NinePatch, NinePatch as NinePatchSystem };
209
+ export { NinePatch$3 as NinePatch, NinePatch$1 as NinePatchSystem };
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-nine-patch.cjs.prod.js')
4
+ module.exports = require('./dist/plugin-renderer-nine-patch.cjs.prod.js');
5
5
  } else {
6
- module.exports = require('./dist/plugin-renderer-nine-patch.cjs.js')
6
+ module.exports = require('./dist/plugin-renderer-nine-patch.cjs.js');
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/plugin-renderer-nine-patch",
3
- "version": "1.1.1-alpha.0",
3
+ "version": "1.1.1-fix.1",
4
4
  "description": "@eva/plugin-renderer-nine-patch",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-nine-patch.esm.js",
@@ -18,8 +18,8 @@
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/renderer-adapter": "1.1.1-alpha.0",
23
- "@eva/eva.js": "1.1.1-alpha.0"
21
+ "@eva/plugin-renderer": "1.1.1-fix.1",
22
+ "@eva/renderer-adapter": "1.1.1-fix.1",
23
+ "@eva/eva.js": "1.1.1-fix.1"
24
24
  }
25
25
  }
@@ -1,224 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@eva/eva.js'), require('@eva/plugin-renderer'), require('@eva/renderer-adapter')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@eva/eva.js', '@eva/plugin-renderer', '@eva/renderer-adapter'], 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.ninePatch = {}), global.EVA, global.EVA.plugin.renderer, global.EVA.rendererAdapter));
5
- }(this, (function (exports, eva_js, pluginRenderer, rendererAdapter) { '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 NinePatch$1 = (function (_super) {
82
- __extends(NinePatch, _super);
83
- function NinePatch() {
84
- var _this = _super !== null && _super.apply(this, arguments) || this;
85
- _this.resource = '';
86
- _this.spriteName = '';
87
- _this.leftWidth = 0;
88
- _this.topHeight = 0;
89
- _this.rightWidth = 0;
90
- _this.bottomHeight = 0;
91
- return _this;
92
- }
93
- NinePatch.prototype.init = function (obj) {
94
- this.resource = obj.resource;
95
- this.spriteName = obj.spriteName;
96
- this.leftWidth = obj.leftWidth;
97
- this.topHeight = obj.topHeight;
98
- this.rightWidth = obj.rightWidth;
99
- this.bottomHeight = obj.bottomHeight;
100
- };
101
- NinePatch.componentName = 'NinePatch';
102
- __decorate([
103
- eva_js.decorators.IDEProp
104
- ], NinePatch.prototype, "resource", void 0);
105
- __decorate([
106
- eva_js.decorators.IDEProp
107
- ], NinePatch.prototype, "spriteName", void 0);
108
- __decorate([
109
- eva_js.decorators.IDEProp
110
- ], NinePatch.prototype, "leftWidth", void 0);
111
- __decorate([
112
- eva_js.decorators.IDEProp
113
- ], NinePatch.prototype, "topHeight", void 0);
114
- __decorate([
115
- eva_js.decorators.IDEProp
116
- ], NinePatch.prototype, "rightWidth", void 0);
117
- __decorate([
118
- eva_js.decorators.IDEProp
119
- ], NinePatch.prototype, "bottomHeight", void 0);
120
- return NinePatch;
121
- }(eva_js.Component));
122
-
123
- var resourceKeySplit = '_s|r|c_';
124
- var NinePatch = (function (_super) {
125
- __extends(NinePatch, _super);
126
- function NinePatch() {
127
- var _this = _super !== null && _super.apply(this, arguments) || this;
128
- _this.name = 'NinePatch';
129
- _this.ninePatch = {};
130
- return _this;
131
- }
132
- NinePatch.prototype.init = function () {
133
- this.renderSystem = this.game.getSystem(pluginRenderer.RendererSystem);
134
- this.renderSystem.rendererManager.register(this);
135
- };
136
- NinePatch.prototype.rendererUpdate = function (gameObject) {
137
- var _a = gameObject.transform.size, width = _a.width, height = _a.height;
138
- if (this.ninePatch[gameObject.id]) {
139
- this.ninePatch[gameObject.id].width = width;
140
- this.ninePatch[gameObject.id].height = height;
141
- }
142
- };
143
- NinePatch.prototype.componentChanged = function (changed) {
144
- return __awaiter(this, void 0, void 0, function () {
145
- return __generator(this, function (_a) {
146
- if (changed.componentName === 'NinePatch') {
147
- if (changed.type === eva_js.OBSERVER_TYPE.ADD) {
148
- this.add(changed);
149
- }
150
- else if (changed.type === eva_js.OBSERVER_TYPE.REMOVE) {
151
- this.remove(changed);
152
- }
153
- else {
154
- this.remove(changed);
155
- this.add(changed);
156
- }
157
- }
158
- return [2];
159
- });
160
- });
161
- };
162
- NinePatch.prototype.add = function (changed) {
163
- return __awaiter(this, void 0, void 0, function () {
164
- var component, _a, type, data, img, leftWidth, topHeight, rightWidth, bottomHeight, np;
165
- return __generator(this, function (_b) {
166
- switch (_b.label) {
167
- case 0:
168
- component = changed.component;
169
- return [4, eva_js.resource.getResource(component.resource)];
170
- case 1:
171
- _a = _b.sent(), type = _a.type, data = _a.data;
172
- if (!data) {
173
- throw new Error("GameObject:" + changed.gameObject.name + "'s NinePatch resource load error");
174
- }
175
- if (type === eva_js.RESOURCE_TYPE.SPRITE) {
176
- img = component.resource + resourceKeySplit + component.spriteName;
177
- }
178
- else {
179
- img = data.image;
180
- }
181
- leftWidth = component.leftWidth, topHeight = component.topHeight, rightWidth = component.rightWidth, bottomHeight = component.bottomHeight;
182
- np = new rendererAdapter.NinePatch(img, leftWidth, topHeight, rightWidth, bottomHeight);
183
- this.ninePatch[changed.gameObject.id] = np;
184
- component.ninePatch = np;
185
- this.containerManager
186
- .getContainer(changed.gameObject.id)
187
- .addChildAt(np, 0);
188
- return [2];
189
- }
190
- });
191
- });
192
- };
193
- NinePatch.prototype.remove = function (changed) {
194
- var sprite = this.ninePatch[changed.gameObject.id];
195
- if (sprite) {
196
- this.containerManager
197
- .getContainer(changed.gameObject.id)
198
- .removeChild(sprite);
199
- delete this.ninePatch[changed.gameObject.id];
200
- sprite.destroy({ children: true });
201
- }
202
- };
203
- NinePatch.systemName = 'NinePatch';
204
- NinePatch = __decorate([
205
- eva_js.decorators.componentObserver({
206
- NinePatch: [
207
- 'resource',
208
- 'spriteName',
209
- 'leftWidth',
210
- 'topHeight',
211
- 'rightWidth',
212
- 'bottomHeight',
213
- ],
214
- })
215
- ], NinePatch);
216
- return NinePatch;
217
- }(pluginRenderer.Renderer));
218
-
219
- exports.NinePatch = NinePatch$1;
220
- exports.NinePatchSystem = NinePatch;
221
-
222
- Object.defineProperty(exports, '__esModule', { value: true });
223
-
224
- })));
@@ -1 +0,0 @@
1
- var e,t;e=this,t=function(e,t,r,n){"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 r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{h(n.next(e))}catch(e){i(e)}}function c(e){try{h(n.throw(e))}catch(e){i(e)}}function h(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}h((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var s=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.resource="",t.spriteName="",t.leftWidth=0,t.topHeight=0,t.rightWidth=0,t.bottomHeight=0,t}return i(r,e),r.prototype.init=function(e){this.resource=e.resource,this.spriteName=e.spriteName,this.leftWidth=e.leftWidth,this.topHeight=e.topHeight,this.rightWidth=e.rightWidth,this.bottomHeight=e.bottomHeight},r.componentName="NinePatch",a([t.decorators.IDEProp],r.prototype,"resource",void 0),a([t.decorators.IDEProp],r.prototype,"spriteName",void 0),a([t.decorators.IDEProp],r.prototype,"leftWidth",void 0),a([t.decorators.IDEProp],r.prototype,"topHeight",void 0),a([t.decorators.IDEProp],r.prototype,"rightWidth",void 0),a([t.decorators.IDEProp],r.prototype,"bottomHeight",void 0),r}(t.Component),p=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="NinePatch",t.ninePatch={},t}return i(o,e),o.prototype.init=function(){this.renderSystem=this.game.getSystem(r.RendererSystem),this.renderSystem.rendererManager.register(this)},o.prototype.rendererUpdate=function(e){var t=e.transform.size,r=t.width,n=t.height;this.ninePatch[e.id]&&(this.ninePatch[e.id].width=r,this.ninePatch[e.id].height=n)},o.prototype.componentChanged=function(e){return c(this,void 0,void 0,(function(){return h(this,(function(r){return"NinePatch"===e.componentName&&(e.type===t.OBSERVER_TYPE.ADD?this.add(e):e.type===t.OBSERVER_TYPE.REMOVE?this.remove(e):(this.remove(e),this.add(e))),[2]}))}))},o.prototype.add=function(e){return c(this,void 0,void 0,(function(){var r,o,i,a,c,s,p,u,d,l;return h(this,(function(h){switch(h.label){case 0:return r=e.component,[4,t.resource.getResource(r.resource)];case 1:if(o=h.sent(),i=o.type,!(a=o.data))throw new Error("GameObject:"+e.gameObject.name+"'s NinePatch resource load error");return c=i===t.RESOURCE_TYPE.SPRITE?r.resource+"_s|r|c_"+r.spriteName:a.image,s=r.leftWidth,p=r.topHeight,u=r.rightWidth,d=r.bottomHeight,l=new n.NinePatch(c,s,p,u,d),this.ninePatch[e.gameObject.id]=l,r.ninePatch=l,this.containerManager.getContainer(e.gameObject.id).addChildAt(l,0),[2]}}))}))},o.prototype.remove=function(e){var t=this.ninePatch[e.gameObject.id];t&&(this.containerManager.getContainer(e.gameObject.id).removeChild(t),delete this.ninePatch[e.gameObject.id],t.destroy({children:!0}))},o.systemName="NinePatch",o=a([t.decorators.componentObserver({NinePatch:["resource","spriteName","leftWidth","topHeight","rightWidth","bottomHeight"]})],o)}(r.Renderer);e.NinePatch=s,e.NinePatchSystem=p,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@eva/eva.js"),require("@eva/plugin-renderer"),require("@eva/renderer-adapter")):"function"==typeof define&&define.amd?define(["exports","@eva/eva.js","@eva/plugin-renderer","@eva/renderer-adapter"],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.ninePatch={}),e.EVA,e.EVA.plugin.renderer,e.EVA.rendererAdapter);
@@ -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,46 +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 { GameObject } from '@eva/eva.js';
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 NinePatch extends Component<NinePatchParams> {
10
- static componentName: string;
11
- ninePatch: any;
12
- resource: string;
13
- spriteName: string;
14
- leftWidth: number;
15
- topHeight: number;
16
- rightWidth: number;
17
- bottomHeight: number;
18
- init(obj?: NinePatchParams): void;
19
- }
20
-
21
- export declare interface NinePatchParams {
22
- resource: string;
23
- spriteName?: string;
24
- leftWidth?: number;
25
- topHeight?: number;
26
- rightWidth?: number;
27
- bottomHeight?: number;
28
- }
29
-
30
- export declare class NinePatchSystem extends Renderer {
31
- static systemName: string;
32
- name: string;
33
- ninePatch: {
34
- [propName: number]: any;
35
- };
36
- renderSystem: RendererSystem;
37
- rendererManager: RendererManager;
38
- containerManager: ContainerManager;
39
- init(): void;
40
- rendererUpdate(gameObject: GameObject): void;
41
- componentChanged(changed: ComponentChanged): Promise<void>;
42
- add(changed: any): Promise<void>;
43
- remove(changed: any): void;
44
- }
45
-
46
- export { }