-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: remove unused demos * refactor: adjust onresize handle * refactor: update 3d data resource * docs: update demos imports * refactor: handle resize uniformly and import module name * fix: fix issue that demo cannot get container * refactor: remove unused demos of algorithm and case
- Loading branch information
Showing
212 changed files
with
275 additions
and
164,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if (typeof window !== 'undefined') { | ||
window.onresize = () => { | ||
const { graph, container, widthOffset = 0, heightOffset = 0 } = window as any; | ||
|
||
if (!graph || graph.destroyed) return; | ||
if (!container || !container.scrollWidth || !container.scrollHeight) return; | ||
graph.setSize([container.scrollWidth + widthOffset, container.scrollHeight + heightOffset]); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
138 changes: 0 additions & 138 deletions
138
packages/site/examples/algorithm/algoDemos/demo/colorSets.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.