gltf-parser-plugin 1.1.8 → 1.1.9
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.
|
@@ -2762,7 +2762,7 @@ function applyStyleAppearanceToMesh(mesh, appearance, scene, maps) {
|
|
|
2762
2762
|
* 通过 show 表达式控制可见性,通过 conditions 应用条件材质与可选位姿
|
|
2763
2763
|
*/
|
|
2764
2764
|
var StyleHelper = class {
|
|
2765
|
-
/**
|
|
2765
|
+
/** 当前样式配置;在插件上可通过 `plugin.style` 读写(与 `setStyle` 等价) */
|
|
2766
2766
|
style = null;
|
|
2767
2767
|
styledOids = /* @__PURE__ */ new Set();
|
|
2768
2768
|
hiddenOids = /* @__PURE__ */ new Set();
|
|
@@ -3862,11 +3862,14 @@ var GLTFParserPlugin = class {
|
|
|
3862
3862
|
this._styleHelper?.setStyle(style);
|
|
3863
3863
|
}
|
|
3864
3864
|
/**
|
|
3865
|
-
*
|
|
3865
|
+
* 当前样式配置。赋值与 `setStyle(...)` 等价,例如 `plugin.style = { show, conditions }`。
|
|
3866
3866
|
*/
|
|
3867
3867
|
get style() {
|
|
3868
3868
|
return this._styleHelper?.style ?? null;
|
|
3869
3869
|
}
|
|
3870
|
+
set style(style) {
|
|
3871
|
+
this.setStyle(style);
|
|
3872
|
+
}
|
|
3870
3873
|
/**
|
|
3871
3874
|
* 清除构件样式
|
|
3872
3875
|
*/
|