1. disableComponentsSelectionByKey
将指定的构件设置为不可选中。
1.1. 参数说明:
名称 | 说明 | 类型 | 是否必填 | 示例 |
---|---|---|---|---|
key | 构件key | 字符串 string 或数组Array | 是 | M123456或[M123456,M1234567] |
返回值说明 | 类型 | 示例 |
---|---|---|
无返回值 | NULL | NULL |
1.2. 调用方式:
/**
* 将指定的构件设置为不可选中
* @method disableComponentsSelectionByKey
* @param {array/string} key 构件key数组或构件key
* @return {void}
*/ viewer3D.disableComponentsSelectionByKey("M123456_123456");
1.3. Demo示例:
示例名称 | 示例地址 |
---|---|
冻结构件 | 去体验 |