MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / toRGBA

Method toRGBA

src/openlayers/overlay/Graphic.js:410–412  ·  view source on GitHub ↗
(colorArray)

Source from the content-addressed store, hash-verified

408 }
409
410 toRGBA(colorArray) {
411 return `rgba(${colorArray[0]},${colorArray[1]},${colorArray[2]},${(colorArray[3] || 255) / 255})`;
412 }
413
414 /**
415 * @function Graphic.prototype.setStyle

Callers 3

_getDefaultStyleMethod · 0.95
ColorSpec.jsFile · 0.45
GraphicLayer.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected