|
@@ -76,30 +76,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import Big from 'big.js'
|
|
|
+import eventBus from "@/utils/eventBus";
|
|
|
+import CONSTANT from '@/utils/constant'
|
|
|
+import commonMixin from '@/mixin/commonMixin'
|
|
|
import {mapActions, mapState} from "pinia";
|
|
|
import {globalStore, ruleStore, modeStore} from "@/store";
|
|
|
-import SketchRuler from '../sketch-ruler/sketchRuler.vue'
|
|
|
-import CONSTANT from '@/utils/constant.js'
|
|
|
import {Context, ContextItem, directive} from '@/components/yvan-context'
|
|
|
-import ComponentAdjuster from '@/components/yvan-editor/ComponentAdjuster.vue'
|
|
|
import {getComponentRotatedStyle, getShapeStyle} from '@/utils/style-util.js'
|
|
|
-import Big from 'big.js'
|
|
|
-// import RoyText from '@/components/elements/YvanRichText.vue'
|
|
|
-// import YvanSimpleText from '@/components/elements/YvanSimpleText.vue'
|
|
|
-// import RoyRect from '@/components/elements/RoyRect'
|
|
|
-// import RoyLine from '@/components/elements/YvanLine.vue'
|
|
|
-// import RoyImage from '@/components/elements/RoyImage'
|
|
|
-// import RoyStar from '@/components/elements/RoyStar'
|
|
|
-// import RoyCircle from '@/components/elements/RoyCircle'
|
|
|
-// import RoySimpleTable from '@/components/elements/RoyTable/RoySimpleTable.vue'
|
|
|
-// import RoyComplexTable from '@/components/elements/RoyTable/RoyComplexTable'
|
|
|
-// import RoyGroup from '@/components/elements/RoyGroup'
|
|
|
-import Area from '@/components/yvan-editor/Area.vue'
|
|
|
-import commonMixin from '@/mixin/commonMixin'
|
|
|
import {isPreventDrop} from '@/utils/html-util.js'
|
|
|
+import Area from '@/components/yvan-editor/Area.vue'
|
|
|
+import SketchRuler from '../sketch-ruler/sketchRuler.vue'
|
|
|
import EditorLine from '@/components/yvan-editor/EditorLine.vue'
|
|
|
import EditorCoordinate from '@/components/yvan-editor/EditorCoordinate.vue'
|
|
|
-import eventBus from "@/utils/eventBus.js";
|
|
|
+import ComponentAdjuster from '@/components/yvan-editor/ComponentAdjuster.vue'
|
|
|
|
|
|
const {MIN_SCALE, MAX_SCALE} = CONSTANT
|
|
|
|
|
@@ -116,16 +106,6 @@ export default {
|
|
|
Context,
|
|
|
ContextItem,
|
|
|
ComponentAdjuster,
|
|
|
- // RoyText,
|
|
|
- // YvanSimpleText,
|
|
|
- // RoyGroup,
|
|
|
- // RoyRect,
|
|
|
- // RoyLine,
|
|
|
- // RoyCircle,
|
|
|
- // RoyStar,
|
|
|
- // RoyImage,
|
|
|
- // RoySimpleTable,
|
|
|
- // RoyComplexTable,
|
|
|
Area
|
|
|
},
|
|
|
props: {
|
|
@@ -384,8 +364,6 @@ export default {
|
|
|
e.preventDefault()
|
|
|
let top = e.clientY
|
|
|
let left = e.clientX
|
|
|
- console.log("handleContextMenu >>> ", top, left, e)
|
|
|
- // globalStore().showContextMenu( {top, left})
|
|
|
eventBus.emit("showContextMenu", {top, left})
|
|
|
},
|
|
|
hideArea() {
|
|
@@ -563,7 +541,6 @@ export default {
|
|
|
},
|
|
|
needReDrawRuler: {
|
|
|
handler() {
|
|
|
- console.log("needReDrawRuler >>> ", this)
|
|
|
this.$nextTick(() => {
|
|
|
this.handleScroll()
|
|
|
this.$refs.sketchRuler?.$children[0]?.$children[0]?.drawRuler()
|