Camera FocusTarget width and height are now optional
This commit is contained in:
parent
d99930a67e
commit
a164cedf3f
6 changed files with 31 additions and 25 deletions
|
@ -20,11 +20,12 @@ export class WorkAdventureCameraCommands extends IframeApiContribution<WorkAdven
|
|||
public setViewport(
|
||||
x: number,
|
||||
y: number,
|
||||
width: number,
|
||||
height: number,
|
||||
width?: number,
|
||||
height?: number,
|
||||
lock: boolean = false,
|
||||
smooth: boolean = false
|
||||
): void {
|
||||
console.log({ x, y, width, height, lock, smooth });
|
||||
sendToWorkadventure({
|
||||
type: "cameraSetViewport",
|
||||
data: { x, y, width, height, lock, smooth },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue