1. isolateComponentsByKey

通过构件key将指定的构件隔离,即仅显示隔离的构件。

1.1. 参数说明:

名称 说明 类型 是否必填 示例
key 构件key 字符串 string 或数组Array M123456或[M123456,M1234567]
state 构件状态 true为隐藏,false为略微可见,默认 布尔值boolean true
返回值说明 类型 示例
无返回值 NULL NULL

1.2. 调用方式:

/**
* 将指定的构件隔离,通过key
*    @isolateComponentsByKey
*    @param {array/string} key 构件key数组或构件key
*    @param {boolean} state    构件状态,true为隐藏,false为略微可见,默认true
*    @return {void}
*/ 
viewer3D.isolateComponentsByKey("M123456_123456",true);

1.3. Demo示例:

示例名称 示例地址
隔离构件 去体验
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2021 all right reserved,powered by Gitbook该文件修订时间: 2021-12-20 09:58:36

results matching ""

    No results matching ""