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

@ -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

File diff suppressed because it is too large Load diff