Target Quixos 059a6d747fc1
This commit is contained in:
+4
-4
@@ -41,10 +41,10 @@ export const createCanvas = (context: RuntimeContext) =>
|
||||
export const createPlacement = async (context: RuntimeContext) => {
|
||||
const input = normalizePlacementInput(context.input);
|
||||
await Promise.all([
|
||||
context.state<number>("port:web-studio-placement-constructor:x").set(input.x),
|
||||
context.state<number>("port:web-studio-placement-constructor:y").set(input.y),
|
||||
context.state<number>("port:web-studio-placement-constructor:width").set(input.width),
|
||||
context.state<number>("port:web-studio-placement-constructor:height").set(input.height),
|
||||
context.state<{ x: number; y: number }>("port:web-studio-placement-constructor:position")
|
||||
.set({ x: input.x, y: input.y }),
|
||||
context.state<{ width: number; height: number }>("port:web-studio-placement-constructor:size")
|
||||
.set({ width: input.width, height: input.height }),
|
||||
context.state<number>("port:web-studio-placement-constructor:z").set(input.z),
|
||||
]);
|
||||
await context.edge("port:web-studio-placement-constructor:subject").connect(input.subject_id);
|
||||
|
||||
Reference in New Issue
Block a user