scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
63 lines • 1.01 kB
JavaScript
import { AbsSFSymbol } from "scriptable-abstract";
import { MockImage } from "../media/image";
const DEFAULT_STATE = {
name: "",
image: new MockImage()
};
class MockSFSymbol extends 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;
}
}
export {
MockSFSymbol
};
//# sourceMappingURL=sf-symbol.js.map