UNPKG

scriptable-testlab

Version:

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

86 lines 2.08 kB
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 sf_symbol_exports = {}; __export(sf_symbol_exports, { MockSFSymbol: () => MockSFSymbol }); module.exports = __toCommonJS(sf_symbol_exports); var import_scriptable_abstract = require("scriptable-abstract"); var import_image = require("../media/image"); const DEFAULT_STATE = { name: "", image: new import_image.MockImage() }; class MockSFSymbol extends import_scriptable_abstract.AbsSFSymbol { constructor(name) { super({ ...DEFAULT_STATE, name }); } get name() { return this.state.name; } applyFont(_font) { return this; } applyThinWeight() { return this; } applyUltraLightWeight() { return this; } applyLightWeight() { return this; } applyRegularWeight() { return this; } applyMediumWeight() { return this; } applySemiboldWeight() { return this; } applyBoldWeight() { return this; } applyHeavyWeight() { return this; } applyBlackWeight() { return this; } applySmallSize() { return this; } applyMediumSize() { return this; } applyLargeSize() { return this; } toImage() { return this.state.image; } } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { MockSFSymbol }); //# sourceMappingURL=sf-symbol.js.map