beckhoff-xts-viewer-3d 1.1.0 → 2.0.0

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 CHANGED
@@ -25,13 +25,12 @@ import { XtsViewer3D } from 'beckhoff-xts-viewer-3d';
25
25
  config={{
26
26
  processingUnits: [
27
27
  {
28
- index: 0,
28
+ objectId: 0,
29
29
  moverType: 'AT9014_0055',
30
30
  parts: [
31
31
  {
32
32
  objectId: 0,
33
33
  globalNumber: 0,
34
- index: 0,
35
34
  modules: [
36
35
  { moduleType: 'AT2001_0250', globalNumber: 1 },
37
36
  { moduleType: 'AT2000_0250', globalNumber: 2 },
@@ -45,7 +44,7 @@ import { XtsViewer3D } from 'beckhoff-xts-viewer-3d';
45
44
  },
46
45
  ],
47
46
  movers: [
48
- { moverIndex: 0, id: 'mover-0', partOid: 0, partPositionMm: 200 },
47
+ { index: 0, id: 0, partOid: 0, partPositionMm: 200 },
49
48
  ],
50
49
  },
51
50
  ],
@@ -139,7 +138,7 @@ reflections, ACES tone mapping and anisotropic textures are on by default.
139
138
  - **Imperative ref API** — `zoomToFit` / `setCamera` / `getCamera` /
140
139
  `getMoverWorldTransform` / `getBoundingBox` / `exportModel` /
141
140
  `exportScreenshot` / `setMoverPosition(s)` (Record or
142
- `MoverPositionEntry[]` indexed by `moverIndex`) / `getMoverPosition` /
141
+ `MoverPositionEntry[]` indexed by `MoverConfig.index`) / `getMoverPosition` /
143
142
  `setModuleStatuses` / `clearModuleStatuses` / `checkMoverCollisions` /
144
143
  `reloadAssets`.
145
144
  - **Designed for scale** — the `⚡ Perf stress` demo runs three ovals × 250
@@ -257,7 +256,7 @@ function App() {
257
256
  useEffect(() => {
258
257
  let raf = 0;
259
258
  const tick = (t: number) => {
260
- viewerRef.current?.setMoverPosition('mover-0', (t / 5) % 3000);
259
+ viewerRef.current?.setMoverPosition(0, (t / 5) % 3000);
261
260
  raf = requestAnimationFrame(tick);
262
261
  };
263
262
  raf = requestAnimationFrame(tick);
@@ -437,12 +436,12 @@ areas, stops, ghosts, and `getMoverWorldTransform` all follow:
437
436
  ```tsx
438
437
  processingUnits: [
439
438
  {
440
- index: 0,
439
+ objectId: 0,
441
440
  moverType: 'AT9014_0055',
442
441
  positionFrame: { direction: 'negative', originMm: 1500 },
443
442
  parts: [/* … */],
444
443
  movers: [
445
- { moverIndex: 0, id: 'mover-0', partOid: 0, partPositionMm: 0 },
444
+ { index: 0, id: 0, partOid: 0, partPositionMm: 0 },
446
445
  ],
447
446
  },
448
447
  ]