modern-canvas 0.6.2 → 0.6.3
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/index.cjs +3 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5651,6 +5651,7 @@ function getNodeIid(key) {
|
|
|
5651
5651
|
return iid;
|
|
5652
5652
|
}
|
|
5653
5653
|
let Node = class extends CoreObject {
|
|
5654
|
+
meta = {};
|
|
5654
5655
|
_readyed = false;
|
|
5655
5656
|
constructor(properties, nodes = []) {
|
|
5656
5657
|
super();
|
|
@@ -6103,7 +6104,8 @@ let Node = class extends CoreObject {
|
|
|
6103
6104
|
return clearUndef({
|
|
6104
6105
|
...super.toJSON(),
|
|
6105
6106
|
is: this.is,
|
|
6106
|
-
children: this._children.length ? [...this._children.map((child) => child.toJSON())] : void 0
|
|
6107
|
+
children: this._children.length ? [...this._children.map((child) => child.toJSON())] : void 0,
|
|
6108
|
+
meta: Object.keys(this.meta).length ? { ...this.meta } : void 0
|
|
6107
6109
|
});
|
|
6108
6110
|
}
|
|
6109
6111
|
static parse(value) {
|
|
@@ -6135,9 +6137,6 @@ __decorateClass$Q([
|
|
|
6135
6137
|
__decorateClass$Q([
|
|
6136
6138
|
property({ fallback: "default" })
|
|
6137
6139
|
], Node.prototype, "internalMode", 2);
|
|
6138
|
-
__decorateClass$Q([
|
|
6139
|
-
property({ default: () => ({}) })
|
|
6140
|
-
], Node.prototype, "meta", 2);
|
|
6141
6140
|
__decorateClass$Q([
|
|
6142
6141
|
property({ protected: true })
|
|
6143
6142
|
], Node.prototype, "mask", 2);
|