KCL: Fix format
This commit is contained in:
@ -532,7 +532,7 @@ test.describe('Testing Camera Movement', () => {
|
|||||||
.then((value) => parseFloat(value))
|
.then((value) => parseFloat(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
async function doOrbitWith(callback = async () => { }) {
|
async function doOrbitWith(callback = async () => {}) {
|
||||||
await resetCamera()
|
await resetCamera()
|
||||||
|
|
||||||
await test.step(`Perform orbit`, async () => {
|
await test.step(`Perform orbit`, async () => {
|
||||||
|
@ -79,7 +79,7 @@ impl Context {
|
|||||||
|
|
||||||
self.execute_typed(program_ast_json, path, settings)
|
self.execute_typed(program_ast_json, path, settings)
|
||||||
.await
|
.await
|
||||||
.and_then(|outcome|JsValue::from_serde(&outcome).map_err(|e| {
|
.and_then(|outcome| JsValue::from_serde(&outcome).map_err(|e| {
|
||||||
// The serde-wasm-bindgen does not work here because of weird HashMap issues.
|
// The serde-wasm-bindgen does not work here because of weird HashMap issues.
|
||||||
// DO NOT USE serde_wasm_bindgen::to_value it will break the frontend.
|
// DO NOT USE serde_wasm_bindgen::to_value it will break the frontend.
|
||||||
KclErrorWithOutputs::no_outputs(KclError::internal(
|
KclErrorWithOutputs::no_outputs(KclError::internal(
|
||||||
|
@ -371,7 +371,7 @@ export class CameraControls {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _isCamMovingCallback: (isMoving: boolean, isTween: boolean) => void =
|
private _isCamMovingCallback: (isMoving: boolean, isTween: boolean) => void =
|
||||||
() => { }
|
() => {}
|
||||||
setIsCamMovingCallback(cb: (isMoving: boolean, isTween: boolean) => void) {
|
setIsCamMovingCallback(cb: (isMoving: boolean, isTween: boolean) => void) {
|
||||||
this._isCamMovingCallback = cb
|
this._isCamMovingCallback = cb
|
||||||
}
|
}
|
||||||
@ -1272,7 +1272,7 @@ export class CameraControls {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reactCameraPropertiesCallback: (a: ReactCameraProperties) => void = () => { }
|
reactCameraPropertiesCallback: (a: ReactCameraProperties) => void = () => {}
|
||||||
setReactCameraPropertiesCallback = (
|
setReactCameraPropertiesCallback = (
|
||||||
cb: (a: ReactCameraProperties) => void
|
cb: (a: ReactCameraProperties) => void
|
||||||
) => {
|
) => {
|
||||||
|
Reference in New Issue
Block a user