MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getContext

Method getContext

src/common/overlay/levelRenderer/Util.js:156–161  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Util.prototype.getContext * @description 获取 Canvas 上下文。 * @return {Object} 上下文。

()

Source from the content-addressed store, hash-verified

154 * @return {Object} 上下文。
155 */
156 getContext() {
157 if (!this._ctx) {
158 this._ctx = document.createElement('canvas').getContext('2d');
159 }
160 return this._ctx;
161 }
162
163
164 /**

Callers 15

olms.jsFile · 0.45
UFunction · 0.45
SmicPolygonSpec.jsFile · 0.45
SmicRingSpec.jsFile · 0.45
SmicEllipseSpec.jsFile · 0.45
SmicPointSpec.jsFile · 0.45
SmicImageSpec.jsFile · 0.45
SmicSectorSpec.jsFile · 0.45
SmicTextSpec.jsFile · 0.45
SmicStarSpec.jsFile · 0.45
SmicCircleSpec.jsFile · 0.45

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected