@wandelbots/wandelbots-js-react-components 2.59.0 → 2.59.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/dist/components/robots/robotModelLogic.d.ts.map +1 -1
- package/dist/index.cjs +43 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2433 -2434
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/robotModelLogic.ts +3 -6
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { Object3D } from "three"
|
|
2
2
|
import type { GLTF } from "three-stdlib"
|
|
3
|
-
import { version } from "../../../package.json"
|
|
4
3
|
|
|
5
4
|
export function defaultGetModel(modelFromController: string): string {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
return `https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${useVersion ? `@${useVersion}` : ""}/public/models/${modelFromController}.glb`
|
|
5
|
+
// we are using v2 because its bundles the robot models for the latest v2
|
|
6
|
+
// its encouraged to use v4 which switches to robotDataProvider for fetching the 3d-robot-models
|
|
7
|
+
return `https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components@v2/public/models/${modelFromController}.glb`
|
|
11
8
|
}
|
|
12
9
|
|
|
13
10
|
/**
|