1. colorfulComponentsByType

将指定的构件设置为变色。

1.1. 参数说明:

名称 说明 类型 是否必填 示例
type 差异类型 字符串 string 见BOS3D.Plugins.CompareComponentType
color 颜色 数字 number 值 域(0x000000-0xffffff) 0x00ff00
opacity 不透明度 数字 number 值 域(0-1,要求两位小数的精度) 0.50
返回值说明 类型 示例
无返回值 NULL NULL

1.2. 调用方式:

/**
* 将指定的构件设置为变色
*    @colorfulComponentsByType
*    @param {string} type    对比结果的类型
* @param {number}    color    要设置的颜色,范围 0x000000-0xFFFFFF    16进制
* @param {number} opacity    要设置的不透明度(默认为1),范围 0-1    10进制
*    @return {void}
*/ 
compare.colorfulComponentsByType(BOS3D.Plugins.CompareComponentType.added,0x00ff00,1);
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2021 all right reserved,powered by Gitbook该文件修订时间: 2021-12-20 09:58:36

results matching ""

    No results matching ""