@eva/plugin-renderer-graphics 1.2.7 → 1.2.8-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.
- package/package.json +3 -3
- package/dist/miniprogram.js +0 -66
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eva/plugin-renderer-graphics",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8-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.2.
|
|
22
|
-
"@eva/eva.js": "1.2.
|
|
21
|
+
"@eva/plugin-renderer": "1.2.8-fix.1",
|
|
22
|
+
"@eva/eva.js": "1.2.8-fix.1"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/dist/miniprogram.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { __extends, __awaiter, __generator, __decorate } from 'tslib';
|
|
2
|
-
import { Component, OBSERVER_TYPE, decorators } from '@eva/eva.js/dist/miniprogram';
|
|
3
|
-
import { Graphics as Graphics$4 } from '@eva/renderer-adapter/dist/miniprogram';
|
|
4
|
-
import { RendererSystem, Renderer } from '@eva/plugin-renderer/dist/miniprogram';
|
|
5
|
-
|
|
6
|
-
var Graphics$2 = function (_super) {
|
|
7
|
-
__extends(Graphics, _super);
|
|
8
|
-
|
|
9
|
-
function Graphics() {
|
|
10
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
-
|
|
12
|
-
_this.graphics = null;
|
|
13
|
-
return _this;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
Graphics.prototype.init = function () {
|
|
17
|
-
this.graphics = new Graphics$4();
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
Graphics.componentName = 'Graphics';
|
|
21
|
-
return Graphics;
|
|
22
|
-
}(Component);
|
|
23
|
-
|
|
24
|
-
var Graphics$3 = Graphics$2;
|
|
25
|
-
|
|
26
|
-
var Graphics = function (_super) {
|
|
27
|
-
__extends(Graphics, _super);
|
|
28
|
-
|
|
29
|
-
function Graphics() {
|
|
30
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
31
|
-
|
|
32
|
-
_this.name = 'Graphics';
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
Graphics.prototype.init = function () {
|
|
37
|
-
this.renderSystem = this.game.getSystem(RendererSystem);
|
|
38
|
-
this.renderSystem.rendererManager.register(this);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
Graphics.prototype.componentChanged = function (changed) {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
if (changed.type === OBSERVER_TYPE.ADD) {
|
|
45
|
-
this.containerManager.getContainer(changed.gameObject.id).addChildAt(changed.component.graphics, 0);
|
|
46
|
-
} else if (changed.type === OBSERVER_TYPE.REMOVE) {
|
|
47
|
-
this.containerManager.getContainer(changed.gameObject.id).removeChild(changed.component.graphics);
|
|
48
|
-
changed.component.graphics.destroy({
|
|
49
|
-
children: true
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return [2];
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
Graphics.systemName = 'Graphics';
|
|
59
|
-
Graphics = __decorate([decorators.componentObserver({
|
|
60
|
-
Graphics: ['graphics']
|
|
61
|
-
})], Graphics);
|
|
62
|
-
return Graphics;
|
|
63
|
-
}(Renderer);
|
|
64
|
-
|
|
65
|
-
var Graphics$1 = Graphics;
|
|
66
|
-
export { Graphics$3 as Graphics, Graphics$1 as GraphicsSystem };
|