@multisetai/vps 1.0.7-beta.5 → 1.0.7-beta.6
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 +5 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ For more details, see the [MultiSet CORS Configuration Documentation](https://do
|
|
|
73
73
|
### 1. Import the SDK
|
|
74
74
|
|
|
75
75
|
```typescript
|
|
76
|
-
import { MultisetClient
|
|
76
|
+
import { MultisetClient } from '@multisetai/vps/core';
|
|
77
77
|
import { WebxrController } from '@multisetai/vps/webxr';
|
|
78
78
|
```
|
|
79
79
|
|
|
@@ -85,7 +85,6 @@ const client = new MultisetClient({
|
|
|
85
85
|
clientSecret: 'CLIENT_SECRET',
|
|
86
86
|
code: 'MAP_OR_MAPSET_CODE',
|
|
87
87
|
mapType: 'map', // or 'map-set'
|
|
88
|
-
endpoints: DEFAULT_ENDPOINTS,
|
|
89
88
|
onAuthorize: (token) => console.log('Authorized:', token),
|
|
90
89
|
onError: (error) => console.error('Error:', error),
|
|
91
90
|
});
|
|
@@ -351,7 +350,7 @@ import type {
|
|
|
351
350
|
|
|
352
351
|
```javascript
|
|
353
352
|
import * as THREE from 'three';
|
|
354
|
-
import { MultisetClient
|
|
353
|
+
import { MultisetClient } from '@multisetai/vps/core';
|
|
355
354
|
import { WebxrController } from '@multisetai/vps/webxr';
|
|
356
355
|
|
|
357
356
|
const client = new MultisetClient({
|
|
@@ -359,8 +358,8 @@ const client = new MultisetClient({
|
|
|
359
358
|
clientSecret: 'CLIENT_SECRET',
|
|
360
359
|
code: 'MAP_OR_MAPSET_CODE',
|
|
361
360
|
mapType: 'map',
|
|
362
|
-
endpoints: DEFAULT_ENDPOINTS,
|
|
363
361
|
// Optional advanced behavior
|
|
362
|
+
showMesh: true,
|
|
364
363
|
autoLocalize: true,
|
|
365
364
|
relocalization: true,
|
|
366
365
|
confidenceCheck: true,
|
|
@@ -404,7 +403,7 @@ if (result?.localizeData?.poseFound) {
|
|
|
404
403
|
```tsx
|
|
405
404
|
import { useEffect, useRef, useState } from 'react';
|
|
406
405
|
import * as THREE from 'three';
|
|
407
|
-
import { MultisetClient
|
|
406
|
+
import { MultisetClient } from '@multisetai/vps/core';
|
|
408
407
|
import { WebxrController } from '@multisetai/vps/webxr';
|
|
409
408
|
|
|
410
409
|
export default function App() {
|
|
@@ -419,7 +418,7 @@ export default function App() {
|
|
|
419
418
|
clientSecret: 'CLIENT_SECRET',
|
|
420
419
|
code: 'MAP_OR_MAPSET_CODE',
|
|
421
420
|
mapType: 'map',
|
|
422
|
-
|
|
421
|
+
showMesh: true,
|
|
423
422
|
});
|
|
424
423
|
|
|
425
424
|
controllerRef.current = new WebxrController({
|