@reearth/core 0.0.7-alpha.39 → 0.0.7-alpha.40
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/core.js +2 -9
- package/dist/core.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/engines/Cesium/Feature/Tileset/hooks.ts +28 -22
package/dist/core.js
CHANGED
|
@@ -82487,15 +82487,8 @@ const useDrawClipping = ({
|
|
|
82487
82487
|
const ba = yt.raw, Sc = getTag(ba), ms = c && !(ba instanceof Model$1) ? convertCesium3DTileFeatureProperties(ba) : {}, Xs = S ? h.current.includes((Sc == null ? void 0 : Sc.featureId) ?? "") : Sc == null ? void 0 : Sc.isFeatureSelected, yu = p(lt, { ...yt == null ? void 0 : yt.feature, properties: ms }), Nl = yu == null ? void 0 : yu["3dtiles"];
|
|
82488
82488
|
return COMMON_STYLE_PROPERTIES.forEach(({ name: pu, convert: Ru }) => {
|
|
82489
82489
|
var Gd, uf;
|
|
82490
|
-
if (pu === "color") {
|
|
82491
|
-
if (Xs) {
|
|
82492
|
-
ba.color = typeof ((Gd = lt["3dtiles"]) == null ? void 0 : Gd.selectedFeatureColor) == "string" ? toColor((uf = lt["3dtiles"]) == null ? void 0 : uf.selectedFeatureColor) ?? ba.color : ba.color;
|
|
82493
|
-
return;
|
|
82494
|
-
}
|
|
82495
|
-
ba.color = DEFAULT_FEATURE_COLOR;
|
|
82496
|
-
}
|
|
82497
82490
|
const Vd = convertStyle(Nl == null ? void 0 : Nl[pu], Ru);
|
|
82498
|
-
Vd !== void 0 && (ba[pu] = Vd);
|
|
82491
|
+
pu === "color" ? (ba.color = DEFAULT_FEATURE_COLOR, Vd !== void 0 && (ba.color = Vd), Xs && typeof ((Gd = lt["3dtiles"]) == null ? void 0 : Gd.selectedFeatureColor) == "string" && (ba.color = toColor((uf = lt["3dtiles"]) == null ? void 0 : uf.selectedFeatureColor) ?? Vd)) : Vd !== void 0 && (ba[pu] = Vd);
|
|
82499
82492
|
}), ba instanceof Cesium3DTilePointFeature && POINT_STYLE_PROPERTIES.forEach(({ name: pu, convert: Ru }) => {
|
|
82500
82493
|
const Vd = convertStyle(Nl == null ? void 0 : Nl[pu], Ru);
|
|
82501
82494
|
Vd !== void 0 && (ba[pu] = Vd);
|
|
@@ -91388,7 +91381,7 @@ function Error$1({ error: t, resetErrorBoundary: n }) {
|
|
|
91388
91381
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("button", { style: { color: "#fff" }, onClick: n, children: "Retry" }) })
|
|
91389
91382
|
] });
|
|
91390
91383
|
}
|
|
91391
|
-
const version = "0.0.7-alpha.
|
|
91384
|
+
const version = "0.0.7-alpha.40", useCoreAPI = ({ viewerProperty: t }) => {
|
|
91392
91385
|
const n = useRef(t);
|
|
91393
91386
|
n.current = t;
|
|
91394
91387
|
const o = useMemo(
|