@avs/go-react 0.12.71739 → 0.13.71740
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/node_modules/.vite/deps/@polymer_iron-resizable-behavior_iron-resizable-behavior__js.js +1 -1
- package/demo/node_modules/.vite/deps/@polymer_polymer_lib_legacy_class__js.js +1 -1
- package/demo/node_modules/.vite/deps/_metadata.json +23 -23
- package/demo/public/hydrogen.json +1 -1
- package/demo/src/App.tsx +15 -36
- package/package.json +2 -2
package/demo/src/App.tsx
CHANGED
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
import './App.css'
|
|
2
|
-
import {
|
|
3
|
-
import { AvsGoDataViz } from '@avs/go-react/src/AvsGoDataViz';
|
|
4
|
-
|
|
5
|
-
const serverUrl = "http://localhost:8080/OpenVizAppServer/chart"
|
|
6
|
-
//const serverUrl = "hydrogen.json";
|
|
1
|
+
import './App.css'
|
|
2
|
+
import { AvsGoDataViz } from '@avs/go-react/src/AvsGoDataViz';
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
4
|
+
function App() {
|
|
5
|
+
return (
|
|
6
|
+
<div style={{width: '100vw', height: '100vh'}}>
|
|
7
|
+
<AvsGoDataViz
|
|
8
|
+
url='hydrogen.json'
|
|
9
|
+
urlLoadJsonFile
|
|
10
|
+
renderer='THREEJS'
|
|
11
|
+
transformEnable
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
const dataVizRef = useRef(null);
|
|
14
|
-
|
|
15
|
-
function handleLoadComplete() {
|
|
16
|
-
if (dataVizRef.current) {
|
|
17
|
-
dataVizRef.current.runAnimation();
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div style={{width: '100vw', height: '100vh'}}>
|
|
23
|
-
<AvsGoDataViz
|
|
24
|
-
ref={dataVizRef}
|
|
25
|
-
url={serverUrl}
|
|
26
|
-
xurlLoadJsonFile
|
|
27
|
-
sceneName="contour3dConstraint"
|
|
28
|
-
streamEnable
|
|
29
|
-
style={myStyle}
|
|
30
|
-
renderer='THREEJS'
|
|
31
|
-
transformEnable
|
|
32
|
-
onLoadComplete={handleLoadComplete}
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default App
|
|
17
|
+
export default App
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avs/go-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.71740",
|
|
4
4
|
"description": "React wrapper for AVS/Go web components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visualization",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Advanced Visual Systems Inc.",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@avs/go": "0.
|
|
14
|
+
"@avs/go": "0.13.71740",
|
|
15
15
|
"react": "^19.2.0",
|
|
16
16
|
"react-dom": "^19.2.0"
|
|
17
17
|
},
|