UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

24 lines (23 loc) 676 B
function getVisualColor(data) { const style = data.getVisual("style"); if (style) { const drawType = data.getVisual("drawType"); return style[drawType]; } } function getVisualOpacity(data) { const style = data.getVisual("style"); return style.opacity; } function getItemVisualColor(data, idx) { const style = data.getItemVisual(idx, "style"); if (style) { const drawType = data.getVisual("drawType"); return style[drawType]; } } function getItemVisualOpacity(data, idx) { const style = data.getItemVisual(idx, "style"); return style && style.opacity; } export { getItemVisualColor, getItemVisualOpacity, getVisualColor, getVisualOpacity };