MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / constructor

Method constructor

js/Arrows.js:11–35  ·  view source on GitHub ↗

* Creates a new arrow * @param {Object} [opt] - Optional parameters. * @param {string} [opt.arrowType] - Arrow type * @param {string} [opt.leftText] - For EXIT ONLY, left text * @param {string} [opt.rightText] - For EXIT ONLY, right text * @param {boolean} [opt.individual] - For EXIT ONLY,

({
		
		// Arrow Information
		
		arrowType = "",
		leftText = "",
		rightText = "",
		individual = true,
		
		// Arrow location
		
		parentIndex = 0,
		arrowIndex = 0
		
	} = {}
	)

Source from the content-addressed store, hash-verified

9 */
10
11 constructor({
12
13 // Arrow Information
14
15 arrowType = "",
16 leftText = "",
17 rightText = "",
18 individual = true,
19
20 // Arrow location
21
22 parentIndex = 0,
23 arrowIndex = 0
24
25 } = {}
26 ) {
27 this.arrowType = arrowType;
28 this.lefttext = leftText;
29 this.rightText = rightText;
30 this.individual = individual;
31
32 this.parentIndex = parentIndex;
33 this.arrowIndex = arrowIndex;
34
35 }
36}
37
38Arrow.prototype.arrows = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected