bill 4 月之前
父节点
当前提交
b35f2f5bd9
共有 3 个文件被更改,包括 7 次插入1 次删除
  1. 1 1
      src/app.vue
  2. 2 0
      src/components/drawing-time/current.vue
  3. 4 0
      src/style.scss

+ 1 - 1
src/app.vue

@@ -67,7 +67,7 @@ import { sdk, sdkLoaded } from "./sdk";
 const isStandard = ref(true);
 watchEffect(() => {
   if (sdkLoaded.value && !params.testMap) {
-    sdk.switchMapType(isStandard.value ? "satellite" : "standard");
+    // sdk.switchMapType(isStandard.value ? "satellite" : "standard");
   }
 });
 

+ 2 - 0
src/components/drawing-time/current.vue

@@ -62,12 +62,14 @@ watch(drag, (drag) => {
   const offsetX = drag.x;
 
   const currentX = props.currentTime * misPixel + offsetX;
+  console.log(offsetX, currentX / misPixel);
   currentX >= 0 && emit("update:currentTime", currentX / misPixel);
 });
 
 const invConfig = useViewerInvertTransformConfig();
 const currentX = computed(() => props.currentTime * misPixel);
 const currentMat = computed(() => {
+  console.log(currentX.value);
   return new Transform()
     .translate(currentX.value, 0)
     .scale(invConfig.value.scaleX, 1)

+ 4 - 0
src/style.scss

@@ -178,4 +178,8 @@ input::-ms-clear,input::-ms-reveal {
   color: #ffffff;
   line-height: 22px;
   word-break: break-all;
+}
+
+* {
+  user-select: none;
 }