Skip to content

Commit 5f0e4d7

Browse files
committed
fix: node & shapes & editor-ui
1 parent 592e84b commit 5f0e4d7

6 files changed

Lines changed: 229 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "embed-drawio",
3-
"version": "0.1.3",
3+
"version": "0.1.5",
44
"files": [
55
"dist",
66
"pnpm-lock.yaml"
@@ -47,6 +47,7 @@
4747
"gulp": "5.0.0",
4848
"gulp-clean-css": "4.3.0",
4949
"gulp-concat": "2.6.1",
50+
"jsdom": "25.0.1",
5051
"prettier": "2.4.1",
5152
"react": "17.0.2",
5253
"react-app-rewired": "2.1.8",

pnpm-lock.yaml

Lines changed: 200 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/viewer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import "../editor/js/Shapes";
12
import { stringToXml } from "../utils/xml";
23
import { DEFAULT_STYLE_XML } from "../styles/default";
3-
import { Graph } from "../editor";
4+
import { Graph } from "../editor/js/Graph";
45
import { mxCodec, mxEvent } from "./mxgraph";
56

67
const themes: Record<string, Node> = {};

src/editor/js/EditorUi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
mxCodecRegistry,
2424
mxMorphing,
2525
} from "../../core/mxgraph";
26+
import { PageSetup } from "./PageSetup";
2627
import { Actions } from "./Actions";
2728
import { Editor, Dialog, ErrorDialog } from "./Editor";
2829
import { Sidebar } from "./Sidebar";
@@ -32,7 +33,6 @@ import { Toolbar } from "./Toolbar";
3233
import { Format } from "./Format";
3334
import { ColorDialog } from "./Dialogs";
3435
import { submenuImage } from "../images/base64";
35-
import { PageSetup } from "./PageSetup";
3636

3737
export { EditorUi };
3838

0 commit comments

Comments
 (0)