MCPcopy Create free account
hub / github.com/Normal-Tangerine8609/Scriptable-Widgets / ChainText

Class ChainText

scripts/chaining.js:262–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261 }
262 class ChainText {
263 constructor(widgetText) {
264 this.widgetText = widgetText;
265 }
266 centerAlignText() {
267 this.widgetText.centerAlignText();
268 return this;
269 }
270 font(font) {
271 this.widgetText.font = font;
272 return this;
273 }
274 leftAlignText() {
275 this.widgetText.leftAlignText();
276 return this;
277 }
278 lineLimit(number) {
279 this.widgetText.lineLimit = number;
280 return this;
281 }
282 minimumScaleFactor(number) {
283 this.widgetText.minimumScaleFactor = number;
284 return this;
285 }
286 rightAlignText() {
287 this.widgetText.rightAlignText();
288 return this;
289 }
290 shadowColor(color) {
291 this.widgetText.shadowColor = color;
292 return this;
293 }
294 shadowOffset(point) {
295 this.widgetText.shadowOffset = point;
296 return this;
297 }
298 shadowRadius(number) {
299 this.widgetText.shadowRadius = number;
300 return this;
301 }
302 textColor(color) {
303 this.widgetText.textColor = color;
304 return this;
305 }
306 text(string) {
307 this.widgetText.text = string;
308 return this;
309 }
310 textOpacity(number) {
311 this.widgetText.textOpacity = number;
312 return this;
313 }
314 url(url) {
315 this.widgetText.url = url;
316 return this;
317 }
318 }
319 class ChainStack {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected