scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
29 lines • 504 B
JavaScript
import { AbsSize } from "scriptable-abstract";
const _DEFAULT_STATE = {
width: 0,
height: 0
};
class MockSize extends AbsSize {
constructor(width = 0, height = 0) {
super({
width,
height
});
}
get width() {
return this.state.width;
}
set width(value) {
this.setState({ width: value });
}
get height() {
return this.state.height;
}
set height(value) {
this.setState({ height: value });
}
}
export {
MockSize
};
//# sourceMappingURL=size.js.map