Browse Source

style: keep expression style

enpitsulin 2 năm trước cách đây
mục cha
commit
6831371e2e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/composables/useTresContextProvider/index.ts

+ 5 - 1
src/composables/useTresContextProvider/index.ts

@@ -36,7 +36,11 @@ export function useTresContextProvider({
   rendererOptions: UseRendererOptions
 }): TresContext {
 
-  const elementSize = computed(() => toValue(windowSize) ? useWindowSize() : useElementSize(toValue(canvas)?.parentElement))
+  const elementSize = computed(() =>
+    toValue(windowSize)
+      ? useWindowSize()
+      : useElementSize(toValue(canvas)?.parentElement)
+  )
 
   const width = computed(() => elementSize.value.width.value)
   const height = computed(() => elementSize.value.height.value)