MCPcopy Create free account
hub / github.com/esmBot/esmBot / paramsFunc

Method paramsFunc

commands/image-editing/speechbubble.js:4–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3class SpeechBubbleCommand extends MediaCommand {
4 paramsFunc() {
5 const parsedScale = this.getOptionNumber("scale");
6 const alpha = this.getOptionBoolean("alpha");
7 const bottom = this.getOptionBoolean("bottom");
8 return {
9 water: alpha ? "assets/images/speech.png" : "assets/images/speechbubble.png",
10 gravity: bottom ? 8 : 2,
11 resize: true,
12 yscale: parsedScale != null && !Number.isNaN(parsedScale) ? parsedScale : 0.2,
13 alpha: !!alpha,
14 flipX: !!this.getOptionBoolean("flip"),
15 flipY: !!bottom,
16 };
17 }
18
19 static init() {
20 super.init();

Callers

nothing calls this directly

Calls 2

getOptionNumberMethod · 0.80
getOptionBooleanMethod · 0.80

Tested by

no test coverage detected