@nnepoch/dtc-sdk 3.0.12 → 3.0.14
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/cjs/index.d.cts
CHANGED
|
@@ -979,7 +979,7 @@ declare enum ModelTransformType {
|
|
|
979
979
|
EaseOutInBounce = 40
|
|
980
980
|
}
|
|
981
981
|
/**
|
|
982
|
-
* Model.
|
|
982
|
+
* Model.setVisibleByAttribute 过滤模式。
|
|
983
983
|
*/
|
|
984
984
|
declare enum FilterMode {
|
|
985
985
|
/** 宽松过滤:只处理属性匹配的对象,不符合条件不理会。 */
|
|
@@ -1159,7 +1159,7 @@ interface ModelSetVisibleByTagsRequest {
|
|
|
1159
1159
|
visible?: boolean;
|
|
1160
1160
|
}
|
|
1161
1161
|
/**
|
|
1162
|
-
* Model.
|
|
1162
|
+
* Model.setVisibleByAttribute 参数。
|
|
1163
1163
|
*/
|
|
1164
1164
|
interface ModelSetVisibleByAttributeRequest {
|
|
1165
1165
|
/** 属性对象,key 为属性名称,value 为属性值。 */
|
|
@@ -4045,21 +4045,21 @@ declare class Model extends BaseApi {
|
|
|
4045
4045
|
* @example 宽松过滤 Loose:只影响属性匹配 floor='B2' 的对象,其它对象不受影响
|
|
4046
4046
|
* ```ts
|
|
4047
4047
|
* // 隐藏 floor='B2' 的对象
|
|
4048
|
-
* dtcEngine.Model.
|
|
4048
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B2' }, filterMode: dtcEngine.Enums.FilterMode.Loose, visible: false }, (result) => { console.log(result); });
|
|
4049
4049
|
* // 显示 floor='B2' 的对象
|
|
4050
|
-
* dtcEngine.Model.
|
|
4050
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B2' }, filterMode: dtcEngine.Enums.FilterMode.Loose, visible: true }, (result) => { console.log(result); });
|
|
4051
4051
|
* ```
|
|
4052
4052
|
* @example 严格过滤 Strict:floor='B1' 的对象按 visible 控制,其它楼层对象按 otherVisible 控制
|
|
4053
4053
|
* ```ts
|
|
4054
4054
|
* // 隐藏 floor='B1' 的对象,其它楼层对象也隐藏
|
|
4055
|
-
* dtcEngine.Model.
|
|
4055
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: false, otherVisible: false }, (result) => { console.log(result); });
|
|
4056
4056
|
* // 隐藏 floor='B1' 的对象,其它楼层对象显示
|
|
4057
|
-
* dtcEngine.Model.
|
|
4057
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: false, otherVisible: true }, (result) => { console.log(result); });
|
|
4058
4058
|
* // 显示 floor='B1' 的对象,其它楼层对象隐藏
|
|
4059
|
-
* dtcEngine.Model.
|
|
4059
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: true, otherVisible: false }, (result) => { console.log(result); });
|
|
4060
4060
|
* ```
|
|
4061
4061
|
*/
|
|
4062
|
-
|
|
4062
|
+
setVisibleByAttribute(payload: ModelSetVisibleByAttributeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4063
4063
|
/**
|
|
4064
4064
|
* 获取指定节点的一层子对象树。
|
|
4065
4065
|
* @param payload - 节点标识参数。
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -979,7 +979,7 @@ declare enum ModelTransformType {
|
|
|
979
979
|
EaseOutInBounce = 40
|
|
980
980
|
}
|
|
981
981
|
/**
|
|
982
|
-
* Model.
|
|
982
|
+
* Model.setVisibleByAttribute 过滤模式。
|
|
983
983
|
*/
|
|
984
984
|
declare enum FilterMode {
|
|
985
985
|
/** 宽松过滤:只处理属性匹配的对象,不符合条件不理会。 */
|
|
@@ -1159,7 +1159,7 @@ interface ModelSetVisibleByTagsRequest {
|
|
|
1159
1159
|
visible?: boolean;
|
|
1160
1160
|
}
|
|
1161
1161
|
/**
|
|
1162
|
-
* Model.
|
|
1162
|
+
* Model.setVisibleByAttribute 参数。
|
|
1163
1163
|
*/
|
|
1164
1164
|
interface ModelSetVisibleByAttributeRequest {
|
|
1165
1165
|
/** 属性对象,key 为属性名称,value 为属性值。 */
|
|
@@ -4045,21 +4045,21 @@ declare class Model extends BaseApi {
|
|
|
4045
4045
|
* @example 宽松过滤 Loose:只影响属性匹配 floor='B2' 的对象,其它对象不受影响
|
|
4046
4046
|
* ```ts
|
|
4047
4047
|
* // 隐藏 floor='B2' 的对象
|
|
4048
|
-
* dtcEngine.Model.
|
|
4048
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B2' }, filterMode: dtcEngine.Enums.FilterMode.Loose, visible: false }, (result) => { console.log(result); });
|
|
4049
4049
|
* // 显示 floor='B2' 的对象
|
|
4050
|
-
* dtcEngine.Model.
|
|
4050
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B2' }, filterMode: dtcEngine.Enums.FilterMode.Loose, visible: true }, (result) => { console.log(result); });
|
|
4051
4051
|
* ```
|
|
4052
4052
|
* @example 严格过滤 Strict:floor='B1' 的对象按 visible 控制,其它楼层对象按 otherVisible 控制
|
|
4053
4053
|
* ```ts
|
|
4054
4054
|
* // 隐藏 floor='B1' 的对象,其它楼层对象也隐藏
|
|
4055
|
-
* dtcEngine.Model.
|
|
4055
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: false, otherVisible: false }, (result) => { console.log(result); });
|
|
4056
4056
|
* // 隐藏 floor='B1' 的对象,其它楼层对象显示
|
|
4057
|
-
* dtcEngine.Model.
|
|
4057
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: false, otherVisible: true }, (result) => { console.log(result); });
|
|
4058
4058
|
* // 显示 floor='B1' 的对象,其它楼层对象隐藏
|
|
4059
|
-
* dtcEngine.Model.
|
|
4059
|
+
* dtcEngine.Model.setVisibleByAttribute({ attributes: { floor: 'B1' }, filterMode: dtcEngine.Enums.FilterMode.Strict, visible: true, otherVisible: false }, (result) => { console.log(result); });
|
|
4060
4060
|
* ```
|
|
4061
4061
|
*/
|
|
4062
|
-
|
|
4062
|
+
setVisibleByAttribute(payload: ModelSetVisibleByAttributeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4063
4063
|
/**
|
|
4064
4064
|
* 获取指定节点的一层子对象树。
|
|
4065
4065
|
* @param payload - 节点标识参数。
|