microboard-temp 0.5.131 → 0.5.132
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 +33 -16
- package/dist/cjs/index.js +33 -16
- package/dist/cjs/node.js +33 -16
- package/dist/esm/browser.js +33 -16
- package/dist/esm/index.js +33 -16
- package/dist/esm/node.js +33 -16
- package/dist/types/Items/Comment/Comment.d.ts +11 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -19001,6 +19001,10 @@ class Comment {
|
|
|
19001
19001
|
linkTo;
|
|
19002
19002
|
transformationRenderBlock = undefined;
|
|
19003
19003
|
resizeEnabled = true;
|
|
19004
|
+
index = null;
|
|
19005
|
+
canBeNested = false;
|
|
19006
|
+
children = [];
|
|
19007
|
+
onRemoveCallbacks = [];
|
|
19004
19008
|
constructor(anchor = new Point, events, id = "") {
|
|
19005
19009
|
this.anchor = anchor;
|
|
19006
19010
|
this.events = events;
|
|
@@ -19305,6 +19309,17 @@ class Comment {
|
|
|
19305
19309
|
getSnapAnchorPoints() {
|
|
19306
19310
|
return null;
|
|
19307
19311
|
}
|
|
19312
|
+
getChildrenIds() {
|
|
19313
|
+
return null;
|
|
19314
|
+
}
|
|
19315
|
+
addChildItems(_children) {}
|
|
19316
|
+
removeChildItems(_children) {}
|
|
19317
|
+
emitNesting(_children) {}
|
|
19318
|
+
handleNesting(_item) {
|
|
19319
|
+
return false;
|
|
19320
|
+
}
|
|
19321
|
+
addOnRemoveCallback(_cb) {}
|
|
19322
|
+
onRemove() {}
|
|
19308
19323
|
render(context) {}
|
|
19309
19324
|
renderHTML(documentFactory) {
|
|
19310
19325
|
const div = documentFactory.createElement("comment-item");
|
|
@@ -53124,22 +53139,24 @@ class BoardSelection {
|
|
|
53124
53139
|
console.warn(`Didnt find frame with id ${val.item.parent}`);
|
|
53125
53140
|
}
|
|
53126
53141
|
}
|
|
53127
|
-
|
|
53128
|
-
|
|
53129
|
-
|
|
53130
|
-
|
|
53131
|
-
|
|
53132
|
-
|
|
53133
|
-
|
|
53134
|
-
|
|
53135
|
-
const
|
|
53136
|
-
|
|
53137
|
-
|
|
53138
|
-
|
|
53139
|
-
|
|
53140
|
-
|
|
53141
|
-
|
|
53142
|
-
|
|
53142
|
+
if (checkFrames) {
|
|
53143
|
+
const childrenIds = val.item.getChildrenIds();
|
|
53144
|
+
if (childrenIds) {
|
|
53145
|
+
const currGroup = val.item;
|
|
53146
|
+
const currMbr = currGroup.getMbr();
|
|
53147
|
+
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
53148
|
+
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
53149
|
+
const uniqueItems = new Set;
|
|
53150
|
+
const toCheck = [...children, ...underGroup].filter((item) => {
|
|
53151
|
+
const id = item.getId();
|
|
53152
|
+
if (uniqueItems.has(id)) {
|
|
53153
|
+
return false;
|
|
53154
|
+
}
|
|
53155
|
+
uniqueItems.add(id);
|
|
53156
|
+
return true;
|
|
53157
|
+
});
|
|
53158
|
+
currGroup.emitNesting(toCheck);
|
|
53159
|
+
}
|
|
53143
53160
|
}
|
|
53144
53161
|
});
|
|
53145
53162
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -19001,6 +19001,10 @@ class Comment {
|
|
|
19001
19001
|
linkTo;
|
|
19002
19002
|
transformationRenderBlock = undefined;
|
|
19003
19003
|
resizeEnabled = true;
|
|
19004
|
+
index = null;
|
|
19005
|
+
canBeNested = false;
|
|
19006
|
+
children = [];
|
|
19007
|
+
onRemoveCallbacks = [];
|
|
19004
19008
|
constructor(anchor = new Point, events, id = "") {
|
|
19005
19009
|
this.anchor = anchor;
|
|
19006
19010
|
this.events = events;
|
|
@@ -19305,6 +19309,17 @@ class Comment {
|
|
|
19305
19309
|
getSnapAnchorPoints() {
|
|
19306
19310
|
return null;
|
|
19307
19311
|
}
|
|
19312
|
+
getChildrenIds() {
|
|
19313
|
+
return null;
|
|
19314
|
+
}
|
|
19315
|
+
addChildItems(_children) {}
|
|
19316
|
+
removeChildItems(_children) {}
|
|
19317
|
+
emitNesting(_children) {}
|
|
19318
|
+
handleNesting(_item) {
|
|
19319
|
+
return false;
|
|
19320
|
+
}
|
|
19321
|
+
addOnRemoveCallback(_cb) {}
|
|
19322
|
+
onRemove() {}
|
|
19308
19323
|
render(context) {}
|
|
19309
19324
|
renderHTML(documentFactory) {
|
|
19310
19325
|
const div = documentFactory.createElement("comment-item");
|
|
@@ -53124,22 +53139,24 @@ class BoardSelection {
|
|
|
53124
53139
|
console.warn(`Didnt find frame with id ${val.item.parent}`);
|
|
53125
53140
|
}
|
|
53126
53141
|
}
|
|
53127
|
-
|
|
53128
|
-
|
|
53129
|
-
|
|
53130
|
-
|
|
53131
|
-
|
|
53132
|
-
|
|
53133
|
-
|
|
53134
|
-
|
|
53135
|
-
const
|
|
53136
|
-
|
|
53137
|
-
|
|
53138
|
-
|
|
53139
|
-
|
|
53140
|
-
|
|
53141
|
-
|
|
53142
|
-
|
|
53142
|
+
if (checkFrames) {
|
|
53143
|
+
const childrenIds = val.item.getChildrenIds();
|
|
53144
|
+
if (childrenIds) {
|
|
53145
|
+
const currGroup = val.item;
|
|
53146
|
+
const currMbr = currGroup.getMbr();
|
|
53147
|
+
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
53148
|
+
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
53149
|
+
const uniqueItems = new Set;
|
|
53150
|
+
const toCheck = [...children, ...underGroup].filter((item) => {
|
|
53151
|
+
const id = item.getId();
|
|
53152
|
+
if (uniqueItems.has(id)) {
|
|
53153
|
+
return false;
|
|
53154
|
+
}
|
|
53155
|
+
uniqueItems.add(id);
|
|
53156
|
+
return true;
|
|
53157
|
+
});
|
|
53158
|
+
currGroup.emitNesting(toCheck);
|
|
53159
|
+
}
|
|
53143
53160
|
}
|
|
53144
53161
|
});
|
|
53145
53162
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -21540,6 +21540,10 @@ class Comment {
|
|
|
21540
21540
|
linkTo;
|
|
21541
21541
|
transformationRenderBlock = undefined;
|
|
21542
21542
|
resizeEnabled = true;
|
|
21543
|
+
index = null;
|
|
21544
|
+
canBeNested = false;
|
|
21545
|
+
children = [];
|
|
21546
|
+
onRemoveCallbacks = [];
|
|
21543
21547
|
constructor(anchor = new Point, events, id = "") {
|
|
21544
21548
|
this.anchor = anchor;
|
|
21545
21549
|
this.events = events;
|
|
@@ -21844,6 +21848,17 @@ class Comment {
|
|
|
21844
21848
|
getSnapAnchorPoints() {
|
|
21845
21849
|
return null;
|
|
21846
21850
|
}
|
|
21851
|
+
getChildrenIds() {
|
|
21852
|
+
return null;
|
|
21853
|
+
}
|
|
21854
|
+
addChildItems(_children) {}
|
|
21855
|
+
removeChildItems(_children) {}
|
|
21856
|
+
emitNesting(_children) {}
|
|
21857
|
+
handleNesting(_item) {
|
|
21858
|
+
return false;
|
|
21859
|
+
}
|
|
21860
|
+
addOnRemoveCallback(_cb) {}
|
|
21861
|
+
onRemove() {}
|
|
21847
21862
|
render(context) {}
|
|
21848
21863
|
renderHTML(documentFactory) {
|
|
21849
21864
|
const div = documentFactory.createElement("comment-item");
|
|
@@ -55597,22 +55612,24 @@ class BoardSelection {
|
|
|
55597
55612
|
console.warn(`Didnt find frame with id ${val.item.parent}`);
|
|
55598
55613
|
}
|
|
55599
55614
|
}
|
|
55600
|
-
|
|
55601
|
-
|
|
55602
|
-
|
|
55603
|
-
|
|
55604
|
-
|
|
55605
|
-
|
|
55606
|
-
|
|
55607
|
-
|
|
55608
|
-
const
|
|
55609
|
-
|
|
55610
|
-
|
|
55611
|
-
|
|
55612
|
-
|
|
55613
|
-
|
|
55614
|
-
|
|
55615
|
-
|
|
55615
|
+
if (checkFrames) {
|
|
55616
|
+
const childrenIds = val.item.getChildrenIds();
|
|
55617
|
+
if (childrenIds) {
|
|
55618
|
+
const currGroup = val.item;
|
|
55619
|
+
const currMbr = currGroup.getMbr();
|
|
55620
|
+
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
55621
|
+
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
55622
|
+
const uniqueItems = new Set;
|
|
55623
|
+
const toCheck = [...children, ...underGroup].filter((item) => {
|
|
55624
|
+
const id = item.getId();
|
|
55625
|
+
if (uniqueItems.has(id)) {
|
|
55626
|
+
return false;
|
|
55627
|
+
}
|
|
55628
|
+
uniqueItems.add(id);
|
|
55629
|
+
return true;
|
|
55630
|
+
});
|
|
55631
|
+
currGroup.emitNesting(toCheck);
|
|
55632
|
+
}
|
|
55616
55633
|
}
|
|
55617
55634
|
});
|
|
55618
55635
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -18847,6 +18847,10 @@ class Comment {
|
|
|
18847
18847
|
linkTo;
|
|
18848
18848
|
transformationRenderBlock = undefined;
|
|
18849
18849
|
resizeEnabled = true;
|
|
18850
|
+
index = null;
|
|
18851
|
+
canBeNested = false;
|
|
18852
|
+
children = [];
|
|
18853
|
+
onRemoveCallbacks = [];
|
|
18850
18854
|
constructor(anchor = new Point, events, id = "") {
|
|
18851
18855
|
this.anchor = anchor;
|
|
18852
18856
|
this.events = events;
|
|
@@ -19151,6 +19155,17 @@ class Comment {
|
|
|
19151
19155
|
getSnapAnchorPoints() {
|
|
19152
19156
|
return null;
|
|
19153
19157
|
}
|
|
19158
|
+
getChildrenIds() {
|
|
19159
|
+
return null;
|
|
19160
|
+
}
|
|
19161
|
+
addChildItems(_children) {}
|
|
19162
|
+
removeChildItems(_children) {}
|
|
19163
|
+
emitNesting(_children) {}
|
|
19164
|
+
handleNesting(_item) {
|
|
19165
|
+
return false;
|
|
19166
|
+
}
|
|
19167
|
+
addOnRemoveCallback(_cb) {}
|
|
19168
|
+
onRemove() {}
|
|
19154
19169
|
render(context) {}
|
|
19155
19170
|
renderHTML(documentFactory) {
|
|
19156
19171
|
const div = documentFactory.createElement("comment-item");
|
|
@@ -52970,22 +52985,24 @@ class BoardSelection {
|
|
|
52970
52985
|
console.warn(`Didnt find frame with id ${val.item.parent}`);
|
|
52971
52986
|
}
|
|
52972
52987
|
}
|
|
52973
|
-
|
|
52974
|
-
|
|
52975
|
-
|
|
52976
|
-
|
|
52977
|
-
|
|
52978
|
-
|
|
52979
|
-
|
|
52980
|
-
|
|
52981
|
-
const
|
|
52982
|
-
|
|
52983
|
-
|
|
52984
|
-
|
|
52985
|
-
|
|
52986
|
-
|
|
52987
|
-
|
|
52988
|
-
|
|
52988
|
+
if (checkFrames) {
|
|
52989
|
+
const childrenIds = val.item.getChildrenIds();
|
|
52990
|
+
if (childrenIds) {
|
|
52991
|
+
const currGroup = val.item;
|
|
52992
|
+
const currMbr = currGroup.getMbr();
|
|
52993
|
+
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
52994
|
+
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
52995
|
+
const uniqueItems = new Set;
|
|
52996
|
+
const toCheck = [...children, ...underGroup].filter((item) => {
|
|
52997
|
+
const id = item.getId();
|
|
52998
|
+
if (uniqueItems.has(id)) {
|
|
52999
|
+
return false;
|
|
53000
|
+
}
|
|
53001
|
+
uniqueItems.add(id);
|
|
53002
|
+
return true;
|
|
53003
|
+
});
|
|
53004
|
+
currGroup.emitNesting(toCheck);
|
|
53005
|
+
}
|
|
52989
53006
|
}
|
|
52990
53007
|
});
|
|
52991
53008
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -18840,6 +18840,10 @@ class Comment {
|
|
|
18840
18840
|
linkTo;
|
|
18841
18841
|
transformationRenderBlock = undefined;
|
|
18842
18842
|
resizeEnabled = true;
|
|
18843
|
+
index = null;
|
|
18844
|
+
canBeNested = false;
|
|
18845
|
+
children = [];
|
|
18846
|
+
onRemoveCallbacks = [];
|
|
18843
18847
|
constructor(anchor = new Point, events, id = "") {
|
|
18844
18848
|
this.anchor = anchor;
|
|
18845
18849
|
this.events = events;
|
|
@@ -19144,6 +19148,17 @@ class Comment {
|
|
|
19144
19148
|
getSnapAnchorPoints() {
|
|
19145
19149
|
return null;
|
|
19146
19150
|
}
|
|
19151
|
+
getChildrenIds() {
|
|
19152
|
+
return null;
|
|
19153
|
+
}
|
|
19154
|
+
addChildItems(_children) {}
|
|
19155
|
+
removeChildItems(_children) {}
|
|
19156
|
+
emitNesting(_children) {}
|
|
19157
|
+
handleNesting(_item) {
|
|
19158
|
+
return false;
|
|
19159
|
+
}
|
|
19160
|
+
addOnRemoveCallback(_cb) {}
|
|
19161
|
+
onRemove() {}
|
|
19147
19162
|
render(context) {}
|
|
19148
19163
|
renderHTML(documentFactory) {
|
|
19149
19164
|
const div = documentFactory.createElement("comment-item");
|
|
@@ -52963,22 +52978,24 @@ class BoardSelection {
|
|
|
52963
52978
|
console.warn(`Didnt find frame with id ${val.item.parent}`);
|
|
52964
52979
|
}
|
|
52965
52980
|
}
|
|
52966
|
-
|
|
52967
|
-
|
|
52968
|
-
|
|
52969
|
-
|
|
52970
|
-
|
|
52971
|
-
|
|
52972
|
-
|
|
52973
|
-
|
|
52974
|
-
const
|
|
52975
|
-
|
|
52976
|
-
|
|
52977
|
-
|
|
52978
|
-
|
|
52979
|
-
|
|
52980
|
-
|
|
52981
|
-
|
|
52981
|
+
if (checkFrames) {
|
|
52982
|
+
const childrenIds = val.item.getChildrenIds();
|
|
52983
|
+
if (childrenIds) {
|
|
52984
|
+
const currGroup = val.item;
|
|
52985
|
+
const currMbr = currGroup.getMbr();
|
|
52986
|
+
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
52987
|
+
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
52988
|
+
const uniqueItems = new Set;
|
|
52989
|
+
const toCheck = [...children, ...underGroup].filter((item) => {
|
|
52990
|
+
const id = item.getId();
|
|
52991
|
+
if (uniqueItems.has(id)) {
|
|
52992
|
+
return false;
|
|
52993
|
+
}
|
|
52994
|
+
uniqueItems.add(id);
|
|
52995
|
+
return true;
|
|
52996
|
+
});
|
|
52997
|
+
currGroup.emitNesting(toCheck);
|
|
52998
|
+
}
|
|
52982
52999
|
}
|
|
52983
53000
|
});
|
|
52984
53001
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -21374,6 +21374,10 @@ class Comment {
|
|
|
21374
21374
|
linkTo;
|
|
21375
21375
|
transformationRenderBlock = undefined;
|
|
21376
21376
|
resizeEnabled = true;
|
|
21377
|
+
index = null;
|
|
21378
|
+
canBeNested = false;
|
|
21379
|
+
children = [];
|
|
21380
|
+
onRemoveCallbacks = [];
|
|
21377
21381
|
constructor(anchor = new Point, events, id = "") {
|
|
21378
21382
|
this.anchor = anchor;
|
|
21379
21383
|
this.events = events;
|
|
@@ -21678,6 +21682,17 @@ class Comment {
|
|
|
21678
21682
|
getSnapAnchorPoints() {
|
|
21679
21683
|
return null;
|
|
21680
21684
|
}
|
|
21685
|
+
getChildrenIds() {
|
|
21686
|
+
return null;
|
|
21687
|
+
}
|
|
21688
|
+
addChildItems(_children) {}
|
|
21689
|
+
removeChildItems(_children) {}
|
|
21690
|
+
emitNesting(_children) {}
|
|
21691
|
+
handleNesting(_item) {
|
|
21692
|
+
return false;
|
|
21693
|
+
}
|
|
21694
|
+
addOnRemoveCallback(_cb) {}
|
|
21695
|
+
onRemove() {}
|
|
21681
21696
|
render(context) {}
|
|
21682
21697
|
renderHTML(documentFactory) {
|
|
21683
21698
|
const div = documentFactory.createElement("comment-item");
|
|
@@ -55431,22 +55446,24 @@ class BoardSelection {
|
|
|
55431
55446
|
console.warn(`Didnt find frame with id ${val.item.parent}`);
|
|
55432
55447
|
}
|
|
55433
55448
|
}
|
|
55434
|
-
|
|
55435
|
-
|
|
55436
|
-
|
|
55437
|
-
|
|
55438
|
-
|
|
55439
|
-
|
|
55440
|
-
|
|
55441
|
-
|
|
55442
|
-
const
|
|
55443
|
-
|
|
55444
|
-
|
|
55445
|
-
|
|
55446
|
-
|
|
55447
|
-
|
|
55448
|
-
|
|
55449
|
-
|
|
55449
|
+
if (checkFrames) {
|
|
55450
|
+
const childrenIds = val.item.getChildrenIds();
|
|
55451
|
+
if (childrenIds) {
|
|
55452
|
+
const currGroup = val.item;
|
|
55453
|
+
const currMbr = currGroup.getMbr();
|
|
55454
|
+
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
55455
|
+
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
55456
|
+
const uniqueItems = new Set;
|
|
55457
|
+
const toCheck = [...children, ...underGroup].filter((item) => {
|
|
55458
|
+
const id = item.getId();
|
|
55459
|
+
if (uniqueItems.has(id)) {
|
|
55460
|
+
return false;
|
|
55461
|
+
}
|
|
55462
|
+
uniqueItems.add(id);
|
|
55463
|
+
return true;
|
|
55464
|
+
});
|
|
55465
|
+
currGroup.emitNesting(toCheck);
|
|
55466
|
+
}
|
|
55450
55467
|
}
|
|
55451
55468
|
});
|
|
55452
55469
|
}
|
|
@@ -48,6 +48,10 @@ export declare class Comment implements Geometry {
|
|
|
48
48
|
readonly linkTo: LinkTo;
|
|
49
49
|
transformationRenderBlock?: boolean;
|
|
50
50
|
resizeEnabled: boolean;
|
|
51
|
+
readonly index: null;
|
|
52
|
+
canBeNested: boolean;
|
|
53
|
+
children: string[];
|
|
54
|
+
onRemoveCallbacks: (() => void)[];
|
|
51
55
|
constructor(anchor?: Point, events?: Events | undefined, id?: string);
|
|
52
56
|
serialize(): CommentData;
|
|
53
57
|
deserialize(data: CommentData): this;
|
|
@@ -92,6 +96,13 @@ export declare class Comment implements Geometry {
|
|
|
92
96
|
getLinkTo(): string | undefined;
|
|
93
97
|
getPath(): null;
|
|
94
98
|
getSnapAnchorPoints(): Point[] | null;
|
|
99
|
+
getChildrenIds(): string[] | null;
|
|
100
|
+
addChildItems(_children: unknown[]): void;
|
|
101
|
+
removeChildItems(_children: unknown | unknown[]): void;
|
|
102
|
+
emitNesting(_children: unknown[]): void;
|
|
103
|
+
handleNesting(_item: unknown): boolean;
|
|
104
|
+
addOnRemoveCallback(_cb: () => void): void;
|
|
105
|
+
onRemove(): void;
|
|
95
106
|
render(context: DrawingContext): void;
|
|
96
107
|
renderHTML(documentFactory: DocumentFactory): HTMLElement;
|
|
97
108
|
}
|