@itwin/saved-views-react 0.9.5 → 0.9.7
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/lib/createViewState.js
CHANGED
|
@@ -313,7 +313,9 @@ async function unhideNewModelsAndCategories(iModel, viewState, viewData) {
|
|
|
313
313
|
queryMissingModels(iModel, new Set(viewData.models.disabled)),
|
|
314
314
|
]);
|
|
315
315
|
viewState.categorySelector.addCategories(visibleCategories);
|
|
316
|
-
viewState.modelSelector.
|
|
316
|
+
const modelSelector = viewState.modelSelector.clone();
|
|
317
|
+
modelSelector.addModels(visibleModels);
|
|
318
|
+
viewState.modelSelector = modelSelector;
|
|
317
319
|
return;
|
|
318
320
|
}
|
|
319
321
|
if (!viewData.categories?.disabled) {
|
|
@@ -21,7 +21,7 @@ const clipPrimitiveShapeMappings = [
|
|
|
21
21
|
];
|
|
22
22
|
const clipPlaneMappings = [
|
|
23
23
|
extractSimpleArray(simpleTypeOf("number"), "normal"),
|
|
24
|
-
extractNumber("
|
|
24
|
+
extractNumber("distance", "dist"),
|
|
25
25
|
extractBoolean("invisible"),
|
|
26
26
|
extractBoolean("interior"),
|
|
27
27
|
];
|
|
@@ -38,7 +38,7 @@ const clipVectorMappings = [
|
|
|
38
38
|
discriminator: "shape",
|
|
39
39
|
mappings: [...clipPrimitiveShapeMappings],
|
|
40
40
|
},
|
|
41
|
-
], "
|
|
41
|
+
], "clipVectors", "clip"),
|
|
42
42
|
];
|
|
43
43
|
/**
|
|
44
44
|
* Extracts the clip vectors from a legacy view
|
|
@@ -52,5 +52,5 @@ export const extractClipVectors = (input) => {
|
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
53
|
const output = {};
|
|
54
54
|
applyExtraction(viewDetails, output, clipVectorMappings);
|
|
55
|
-
return output
|
|
55
|
+
return output;
|
|
56
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/saved-views-react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"./public"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@itwin/core-bentley": "^
|
|
33
|
-
"@itwin/core-common": "^
|
|
34
|
-
"@itwin/core-frontend": "^
|
|
35
|
-
"@itwin/core-geometry": "^
|
|
32
|
+
"@itwin/core-bentley": "^5.0.0-dev.111",
|
|
33
|
+
"@itwin/core-common": "^5.0.0-dev.111",
|
|
34
|
+
"@itwin/core-frontend": "^5.0.0-dev.111",
|
|
35
|
+
"@itwin/core-geometry": "^5.0.0-dev.111",
|
|
36
36
|
"@testing-library/react": "^16.2.0",
|
|
37
|
-
"@itwin/appui-abstract": "^
|
|
38
|
-
"@itwin/core-orbitgt": "^
|
|
39
|
-
"@itwin/core-quantity": "^
|
|
37
|
+
"@itwin/appui-abstract": "^5.0.0-dev.111",
|
|
38
|
+
"@itwin/core-orbitgt": "^5.0.0-dev.111",
|
|
39
|
+
"@itwin/core-quantity": "^5.0.0-dev.111",
|
|
40
40
|
"@testing-library/dom": "^10.0.0",
|
|
41
41
|
"@types/react": "^18.0.0",
|
|
42
42
|
"@types/recursive-readdir": "^2.2.2",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"vitest": "^3.0.6"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@itwin/core-common": "^
|
|
59
|
-
"@itwin/core-frontend": "^
|
|
60
|
-
"@itwin/core-geometry": "^
|
|
61
|
-
"@itwin/appui-abstract": "^
|
|
62
|
-
"@itwin/core-orbitgt": "^
|
|
63
|
-
"@itwin/core-quantity": "^
|
|
58
|
+
"@itwin/core-common": "^5.0.0-dev.111",
|
|
59
|
+
"@itwin/core-frontend": "^5.0.0-dev.111",
|
|
60
|
+
"@itwin/core-geometry": "^5.0.0-dev.111",
|
|
61
|
+
"@itwin/appui-abstract": "^5.0.0-dev.111",
|
|
62
|
+
"@itwin/core-orbitgt": "^5.0.0-dev.111",
|
|
63
|
+
"@itwin/core-quantity": "^5.0.0-dev.111",
|
|
64
64
|
"react": "^18.0.0",
|
|
65
65
|
"react-dom": "^18.0.0"
|
|
66
66
|
},
|