Fix svg-layout-designer.ts after history update + Update SVGLD.dts + add command to package.json

This commit is contained in:
Eric NGUYEN 2022-10-13 17:40:43 +02:00
parent bcca10d0e9
commit b3a3be0ba2
4 changed files with 1053 additions and 1036 deletions

View file

@ -6,6 +6,7 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"build:dotnet": "dotnet build ./csharp/SVGLDLibs/SVGLDLibs/SVGLDLibs.csproj",
"preview": "vite preview", "preview": "vite preview",
"test": "vitest", "test": "vitest",
"test:ui": "vitest --ui", "test:ui": "vitest --ui",

View file

@ -86,7 +86,7 @@
*/ */
public Reset(): void { public Reset(): void {
this.Editor.GetEditorState((state) => { this.Editor.GetEditorState((state) => {
this.Editor.SetHistory([state.history[0]]); this.Editor.SetHistory({ history: [state.history[0]] });
}); });
} }
@ -95,7 +95,7 @@
*/ */
public ClearHistory(): void { public ClearHistory(): void {
this.Editor.GetEditorState((state) => { this.Editor.GetEditorState((state) => {
this.Editor.SetHistory([state.history[state.history.length - 1]]); this.Editor.SetHistory({ history: [state.history[state.history.length - 1]] });
}); });
} }
} }

1042
public/svgld.d.ts vendored

File diff suppressed because it is too large Load diff

1042
src/dts/svgld.d.ts vendored

File diff suppressed because it is too large Load diff