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.cjs
CHANGED
|
@@ -5657,6 +5657,7 @@ function getNodeIid(key) {
|
|
|
5657
5657
|
return iid;
|
|
5658
5658
|
}
|
|
5659
5659
|
exports.Node = class Node extends CoreObject {
|
|
5660
|
+
meta = {};
|
|
5660
5661
|
_readyed = false;
|
|
5661
5662
|
constructor(properties, nodes = []) {
|
|
5662
5663
|
super();
|
|
@@ -6109,7 +6110,8 @@ exports.Node = class Node extends CoreObject {
|
|
|
6109
6110
|
return modernIdoc.clearUndef({
|
|
6110
6111
|
...super.toJSON(),
|
|
6111
6112
|
is: this.is,
|
|
6112
|
-
children: this._children.length ? [...this._children.map((child) => child.toJSON())] : void 0
|
|
6113
|
+
children: this._children.length ? [...this._children.map((child) => child.toJSON())] : void 0,
|
|
6114
|
+
meta: Object.keys(this.meta).length ? { ...this.meta } : void 0
|
|
6113
6115
|
});
|
|
6114
6116
|
}
|
|
6115
6117
|
static parse(value) {
|
|
@@ -6141,9 +6143,6 @@ __decorateClass$Q([
|
|
|
6141
6143
|
__decorateClass$Q([
|
|
6142
6144
|
modernIdoc.property({ fallback: "default" })
|
|
6143
6145
|
], exports.Node.prototype, "internalMode", 2);
|
|
6144
|
-
__decorateClass$Q([
|
|
6145
|
-
modernIdoc.property({ default: () => ({}) })
|
|
6146
|
-
], exports.Node.prototype, "meta", 2);
|
|
6147
6146
|
__decorateClass$Q([
|
|
6148
6147
|
modernIdoc.property({ protected: true })
|
|
6149
6148
|
], exports.Node.prototype, "mask", 2);
|
package/dist/index.d.cts
CHANGED
|
@@ -1643,8 +1643,8 @@ declare class Node extends CoreObject {
|
|
|
1643
1643
|
processSortMode: ProcessSortMode;
|
|
1644
1644
|
renderMode: RenderMode;
|
|
1645
1645
|
internalMode: InternalMode;
|
|
1646
|
-
meta: Record<string, any>;
|
|
1647
1646
|
mask?: Maskable;
|
|
1647
|
+
readonly meta: Record<string, any>;
|
|
1648
1648
|
protected _readyed: boolean;
|
|
1649
1649
|
constructor(properties?: Partial<NodeProperties>, nodes?: Node[]);
|
|
1650
1650
|
setProperties(properties?: Record<string, any>): this;
|
package/dist/index.d.mts
CHANGED
|
@@ -1643,8 +1643,8 @@ declare class Node extends CoreObject {
|
|
|
1643
1643
|
processSortMode: ProcessSortMode;
|
|
1644
1644
|
renderMode: RenderMode;
|
|
1645
1645
|
internalMode: InternalMode;
|
|
1646
|
-
meta: Record<string, any>;
|
|
1647
1646
|
mask?: Maskable;
|
|
1647
|
+
readonly meta: Record<string, any>;
|
|
1648
1648
|
protected _readyed: boolean;
|
|
1649
1649
|
constructor(properties?: Partial<NodeProperties>, nodes?: Node[]);
|
|
1650
1650
|
setProperties(properties?: Record<string, any>): this;
|
package/dist/index.d.ts
CHANGED
|
@@ -1643,8 +1643,8 @@ declare class Node extends CoreObject {
|
|
|
1643
1643
|
processSortMode: ProcessSortMode;
|
|
1644
1644
|
renderMode: RenderMode;
|
|
1645
1645
|
internalMode: InternalMode;
|
|
1646
|
-
meta: Record<string, any>;
|
|
1647
1646
|
mask?: Maskable;
|
|
1647
|
+
readonly meta: Record<string, any>;
|
|
1648
1648
|
protected _readyed: boolean;
|
|
1649
1649
|
constructor(properties?: Partial<NodeProperties>, nodes?: Node[]);
|
|
1650
1650
|
setProperties(properties?: Record<string, any>): this;
|