@safe-engine/cocos 2.6.10 → 2.7.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/dist/core/Scene.d.ts
CHANGED
package/dist/core/Scene.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../src/core/Scene.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGvD,qBAAa,cAAe,SAAQ,iBAAiB;IACnD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5B,MAAM;
|
|
1
|
+
{"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../src/core/Scene.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGvD,qBAAa,cAAe,SAAQ,iBAAiB;IACnD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC5B,MAAM,IAWqB,GAAG;CAE/B"}
|
package/dist/core/decorator.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EnhancedComponent } from './EnhancedComponent';
|
|
|
2
2
|
import { NodeComp } from './NodeComp';
|
|
3
3
|
export declare class ComponentX<Props = object, C extends cc.Node = cc.Node> extends EnhancedComponent<Props, NodeComp<C>> {
|
|
4
4
|
getRenderNode(): C;
|
|
5
|
-
render?():
|
|
5
|
+
render?(): any;
|
|
6
6
|
}
|
|
7
7
|
export declare function render(): any;
|
|
8
8
|
//# sourceMappingURL=decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/core/decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,qBAAa,UAAU,CAAC,KAAK,GAAG,MAAM,EAAE,CAAC,SAAS,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAE,SAAQ,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAChH,aAAa,IAAI,CAAC;IAIlB,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/core/decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,qBAAa,UAAU,CAAC,KAAK,GAAG,MAAM,EAAE,CAAC,SAAS,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAE,SAAQ,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAChH,aAAa,IAAI,CAAC;IAIlB,MAAM,CAAC;CACR;AAED,wBAAgB,MAAM,QAKrB"}
|
package/dist/polyfills.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare class _Vec2 {
|
|
|
22
22
|
export type Vec2 = _Vec2;
|
|
23
23
|
export declare function Vec2(x?: number | object, y?: number): Vec2;
|
|
24
24
|
export declare namespace Vec2 {
|
|
25
|
-
var ZERO:
|
|
25
|
+
var ZERO: Readonly<_Vec2>;
|
|
26
26
|
}
|
|
27
27
|
export declare enum SpriteType {
|
|
28
28
|
SIMPLE = 0,
|
package/dist/polyfills.js
CHANGED
|
@@ -87,7 +87,7 @@ class _Vec2 {
|
|
|
87
87
|
export function Vec2(x, y) {
|
|
88
88
|
return new _Vec2(x, y);
|
|
89
89
|
}
|
|
90
|
-
Vec2.ZERO =
|
|
90
|
+
Vec2.ZERO = Object.freeze(Vec2(0, 0));
|
|
91
91
|
export var SpriteType;
|
|
92
92
|
(function (SpriteType) {
|
|
93
93
|
SpriteType[SpriteType["SIMPLE"] = 0] = "SIMPLE";
|