|
@@ -166,10 +166,12 @@ const fitPenVisible = (e) => {
|
|
|
if (e) {
|
|
|
meta2d.store.data.pens.forEach((pen) => {
|
|
|
if (!selections.fit.children?.includes(pen.id)) {
|
|
|
- meta2d.setValue(
|
|
|
- { id: pen.id, visible: false },
|
|
|
- { render: false, doEvent: false, history: false }
|
|
|
- );
|
|
|
+ if(!pen.parentId){
|
|
|
+ meta2d.setValue(
|
|
|
+ { id: pen.id, visible: false },
|
|
|
+ { render: false, doEvent: false, history: false }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
meta2d.canvas.hideFit();
|
|
@@ -180,10 +182,12 @@ const fitPenVisible = (e) => {
|
|
|
} else {
|
|
|
meta2d.store.data.pens.forEach((pen) => {
|
|
|
if (!selections.fit.children?.includes(pen.id)) {
|
|
|
- meta2d.setValue(
|
|
|
- { id: pen.id, visible: true },
|
|
|
- { render: false, doEvent: false, history: false }
|
|
|
- );
|
|
|
+ if(!pen.parentId){
|
|
|
+ meta2d.setValue(
|
|
|
+ { id: pen.id, visible: true },
|
|
|
+ { render: false, doEvent: false, history: false }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
meta2d.canvas.showFit();
|