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

Class ChainImage

scripts/chaining.js:188–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187 }
188 class ChainImage {
189 constructor(widgetImage) {
190 this.widgetImage = widgetImage;
191 }
192 applyFillingContentMode() {
193 this.widgetImage.applyFillingContentMode();
194 return this;
195 }
196 applyFittingContentMode() {
197 this.widgetImage.applyFittingContentMode();
198 return this;
199 }
200 borderColor(color) {
201 this.widgetImage.borderColor = color;
202 return this;
203 }
204 borderWidth(number) {
205 this.widgetImage.borderWidth = number;
206 return this;
207 }
208 centerAlignImage() {
209 this.widgetImage.centerAlignImage();
210 return this;
211 }
212 containerRelativeShape(bool) {
213 this.widgetImage.containerRelativeShape = bool;
214 return this;
215 }
216 cornerRadius(number) {
217 this.widgetImage.cornerRadius = number;
218 return this;
219 }
220 image(image) {
221 this.widgetImage.image = image;
222 return this;
223 }
224 imageOpacity(number) {
225 this.widgetImage.imageOpacity = number;
226 return this;
227 }
228 imageSize(size) {
229 this.widgetImage.imageSize = size;
230 return this;
231 }
232 leftAlignImage() {
233 this.widgetImage.leftAlignImage();
234 return this;
235 }
236 resizable(bool) {
237 this.widgetImage.resizable = bool;
238 return this;
239 }
240 rightAlignImage(color) {
241 this.widgetImage.rightAlignImage();
242 return this;
243 }
244 tintColor(color) {
245 this.widgetImage.tintColor = color;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected