Merged PR 212: Optimize FindChildrenById from O(n) to O(1)
Optimize FindChildrenById from O(n) to O(1): - Deprecate FindContainerByIdDFS - Container: Replace Children to string[] - Add HashMap to IHistoryState that contains all containers To access a container by id now cost O(1) without any additional cost + Implement CICD for SVGLibs
This commit is contained in:
parent
466ef2b08b
commit
c256a76e01
45 changed files with 775 additions and 450 deletions
4
public/svgld-settings.d.ts
vendored
Normal file
4
public/svgld-settings.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
export declare const API_FETCH_URL: string;
|
||||
export declare const API_SET_CONTAINER_LIST_URL: string;
|
||||
export declare const API_GET_FEEDBACK_URL: string;
|
3
public/svgld-settings.js
Normal file
3
public/svgld-settings.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
export const API_FETCH_URL = 'http://localhost:5000';
|
||||
export const API_SET_CONTAINER_LIST_URL = 'http://localhost:5000/SetContainerList';
|
||||
export const API_GET_FEEDBACK_URL = 'http://localhost:5000/GetFeedback';
|
|
@ -9,6 +9,10 @@ const getCircularReplacer = () => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (key === 'containers') {
|
||||
return Array.from(value.entries());
|
||||
}
|
||||
|
||||
if (key === 'symbols') {
|
||||
return Array.from(value.entries());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue