bill před 2 roky
rodič
revize
31a739b9cf
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 0 4
      src/graphic/Renderer/Draw.js
  2. 2 0
      src/views/scene/photo.vue

+ 0 - 4
src/graphic/Renderer/Draw.js

@@ -663,12 +663,8 @@ export default class Draw {
         vector.midDivide.leftMidDivideCurves,
         // vector.midDivide.rightMidDivideCurves,
       ]);
-<<<<<<< HEAD
-      ctx.lineWidth *= Settings.lineWidth;
-=======
       ctx.setLineDash([8 * coordinate.ratio, 8 * coordinate.ratio])
       ctx.lineWidth *= Settings.lineWidth
->>>>>>> 5ae8d1ce2015e939e02a33e021a2519d33b04481
       for (let coves of midCovesArray) {
         help.drawCoves(ctx, coves);
       }

+ 2 - 0
src/views/scene/photo.vue

@@ -42,6 +42,7 @@ const showCoverUrl = computed(() => {
 
 const tempPhoto = ref<string>();
 const coverRef = ref<HTMLImageElement>()
+const audio = new Audio("/camera1.mp3")
 const getCurrentScreen = (pos: Pos3D): Pos => {
   const sdk = useSDK()
   const data = sdk.scene.getScreenByPoint(pos)
@@ -84,6 +85,7 @@ const getCurrentScreens = (poss: Array<Pos3D>): Array<Pos> =>
   poss.map(getCurrentScreen).filter(pos => !!pos);
 
 const photo = genUseLoading(async () => {
+  await audio.play();
   const sdk = useSDK()
   const data = await screenshot(sdk)
   tempPhoto.value = await api.getFile(data.rawUrl)