diff --git a/core/core-frontend/src/custom-component/common/DeRuler.vue b/core/core-frontend/src/custom-component/common/DeRuler.vue
new file mode 100644
index 0000000000..cd2a1fdb2b
--- /dev/null
+++ b/core/core-frontend/src/custom-component/common/DeRuler.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+ {{ tick.label }}
+
+
+
+
+
+
diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue
index 0a8b62b65c..a7cf5d8277 100644
--- a/core/core-frontend/src/views/data-visualization/index.vue
+++ b/core/core-frontend/src/views/data-visualization/index.vue
@@ -39,6 +39,7 @@ import { Base64 } from 'js-base64'
import CanvasCacheDialog from '@/components/visualization/CanvasCacheDialog.vue'
import { deepCopy } from '@/utils/utils'
import DvPreview from '@/views/data-visualization/DvPreview.vue'
+import DeRuler from '@/custom-component/common/DeRuler.vue'
const interactiveStore = interactiveStoreWithOut()
const embeddedStore = useEmbedded()
const { wsCache } = useCache()
@@ -100,9 +101,6 @@ const contentStyle = computed(() => {
}
} else {
return {
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
width: width * 1.5 + 'px',
height: height * 1.5 + 'px'
}
@@ -400,15 +398,17 @@ eventBus.on('handleNew', handleNew)
@mousedown="handleMouseDown"
@mouseup="deselectCurComponent"
>
-
+
+
+
@@ -535,4 +535,12 @@ eventBus.on('handleNew', handleNew)
height: 1px;
background: #000;
}
+
+.canvas-dv-inner {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}