@eva/plugin-renderer-dragonbone 1.2.6 → 1.2.7-editor.2
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.
- package/dist/EVA.plugin.renderer.dragonbone.js +1 -1
- package/dist/EVA.plugin.renderer.dragonbone.min.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/plugin-renderer-dragonbone.cjs.js +16 -5
- package/dist/plugin-renderer-dragonbone.cjs.prod.js +1 -1
- package/dist/plugin-renderer-dragonbone.esm.js +17 -6
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Field } 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,6 +39,10 @@ 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
|
+
|
|
42
46
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
43
47
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
48
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -145,16 +149,20 @@ var DragonBone$3 = (function (_super) {
|
|
|
145
149
|
};
|
|
146
150
|
DragonBone.componentName = 'DragonBone';
|
|
147
151
|
__decorate([
|
|
148
|
-
|
|
152
|
+
Field(),
|
|
153
|
+
__metadata("design:type", String)
|
|
149
154
|
], DragonBone.prototype, "resource", void 0);
|
|
150
155
|
__decorate([
|
|
151
|
-
|
|
156
|
+
Field(),
|
|
157
|
+
__metadata("design:type", String)
|
|
152
158
|
], DragonBone.prototype, "armatureName", void 0);
|
|
153
159
|
__decorate([
|
|
154
|
-
|
|
160
|
+
Field(),
|
|
161
|
+
__metadata("design:type", String)
|
|
155
162
|
], DragonBone.prototype, "animationName", void 0);
|
|
156
163
|
__decorate([
|
|
157
|
-
|
|
164
|
+
Field(),
|
|
165
|
+
__metadata("design:type", Boolean)
|
|
158
166
|
], DragonBone.prototype, "autoPlay", void 0);
|
|
159
167
|
return DragonBone;
|
|
160
168
|
}(Component));
|
|
@@ -17030,15 +17038,18 @@ var DragonBone = (function (_super) {
|
|
|
17030
17038
|
};
|
|
17031
17039
|
DragonBone.prototype.add = function (changed) {
|
|
17032
17040
|
return __awaiter(this, void 0, void 0, function () {
|
|
17033
|
-
var component, armature, _loop_1, key;
|
|
17041
|
+
var component, asyncId, armature, _loop_1, key;
|
|
17034
17042
|
return __generator(this, function (_a) {
|
|
17035
17043
|
switch (_a.label) {
|
|
17036
17044
|
case 0:
|
|
17037
17045
|
component = changed.component;
|
|
17038
17046
|
this.isRemovedMap.delete(component);
|
|
17047
|
+
asyncId = this.increaseAsyncId(changed.gameObject.id);
|
|
17039
17048
|
return [4, resource.getResource(component.resource)];
|
|
17040
17049
|
case 1:
|
|
17041
17050
|
_a.sent();
|
|
17051
|
+
if (!this.validateAsyncId(changed.gameObject.id, asyncId))
|
|
17052
|
+
return [2];
|
|
17042
17053
|
if (this.isRemovedMap.get(component)) {
|
|
17043
17054
|
this.isRemovedMap.delete(component);
|
|
17044
17055
|
return [2];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eva/plugin-renderer-dragonbone",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7-editor.2",
|
|
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": "
|
|
22
|
-
"@eva/plugin-renderer": "1.2.
|
|
23
|
-
"@eva/eva.js": "1.2.
|
|
21
|
+
"@eva/inspector-decorator": "0.1.0-alpha.1",
|
|
22
|
+
"@eva/plugin-renderer": "1.2.7-editor.2",
|
|
23
|
+
"@eva/eva.js": "1.2.7-editor.2",
|
|
24
24
|
"pixi.js": "^4.8.7"
|
|
25
25
|
}
|
|
26
26
|
}
|