-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move CDN handling to a common place.
- Loading branch information
Showing
7 changed files
with
21 additions
and
14 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
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
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 |
---|---|---|
|
@@ -131,7 +131,13 @@ export function CreateOcctWorker (worker) | |
}); | ||
} | ||
|
||
export function LoadRhinoLibrary () | ||
export function LoadExternalLibrary (libraryName) | ||
{ | ||
return LoadExternalLibraryFromUrl ('https://cdn.jsdelivr.net/npm/[email protected]/rhino3dm.min.js'); | ||
if (libraryName === 'rhino3dm') { | ||
return LoadExternalLibraryFromUrl ('https://cdn.jsdelivr.net/npm/[email protected]/rhino3dm.min.js'); | ||
} else if (libraryName === 'draco3d') { | ||
return LoadExternalLibraryFromUrl ('https://cdn.jsdelivr.net/npm/[email protected]/draco_decoder_nodejs.min.js'); | ||
} else { | ||
return null; | ||
} | ||
} |
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