@shapediver/viewer.session 3.0.1 → 3.0.2
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/README.md +35 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
1
|
# `@shapediver/viewer.session`
|
|
2
|
+
|
|
3
|
+
This is the npm package for the ShapeDiver Viewer Session API.
|
|
4
|
+
For more information on ShapeDiver, please visit our [homepage](https://shapediver.com/).
|
|
5
|
+
|
|
6
|
+
For the documentation of the Viewer, there are three main pages:
|
|
7
|
+
- [The Viewer help desk](https://help.shapediver.com/doc/viewer) which offers introductions, descriptions and guides.
|
|
8
|
+
- [The Viewer API documentation](https://viewer.shapediver.com/v3/latest/api/index.html) which offers the technical documentation of the API.
|
|
9
|
+
- [The Viewer examples page](https://viewer.shapediver.com/v3/examples/index.html) which offers various examples (with github links and CodeSandBoxes).
|
|
10
|
+
|
|
11
|
+
If you have any questions or need help with the viewer, please visit the [ShapeDiver Forum](https://forum.shapediver.com/).
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
```
|
|
15
|
+
npm install --save @shapediver/viewer.session
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
The ShapeDiver Viewer consists of simple components that you can use in your own application. You can see here how you can create those components and some things that you can do with them. Please have a look at the specific documentations or the [help desk](https://help.shapediver.com/doc/Viewer.1836580882.html) for further information.
|
|
21
|
+
|
|
22
|
+
### createSession
|
|
23
|
+
|
|
24
|
+
The [session](./interfaces/ISessionApi.html) is the component that connects to the ShapeDiver servers. This component is used to change [parameters](./interfaces/IParameterApi.html), to create [exports](./interfaces/IExportApi.html) and to manage the [outputs](./interfaces/IOutputApi.html). For more information on what all of these terms mean, please visit our [help desk page](https://help.shapediver.com/doc/sessions).
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { createSession } from '@shapediver/viewer';
|
|
28
|
+
|
|
29
|
+
const session = await createSession({
|
|
30
|
+
id: 'mySession',
|
|
31
|
+
ticket: MY_TICKET,
|
|
32
|
+
modelViewUrl: MY_MODEL_VIEW_URL
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Once a session is created, the initial outputs are already loaded (unless specified otherwise in the [method options](./modules.html#createSession)).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.session",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webgl",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@shapediver/sdk.geometry-api-sdk-v2": "1.8.2",
|
|
53
|
-
"@shapediver/viewer.api.general": "3.0.
|
|
54
|
-
"@shapediver/viewer.creation-control-center.session": "3.0.
|
|
55
|
-
"@shapediver/viewer.data-engine.gltf-converter": "3.0.
|
|
56
|
-
"@shapediver/viewer.data-engine.shared-types": "3.0.
|
|
57
|
-
"@shapediver/viewer.session-engine.session-engine": "3.0.
|
|
58
|
-
"@shapediver/viewer.shared.math": "3.0.
|
|
59
|
-
"@shapediver/viewer.shared.node-tree": "3.0.
|
|
60
|
-
"@shapediver/viewer.shared.services": "3.0.
|
|
53
|
+
"@shapediver/viewer.api.general": "3.0.2",
|
|
54
|
+
"@shapediver/viewer.creation-control-center.session": "3.0.2",
|
|
55
|
+
"@shapediver/viewer.data-engine.gltf-converter": "3.0.2",
|
|
56
|
+
"@shapediver/viewer.data-engine.shared-types": "3.0.2",
|
|
57
|
+
"@shapediver/viewer.session-engine.session-engine": "3.0.2",
|
|
58
|
+
"@shapediver/viewer.shared.math": "3.0.2",
|
|
59
|
+
"@shapediver/viewer.shared.node-tree": "3.0.2",
|
|
60
|
+
"@shapediver/viewer.shared.services": "3.0.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ba2313cb4940b573b3495ae4bba943596d599e8c"
|
|
63
63
|
}
|