|
@@ -50,7 +50,7 @@ const emit = defineEmits<{
|
|
|
(e: "saveAfter"): void;
|
|
|
}>();
|
|
|
|
|
|
-const showTabulation = !window.platform.sceneDraw;
|
|
|
+const showTabulation = !params.value.sceneDraw;
|
|
|
const baseActions = getHeaderActions(draw);
|
|
|
const actions = [
|
|
|
[baseActions.undo, baseActions.redo],
|
|
@@ -151,21 +151,21 @@ const setViewToTableCover = async () => {
|
|
|
await nextTick();
|
|
|
|
|
|
const syncItems: TabCover["syncItems"] = [];
|
|
|
- const positionRect = getRect("formal")!;
|
|
|
- draw.store.items.forEach((item) => {
|
|
|
- if (item.key === "trace") {
|
|
|
- const itemRect = getRect(item.id);
|
|
|
- if (itemRect) {
|
|
|
- itemRect.x = itemRect.x - positionRect.x;
|
|
|
- itemRect.y = itemRect.y - positionRect.y;
|
|
|
- syncItems.push({
|
|
|
- ...item,
|
|
|
- rect: itemRect,
|
|
|
- desc: (item as any).name || "",
|
|
|
- } as any);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ // const positionRect = getRect("formal")!;
|
|
|
+ // draw.store.items.forEach((item) => {
|
|
|
+ // if (item.key === "trace") {
|
|
|
+ // const itemRect = getRect(item.id);
|
|
|
+ // if (itemRect) {
|
|
|
+ // itemRect.x = itemRect.x - positionRect.x;
|
|
|
+ // itemRect.y = itemRect.y - positionRect.y;
|
|
|
+ // syncItems.push({
|
|
|
+ // ...item,
|
|
|
+ // rect: itemRect,
|
|
|
+ // desc: (item as any).name || "",
|
|
|
+ // } as any);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
return [
|
|
|
{
|