Fix svg-layout-designer.ts after history update + Update SVGLD.dts + add command to package.json
This commit is contained in:
parent
bcca10d0e9
commit
b3a3be0ba2
4 changed files with 1053 additions and 1036 deletions
|
@ -6,6 +6,7 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"build:dotnet": "dotnet build ./csharp/SVGLDLibs/SVGLDLibs/SVGLDLibs.csproj",
|
||||
"preview": "vite preview",
|
||||
"test": "vitest",
|
||||
"test:ui": "vitest --ui",
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
*/
|
||||
public Reset(): void {
|
||||
this.Editor.GetEditorState((state) => {
|
||||
this.Editor.SetHistory([state.history[0]]);
|
||||
this.Editor.SetHistory({ history: [state.history[0]] });
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@
|
|||
*/
|
||||
public ClearHistory(): void {
|
||||
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
1042
public/svgld.d.ts
vendored
File diff suppressed because it is too large
Load diff
1042
src/dts/svgld.d.ts
vendored
1042
src/dts/svgld.d.ts
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue