|
@@ -234,7 +234,6 @@ const drawSceneResource = async (resource: SceneResource, draw: Draw) => {
|
|
draw.store.addItem("line", geo);
|
|
draw.store.addItem("line", geo);
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(icons, texts, images)
|
|
|
|
draw.store.addItems("icon", icons);
|
|
draw.store.addItems("icon", icons);
|
|
draw.store.addItems("text", texts);
|
|
draw.store.addItems("text", texts);
|
|
draw.store.addItems("image", images);
|
|
draw.store.addItems("image", images);
|
|
@@ -253,7 +252,6 @@ export const drawPlatformResource = async (
|
|
const resource = await getResource({ ...sceneData, scale: 100 });
|
|
const resource = await getResource({ ...sceneData, scale: 100 });
|
|
let bound = null as ReturnType<ReturnType<typeof genBound>["get"]>;
|
|
let bound = null as ReturnType<ReturnType<typeof genBound>["get"]>;
|
|
|
|
|
|
- console.log(resource)
|
|
|
|
await draw.history.onceTrack(async () => {
|
|
await draw.history.onceTrack(async () => {
|
|
draw.store.setConfig({ proportion: { scale: 10, unit: "mm" } });
|
|
draw.store.setConfig({ proportion: { scale: 10, unit: "mm" } });
|
|
bound = await drawSceneResource(resource, draw);
|
|
bound = await drawSceneResource(resource, draw);
|