|
|
@ -38,6 +38,7 @@
|
|
|
|
:transform="`translate(${item.x},${item.y})rotate(0)scale(1)`"
|
|
|
|
:transform="`translate(${item.x},${item.y})rotate(0)scale(1)`"
|
|
|
|
v-show="item.display"
|
|
|
|
v-show="item.display"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<g :class="`${getCommonClass(item)}`">
|
|
|
|
<g
|
|
|
|
<g
|
|
|
|
:transform="`translate(${item.actual_bound.x + item.actual_bound.width / 2},${
|
|
|
|
:transform="`translate(${item.actual_bound.x + item.actual_bound.width / 2},${
|
|
|
|
item.actual_bound.y + item.actual_bound.height / 2
|
|
|
|
item.actual_bound.y + item.actual_bound.height / 2
|
|
|
@ -70,7 +71,6 @@
|
|
|
|
item.actual_bound.x +
|
|
|
|
item.actual_bound.x +
|
|
|
|
item.actual_bound.width / 2
|
|
|
|
item.actual_bound.width / 2
|
|
|
|
)},${-(item.actual_bound.y + item.actual_bound.height / 2)})`"
|
|
|
|
)},${-(item.actual_bound.y + item.actual_bound.height / 2)})`"
|
|
|
|
:class="`${getCommonClass(item)}`"
|
|
|
|
|
|
|
|
></use>
|
|
|
|
></use>
|
|
|
|
<component
|
|
|
|
<component
|
|
|
|
v-else-if="item.type === EDoneJsonType.CustomSvg"
|
|
|
|
v-else-if="item.type === EDoneJsonType.CustomSvg"
|
|
|
@ -85,13 +85,11 @@
|
|
|
|
item.actual_bound.x +
|
|
|
|
item.actual_bound.x +
|
|
|
|
item.actual_bound.width / 2
|
|
|
|
item.actual_bound.width / 2
|
|
|
|
)},${-(item.actual_bound.y + item.actual_bound.height / 2)})`"
|
|
|
|
)},${-(item.actual_bound.y + item.actual_bound.height / 2)})`"
|
|
|
|
:class="`${getCommonClass(item)}`"
|
|
|
|
|
|
|
|
></component>
|
|
|
|
></component>
|
|
|
|
<foreignObject
|
|
|
|
<foreignObject
|
|
|
|
v-else-if="item.type === EDoneJsonType.Vue"
|
|
|
|
v-else-if="item.type === EDoneJsonType.Vue"
|
|
|
|
v-bind="getActualBoundScale(item.actual_bound, item.scale_x, item.scale_y)"
|
|
|
|
v-bind="getActualBoundScale(item.actual_bound, item.scale_x, item.scale_y)"
|
|
|
|
:id="`foreign-object${item.id}`"
|
|
|
|
:id="`foreign-object${item.id}`"
|
|
|
|
:class="`${getCommonClass(item)}`"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<component
|
|
|
|
<component
|
|
|
|
:is="item.tag"
|
|
|
|
:is="item.tag"
|
|
|
@ -141,7 +139,7 @@
|
|
|
|
globalStore.handle_svg_info?.info.id == item.id
|
|
|
|
globalStore.handle_svg_info?.info.id == item.id
|
|
|
|
? 'svg-item-select'
|
|
|
|
? 'svg-item-select'
|
|
|
|
: ''
|
|
|
|
: ''
|
|
|
|
} ${getCommonClass(item)}`"
|
|
|
|
}`"
|
|
|
|
></rect>
|
|
|
|
></rect>
|
|
|
|
<handle-panel
|
|
|
|
<handle-panel
|
|
|
|
v-if="
|
|
|
|
v-if="
|
|
|
@ -167,6 +165,7 @@
|
|
|
|
</g>
|
|
|
|
</g>
|
|
|
|
</g>
|
|
|
|
</g>
|
|
|
|
</g>
|
|
|
|
</g>
|
|
|
|
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
<!-- 右键菜单 -->
|
|
|
|
<!-- 右键菜单 -->
|
|
|
|
<ul ref="contextMenuRef" class="contextMenu" v-show="contextMenuStore.display">
|
|
|
|
<ul ref="contextMenuRef" class="contextMenu" v-show="contextMenuStore.display">
|
|
|
|