|
@@ -906,9 +906,10 @@ const router = useRouter();
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
const { user, getUser } = useUser();
|
|
const { user, getUser } = useUser();
|
|
const { dot, setDot } = useDot();
|
|
const { dot, setDot } = useDot();
|
|
-const { select } = useSelection();
|
|
|
|
|
|
+const { select, selections } = useSelection();
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
const $t = proxy.$t
|
|
const $t = proxy.$t
|
|
|
|
+
|
|
const meta2dOptions: Options = {
|
|
const meta2dOptions: Options = {
|
|
cdn,
|
|
cdn,
|
|
rule: true,
|
|
rule: true,
|
|
@@ -2338,7 +2339,18 @@ const changeFit = () => {
|
|
if(fitFlag.value){
|
|
if(fitFlag.value){
|
|
meta2d.canvas.showFit();
|
|
meta2d.canvas.showFit();
|
|
}else{
|
|
}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 }
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ });
|
|
meta2d.canvas.hideFit();
|
|
meta2d.canvas.hideFit();
|
|
|
|
+ meta2d.canvas.canvasImage.init();
|
|
|
|
+ meta2d.canvas.canvasImageBottom.init();
|
|
|
|
+ meta2d.render();
|
|
select();
|
|
select();
|
|
}
|
|
}
|
|
}
|
|
}
|