(pixelPosition?: number)
| 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(); |
no test coverage detected