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]] });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
8
public/svgld.d.ts
vendored
8
public/svgld.d.ts
vendored
|
@ -75,6 +75,12 @@ export interface IAction {
|
|||
AddingBehavior: AddMethod;
|
||||
}
|
||||
|
||||
export interface IAPIConfiguration {
|
||||
apiFetchUrl?: string;
|
||||
apiSetContainerListUrl?: string;
|
||||
apiGetFeedbackUrl?: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -230,6 +236,7 @@ export interface ICategory {
|
|||
|
||||
|
||||
|
||||
|
||||
/** Model of configuration for the application to configure it */
|
||||
export interface IConfiguration {
|
||||
AvailableContainers: IAvailableContainer[];
|
||||
|
@ -237,6 +244,7 @@ export interface IConfiguration {
|
|||
Categories: ICategory[];
|
||||
Patterns: IPattern[];
|
||||
MainContainer: IAvailableContainer;
|
||||
APIConfiguration?: IAPIConfiguration;
|
||||
}
|
||||
|
||||
|
||||
|
|
8
src/dts/svgld.d.ts
vendored
8
src/dts/svgld.d.ts
vendored
|
@ -75,6 +75,12 @@ export interface IAction {
|
|||
AddingBehavior: AddMethod;
|
||||
}
|
||||
|
||||
export interface IAPIConfiguration {
|
||||
apiFetchUrl?: string;
|
||||
apiSetContainerListUrl?: string;
|
||||
apiGetFeedbackUrl?: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -230,6 +236,7 @@ export interface ICategory {
|
|||
|
||||
|
||||
|
||||
|
||||
/** Model of configuration for the application to configure it */
|
||||
export interface IConfiguration {
|
||||
AvailableContainers: IAvailableContainer[];
|
||||
|
@ -237,6 +244,7 @@ export interface IConfiguration {
|
|||
Categories: ICategory[];
|
||||
Patterns: IPattern[];
|
||||
MainContainer: IAvailableContainer;
|
||||
APIConfiguration?: IAPIConfiguration;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue