@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/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)