UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

29 lines 446 B
import { AbsPoint } from "scriptable-abstract"; const _DEFAULT_STATE = { x: 0, y: 0 }; class MockPoint extends AbsPoint { constructor(x = 0, y = 0) { super({ x, y }); } get x() { return this.state.x; } set x(value) { this.setState({ x: value }); } get y() { return this.state.y; } set y(value) { this.setState({ y: value }); } } export { MockPoint }; //# sourceMappingURL=point.js.map