-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed to use importmap and a new threejs version
- Loading branch information
1 parent
b08852b
commit a3b2ca0
Showing
5 changed files
with
15 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,16 @@ | |
.nodeLabelGraph3d, .linkLabelGraph3d { display: inline-block; background-color: olive; color: white; font-size: 14px; font-weight: bold; line-height: 20px; padding: 0 4px; height: auto; min-width: 14px; border-radius: 4px; text-align: center; vertical-align: middle; } | ||
</style> | ||
|
||
<script type="importmap"> | ||
{ "imports": | ||
{ | ||
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js/+esm", | ||
"three/examples/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/", | ||
"forcegraph": "https://cdn.jsdelivr.net/npm/[email protected]/+esm" | ||
} | ||
} | ||
</script> | ||
|
||
<script nomodule>alert("You browser doesn't seem to support modules. Use a modern desktop browser to run Hypergraph 3D.");</script> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script> | ||
|
||
|
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { | ||
BufferGeometry, BufferAttribute, Sprite, SpriteMaterial, Texture, | ||
MeshBasicMaterial, Mesh, DoubleSide, Vector3 | ||
} from 'https://cdn.jsdelivr.net/npm/three@0.149.0/build/three.module.js' | ||
} from 'three' | ||
import { ConvexGeometry } from './ConvexGeometry.mjs'; | ||
|
||
import _3dForceGraph from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'; | ||
import _3dForceGraph from 'forcegraph'; | ||
import { Graph } from "./Graph.mjs"; | ||
|
||
/** | ||
|
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