scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
52 lines • 1.54 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var size_exports = {};
__export(size_exports, {
MockSize: () => MockSize
});
module.exports = __toCommonJS(size_exports);
var import_scriptable_abstract = require("scriptable-abstract");
const _DEFAULT_STATE = {
width: 0,
height: 0
};
class MockSize extends import_scriptable_abstract.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 });
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
MockSize
});
//# sourceMappingURL=size.js.map