|
@@ -7,9 +7,9 @@ import type { Emitter } from 'mitt'
|
|
|
|
|
|
|
|
|
type SceneModelAttrs = ModelAttrs & { select: boolean }
|
|
|
-export type SceneModel = Emitter<Pick<SceneModelAttrs, 'position' | 'rotation' | 'select'>>
|
|
|
- & ToChangeAPI<Omit<SceneModelAttrs, 'position' | 'rotation'>>
|
|
|
+export type SceneModel = ToChangeAPI<Omit<SceneModelAttrs, 'position' | 'rotation'>>
|
|
|
& {
|
|
|
+ bus: Emitter<Pick<SceneModelAttrs, 'position' | 'rotation' | 'select'>>
|
|
|
destroy: () => void
|
|
|
enterRotateMode: () => void
|
|
|
leaveRotateMode: () => void
|
|
@@ -62,7 +62,7 @@ export const initialSDK = async (props: InialSDKProps) => {
|
|
|
await Promise.all(libs.map(loadLib))
|
|
|
await loadLib(`/lib/potree/potree.js`)
|
|
|
|
|
|
- sdk = cover(props.layout) as SDK
|
|
|
+ sdk = cover(props.layout) as unknown as SDK
|
|
|
setup(sdk, presetViewElement(props.layout))
|
|
|
}
|
|
|
|