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

Method clone

src/common/commontypes/Pixel.js:67–69  ·  view source on GitHub ↗

* @function Pixel.prototype.clone * @description 克隆当前的 pixel 对象。 * @example * var pixcel = new Pixel(100,50); * var pixcel2 = pixcel.clone(); * @returns {Pixel} 新的与当前 pixel 对象有相同 x、y 坐标的 pixel 对象。

()

Source from the content-addressed store, hash-verified

65 * @returns {Pixel} 新的与当前 pixel 对象有相同 x、y 坐标的 pixel 对象。
66 */
67 clone() {
68 return new Pixel(this.x, this.y, this.mode);
69 }
70
71 /**
72 * @function Pixel.prototype.equals

Callers 1

offsetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected