调色板组件
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ys |
Object | YouScene对象 | ||||||||||||
options |
Object |
对象有下面这些属性:
|
- Implements:
Example:
var youScene = new YS.YouScene({sdkServerUrl: 'http://ys.infoearth.com:9090/Server/'});
youScene.init("global");
var paletteControl = new YS.PaletteControl(youScene,{});
paletteControl.generatePalette(layer);
Demo:
Methods
-
清理组件的临时数据、成果等
- Implements:
-
销毁组件 重载时请务必调用
IControl.prototype.destroy.apply(this);
Returns:
- Implements:
-
generatePalette(imageLayer) → ImageLayer
-
生成透明度组件
Name Type Description imageLayer
ImageLayer ImageLayer对象 Returns:
返回色彩值改变的图层 -
该组件是否销毁 (true代表销毁了,false代表未销毁), 销毁后将不可以再使用
Returns:
- Implements:
Events
-
点x关闭组件事件