MCPcopy
hub / github.com/palantir/plottable / pixelPosition

Method pixelPosition

src/components/guideLineLayer.ts:183–195  ·  view source on GitHub ↗
(pixelPosition?: number)

Source from the content-addressed store, hash-verified

181 */
182 public pixelPosition(pixelPosition: number): this;
183 public pixelPosition(pixelPosition?: number): any {
184 if (pixelPosition == null) {
185 return this._pixelPosition;
186 }
187 if (!Utils.Math.isValidNumber(pixelPosition)) {
188 throw new Error("pixelPosition must be a finite number");
189 }
190 this._pixelPosition = pixelPosition;
191 this._mode = PropertyMode.PIXEL;
192 this._syncPixelPositionAndValue();
193 this.render();
194 return this;
195 }
196
197 public destroy() {
198 super.destroy();

Callers 9

renderImmediatelyMethod · 0.95
runFunction · 0.95
onLineMethod · 0.80
renderImmediatelyMethod · 0.80
updateColorsFunction · 0.80

Calls 2

renderMethod · 0.65

Tested by

no test coverage detected