microboard-temp 0.13.82 → 0.13.84
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/cjs/browser.js +38 -5
- package/dist/cjs/index.js +38 -5
- package/dist/cjs/node.js +38 -5
- package/dist/esm/browser.js +38 -5
- package/dist/esm/index.js +38 -5
- package/dist/esm/node.js +38 -5
- package/dist/types/Items/Frame/Frame.d.ts +3 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -13221,7 +13221,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13221
13221
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13222
13222
|
}
|
|
13223
13223
|
addChildItems(children) {
|
|
13224
|
-
if (!this.index) {
|
|
13224
|
+
if (!this.index || children.length === 0) {
|
|
13225
13225
|
return;
|
|
13226
13226
|
}
|
|
13227
13227
|
this.emit({
|
|
@@ -13236,6 +13236,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13236
13236
|
return;
|
|
13237
13237
|
}
|
|
13238
13238
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13239
|
+
if (childrenArr.length === 0) {
|
|
13240
|
+
return;
|
|
13241
|
+
}
|
|
13239
13242
|
this.emit({
|
|
13240
13243
|
class: this.itemType,
|
|
13241
13244
|
method: "removeChildren",
|
|
@@ -59955,6 +59958,29 @@ var init_Frame = __esm(() => {
|
|
|
59955
59958
|
this.board = board;
|
|
59956
59959
|
return this;
|
|
59957
59960
|
}
|
|
59961
|
+
addChildItems(children) {
|
|
59962
|
+
if (!this.index || children.length === 0)
|
|
59963
|
+
return;
|
|
59964
|
+
this.emit({
|
|
59965
|
+
class: this.itemType,
|
|
59966
|
+
method: "addChildren",
|
|
59967
|
+
item: [this.getId()],
|
|
59968
|
+
childId: children.map((child) => child.getId())
|
|
59969
|
+
});
|
|
59970
|
+
}
|
|
59971
|
+
removeChildItems(children) {
|
|
59972
|
+
if (!this.index)
|
|
59973
|
+
return;
|
|
59974
|
+
const childrenArr = Array.isArray(children) ? children : [children];
|
|
59975
|
+
if (childrenArr.length === 0)
|
|
59976
|
+
return;
|
|
59977
|
+
this.emit({
|
|
59978
|
+
class: this.itemType,
|
|
59979
|
+
method: "removeChildren",
|
|
59980
|
+
item: [this.getId()],
|
|
59981
|
+
childId: childrenArr.map((child) => child.getId())
|
|
59982
|
+
});
|
|
59983
|
+
}
|
|
59958
59984
|
getLinkTo() {
|
|
59959
59985
|
return this.linkTo.link;
|
|
59960
59986
|
}
|
|
@@ -60144,6 +60170,17 @@ var init_Frame = __esm(() => {
|
|
|
60144
60170
|
this.path.setBorderOpacity(this.borderOpacity);
|
|
60145
60171
|
}
|
|
60146
60172
|
apply(op) {
|
|
60173
|
+
if (op.class === "Frame") {
|
|
60174
|
+
if (op.method === "addChildren" || op.method === "addChild") {
|
|
60175
|
+
this.applyAddChildren(op.childId);
|
|
60176
|
+
this.subject.publish(this);
|
|
60177
|
+
return;
|
|
60178
|
+
} else if (op.method === "removeChildren" || op.method === "removeChild") {
|
|
60179
|
+
this.applyRemoveChildren(op.childId);
|
|
60180
|
+
this.subject.publish(this);
|
|
60181
|
+
return;
|
|
60182
|
+
}
|
|
60183
|
+
}
|
|
60147
60184
|
super.apply(op);
|
|
60148
60185
|
switch (op.class) {
|
|
60149
60186
|
case "Frame":
|
|
@@ -60153,10 +60190,6 @@ var init_Frame = __esm(() => {
|
|
|
60153
60190
|
this.applyCanChangeRatio(op.canChangeRatio);
|
|
60154
60191
|
} else if (op.method === "setFrameType") {
|
|
60155
60192
|
this.applyFrameType(op.shapeType);
|
|
60156
|
-
} else if (op.method === "addChild") {
|
|
60157
|
-
this.applyAddChildren(op.childId);
|
|
60158
|
-
} else if (op.method === "removeChild") {
|
|
60159
|
-
this.applyRemoveChildren(op.childId);
|
|
60160
60193
|
}
|
|
60161
60194
|
break;
|
|
60162
60195
|
case "RichText":
|
package/dist/cjs/index.js
CHANGED
|
@@ -13221,7 +13221,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13221
13221
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13222
13222
|
}
|
|
13223
13223
|
addChildItems(children) {
|
|
13224
|
-
if (!this.index) {
|
|
13224
|
+
if (!this.index || children.length === 0) {
|
|
13225
13225
|
return;
|
|
13226
13226
|
}
|
|
13227
13227
|
this.emit({
|
|
@@ -13236,6 +13236,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13236
13236
|
return;
|
|
13237
13237
|
}
|
|
13238
13238
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13239
|
+
if (childrenArr.length === 0) {
|
|
13240
|
+
return;
|
|
13241
|
+
}
|
|
13239
13242
|
this.emit({
|
|
13240
13243
|
class: this.itemType,
|
|
13241
13244
|
method: "removeChildren",
|
|
@@ -59955,6 +59958,29 @@ var init_Frame = __esm(() => {
|
|
|
59955
59958
|
this.board = board;
|
|
59956
59959
|
return this;
|
|
59957
59960
|
}
|
|
59961
|
+
addChildItems(children) {
|
|
59962
|
+
if (!this.index || children.length === 0)
|
|
59963
|
+
return;
|
|
59964
|
+
this.emit({
|
|
59965
|
+
class: this.itemType,
|
|
59966
|
+
method: "addChildren",
|
|
59967
|
+
item: [this.getId()],
|
|
59968
|
+
childId: children.map((child) => child.getId())
|
|
59969
|
+
});
|
|
59970
|
+
}
|
|
59971
|
+
removeChildItems(children) {
|
|
59972
|
+
if (!this.index)
|
|
59973
|
+
return;
|
|
59974
|
+
const childrenArr = Array.isArray(children) ? children : [children];
|
|
59975
|
+
if (childrenArr.length === 0)
|
|
59976
|
+
return;
|
|
59977
|
+
this.emit({
|
|
59978
|
+
class: this.itemType,
|
|
59979
|
+
method: "removeChildren",
|
|
59980
|
+
item: [this.getId()],
|
|
59981
|
+
childId: childrenArr.map((child) => child.getId())
|
|
59982
|
+
});
|
|
59983
|
+
}
|
|
59958
59984
|
getLinkTo() {
|
|
59959
59985
|
return this.linkTo.link;
|
|
59960
59986
|
}
|
|
@@ -60144,6 +60170,17 @@ var init_Frame = __esm(() => {
|
|
|
60144
60170
|
this.path.setBorderOpacity(this.borderOpacity);
|
|
60145
60171
|
}
|
|
60146
60172
|
apply(op) {
|
|
60173
|
+
if (op.class === "Frame") {
|
|
60174
|
+
if (op.method === "addChildren" || op.method === "addChild") {
|
|
60175
|
+
this.applyAddChildren(op.childId);
|
|
60176
|
+
this.subject.publish(this);
|
|
60177
|
+
return;
|
|
60178
|
+
} else if (op.method === "removeChildren" || op.method === "removeChild") {
|
|
60179
|
+
this.applyRemoveChildren(op.childId);
|
|
60180
|
+
this.subject.publish(this);
|
|
60181
|
+
return;
|
|
60182
|
+
}
|
|
60183
|
+
}
|
|
60147
60184
|
super.apply(op);
|
|
60148
60185
|
switch (op.class) {
|
|
60149
60186
|
case "Frame":
|
|
@@ -60153,10 +60190,6 @@ var init_Frame = __esm(() => {
|
|
|
60153
60190
|
this.applyCanChangeRatio(op.canChangeRatio);
|
|
60154
60191
|
} else if (op.method === "setFrameType") {
|
|
60155
60192
|
this.applyFrameType(op.shapeType);
|
|
60156
|
-
} else if (op.method === "addChild") {
|
|
60157
|
-
this.applyAddChildren(op.childId);
|
|
60158
|
-
} else if (op.method === "removeChild") {
|
|
60159
|
-
this.applyRemoveChildren(op.childId);
|
|
60160
60193
|
}
|
|
60161
60194
|
break;
|
|
60162
60195
|
case "RichText":
|
package/dist/cjs/node.js
CHANGED
|
@@ -13241,7 +13241,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13241
13241
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13242
13242
|
}
|
|
13243
13243
|
addChildItems(children) {
|
|
13244
|
-
if (!this.index) {
|
|
13244
|
+
if (!this.index || children.length === 0) {
|
|
13245
13245
|
return;
|
|
13246
13246
|
}
|
|
13247
13247
|
this.emit({
|
|
@@ -13256,6 +13256,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13256
13256
|
return;
|
|
13257
13257
|
}
|
|
13258
13258
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13259
|
+
if (childrenArr.length === 0) {
|
|
13260
|
+
return;
|
|
13261
|
+
}
|
|
13259
13262
|
this.emit({
|
|
13260
13263
|
class: this.itemType,
|
|
13261
13264
|
method: "removeChildren",
|
|
@@ -62375,6 +62378,29 @@ var init_Frame = __esm(() => {
|
|
|
62375
62378
|
this.board = board;
|
|
62376
62379
|
return this;
|
|
62377
62380
|
}
|
|
62381
|
+
addChildItems(children) {
|
|
62382
|
+
if (!this.index || children.length === 0)
|
|
62383
|
+
return;
|
|
62384
|
+
this.emit({
|
|
62385
|
+
class: this.itemType,
|
|
62386
|
+
method: "addChildren",
|
|
62387
|
+
item: [this.getId()],
|
|
62388
|
+
childId: children.map((child) => child.getId())
|
|
62389
|
+
});
|
|
62390
|
+
}
|
|
62391
|
+
removeChildItems(children) {
|
|
62392
|
+
if (!this.index)
|
|
62393
|
+
return;
|
|
62394
|
+
const childrenArr = Array.isArray(children) ? children : [children];
|
|
62395
|
+
if (childrenArr.length === 0)
|
|
62396
|
+
return;
|
|
62397
|
+
this.emit({
|
|
62398
|
+
class: this.itemType,
|
|
62399
|
+
method: "removeChildren",
|
|
62400
|
+
item: [this.getId()],
|
|
62401
|
+
childId: childrenArr.map((child) => child.getId())
|
|
62402
|
+
});
|
|
62403
|
+
}
|
|
62378
62404
|
getLinkTo() {
|
|
62379
62405
|
return this.linkTo.link;
|
|
62380
62406
|
}
|
|
@@ -62564,6 +62590,17 @@ var init_Frame = __esm(() => {
|
|
|
62564
62590
|
this.path.setBorderOpacity(this.borderOpacity);
|
|
62565
62591
|
}
|
|
62566
62592
|
apply(op) {
|
|
62593
|
+
if (op.class === "Frame") {
|
|
62594
|
+
if (op.method === "addChildren" || op.method === "addChild") {
|
|
62595
|
+
this.applyAddChildren(op.childId);
|
|
62596
|
+
this.subject.publish(this);
|
|
62597
|
+
return;
|
|
62598
|
+
} else if (op.method === "removeChildren" || op.method === "removeChild") {
|
|
62599
|
+
this.applyRemoveChildren(op.childId);
|
|
62600
|
+
this.subject.publish(this);
|
|
62601
|
+
return;
|
|
62602
|
+
}
|
|
62603
|
+
}
|
|
62567
62604
|
super.apply(op);
|
|
62568
62605
|
switch (op.class) {
|
|
62569
62606
|
case "Frame":
|
|
@@ -62573,10 +62610,6 @@ var init_Frame = __esm(() => {
|
|
|
62573
62610
|
this.applyCanChangeRatio(op.canChangeRatio);
|
|
62574
62611
|
} else if (op.method === "setFrameType") {
|
|
62575
62612
|
this.applyFrameType(op.shapeType);
|
|
62576
|
-
} else if (op.method === "addChild") {
|
|
62577
|
-
this.applyAddChildren(op.childId);
|
|
62578
|
-
} else if (op.method === "removeChild") {
|
|
62579
|
-
this.applyRemoveChildren(op.childId);
|
|
62580
62613
|
}
|
|
62581
62614
|
break;
|
|
62582
62615
|
case "RichText":
|
package/dist/esm/browser.js
CHANGED
|
@@ -13193,7 +13193,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13193
13193
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13194
13194
|
}
|
|
13195
13195
|
addChildItems(children) {
|
|
13196
|
-
if (!this.index) {
|
|
13196
|
+
if (!this.index || children.length === 0) {
|
|
13197
13197
|
return;
|
|
13198
13198
|
}
|
|
13199
13199
|
this.emit({
|
|
@@ -13208,6 +13208,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13208
13208
|
return;
|
|
13209
13209
|
}
|
|
13210
13210
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13211
|
+
if (childrenArr.length === 0) {
|
|
13212
|
+
return;
|
|
13213
|
+
}
|
|
13211
13214
|
this.emit({
|
|
13212
13215
|
class: this.itemType,
|
|
13213
13216
|
method: "removeChildren",
|
|
@@ -59893,6 +59896,29 @@ var init_Frame = __esm(() => {
|
|
|
59893
59896
|
this.board = board;
|
|
59894
59897
|
return this;
|
|
59895
59898
|
}
|
|
59899
|
+
addChildItems(children) {
|
|
59900
|
+
if (!this.index || children.length === 0)
|
|
59901
|
+
return;
|
|
59902
|
+
this.emit({
|
|
59903
|
+
class: this.itemType,
|
|
59904
|
+
method: "addChildren",
|
|
59905
|
+
item: [this.getId()],
|
|
59906
|
+
childId: children.map((child) => child.getId())
|
|
59907
|
+
});
|
|
59908
|
+
}
|
|
59909
|
+
removeChildItems(children) {
|
|
59910
|
+
if (!this.index)
|
|
59911
|
+
return;
|
|
59912
|
+
const childrenArr = Array.isArray(children) ? children : [children];
|
|
59913
|
+
if (childrenArr.length === 0)
|
|
59914
|
+
return;
|
|
59915
|
+
this.emit({
|
|
59916
|
+
class: this.itemType,
|
|
59917
|
+
method: "removeChildren",
|
|
59918
|
+
item: [this.getId()],
|
|
59919
|
+
childId: childrenArr.map((child) => child.getId())
|
|
59920
|
+
});
|
|
59921
|
+
}
|
|
59896
59922
|
getLinkTo() {
|
|
59897
59923
|
return this.linkTo.link;
|
|
59898
59924
|
}
|
|
@@ -60082,6 +60108,17 @@ var init_Frame = __esm(() => {
|
|
|
60082
60108
|
this.path.setBorderOpacity(this.borderOpacity);
|
|
60083
60109
|
}
|
|
60084
60110
|
apply(op) {
|
|
60111
|
+
if (op.class === "Frame") {
|
|
60112
|
+
if (op.method === "addChildren" || op.method === "addChild") {
|
|
60113
|
+
this.applyAddChildren(op.childId);
|
|
60114
|
+
this.subject.publish(this);
|
|
60115
|
+
return;
|
|
60116
|
+
} else if (op.method === "removeChildren" || op.method === "removeChild") {
|
|
60117
|
+
this.applyRemoveChildren(op.childId);
|
|
60118
|
+
this.subject.publish(this);
|
|
60119
|
+
return;
|
|
60120
|
+
}
|
|
60121
|
+
}
|
|
60085
60122
|
super.apply(op);
|
|
60086
60123
|
switch (op.class) {
|
|
60087
60124
|
case "Frame":
|
|
@@ -60091,10 +60128,6 @@ var init_Frame = __esm(() => {
|
|
|
60091
60128
|
this.applyCanChangeRatio(op.canChangeRatio);
|
|
60092
60129
|
} else if (op.method === "setFrameType") {
|
|
60093
60130
|
this.applyFrameType(op.shapeType);
|
|
60094
|
-
} else if (op.method === "addChild") {
|
|
60095
|
-
this.applyAddChildren(op.childId);
|
|
60096
|
-
} else if (op.method === "removeChild") {
|
|
60097
|
-
this.applyRemoveChildren(op.childId);
|
|
60098
60131
|
}
|
|
60099
60132
|
break;
|
|
60100
60133
|
case "RichText":
|
package/dist/esm/index.js
CHANGED
|
@@ -13186,7 +13186,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13186
13186
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13187
13187
|
}
|
|
13188
13188
|
addChildItems(children) {
|
|
13189
|
-
if (!this.index) {
|
|
13189
|
+
if (!this.index || children.length === 0) {
|
|
13190
13190
|
return;
|
|
13191
13191
|
}
|
|
13192
13192
|
this.emit({
|
|
@@ -13201,6 +13201,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13201
13201
|
return;
|
|
13202
13202
|
}
|
|
13203
13203
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13204
|
+
if (childrenArr.length === 0) {
|
|
13205
|
+
return;
|
|
13206
|
+
}
|
|
13204
13207
|
this.emit({
|
|
13205
13208
|
class: this.itemType,
|
|
13206
13209
|
method: "removeChildren",
|
|
@@ -59886,6 +59889,29 @@ var init_Frame = __esm(() => {
|
|
|
59886
59889
|
this.board = board;
|
|
59887
59890
|
return this;
|
|
59888
59891
|
}
|
|
59892
|
+
addChildItems(children) {
|
|
59893
|
+
if (!this.index || children.length === 0)
|
|
59894
|
+
return;
|
|
59895
|
+
this.emit({
|
|
59896
|
+
class: this.itemType,
|
|
59897
|
+
method: "addChildren",
|
|
59898
|
+
item: [this.getId()],
|
|
59899
|
+
childId: children.map((child) => child.getId())
|
|
59900
|
+
});
|
|
59901
|
+
}
|
|
59902
|
+
removeChildItems(children) {
|
|
59903
|
+
if (!this.index)
|
|
59904
|
+
return;
|
|
59905
|
+
const childrenArr = Array.isArray(children) ? children : [children];
|
|
59906
|
+
if (childrenArr.length === 0)
|
|
59907
|
+
return;
|
|
59908
|
+
this.emit({
|
|
59909
|
+
class: this.itemType,
|
|
59910
|
+
method: "removeChildren",
|
|
59911
|
+
item: [this.getId()],
|
|
59912
|
+
childId: childrenArr.map((child) => child.getId())
|
|
59913
|
+
});
|
|
59914
|
+
}
|
|
59889
59915
|
getLinkTo() {
|
|
59890
59916
|
return this.linkTo.link;
|
|
59891
59917
|
}
|
|
@@ -60075,6 +60101,17 @@ var init_Frame = __esm(() => {
|
|
|
60075
60101
|
this.path.setBorderOpacity(this.borderOpacity);
|
|
60076
60102
|
}
|
|
60077
60103
|
apply(op) {
|
|
60104
|
+
if (op.class === "Frame") {
|
|
60105
|
+
if (op.method === "addChildren" || op.method === "addChild") {
|
|
60106
|
+
this.applyAddChildren(op.childId);
|
|
60107
|
+
this.subject.publish(this);
|
|
60108
|
+
return;
|
|
60109
|
+
} else if (op.method === "removeChildren" || op.method === "removeChild") {
|
|
60110
|
+
this.applyRemoveChildren(op.childId);
|
|
60111
|
+
this.subject.publish(this);
|
|
60112
|
+
return;
|
|
60113
|
+
}
|
|
60114
|
+
}
|
|
60078
60115
|
super.apply(op);
|
|
60079
60116
|
switch (op.class) {
|
|
60080
60117
|
case "Frame":
|
|
@@ -60084,10 +60121,6 @@ var init_Frame = __esm(() => {
|
|
|
60084
60121
|
this.applyCanChangeRatio(op.canChangeRatio);
|
|
60085
60122
|
} else if (op.method === "setFrameType") {
|
|
60086
60123
|
this.applyFrameType(op.shapeType);
|
|
60087
|
-
} else if (op.method === "addChild") {
|
|
60088
|
-
this.applyAddChildren(op.childId);
|
|
60089
|
-
} else if (op.method === "removeChild") {
|
|
60090
|
-
this.applyRemoveChildren(op.childId);
|
|
60091
60124
|
}
|
|
60092
60125
|
break;
|
|
60093
60126
|
case "RichText":
|
package/dist/esm/node.js
CHANGED
|
@@ -13208,7 +13208,7 @@ var init_BaseItem = __esm(() => {
|
|
|
13208
13208
|
return this.index.items.listAll().map((item) => item.getId());
|
|
13209
13209
|
}
|
|
13210
13210
|
addChildItems(children) {
|
|
13211
|
-
if (!this.index) {
|
|
13211
|
+
if (!this.index || children.length === 0) {
|
|
13212
13212
|
return;
|
|
13213
13213
|
}
|
|
13214
13214
|
this.emit({
|
|
@@ -13223,6 +13223,9 @@ var init_BaseItem = __esm(() => {
|
|
|
13223
13223
|
return;
|
|
13224
13224
|
}
|
|
13225
13225
|
const childrenArr = Array.isArray(children) ? children : [children];
|
|
13226
|
+
if (childrenArr.length === 0) {
|
|
13227
|
+
return;
|
|
13228
|
+
}
|
|
13226
13229
|
this.emit({
|
|
13227
13230
|
class: this.itemType,
|
|
13228
13231
|
method: "removeChildren",
|
|
@@ -62295,6 +62298,29 @@ var init_Frame = __esm(() => {
|
|
|
62295
62298
|
this.board = board;
|
|
62296
62299
|
return this;
|
|
62297
62300
|
}
|
|
62301
|
+
addChildItems(children) {
|
|
62302
|
+
if (!this.index || children.length === 0)
|
|
62303
|
+
return;
|
|
62304
|
+
this.emit({
|
|
62305
|
+
class: this.itemType,
|
|
62306
|
+
method: "addChildren",
|
|
62307
|
+
item: [this.getId()],
|
|
62308
|
+
childId: children.map((child) => child.getId())
|
|
62309
|
+
});
|
|
62310
|
+
}
|
|
62311
|
+
removeChildItems(children) {
|
|
62312
|
+
if (!this.index)
|
|
62313
|
+
return;
|
|
62314
|
+
const childrenArr = Array.isArray(children) ? children : [children];
|
|
62315
|
+
if (childrenArr.length === 0)
|
|
62316
|
+
return;
|
|
62317
|
+
this.emit({
|
|
62318
|
+
class: this.itemType,
|
|
62319
|
+
method: "removeChildren",
|
|
62320
|
+
item: [this.getId()],
|
|
62321
|
+
childId: childrenArr.map((child) => child.getId())
|
|
62322
|
+
});
|
|
62323
|
+
}
|
|
62298
62324
|
getLinkTo() {
|
|
62299
62325
|
return this.linkTo.link;
|
|
62300
62326
|
}
|
|
@@ -62484,6 +62510,17 @@ var init_Frame = __esm(() => {
|
|
|
62484
62510
|
this.path.setBorderOpacity(this.borderOpacity);
|
|
62485
62511
|
}
|
|
62486
62512
|
apply(op) {
|
|
62513
|
+
if (op.class === "Frame") {
|
|
62514
|
+
if (op.method === "addChildren" || op.method === "addChild") {
|
|
62515
|
+
this.applyAddChildren(op.childId);
|
|
62516
|
+
this.subject.publish(this);
|
|
62517
|
+
return;
|
|
62518
|
+
} else if (op.method === "removeChildren" || op.method === "removeChild") {
|
|
62519
|
+
this.applyRemoveChildren(op.childId);
|
|
62520
|
+
this.subject.publish(this);
|
|
62521
|
+
return;
|
|
62522
|
+
}
|
|
62523
|
+
}
|
|
62487
62524
|
super.apply(op);
|
|
62488
62525
|
switch (op.class) {
|
|
62489
62526
|
case "Frame":
|
|
@@ -62493,10 +62530,6 @@ var init_Frame = __esm(() => {
|
|
|
62493
62530
|
this.applyCanChangeRatio(op.canChangeRatio);
|
|
62494
62531
|
} else if (op.method === "setFrameType") {
|
|
62495
62532
|
this.applyFrameType(op.shapeType);
|
|
62496
|
-
} else if (op.method === "addChild") {
|
|
62497
|
-
this.applyAddChildren(op.childId);
|
|
62498
|
-
} else if (op.method === "removeChild") {
|
|
62499
|
-
this.applyRemoveChildren(op.childId);
|
|
62500
62533
|
}
|
|
62501
62534
|
break;
|
|
62502
62535
|
case "RichText":
|
|
@@ -8,6 +8,7 @@ import type { Item } from "../Item";
|
|
|
8
8
|
import { RichText } from "../RichText/RichText";
|
|
9
9
|
import { Matrix } from "../Transformation/Matrix";
|
|
10
10
|
import type { SerializedItemData } from "../BaseItem/BaseItem";
|
|
11
|
+
import { BaseItem } from "../BaseItem/BaseItem";
|
|
11
12
|
import { Subject } from "../../Subject";
|
|
12
13
|
import { DrawingContext } from "../DrawingContext";
|
|
13
14
|
import { Operation } from "../../Events";
|
|
@@ -20,7 +21,6 @@ import { LinkTo } from "../LinkTo/LinkTo";
|
|
|
20
21
|
import { FrameData } from "./FrameData";
|
|
21
22
|
import { DocumentFactory } from "../../api/DocumentFactory";
|
|
22
23
|
import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
|
|
23
|
-
import { BaseItem } from "../BaseItem";
|
|
24
24
|
import { ColorValue } from "../../..";
|
|
25
25
|
export declare class Frame extends BaseItem<Frame> {
|
|
26
26
|
private getItemById;
|
|
@@ -53,6 +53,8 @@ export declare class Frame extends BaseItem<Frame> {
|
|
|
53
53
|
* Child cant be itself,
|
|
54
54
|
* frame cant be child
|
|
55
55
|
*/
|
|
56
|
+
addChildItems(children: BaseItem[]): void;
|
|
57
|
+
removeChildItems(children: BaseItem[] | BaseItem): void;
|
|
56
58
|
getLinkTo(): string | undefined;
|
|
57
59
|
/**
|
|
58
60
|
* Returns:
|