@virtualdisplay.io/client 3.7.0 → 4.0.0-alpha.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/CHANGELOG.md +44 -76
- package/LICENSE +1 -1
- package/README.md +374 -31
- package/dist/index.d.ts +0 -820
- package/dist/virtualdisplay.client.cjs.js +1 -8
- package/dist/virtualdisplay.client.es.js +794 -8022
- package/dist/virtualdisplay.client.umd.js +1 -8
- package/package.json +14 -98
- package/README.npm.md +0 -78
- package/dist/virtualdisplay.client.cjs.js.map +0 -1
- package/dist/virtualdisplay.client.es.js.map +0 -1
- package/dist/virtualdisplay.client.umd.js.map +0 -1
- package/node_modules/@virtualdisplay-io/logger/CHANGELOG.md +0 -82
- package/node_modules/@virtualdisplay-io/logger/LICENSE +0 -21
- package/node_modules/@virtualdisplay-io/logger/README.md +0 -314
- package/node_modules/@virtualdisplay-io/logger/dist/index.d.ts +0 -167
- package/node_modules/@virtualdisplay-io/logger/dist/virtualdisplay.logger.cjs.js +0 -4
- package/node_modules/@virtualdisplay-io/logger/dist/virtualdisplay.logger.cjs.js.map +0 -1
- package/node_modules/@virtualdisplay-io/logger/dist/virtualdisplay.logger.es.js +0 -377
- package/node_modules/@virtualdisplay-io/logger/dist/virtualdisplay.logger.es.js.map +0 -1
- package/node_modules/@virtualdisplay-io/logger/package.json +0 -79
package/README.npm.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Virtualdisplay client
|
|
2
|
-
|
|
3
|
-
TypeScript library for embedding interactive 3D product models in web applications.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @virtualdisplay.io/client
|
|
9
|
-
# or
|
|
10
|
-
pnpm add @virtualdisplay.io/client
|
|
11
|
-
# or
|
|
12
|
-
yarn add @virtualdisplay.io/client
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Quick start
|
|
16
|
-
|
|
17
|
-
### Simple product (no options)
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { VirtualdisplayClient } from '@virtualdisplay.io/client';
|
|
21
|
-
|
|
22
|
-
// That's it! Your 3D model is now displayed
|
|
23
|
-
const client = new VirtualdisplayClient({
|
|
24
|
-
parent: '#product-container',
|
|
25
|
-
license: 'your-license-key',
|
|
26
|
-
model: 'statue-model',
|
|
27
|
-
});
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Configurable product (with options)
|
|
31
|
-
|
|
32
|
-
```typescript
|
|
33
|
-
import { VirtualdisplayClient } from '@virtualdisplay.io/client';
|
|
34
|
-
|
|
35
|
-
// Create client instance
|
|
36
|
-
const client = new VirtualdisplayClient({
|
|
37
|
-
parent: '#product-container',
|
|
38
|
-
license: 'your-license-key',
|
|
39
|
-
model: 'sneaker',
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// Map product options to 3D parts
|
|
43
|
-
client.setMapping({
|
|
44
|
-
attributes: [
|
|
45
|
-
{
|
|
46
|
-
name: 'Color',
|
|
47
|
-
values: [
|
|
48
|
-
{ value: 'Red', nodeIds: ['laces_red', 'sole_red'], isSelected: true },
|
|
49
|
-
{ value: 'Blue', nodeIds: ['laces_blue', 'sole_blue'] },
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// Control via product options
|
|
56
|
-
client.getAttribute('Color')?.select('Red');
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Key features
|
|
60
|
-
|
|
61
|
-
- **Simple API**: Attribute-based product configuration
|
|
62
|
-
- **Fire-and-forget**: Send commands without waiting for responses
|
|
63
|
-
- **State sync**: Automatic synchronization between client and 3D viewer
|
|
64
|
-
- **Framework-agnostic**: Works with React, Vue, Angular, or vanilla JS
|
|
65
|
-
- **TypeScript first**: Full type safety and IntelliSense support
|
|
66
|
-
- **Minimal dependencies**: Only essential validation and logging included
|
|
67
|
-
|
|
68
|
-
## Documentation
|
|
69
|
-
|
|
70
|
-
For complete documentation including:
|
|
71
|
-
|
|
72
|
-
- API reference
|
|
73
|
-
- Advanced examples
|
|
74
|
-
- Integration guides
|
|
75
|
-
- Architecture diagrams
|
|
76
|
-
- Troubleshooting
|
|
77
|
-
|
|
78
|
-
Visit our [GitHub repository](https://github.com/virtualdisplay-io/client)
|