mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-08 03:28:12 +08:00
Revert @graphite/ path imports in website (#1095)
Reverted @graphite path imports
This commit is contained in:
committed by
Keavon Chambers
parent
c0576ab4e0
commit
3f8adbafba
@@ -1,8 +1,8 @@
|
||||
import { WasmSubpath } from "@graphite/../wasm/pkg";
|
||||
import subpathFeatures, { SubpathFeatureKey } from "@graphite/features/subpath-features";
|
||||
import { renderDemo } from "@graphite/utils/render";
|
||||
import { WasmSubpath } from "@/../wasm/pkg";
|
||||
import subpathFeatures, { SubpathFeatureKey } from "@/features/subpath-features";
|
||||
import { renderDemo } from "@/utils/render";
|
||||
|
||||
import { SubpathCallback, WasmSubpathInstance, WasmSubpathManipulatorKey, InputOption } from "@graphite/utils/types";
|
||||
import { SubpathCallback, WasmSubpathInstance, WasmSubpathManipulatorKey, InputOption } from "@/utils/types";
|
||||
|
||||
const SELECTABLE_RANGE = 10;
|
||||
const POINT_INDEX_TO_MANIPULATOR: WasmSubpathManipulatorKey[] = ["set_anchor", "set_in_handle", "set_out_handle"];
|
||||
@@ -48,7 +48,7 @@ class SubpathDemo extends HTMLElement {
|
||||
this.render();
|
||||
|
||||
const figure = this.querySelector("figure") as HTMLElement;
|
||||
const wasm = await import("@graphite/../wasm/pkg");
|
||||
const wasm = await import("@/../wasm/pkg");
|
||||
this.subpath = wasm.WasmSubpath.from_triples(this.triples, this.closed) as WasmSubpathInstance;
|
||||
this.drawDemo(figure);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user