File tree Expand file tree Collapse file tree 5 files changed +45
-1
lines changed
examples/graph-layers/graph-viewer Expand file tree Collapse file tree 5 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 6
6
"type" : " module" ,
7
7
"scripts" : {
8
8
"start" : " vite --open" ,
9
- "start-local" : " vite --config ../vite.config.local.mjs"
9
+ "start-local" : " vite --config ../../ vite.config.local.mjs"
10
10
},
11
11
"dependencies" : {
12
12
"@deck.gl-community/graph-layers" : " ^9.1.0-beta.5" ,
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const config = {
53
53
'@deck.gl-community/bing-maps' : resolve ( '../modules/bing-maps/src' ) ,
54
54
'@deck.gl-community/leaflet' : resolve ( '../modules/leaflet/src' ) ,
55
55
'@deck.gl-community/graph-layers' : resolve ( '../modules/graph-layers/src' ) ,
56
+ '@deck.gl-community/infovis-layers' : resolve ( '../modules/infovis-layers/src' ) ,
56
57
'@deck.gl-community/react' : resolve ( '../modules/react/src' ) ,
57
58
'@deck.gl-community/layers' : resolve ( '../modules/layers/src' ) ,
58
59
'@deck.gl-community/arrow-layers' : resolve ( '../modules/arrow-layers/src' ) ,
Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ const sidebars = {
28
28
"graph-layers/graph-viewer"
29
29
]
30
30
} ,
31
+ {
32
+ type : 'category' ,
33
+ label : '@deck.gl-community/infovis-layers' ,
34
+ items : [
35
+ "infovis-layers/horizon-graph-layer"
36
+ ]
37
+ } ,
31
38
{
32
39
type : 'category' ,
33
40
label : '@deck.gl-community/editable-layers' ,
Original file line number Diff line number Diff line change
1
+ # Horizon Graph Layer Demo
2
+
3
+ import Demo from ' ./horizon-graph-layer' ;
4
+
5
+ <Demo />
Original file line number Diff line number Diff line change
1
+ import React , { Component } from 'react' ;
2
+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
3
+
4
+ import { GITHUB_TREE } from '../../constants/defaults' ;
5
+
6
+ import { makeExample } from '../../components' ;
7
+
8
+ class HorizonDemo extends Component {
9
+ static title = 'Horizon Graph Layer Demo' ;
10
+
11
+ static code = `${ GITHUB_TREE } /examples/infovis-layers/horizon-graph-layer` ;
12
+
13
+ static renderInfo ( meta ) {
14
+ return < > </ > ;
15
+ }
16
+
17
+ render ( ) {
18
+ const { ...otherProps } = this . props ;
19
+
20
+ return (
21
+ < BrowserOnly >
22
+ { ( ) => {
23
+ const App = require ( '../../../../examples/infovis-layers/horizon-graph-layer/app' ) . default ;
24
+ return < App { ...otherProps } /> ;
25
+ } }
26
+ </ BrowserOnly >
27
+ ) ;
28
+ }
29
+ }
30
+
31
+ export default makeExample ( HorizonDemo ) ;
You can’t perform that action at this time.
0 commit comments