mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
[TS] Fix weak ds.offset type breaks litegraph CI (#3861)
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { LGraphNode } from '@comfyorg/litegraph'
|
import type { LGraphNode, Point } from '@comfyorg/litegraph'
|
||||||
import { useEventListener } from '@vueuse/core'
|
import { useEventListener } from '@vueuse/core'
|
||||||
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
|
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
|
||||||
|
|
||||||
@@ -242,7 +242,7 @@ watch(
|
|||||||
},
|
},
|
||||||
get offset() {
|
get offset() {
|
||||||
const [x, y] = canvas.ds.offset
|
const [x, y] = canvas.ds.offset
|
||||||
return [x, y]
|
return [x, y] satisfies Point
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user