@eva/plugin-renderer-nine-patch 1.2.7-editor.5 → 1.2.7-editor.8

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.
@@ -307,6 +307,14 @@ var _EVA_IIFE_ninePatch = function (exports, eva_js, pluginRenderer, rendererAda
307
307
  };
308
308
  }
309
309
 
310
+ var ExecuteMode;
311
+
312
+ (function (ExecuteMode) {
313
+ ExecuteMode[ExecuteMode["Edit"] = 2] = "Edit";
314
+ ExecuteMode[ExecuteMode["Game"] = 4] = "Game";
315
+ ExecuteMode[ExecuteMode["All"] = 6] = "All";
316
+ })(ExecuteMode || (ExecuteMode = {}));
317
+
310
318
  var NinePatch$2 = function (_super) {
311
319
  __extends(NinePatch, _super);
312
320
 
@@ -1 +1 @@
1
- window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{},window.EVA.plugin.renderer=window.EVA.plugin.renderer||{};var _EVA_IIFE_ninePatch=function(t,e,n,r){"use strict";var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},c.apply(this,arguments)};function a(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){return new(n||(n=Promise))((function(o,i){function c(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,a)}s((r=r.apply(t,e||[])).next())}))}function p(t,e){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=e.call(t,c)}catch(t){i=[6,t],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 h=function(t){function e(){var e=this.constructor,n=t.call(this,"Symbol keys are not supported yet!")||this;return Object.setPrototypeOf(n,e.prototype),n}return i(e,t),e}(Error);!function(t){function e(){var e=this.constructor,n=t.call(this,"getProperties is not a function!")||this;return Object.setPrototypeOf(n,e.prototype),n}i(e,t)}(Error);var d="IDE_PROPERTY_METADATA";function f(t,e,n,r){var o=Reflect.getMetadata("design:type",t,e),i=o===Array,a=function(t){return t===String?"string":t===Number?"number":t===Boolean?"boolean":"unknown"}(o);if("unknown"!==a&&(o=a),r){var s=r();Array.isArray(s)?(i=!0,o=s[0]):o=s}var u=Reflect.getMetadata(d,t.constructor)||{};u[e]=c({type:o,isArray:i},n),Reflect.defineMetadata(d,u,t.constructor)}function l(t,e){return function(n,r){if("symbol"==typeof r)throw new h;var o=function(t,e){return"function"==typeof t?{returnTypeFunc:t,options:e||{}}:{options:t||{}}}(t,e);f(n,r,o.options,o.returnTypeFunc)}}var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.resource="",e.spriteName="",e.leftWidth=0,e.topHeight=0,e.rightWidth=0,e.bottomHeight=0,e}return i(e,t),e.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},e.componentName="NinePatch",a([l({type:"resource"}),s("design:type",String)],e.prototype,"resource",void 0),a([l(),s("design:type",String)],e.prototype,"spriteName",void 0),a([l({step:1}),s("design:type",Number)],e.prototype,"leftWidth",void 0),a([l({step:1}),s("design:type",Number)],e.prototype,"topHeight",void 0),a([l({step:1}),s("design:type",Number)],e.prototype,"rightWidth",void 0),a([l({step:1}),s("design:type",Number)],e.prototype,"bottomHeight",void 0),e}(e.Component),g=y,m=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="NinePatch",e.ninePatch={},e}return i(o,t),o.prototype.init=function(){this.renderSystem=this.game.getSystem(n.RendererSystem),this.renderSystem.rendererManager.register(this)},o.prototype.rendererUpdate=function(t){var e=t.transform.size,n=e.width,r=e.height;this.ninePatch[t.id]&&(this.ninePatch[t.id].width=n,this.ninePatch[t.id].height=r)},o.prototype.componentChanged=function(t){return u(this,void 0,void 0,(function(){return p(this,(function(n){return"NinePatch"===t.componentName&&(t.type===e.OBSERVER_TYPE.ADD?this.add(t):t.type===e.OBSERVER_TYPE.REMOVE?this.remove(t):(this.remove(t),this.add(t))),[2]}))}))},o.prototype.add=function(t){return u(this,void 0,void 0,(function(){var n,o,i,c,a,s,u,h,d,f,l,y;return p(this,(function(p){switch(p.label){case 0:return n=t.component,o=t.gameObject.id,i=this.increaseAsyncId(o),[4,e.resource.getResource(n.resource)];case 1:return c=p.sent(),a=c.type,s=c.data,this.validateAsyncId(o,i)?s?(u=a===e.RESOURCE_TYPE.SPRITE?n.resource+"_s|r|c_"+n.spriteName:s.image,h=n.leftWidth,d=n.topHeight,f=n.rightWidth,l=n.bottomHeight,y=new r.NinePatch(u,h,d,f,l),this.ninePatch[t.gameObject.id]=y,n.ninePatch=y,this.containerManager.getContainer(t.gameObject.id).addChildAt(y,0),[2]):(console.error("GameObject:"+t.gameObject.name+"'s NinePatch resource load error"),[2]):[2]}}))}))},o.prototype.remove=function(t){var e=t.gameObject.id;this.increaseAsyncId(e);var n=this.ninePatch[e];n&&(this.containerManager.getContainer(t.gameObject.id).removeChild(n),delete this.ninePatch[t.gameObject.id],n.destroy({children:!0}))},o.systemName="NinePatch",o=a([e.decorators.componentObserver({NinePatch:["resource","spriteName","leftWidth","topHeight","rightWidth","bottomHeight"]})],o)}(n.Renderer),b=m;return t.NinePatch=g,t.NinePatchSystem=b,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA,EVA.plugin.renderer,EVA.rendererAdapter);window.EVA.plugin.renderer.ninePatch=window.EVA.plugin.renderer.ninePatch||_EVA_IIFE_ninePatch;
1
+ window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{},window.EVA.plugin.renderer=window.EVA.plugin.renderer||{};var _EVA_IIFE_ninePatch=function(t,e,n,r){"use strict";var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},c.apply(this,arguments)};function a(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){return new(n||(n=Promise))((function(o,i){function c(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,a)}s((r=r.apply(t,e||[])).next())}))}function p(t,e){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=e.call(t,c)}catch(t){i=[6,t],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 h=function(t){function e(){var e=this.constructor,n=t.call(this,"Symbol keys are not supported yet!")||this;return Object.setPrototypeOf(n,e.prototype),n}return i(e,t),e}(Error);!function(t){function e(){var e=this.constructor,n=t.call(this,"getProperties is not a function!")||this;return Object.setPrototypeOf(n,e.prototype),n}i(e,t)}(Error);var l,d="IDE_PROPERTY_METADATA";function f(t,e,n,r){var o=Reflect.getMetadata("design:type",t,e),i=o===Array,a=function(t){return t===String?"string":t===Number?"number":t===Boolean?"boolean":"unknown"}(o);if("unknown"!==a&&(o=a),r){var s=r();Array.isArray(s)?(i=!0,o=s[0]):o=s}var u=Reflect.getMetadata(d,t.constructor)||{};u[e]=c({type:o,isArray:i},n),Reflect.defineMetadata(d,u,t.constructor)}function y(t,e){return function(n,r){if("symbol"==typeof r)throw new h;var o=function(t,e){return"function"==typeof t?{returnTypeFunc:t,options:e||{}}:{options:t||{}}}(t,e);f(n,r,o.options,o.returnTypeFunc)}}!function(t){t[t.Edit=2]="Edit",t[t.Game=4]="Game",t[t.All=6]="All"}(l||(l={}));var g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.resource="",e.spriteName="",e.leftWidth=0,e.topHeight=0,e.rightWidth=0,e.bottomHeight=0,e}return i(e,t),e.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},e.componentName="NinePatch",a([y({type:"resource"}),s("design:type",String)],e.prototype,"resource",void 0),a([y(),s("design:type",String)],e.prototype,"spriteName",void 0),a([y({step:1}),s("design:type",Number)],e.prototype,"leftWidth",void 0),a([y({step:1}),s("design:type",Number)],e.prototype,"topHeight",void 0),a([y({step:1}),s("design:type",Number)],e.prototype,"rightWidth",void 0),a([y({step:1}),s("design:type",Number)],e.prototype,"bottomHeight",void 0),e}(e.Component),m=g,b=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="NinePatch",e.ninePatch={},e}return i(o,t),o.prototype.init=function(){this.renderSystem=this.game.getSystem(n.RendererSystem),this.renderSystem.rendererManager.register(this)},o.prototype.rendererUpdate=function(t){var e=t.transform.size,n=e.width,r=e.height;this.ninePatch[t.id]&&(this.ninePatch[t.id].width=n,this.ninePatch[t.id].height=r)},o.prototype.componentChanged=function(t){return u(this,void 0,void 0,(function(){return p(this,(function(n){return"NinePatch"===t.componentName&&(t.type===e.OBSERVER_TYPE.ADD?this.add(t):t.type===e.OBSERVER_TYPE.REMOVE?this.remove(t):(this.remove(t),this.add(t))),[2]}))}))},o.prototype.add=function(t){return u(this,void 0,void 0,(function(){var n,o,i,c,a,s,u,h,l,d,f,y;return p(this,(function(p){switch(p.label){case 0:return n=t.component,o=t.gameObject.id,i=this.increaseAsyncId(o),[4,e.resource.getResource(n.resource)];case 1:return c=p.sent(),a=c.type,s=c.data,this.validateAsyncId(o,i)?s?(u=a===e.RESOURCE_TYPE.SPRITE?n.resource+"_s|r|c_"+n.spriteName:s.image,h=n.leftWidth,l=n.topHeight,d=n.rightWidth,f=n.bottomHeight,y=new r.NinePatch(u,h,l,d,f),this.ninePatch[t.gameObject.id]=y,n.ninePatch=y,this.containerManager.getContainer(t.gameObject.id).addChildAt(y,0),[2]):(console.error("GameObject:"+t.gameObject.name+"'s NinePatch resource load error"),[2]):[2]}}))}))},o.prototype.remove=function(t){var e=t.gameObject.id;this.increaseAsyncId(e);var n=this.ninePatch[e];n&&(this.containerManager.getContainer(t.gameObject.id).removeChild(n),delete this.ninePatch[t.gameObject.id],n.destroy({children:!0}))},o.systemName="NinePatch",o=a([e.decorators.componentObserver({NinePatch:["resource","spriteName","leftWidth","topHeight","rightWidth","bottomHeight"]})],o)}(n.Renderer),v=b;return t.NinePatch=m,t.NinePatchSystem=v,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA,EVA.plugin.renderer,EVA.rendererAdapter);window.EVA.plugin.renderer.ninePatch=window.EVA.plugin.renderer.ninePatch||_EVA_IIFE_ninePatch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/plugin-renderer-nine-patch",
3
- "version": "1.2.7-editor.5",
3
+ "version": "1.2.7-editor.8",
4
4
  "description": "@eva/plugin-renderer-nine-patch",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-nine-patch.esm.js",
@@ -18,10 +18,10 @@
18
18
  "license": "MIT",
19
19
  "homepage": "https://eva.js.org",
20
20
  "dependencies": {
21
- "@eva/inspector-decorator": "0.1.0-alpha.1",
22
- "@eva/plugin-renderer": "1.2.7-editor.5",
23
- "@eva/renderer-adapter": "1.2.7-editor.5",
24
- "@eva/eva.js": "1.2.7-editor.5",
21
+ "@eva/inspector-decorator": "0.1.0-alpha.2",
22
+ "@eva/plugin-renderer": "1.2.7-editor.8",
23
+ "@eva/renderer-adapter": "1.2.7-editor.8",
24
+ "@eva/eva.js": "1.2.7-editor.8",
25
25
  "@types/pixi.js": "^4.8.9"
26
26
  }
27
27
  }
@@ -1,167 +0,0 @@
1
- import { __extends, __decorate, __metadata, __awaiter, __generator } from 'tslib';
2
- import { Component, OBSERVER_TYPE, RESOURCE_TYPE, resource, decorators } from '@eva/eva.js/dist/miniprogram';
3
- import { Field } from '@eva/inspector-decorator';
4
- import { RendererSystem, Renderer } from '@eva/plugin-renderer/dist/miniprogram';
5
- import { NinePatch as NinePatch$4 } from '@eva/renderer-adapter/dist/miniprogram';
6
-
7
- var NinePatch$2 = function (_super) {
8
- __extends(NinePatch, _super);
9
-
10
- function NinePatch() {
11
- var _this = _super !== null && _super.apply(this, arguments) || this;
12
-
13
- _this.resource = '';
14
- _this.spriteName = '';
15
- _this.leftWidth = 0;
16
- _this.topHeight = 0;
17
- _this.rightWidth = 0;
18
- _this.bottomHeight = 0;
19
- return _this;
20
- }
21
-
22
- NinePatch.prototype.init = function (obj) {
23
- this.resource = obj.resource;
24
- this.spriteName = obj.spriteName;
25
- this.leftWidth = obj.leftWidth;
26
- this.topHeight = obj.topHeight;
27
- this.rightWidth = obj.rightWidth;
28
- this.bottomHeight = obj.bottomHeight;
29
- };
30
-
31
- NinePatch.componentName = 'NinePatch';
32
-
33
- __decorate([Field({
34
- type: 'resource'
35
- }), __metadata("design:type", String)], NinePatch.prototype, "resource", void 0);
36
-
37
- __decorate([Field(), __metadata("design:type", String)], NinePatch.prototype, "spriteName", void 0);
38
-
39
- __decorate([Field({
40
- step: 1
41
- }), __metadata("design:type", Number)], NinePatch.prototype, "leftWidth", void 0);
42
-
43
- __decorate([Field({
44
- step: 1
45
- }), __metadata("design:type", Number)], NinePatch.prototype, "topHeight", void 0);
46
-
47
- __decorate([Field({
48
- step: 1
49
- }), __metadata("design:type", Number)], NinePatch.prototype, "rightWidth", void 0);
50
-
51
- __decorate([Field({
52
- step: 1
53
- }), __metadata("design:type", Number)], NinePatch.prototype, "bottomHeight", void 0);
54
-
55
- return NinePatch;
56
- }(Component);
57
-
58
- var NinePatch$3 = NinePatch$2;
59
- var resourceKeySplit = '_s|r|c_';
60
-
61
- var NinePatch = function (_super) {
62
- __extends(NinePatch, _super);
63
-
64
- function NinePatch() {
65
- var _this = _super !== null && _super.apply(this, arguments) || this;
66
-
67
- _this.name = 'NinePatch';
68
- _this.ninePatch = {};
69
- return _this;
70
- }
71
-
72
- NinePatch.prototype.init = function () {
73
- this.renderSystem = this.game.getSystem(RendererSystem);
74
- this.renderSystem.rendererManager.register(this);
75
- };
76
-
77
- NinePatch.prototype.rendererUpdate = function (gameObject) {
78
- var _a = gameObject.transform.size,
79
- width = _a.width,
80
- height = _a.height;
81
-
82
- if (this.ninePatch[gameObject.id]) {
83
- this.ninePatch[gameObject.id].width = width;
84
- this.ninePatch[gameObject.id].height = height;
85
- }
86
- };
87
-
88
- NinePatch.prototype.componentChanged = function (changed) {
89
- return __awaiter(this, void 0, void 0, function () {
90
- return __generator(this, function (_a) {
91
- if (changed.componentName === 'NinePatch') {
92
- if (changed.type === OBSERVER_TYPE.ADD) {
93
- this.add(changed);
94
- } else if (changed.type === OBSERVER_TYPE.REMOVE) {
95
- this.remove(changed);
96
- } else {
97
- this.remove(changed);
98
- this.add(changed);
99
- }
100
- }
101
-
102
- return [2];
103
- });
104
- });
105
- };
106
-
107
- NinePatch.prototype.add = function (changed) {
108
- return __awaiter(this, void 0, void 0, function () {
109
- var component, gameObjectId, asyncId, _a, type, data, img, leftWidth, topHeight, rightWidth, bottomHeight, np;
110
-
111
- return __generator(this, function (_b) {
112
- switch (_b.label) {
113
- case 0:
114
- component = changed.component;
115
- gameObjectId = changed.gameObject.id;
116
- asyncId = this.increaseAsyncId(gameObjectId);
117
- return [4, resource.getResource(component.resource)];
118
-
119
- case 1:
120
- _a = _b.sent(), type = _a.type, data = _a.data;
121
- if (!this.validateAsyncId(gameObjectId, asyncId)) return [2];
122
-
123
- if (!data) {
124
- console.error("GameObject:" + changed.gameObject.name + "'s NinePatch resource load error");
125
- return [2];
126
- }
127
-
128
- if (type === RESOURCE_TYPE.SPRITE) {
129
- img = component.resource + resourceKeySplit + component.spriteName;
130
- } else {
131
- img = data.image;
132
- }
133
-
134
- leftWidth = component.leftWidth, topHeight = component.topHeight, rightWidth = component.rightWidth, bottomHeight = component.bottomHeight;
135
- np = new NinePatch$4(img, leftWidth, topHeight, rightWidth, bottomHeight);
136
- this.ninePatch[changed.gameObject.id] = np;
137
- component.ninePatch = np;
138
- this.containerManager.getContainer(changed.gameObject.id).addChildAt(np, 0);
139
- return [2];
140
- }
141
- });
142
- });
143
- };
144
-
145
- NinePatch.prototype.remove = function (changed) {
146
- var gameObjectId = changed.gameObject.id;
147
- this.increaseAsyncId(gameObjectId);
148
- var sprite = this.ninePatch[gameObjectId];
149
-
150
- if (sprite) {
151
- this.containerManager.getContainer(changed.gameObject.id).removeChild(sprite);
152
- delete this.ninePatch[changed.gameObject.id];
153
- sprite.destroy({
154
- children: true
155
- });
156
- }
157
- };
158
-
159
- NinePatch.systemName = 'NinePatch';
160
- NinePatch = __decorate([decorators.componentObserver({
161
- NinePatch: ['resource', 'spriteName', 'leftWidth', 'topHeight', 'rightWidth', 'bottomHeight']
162
- })], NinePatch);
163
- return NinePatch;
164
- }(Renderer);
165
-
166
- var NinePatch$1 = NinePatch;
167
- export { NinePatch$3 as NinePatch, NinePatch$1 as NinePatchSystem };