@eva/plugin-renderer-dragonbone 1.2.7-editor.9 → 1.2.7-fix.4

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.
@@ -56,6 +56,7 @@ export declare class DragonBoneSystem extends Renderer {
56
56
  containerManager: ContainerManager;
57
57
  private isRemovedMap;
58
58
  init(): void;
59
+ onDestroy(): void;
59
60
  componentChanged(changed: ComponentChanged): Promise<void>;
60
61
  add(changed: ComponentChanged): Promise<void>;
61
62
  change(changed: ComponentChanged): void;
@@ -1,4 +1,4 @@
1
- import { Field } from '@eva/inspector-decorator';
1
+ import { type } from '@eva/inspector-decorator';
2
2
  import { Component, resource, RESOURCE_TYPE, OBSERVER_TYPE, decorators } from '@eva/eva.js';
3
3
  import { Texture, Rectangle, Sprite, Graphics, BLEND_MODES, mesh, ticker } from 'pixi.js';
4
4
  import { RendererSystem, Renderer } from '@eva/plugin-renderer';
@@ -39,10 +39,6 @@ function __decorate(decorators, target, key, desc) {
39
39
  return c > 3 && r && Object.defineProperty(target, key, r), r;
40
40
  }
41
41
 
42
- function __metadata(metadataKey, metadataValue) {
43
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
44
- }
45
-
46
42
  function __awaiter(thisArg, _arguments, P, generator) {
47
43
  return new (P || (P = Promise))(function (resolve, reject) {
48
44
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -149,20 +145,16 @@ var DragonBone$3 = (function (_super) {
149
145
  };
150
146
  DragonBone.componentName = 'DragonBone';
151
147
  __decorate([
152
- Field(),
153
- __metadata("design:type", String)
148
+ type('string')
154
149
  ], DragonBone.prototype, "resource", void 0);
155
150
  __decorate([
156
- Field(),
157
- __metadata("design:type", String)
151
+ type('string')
158
152
  ], DragonBone.prototype, "armatureName", void 0);
159
153
  __decorate([
160
- Field(),
161
- __metadata("design:type", String)
154
+ type('string')
162
155
  ], DragonBone.prototype, "animationName", void 0);
163
156
  __decorate([
164
- Field(),
165
- __metadata("design:type", Boolean)
157
+ type('boolean')
166
158
  ], DragonBone.prototype, "autoPlay", void 0);
167
159
  return DragonBone;
168
160
  }(Component));
@@ -17013,6 +17005,9 @@ var DragonBone = (function (_super) {
17013
17005
  this.renderSystem.rendererManager.register(this);
17014
17006
  this.renderSystem.application.ticker.add(dragonBones$1.PixiFactory._clockHandler, dragonBones$1.PixiFactory);
17015
17007
  };
17008
+ DragonBone.prototype.onDestroy = function () {
17009
+ this.renderSystem.application.ticker.remove(dragonBones$1.PixiFactory._clockHandler, dragonBones$1.PixiFactory);
17010
+ };
17016
17011
  DragonBone.prototype.componentChanged = function (changed) {
17017
17012
  return __awaiter(this, void 0, void 0, function () {
17018
17013
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/plugin-renderer-dragonbone",
3
- "version": "1.2.7-editor.9",
3
+ "version": "1.2.7-fix.4",
4
4
  "description": "@eva/plugin-renderer-dragonbone",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-dragonbone.esm.js",
@@ -18,9 +18,9 @@
18
18
  "license": "MIT",
19
19
  "homepage": "https://eva.js.org",
20
20
  "dependencies": {
21
- "@eva/inspector-decorator": "0.1.0-alpha.2",
22
- "@eva/plugin-renderer": "1.2.7-editor.9",
23
- "@eva/eva.js": "1.2.7-editor.9",
21
+ "@eva/inspector-decorator": "^0.0.5",
22
+ "@eva/plugin-renderer": "1.2.7-fix.4",
23
+ "@eva/eva.js": "1.2.7-fix.4",
24
24
  "pixi.js": "^4.8.7"
25
25
  }
26
26
  }