You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
618 B
24 lines
618 B
export function getVisualColor(data) {
|
|
const style = data.getVisual('style');
|
|
|
|
if (style) {
|
|
const drawType = data.getVisual('drawType');
|
|
return style[drawType];
|
|
}
|
|
}
|
|
export function getVisualOpacity(data) {
|
|
const style = data.getVisual('style');
|
|
return style.opacity;
|
|
}
|
|
export function getItemVisualColor(data, idx) {
|
|
const style = data.getItemVisual(idx, 'style');
|
|
|
|
if (style) {
|
|
const drawType = data.getVisual('drawType');
|
|
return style[drawType];
|
|
}
|
|
}
|
|
export function getItemVisualOpacity(data, idx) {
|
|
const style = data.getItemVisual(idx, 'style');
|
|
return style && style.opacity;
|
|
} |