From ffcaeb146630fdd091a3056b061817a504ddfb8a Mon Sep 17 00:00:00 2001
From: Active
Date: Sun, 25 Feb 2024 17:12:50 -0600
Subject: [PATCH] removed useless API & simplfied reordering frames.
---
docs/ast/source/frame.mjs.json | 8628 ++---
docs/ast/source/icon.mjs.json | 45549 ++++++++++++++------------
docs/class/src/frame.mjs~Frame.html | 243 +-
docs/class/src/icon.mjs~Icon.html | 182 +-
docs/file/src/frame.mjs.html | 34 +-
docs/file/src/icon.mjs.html | 54 +-
docs/index.json | 339 +-
docs/script/search_index.js | 24 +-
docs/source.html | 14 +-
package.json | 2 +-
src/frame.mjs | 33 +-
src/icon.mjs | 55 +-
12 files changed, 27830 insertions(+), 27327 deletions(-)
diff --git a/docs/ast/source/frame.mjs.json b/docs/ast/source/frame.mjs.json
index 4bd880b..0d28cca 100644
--- a/docs/ast/source/frame.mjs.json
+++ b/docs/ast/source/frame.mjs.json
@@ -1,28 +1,28 @@
{
"type": "File",
"start": 0,
- "end": 3818,
+ "end": 3433,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
- "end": 3818,
+ "end": 3433,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
},
@@ -117,14 +117,14 @@
{
"type": "ExportNamedDeclaration",
"start": 36,
- "end": 3818,
+ "end": 3433,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
},
@@ -133,14 +133,14 @@
"declaration": {
"type": "ClassDeclaration",
"start": 43,
- "end": 3818,
+ "end": 3433,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
},
@@ -165,14 +165,14 @@
"body": {
"type": "ClassBody",
"start": 55,
- "end": 3818,
+ "end": 3433,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
},
@@ -415,9 +415,9 @@
"trailingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
+ "value": "*\r\n * The icon that owns this frame. \r\n * @private\r\n * @type {Icon}\r\n ",
"start": 453,
- "end": 548,
+ "end": 543,
"loc": {
"start": {
"line": 22,
@@ -433,8 +433,8 @@
},
{
"type": "ClassProperty",
- "start": 554,
- "end": 580,
+ "start": 549,
+ "end": 556,
"loc": {
"start": {
"line": 27,
@@ -442,6 +442,78 @@
},
"end": {
"line": 27,
+ "column": 11
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 549,
+ "end": 555,
+ "loc": {
+ "start": {
+ "line": 27,
+ "column": 4
+ },
+ "end": {
+ "line": 27,
+ "column": 10
+ },
+ "identifierName": "parent"
+ },
+ "name": "parent",
+ "leadingComments": null
+ },
+ "value": null,
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The icon that owns this frame. \r\n * @private\r\n * @type {Icon}\r\n ",
+ "start": 453,
+ "end": 543,
+ "loc": {
+ "start": {
+ "line": 22,
+ "column": 4
+ },
+ "end": {
+ "line": 26,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 562,
+ "end": 657,
+ "loc": {
+ "start": {
+ "line": 28,
+ "column": 4
+ },
+ "end": {
+ "line": 32,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassProperty",
+ "start": 663,
+ "end": 689,
+ "loc": {
+ "start": {
+ "line": 33,
+ "column": 4
+ },
+ "end": {
+ "line": 33,
"column": 30
}
},
@@ -449,15 +521,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 561,
- "end": 573,
+ "start": 670,
+ "end": 682,
"loc": {
"start": {
- "line": 27,
+ "line": 33,
"column": 11
},
"end": {
- "line": 27,
+ "line": 33,
"column": 23
},
"identifierName": "defaultDelay"
@@ -466,15 +538,15 @@
},
"value": {
"type": "NumericLiteral",
- "start": 576,
- "end": 579,
+ "start": 685,
+ "end": 688,
"loc": {
"start": {
- "line": 27,
+ "line": 33,
"column": 26
},
"end": {
- "line": 27,
+ "line": 33,
"column": 29
}
},
@@ -488,15 +560,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 453,
- "end": 548,
+ "start": 562,
+ "end": 657,
"loc": {
"start": {
- "line": 22,
+ "line": 28,
"column": 4
},
"end": {
- "line": 26,
+ "line": 32,
"column": 7
}
}
@@ -505,16 +577,16 @@
"trailingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 586,
- "end": 743,
+ "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @param {Icon} pParentIcon - The icon that created this frame.\r\n * @private\r\n ",
+ "start": 695,
+ "end": 922,
"loc": {
"start": {
- "line": 28,
+ "line": 34,
"column": 4
},
"end": {
- "line": 32,
+ "line": 39,
"column": 7
}
}
@@ -523,15 +595,15 @@
},
{
"type": "ClassMethod",
- "start": 749,
- "end": 814,
+ "start": 928,
+ "end": 1042,
"loc": {
"start": {
- "line": 33,
+ "line": 40,
"column": 4
},
"end": {
- "line": 35,
+ "line": 43,
"column": 5
}
},
@@ -539,15 +611,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 749,
- "end": 760,
+ "start": 928,
+ "end": 939,
"loc": {
"start": {
- "line": 33,
+ "line": 40,
"column": 4
},
"end": {
- "line": 33,
+ "line": 40,
"column": 15
},
"identifierName": "constructor"
@@ -563,105 +635,218 @@
"params": [
{
"type": "Identifier",
- "start": 761,
- "end": 771,
+ "start": 940,
+ "end": 950,
"loc": {
"start": {
- "line": 33,
+ "line": 40,
"column": 16
},
"end": {
- "line": 33,
+ "line": 40,
"column": 26
},
"identifierName": "pFrameData"
},
"name": "pFrameData"
+ },
+ {
+ "type": "Identifier",
+ "start": 952,
+ "end": 963,
+ "loc": {
+ "start": {
+ "line": 40,
+ "column": 28
+ },
+ "end": {
+ "line": 40,
+ "column": 39
+ },
+ "identifierName": "pParentIcon"
+ },
+ "name": "pParentIcon"
}
],
"body": {
"type": "BlockStatement",
- "start": 773,
- "end": 814,
+ "start": 965,
+ "end": 1042,
"loc": {
"start": {
- "line": 33,
- "column": 28
+ "line": 40,
+ "column": 41
},
"end": {
- "line": 35,
+ "line": 43,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 784,
- "end": 807,
+ "start": 976,
+ "end": 1002,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 8
+ },
+ "end": {
+ "line": 41,
+ "column": 34
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 976,
+ "end": 1001,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 8
+ },
+ "end": {
+ "line": 41,
+ "column": 33
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 976,
+ "end": 987,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 8
+ },
+ "end": {
+ "line": 41,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 976,
+ "end": 980,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 8
+ },
+ "end": {
+ "line": 41,
+ "column": 12
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 981,
+ "end": 987,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 13
+ },
+ "end": {
+ "line": 41,
+ "column": 19
+ },
+ "identifierName": "parent"
+ },
+ "name": "parent"
+ },
+ "computed": false
+ },
+ "right": {
+ "type": "Identifier",
+ "start": 990,
+ "end": 1001,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 22
+ },
+ "end": {
+ "line": 41,
+ "column": 33
+ },
+ "identifierName": "pParentIcon"
+ },
+ "name": "pParentIcon"
+ }
+ }
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 1012,
+ "end": 1035,
"loc": {
"start": {
- "line": 34,
+ "line": 42,
"column": 8
},
"end": {
- "line": 34,
+ "line": 42,
"column": 31
}
},
"expression": {
"type": "CallExpression",
- "start": 784,
- "end": 806,
+ "start": 1012,
+ "end": 1034,
"loc": {
"start": {
- "line": 34,
+ "line": 42,
"column": 8
},
"end": {
- "line": 34,
+ "line": 42,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
- "start": 784,
- "end": 794,
+ "start": 1012,
+ "end": 1022,
"loc": {
"start": {
- "line": 34,
+ "line": 42,
"column": 8
},
"end": {
- "line": 34,
+ "line": 42,
"column": 18
}
},
"object": {
"type": "ThisExpression",
- "start": 784,
- "end": 788,
+ "start": 1012,
+ "end": 1016,
"loc": {
"start": {
- "line": 34,
+ "line": 42,
"column": 8
},
"end": {
- "line": 34,
+ "line": 42,
"column": 12
}
}
},
"property": {
"type": "Identifier",
- "start": 789,
- "end": 794,
+ "start": 1017,
+ "end": 1022,
"loc": {
"start": {
- "line": 34,
+ "line": 42,
"column": 13
},
"end": {
- "line": 34,
+ "line": 42,
"column": 18
},
"identifierName": "parse"
@@ -673,15 +858,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 795,
- "end": 805,
+ "start": 1023,
+ "end": 1033,
"loc": {
"start": {
- "line": 34,
+ "line": 42,
"column": 19
},
"end": {
- "line": 34,
+ "line": 42,
"column": 29
},
"identifierName": "pFrameData"
@@ -698,16 +883,16 @@
"leadingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 586,
- "end": 743,
+ "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @param {Icon} pParentIcon - The icon that created this frame.\r\n * @private\r\n ",
+ "start": 695,
+ "end": 922,
"loc": {
"start": {
- "line": 28,
+ "line": 34,
"column": 4
},
"end": {
- "line": 32,
+ "line": 39,
"column": 7
}
}
@@ -717,15 +902,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 820,
- "end": 1001,
+ "start": 1048,
+ "end": 1229,
"loc": {
"start": {
- "line": 36,
+ "line": 44,
"column": 4
},
"end": {
- "line": 40,
+ "line": 48,
"column": 7
}
}
@@ -734,15 +919,15 @@
},
{
"type": "ClassMethod",
- "start": 1007,
- "end": 1301,
+ "start": 1235,
+ "end": 1529,
"loc": {
"start": {
- "line": 41,
+ "line": 49,
"column": 4
},
"end": {
- "line": 49,
+ "line": 57,
"column": 5
}
},
@@ -750,15 +935,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 1007,
- "end": 1012,
+ "start": 1235,
+ "end": 1240,
"loc": {
"start": {
- "line": 41,
+ "line": 49,
"column": 4
},
"end": {
- "line": 41,
+ "line": 49,
"column": 9
},
"identifierName": "parse"
@@ -774,15 +959,15 @@
"params": [
{
"type": "Identifier",
- "start": 1013,
- "end": 1023,
+ "start": 1241,
+ "end": 1251,
"loc": {
"start": {
- "line": 41,
+ "line": 49,
"column": 10
},
"end": {
- "line": 41,
+ "line": 49,
"column": 20
},
"identifierName": "pFrameData"
@@ -792,59 +977,59 @@
],
"body": {
"type": "BlockStatement",
- "start": 1025,
- "end": 1301,
+ "start": 1253,
+ "end": 1529,
"loc": {
"start": {
- "line": 41,
+ "line": 49,
"column": 22
},
"end": {
- "line": 49,
+ "line": 57,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 1089,
- "end": 1119,
+ "start": 1317,
+ "end": 1347,
"loc": {
"start": {
- "line": 43,
+ "line": 51,
"column": 8
},
"end": {
- "line": 43,
+ "line": 51,
"column": 38
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 1095,
- "end": 1118,
+ "start": 1323,
+ "end": 1346,
"loc": {
"start": {
- "line": 43,
+ "line": 51,
"column": 14
},
"end": {
- "line": 43,
+ "line": 51,
"column": 37
}
},
"id": {
"type": "Identifier",
- "start": 1095,
- "end": 1102,
+ "start": 1323,
+ "end": 1330,
"loc": {
"start": {
- "line": 43,
+ "line": 51,
"column": 14
},
"end": {
- "line": 43,
+ "line": 51,
"column": 21
},
"identifierName": "dataURL"
@@ -854,29 +1039,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 1105,
- "end": 1118,
+ "start": 1333,
+ "end": 1346,
"loc": {
"start": {
- "line": 43,
+ "line": 51,
"column": 24
},
"end": {
- "line": 43,
+ "line": 51,
"column": 37
}
},
"object": {
"type": "Identifier",
- "start": 1105,
- "end": 1115,
+ "start": 1333,
+ "end": 1343,
"loc": {
"start": {
- "line": 43,
+ "line": 51,
"column": 24
},
"end": {
- "line": 43,
+ "line": 51,
"column": 34
},
"identifierName": "pFrameData"
@@ -885,15 +1070,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 1116,
- "end": 1117,
+ "start": 1344,
+ "end": 1345,
"loc": {
"start": {
- "line": 43,
+ "line": 51,
"column": 35
},
"end": {
- "line": 43,
+ "line": 51,
"column": 36
}
},
@@ -913,15 +1098,15 @@
{
"type": "CommentLine",
"value": " Loop through frame data and build frame.",
- "start": 1036,
- "end": 1079,
+ "start": 1264,
+ "end": 1307,
"loc": {
"start": {
- "line": 42,
+ "line": 50,
"column": 8
},
"end": {
- "line": 42,
+ "line": 50,
"column": 51
}
}
@@ -930,44 +1115,44 @@
},
{
"type": "VariableDeclaration",
- "start": 1129,
- "end": 1162,
+ "start": 1357,
+ "end": 1390,
"loc": {
"start": {
- "line": 44,
+ "line": 52,
"column": 8
},
"end": {
- "line": 44,
+ "line": 52,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 1135,
- "end": 1161,
+ "start": 1363,
+ "end": 1389,
"loc": {
"start": {
- "line": 44,
+ "line": 52,
"column": 14
},
"end": {
- "line": 44,
+ "line": 52,
"column": 40
}
},
"id": {
"type": "Identifier",
- "start": 1135,
- "end": 1145,
+ "start": 1363,
+ "end": 1373,
"loc": {
"start": {
- "line": 44,
+ "line": 52,
"column": 14
},
"end": {
- "line": 44,
+ "line": 52,
"column": 24
},
"identifierName": "frameDelay"
@@ -976,29 +1161,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 1148,
- "end": 1161,
+ "start": 1376,
+ "end": 1389,
"loc": {
"start": {
- "line": 44,
+ "line": 52,
"column": 27
},
"end": {
- "line": 44,
+ "line": 52,
"column": 40
}
},
"object": {
"type": "Identifier",
- "start": 1148,
- "end": 1158,
+ "start": 1376,
+ "end": 1386,
"loc": {
"start": {
- "line": 44,
+ "line": 52,
"column": 27
},
"end": {
- "line": 44,
+ "line": 52,
"column": 37
},
"identifierName": "pFrameData"
@@ -1007,15 +1192,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 1159,
- "end": 1160,
+ "start": 1387,
+ "end": 1388,
"loc": {
"start": {
- "line": 44,
+ "line": 52,
"column": 38
},
"end": {
- "line": 44,
+ "line": 52,
"column": 39
}
},
@@ -1034,15 +1219,15 @@
{
"type": "CommentLine",
"value": " Set the data url",
- "start": 1172,
- "end": 1191,
+ "start": 1400,
+ "end": 1419,
"loc": {
"start": {
- "line": 45,
+ "line": 53,
"column": 8
},
"end": {
- "line": 45,
+ "line": 53,
"column": 27
}
}
@@ -1051,57 +1236,57 @@
},
{
"type": "ExpressionStatement",
- "start": 1201,
- "end": 1226,
+ "start": 1429,
+ "end": 1454,
"loc": {
"start": {
- "line": 46,
+ "line": 54,
"column": 8
},
"end": {
- "line": 46,
+ "line": 54,
"column": 33
}
},
"expression": {
"type": "CallExpression",
- "start": 1201,
- "end": 1225,
+ "start": 1429,
+ "end": 1453,
"loc": {
"start": {
- "line": 46,
+ "line": 54,
"column": 8
},
"end": {
- "line": 46,
+ "line": 54,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
- "start": 1201,
- "end": 1216,
+ "start": 1429,
+ "end": 1444,
"loc": {
"start": {
- "line": 46,
+ "line": 54,
"column": 8
},
"end": {
- "line": 46,
+ "line": 54,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 1201,
- "end": 1205,
+ "start": 1429,
+ "end": 1433,
"loc": {
"start": {
- "line": 46,
+ "line": 54,
"column": 8
},
"end": {
- "line": 46,
+ "line": 54,
"column": 12
}
},
@@ -1109,15 +1294,15 @@
},
"property": {
"type": "Identifier",
- "start": 1206,
- "end": 1216,
+ "start": 1434,
+ "end": 1444,
"loc": {
"start": {
- "line": 46,
+ "line": 54,
"column": 13
},
"end": {
- "line": 46,
+ "line": 54,
"column": 23
},
"identifierName": "setDataURL"
@@ -1130,15 +1315,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 1217,
- "end": 1224,
+ "start": 1445,
+ "end": 1452,
"loc": {
"start": {
- "line": 46,
+ "line": 54,
"column": 24
},
"end": {
- "line": 46,
+ "line": 54,
"column": 31
},
"identifierName": "dataURL"
@@ -1152,15 +1337,15 @@
{
"type": "CommentLine",
"value": " Set the data url",
- "start": 1172,
- "end": 1191,
+ "start": 1400,
+ "end": 1419,
"loc": {
"start": {
- "line": 45,
+ "line": 53,
"column": 8
},
"end": {
- "line": 45,
+ "line": 53,
"column": 27
}
}
@@ -1170,15 +1355,15 @@
{
"type": "CommentLine",
"value": " Set the frame delay",
- "start": 1236,
- "end": 1258,
+ "start": 1464,
+ "end": 1486,
"loc": {
"start": {
- "line": 47,
+ "line": 55,
"column": 8
},
"end": {
- "line": 47,
+ "line": 55,
"column": 30
}
}
@@ -1187,57 +1372,57 @@
},
{
"type": "ExpressionStatement",
- "start": 1268,
- "end": 1294,
+ "start": 1496,
+ "end": 1522,
"loc": {
"start": {
- "line": 48,
+ "line": 56,
"column": 8
},
"end": {
- "line": 48,
+ "line": 56,
"column": 34
}
},
"expression": {
"type": "CallExpression",
- "start": 1268,
- "end": 1293,
+ "start": 1496,
+ "end": 1521,
"loc": {
"start": {
- "line": 48,
+ "line": 56,
"column": 8
},
"end": {
- "line": 48,
+ "line": 56,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
- "start": 1268,
- "end": 1281,
+ "start": 1496,
+ "end": 1509,
"loc": {
"start": {
- "line": 48,
+ "line": 56,
"column": 8
},
"end": {
- "line": 48,
+ "line": 56,
"column": 21
}
},
"object": {
"type": "ThisExpression",
- "start": 1268,
- "end": 1272,
+ "start": 1496,
+ "end": 1500,
"loc": {
"start": {
- "line": 48,
+ "line": 56,
"column": 8
},
"end": {
- "line": 48,
+ "line": 56,
"column": 12
}
},
@@ -1245,15 +1430,15 @@
},
"property": {
"type": "Identifier",
- "start": 1273,
- "end": 1281,
+ "start": 1501,
+ "end": 1509,
"loc": {
"start": {
- "line": 48,
+ "line": 56,
"column": 13
},
"end": {
- "line": 48,
+ "line": 56,
"column": 21
},
"identifierName": "setDelay"
@@ -1266,15 +1451,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 1282,
- "end": 1292,
+ "start": 1510,
+ "end": 1520,
"loc": {
"start": {
- "line": 48,
+ "line": 56,
"column": 22
},
"end": {
- "line": 48,
+ "line": 56,
"column": 32
},
"identifierName": "frameDelay"
@@ -1288,15 +1473,15 @@
{
"type": "CommentLine",
"value": " Set the frame delay",
- "start": 1236,
- "end": 1258,
+ "start": 1464,
+ "end": 1486,
"loc": {
"start": {
- "line": 47,
+ "line": 55,
"column": 8
},
"end": {
- "line": 47,
+ "line": 55,
"column": 30
}
}
@@ -1311,15 +1496,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 820,
- "end": 1001,
+ "start": 1048,
+ "end": 1229,
"loc": {
"start": {
- "line": 36,
+ "line": 44,
"column": 4
},
"end": {
- "line": 40,
+ "line": 48,
"column": 7
}
}
@@ -1329,15 +1514,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1307,
- "end": 1479,
+ "start": 1535,
+ "end": 1707,
"loc": {
"start": {
- "line": 50,
+ "line": 58,
"column": 4
},
"end": {
- "line": 54,
+ "line": 62,
"column": 7
}
}
@@ -1346,15 +1531,15 @@
},
{
"type": "ClassMethod",
- "start": 1485,
- "end": 1768,
+ "start": 1713,
+ "end": 1996,
"loc": {
"start": {
- "line": 55,
+ "line": 63,
"column": 4
},
"end": {
- "line": 64,
+ "line": 72,
"column": 5
}
},
@@ -1362,15 +1547,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 1485,
- "end": 1493,
+ "start": 1713,
+ "end": 1721,
"loc": {
"start": {
- "line": 55,
+ "line": 63,
"column": 4
},
"end": {
- "line": 55,
+ "line": 63,
"column": 12
},
"identifierName": "setDelay"
@@ -1386,15 +1571,15 @@
"params": [
{
"type": "Identifier",
- "start": 1494,
- "end": 1500,
+ "start": 1722,
+ "end": 1728,
"loc": {
"start": {
- "line": 55,
+ "line": 63,
"column": 13
},
"end": {
- "line": 55,
+ "line": 63,
"column": 19
},
"identifierName": "pDelay"
@@ -1404,44 +1589,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 1502,
- "end": 1768,
+ "start": 1730,
+ "end": 1996,
"loc": {
"start": {
- "line": 55,
+ "line": 63,
"column": 21
},
"end": {
- "line": 64,
+ "line": 72,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 1513,
- "end": 1739,
+ "start": 1741,
+ "end": 1967,
"loc": {
"start": {
- "line": 56,
+ "line": 64,
"column": 8
},
"end": {
- "line": 62,
+ "line": 70,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 1517,
- "end": 1523,
+ "start": 1745,
+ "end": 1751,
"loc": {
"start": {
- "line": 56,
+ "line": 64,
"column": 12
},
"end": {
- "line": 56,
+ "line": 64,
"column": 18
},
"identifierName": "pDelay"
@@ -1450,58 +1635,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 1525,
- "end": 1739,
+ "start": 1753,
+ "end": 1967,
"loc": {
"start": {
- "line": 56,
+ "line": 64,
"column": 20
},
"end": {
- "line": 62,
+ "line": 70,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 1540,
- "end": 1728,
+ "start": 1768,
+ "end": 1956,
"loc": {
"start": {
- "line": 57,
+ "line": 65,
"column": 12
},
"end": {
- "line": 61,
+ "line": 69,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 1544,
- "end": 1571,
+ "start": 1772,
+ "end": 1799,
"loc": {
"start": {
- "line": 57,
+ "line": 65,
"column": 16
},
"end": {
- "line": 57,
+ "line": 65,
"column": 43
}
},
"left": {
"type": "UnaryExpression",
- "start": 1544,
- "end": 1558,
+ "start": 1772,
+ "end": 1786,
"loc": {
"start": {
- "line": 57,
+ "line": 65,
"column": 16
},
"end": {
- "line": 57,
+ "line": 65,
"column": 30
}
},
@@ -1509,15 +1694,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 1551,
- "end": 1557,
+ "start": 1779,
+ "end": 1785,
"loc": {
"start": {
- "line": 57,
+ "line": 65,
"column": 23
},
"end": {
- "line": 57,
+ "line": 65,
"column": 29
},
"identifierName": "pDelay"
@@ -1525,7 +1710,7 @@
"name": "pDelay",
"extra": {
"parenthesized": true,
- "parenStart": 1550
+ "parenStart": 1778
}
},
"extra": {
@@ -1535,15 +1720,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 1563,
- "end": 1571,
+ "start": 1791,
+ "end": 1799,
"loc": {
"start": {
- "line": 57,
+ "line": 65,
"column": 35
},
"end": {
- "line": 57,
+ "line": 65,
"column": 43
}
},
@@ -1556,88 +1741,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 1573,
- "end": 1627,
+ "start": 1801,
+ "end": 1855,
"loc": {
"start": {
- "line": 57,
+ "line": 65,
"column": 45
},
"end": {
- "line": 59,
+ "line": 67,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 1592,
- "end": 1612,
+ "start": 1820,
+ "end": 1840,
"loc": {
"start": {
- "line": 58,
+ "line": 66,
"column": 16
},
"end": {
- "line": 58,
+ "line": 66,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 1592,
- "end": 1611,
+ "start": 1820,
+ "end": 1839,
"loc": {
"start": {
- "line": 58,
+ "line": 66,
"column": 16
},
"end": {
- "line": 58,
+ "line": 66,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 1592,
- "end": 1602,
+ "start": 1820,
+ "end": 1830,
"loc": {
"start": {
- "line": 58,
+ "line": 66,
"column": 16
},
"end": {
- "line": 58,
+ "line": 66,
"column": 26
}
},
"object": {
"type": "ThisExpression",
- "start": 1592,
- "end": 1596,
+ "start": 1820,
+ "end": 1824,
"loc": {
"start": {
- "line": 58,
+ "line": 66,
"column": 16
},
"end": {
- "line": 58,
+ "line": 66,
"column": 20
}
}
},
"property": {
"type": "Identifier",
- "start": 1597,
- "end": 1602,
+ "start": 1825,
+ "end": 1830,
"loc": {
"start": {
- "line": 58,
+ "line": 66,
"column": 21
},
"end": {
- "line": 58,
+ "line": 66,
"column": 26
},
"identifierName": "delay"
@@ -1648,15 +1833,15 @@
},
"right": {
"type": "Identifier",
- "start": 1605,
- "end": 1611,
+ "start": 1833,
+ "end": 1839,
"loc": {
"start": {
- "line": 58,
+ "line": 66,
"column": 29
},
"end": {
- "line": 58,
+ "line": 66,
"column": 35
},
"identifierName": "pDelay"
@@ -1670,114 +1855,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 1633,
- "end": 1728,
+ "start": 1861,
+ "end": 1956,
"loc": {
"start": {
- "line": 59,
+ "line": 67,
"column": 19
},
"end": {
- "line": 61,
+ "line": 69,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 1652,
- "end": 1713,
+ "start": 1880,
+ "end": 1941,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 77
}
},
"expression": {
"type": "CallExpression",
- "start": 1652,
- "end": 1712,
+ "start": 1880,
+ "end": 1940,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
- "start": 1652,
- "end": 1689,
+ "start": 1880,
+ "end": 1917,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 1652,
- "end": 1683,
+ "start": 1880,
+ "end": 1911,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 1652,
- "end": 1669,
+ "start": 1880,
+ "end": 1897,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 1652,
- "end": 1662,
+ "start": 1880,
+ "end": 1890,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 1652,
- "end": 1655,
+ "start": 1880,
+ "end": 1883,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 16
},
"end": {
- "line": 60,
+ "line": 68,
"column": 19
},
"identifierName": "VYI"
@@ -1786,15 +1971,15 @@
},
"property": {
"type": "Identifier",
- "start": 1656,
- "end": 1662,
+ "start": 1884,
+ "end": 1890,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 20
},
"end": {
- "line": 60,
+ "line": 68,
"column": 26
},
"identifierName": "logger"
@@ -1805,15 +1990,15 @@
},
"property": {
"type": "Identifier",
- "start": 1663,
- "end": 1669,
+ "start": 1891,
+ "end": 1897,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 27
},
"end": {
- "line": 60,
+ "line": 68,
"column": 33
},
"identifierName": "prefix"
@@ -1825,15 +2010,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 1670,
- "end": 1682,
+ "start": 1898,
+ "end": 1910,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 34
},
"end": {
- "line": 60,
+ "line": 68,
"column": 46
}
},
@@ -1847,15 +2032,15 @@
},
"property": {
"type": "Identifier",
- "start": 1684,
- "end": 1689,
+ "start": 1912,
+ "end": 1917,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 48
},
"end": {
- "line": 60,
+ "line": 68,
"column": 53
},
"identifierName": "error"
@@ -1867,15 +2052,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 1690,
- "end": 1711,
+ "start": 1918,
+ "end": 1939,
"loc": {
"start": {
- "line": 60,
+ "line": 68,
"column": 54
},
"end": {
- "line": 60,
+ "line": 68,
"column": 75
}
},
@@ -1899,29 +2084,29 @@
},
{
"type": "ReturnStatement",
- "start": 1749,
- "end": 1761,
+ "start": 1977,
+ "end": 1989,
"loc": {
"start": {
- "line": 63,
+ "line": 71,
"column": 8
},
"end": {
- "line": 63,
+ "line": 71,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 1756,
- "end": 1760,
+ "start": 1984,
+ "end": 1988,
"loc": {
"start": {
- "line": 63,
+ "line": 71,
"column": 15
},
"end": {
- "line": 63,
+ "line": 71,
"column": 19
}
}
@@ -1935,15 +2120,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1307,
- "end": 1479,
+ "start": 1535,
+ "end": 1707,
"loc": {
"start": {
- "line": 50,
+ "line": 58,
"column": 4
},
"end": {
- "line": 54,
+ "line": 62,
"column": 7
}
}
@@ -1953,15 +2138,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n ",
- "start": 1774,
- "end": 1875,
+ "start": 2002,
+ "end": 2103,
"loc": {
"start": {
- "line": 65,
+ "line": 73,
"column": 4
},
"end": {
- "line": 68,
+ "line": 76,
"column": 7
}
}
@@ -1970,15 +2155,15 @@
},
{
"type": "ClassMethod",
- "start": 1881,
- "end": 1928,
+ "start": 2109,
+ "end": 2156,
"loc": {
"start": {
- "line": 69,
+ "line": 77,
"column": 4
},
"end": {
- "line": 71,
+ "line": 79,
"column": 5
}
},
@@ -1986,15 +2171,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 1881,
- "end": 1889,
+ "start": 2109,
+ "end": 2117,
"loc": {
"start": {
- "line": 69,
+ "line": 77,
"column": 4
},
"end": {
- "line": 69,
+ "line": 77,
"column": 12
},
"identifierName": "getDelay"
@@ -2010,73 +2195,73 @@
"params": [],
"body": {
"type": "BlockStatement",
- "start": 1892,
- "end": 1928,
+ "start": 2120,
+ "end": 2156,
"loc": {
"start": {
- "line": 69,
+ "line": 77,
"column": 15
},
"end": {
- "line": 71,
+ "line": 79,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
- "start": 1903,
- "end": 1921,
+ "start": 2131,
+ "end": 2149,
"loc": {
"start": {
- "line": 70,
+ "line": 78,
"column": 8
},
"end": {
- "line": 70,
+ "line": 78,
"column": 26
}
},
"argument": {
"type": "MemberExpression",
- "start": 1910,
- "end": 1920,
+ "start": 2138,
+ "end": 2148,
"loc": {
"start": {
- "line": 70,
+ "line": 78,
"column": 15
},
"end": {
- "line": 70,
+ "line": 78,
"column": 25
}
},
"object": {
"type": "ThisExpression",
- "start": 1910,
- "end": 1914,
+ "start": 2138,
+ "end": 2142,
"loc": {
"start": {
- "line": 70,
+ "line": 78,
"column": 15
},
"end": {
- "line": 70,
+ "line": 78,
"column": 19
}
}
},
"property": {
"type": "Identifier",
- "start": 1915,
- "end": 1920,
+ "start": 2143,
+ "end": 2148,
"loc": {
"start": {
- "line": 70,
+ "line": 78,
"column": 20
},
"end": {
- "line": 70,
+ "line": 78,
"column": 25
},
"identifierName": "delay"
@@ -2094,15 +2279,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n ",
- "start": 1774,
- "end": 1875,
+ "start": 2002,
+ "end": 2103,
"loc": {
"start": {
- "line": 65,
+ "line": 73,
"column": 4
},
"end": {
- "line": 68,
+ "line": 76,
"column": 7
}
}
@@ -2112,15 +2297,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1934,
- "end": 2099,
+ "start": 2162,
+ "end": 2327,
"loc": {
"start": {
- "line": 72,
+ "line": 80,
"column": 4
},
"end": {
- "line": 76,
+ "line": 84,
"column": 7
}
}
@@ -2129,15 +2314,15 @@
},
{
"type": "ClassMethod",
- "start": 2105,
- "end": 2403,
+ "start": 2333,
+ "end": 2631,
"loc": {
"start": {
- "line": 77,
+ "line": 85,
"column": 4
},
"end": {
- "line": 86,
+ "line": 94,
"column": 5
}
},
@@ -2145,15 +2330,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 2105,
- "end": 2115,
+ "start": 2333,
+ "end": 2343,
"loc": {
"start": {
- "line": 77,
+ "line": 85,
"column": 4
},
"end": {
- "line": 77,
+ "line": 85,
"column": 14
},
"identifierName": "setDataURL"
@@ -2169,15 +2354,15 @@
"params": [
{
"type": "Identifier",
- "start": 2116,
- "end": 2124,
+ "start": 2344,
+ "end": 2352,
"loc": {
"start": {
- "line": 77,
+ "line": 85,
"column": 15
},
"end": {
- "line": 77,
+ "line": 85,
"column": 23
},
"identifierName": "pDataURL"
@@ -2187,44 +2372,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 2126,
- "end": 2403,
+ "start": 2354,
+ "end": 2631,
"loc": {
"start": {
- "line": 77,
+ "line": 85,
"column": 25
},
"end": {
- "line": 86,
+ "line": 94,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 2137,
- "end": 2374,
+ "start": 2365,
+ "end": 2602,
"loc": {
"start": {
- "line": 78,
+ "line": 86,
"column": 8
},
"end": {
- "line": 84,
+ "line": 92,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 2141,
- "end": 2149,
+ "start": 2369,
+ "end": 2377,
"loc": {
"start": {
- "line": 78,
+ "line": 86,
"column": 12
},
"end": {
- "line": 78,
+ "line": 86,
"column": 20
},
"identifierName": "pDataURL"
@@ -2233,58 +2418,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 2151,
- "end": 2374,
+ "start": 2379,
+ "end": 2602,
"loc": {
"start": {
- "line": 78,
+ "line": 86,
"column": 22
},
"end": {
- "line": 84,
+ "line": 92,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 2166,
- "end": 2363,
+ "start": 2394,
+ "end": 2591,
"loc": {
"start": {
- "line": 79,
+ "line": 87,
"column": 12
},
"end": {
- "line": 83,
+ "line": 91,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 2170,
- "end": 2199,
+ "start": 2398,
+ "end": 2427,
"loc": {
"start": {
- "line": 79,
+ "line": 87,
"column": 16
},
"end": {
- "line": 79,
+ "line": 87,
"column": 45
}
},
"left": {
"type": "UnaryExpression",
- "start": 2170,
- "end": 2186,
+ "start": 2398,
+ "end": 2414,
"loc": {
"start": {
- "line": 79,
+ "line": 87,
"column": 16
},
"end": {
- "line": 79,
+ "line": 87,
"column": 32
}
},
@@ -2292,15 +2477,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 2177,
- "end": 2185,
+ "start": 2405,
+ "end": 2413,
"loc": {
"start": {
- "line": 79,
+ "line": 87,
"column": 23
},
"end": {
- "line": 79,
+ "line": 87,
"column": 31
},
"identifierName": "pDataURL"
@@ -2308,7 +2493,7 @@
"name": "pDataURL",
"extra": {
"parenthesized": true,
- "parenStart": 2176
+ "parenStart": 2404
}
},
"extra": {
@@ -2318,15 +2503,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 2191,
- "end": 2199,
+ "start": 2419,
+ "end": 2427,
"loc": {
"start": {
- "line": 79,
+ "line": 87,
"column": 37
},
"end": {
- "line": 79,
+ "line": 87,
"column": 45
}
},
@@ -2339,88 +2524,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 2201,
- "end": 2259,
+ "start": 2429,
+ "end": 2487,
"loc": {
"start": {
- "line": 79,
+ "line": 87,
"column": 47
},
"end": {
- "line": 81,
+ "line": 89,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 2220,
- "end": 2244,
+ "start": 2448,
+ "end": 2472,
"loc": {
"start": {
- "line": 80,
+ "line": 88,
"column": 16
},
"end": {
- "line": 80,
+ "line": 88,
"column": 40
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 2220,
- "end": 2243,
+ "start": 2448,
+ "end": 2471,
"loc": {
"start": {
- "line": 80,
+ "line": 88,
"column": 16
},
"end": {
- "line": 80,
+ "line": 88,
"column": 39
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 2220,
- "end": 2232,
+ "start": 2448,
+ "end": 2460,
"loc": {
"start": {
- "line": 80,
+ "line": 88,
"column": 16
},
"end": {
- "line": 80,
+ "line": 88,
"column": 28
}
},
"object": {
"type": "ThisExpression",
- "start": 2220,
- "end": 2224,
+ "start": 2448,
+ "end": 2452,
"loc": {
"start": {
- "line": 80,
+ "line": 88,
"column": 16
},
"end": {
- "line": 80,
+ "line": 88,
"column": 20
}
}
},
"property": {
"type": "Identifier",
- "start": 2225,
- "end": 2232,
+ "start": 2453,
+ "end": 2460,
"loc": {
"start": {
- "line": 80,
+ "line": 88,
"column": 21
},
"end": {
- "line": 80,
+ "line": 88,
"column": 28
},
"identifierName": "dataURL"
@@ -2431,15 +2616,15 @@
},
"right": {
"type": "Identifier",
- "start": 2235,
- "end": 2243,
+ "start": 2463,
+ "end": 2471,
"loc": {
"start": {
- "line": 80,
+ "line": 88,
"column": 31
},
"end": {
- "line": 80,
+ "line": 88,
"column": 39
},
"identifierName": "pDataURL"
@@ -2453,114 +2638,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 2265,
- "end": 2363,
+ "start": 2493,
+ "end": 2591,
"loc": {
"start": {
- "line": 81,
+ "line": 89,
"column": 19
},
"end": {
- "line": 83,
+ "line": 91,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 2284,
- "end": 2348,
+ "start": 2512,
+ "end": 2576,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 80
}
},
"expression": {
"type": "CallExpression",
- "start": 2284,
- "end": 2347,
+ "start": 2512,
+ "end": 2575,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 79
}
},
"callee": {
"type": "MemberExpression",
- "start": 2284,
- "end": 2321,
+ "start": 2512,
+ "end": 2549,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 2284,
- "end": 2315,
+ "start": 2512,
+ "end": 2543,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 2284,
- "end": 2301,
+ "start": 2512,
+ "end": 2529,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 2284,
- "end": 2294,
+ "start": 2512,
+ "end": 2522,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 2284,
- "end": 2287,
+ "start": 2512,
+ "end": 2515,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 16
},
"end": {
- "line": 82,
+ "line": 90,
"column": 19
},
"identifierName": "VYI"
@@ -2569,15 +2754,15 @@
},
"property": {
"type": "Identifier",
- "start": 2288,
- "end": 2294,
+ "start": 2516,
+ "end": 2522,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 20
},
"end": {
- "line": 82,
+ "line": 90,
"column": 26
},
"identifierName": "logger"
@@ -2588,15 +2773,15 @@
},
"property": {
"type": "Identifier",
- "start": 2295,
- "end": 2301,
+ "start": 2523,
+ "end": 2529,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 27
},
"end": {
- "line": 82,
+ "line": 90,
"column": 33
},
"identifierName": "prefix"
@@ -2608,15 +2793,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 2302,
- "end": 2314,
+ "start": 2530,
+ "end": 2542,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 34
},
"end": {
- "line": 82,
+ "line": 90,
"column": 46
}
},
@@ -2630,15 +2815,15 @@
},
"property": {
"type": "Identifier",
- "start": 2316,
- "end": 2321,
+ "start": 2544,
+ "end": 2549,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 48
},
"end": {
- "line": 82,
+ "line": 90,
"column": 53
},
"identifierName": "error"
@@ -2650,15 +2835,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 2322,
- "end": 2346,
+ "start": 2550,
+ "end": 2574,
"loc": {
"start": {
- "line": 82,
+ "line": 90,
"column": 54
},
"end": {
- "line": 82,
+ "line": 90,
"column": 78
}
},
@@ -2682,29 +2867,29 @@
},
{
"type": "ReturnStatement",
- "start": 2384,
- "end": 2396,
+ "start": 2612,
+ "end": 2624,
"loc": {
"start": {
- "line": 85,
+ "line": 93,
"column": 8
},
"end": {
- "line": 85,
+ "line": 93,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 2391,
- "end": 2395,
+ "start": 2619,
+ "end": 2623,
"loc": {
"start": {
- "line": 85,
+ "line": 93,
"column": 15
},
"end": {
- "line": 85,
+ "line": 93,
"column": 19
}
}
@@ -2718,15 +2903,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1934,
- "end": 2099,
+ "start": 2162,
+ "end": 2327,
"loc": {
"start": {
- "line": 72,
+ "line": 80,
"column": 4
},
"end": {
- "line": 76,
+ "line": 84,
"column": 7
}
}
@@ -2736,15 +2921,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 2409,
- "end": 2522,
+ "start": 2637,
+ "end": 2750,
"loc": {
"start": {
- "line": 87,
+ "line": 95,
"column": 4
},
"end": {
- "line": 90,
+ "line": 98,
"column": 7
}
}
@@ -2753,15 +2938,15 @@
},
{
"type": "ClassMethod",
- "start": 2528,
- "end": 2579,
+ "start": 2756,
+ "end": 2807,
"loc": {
"start": {
- "line": 91,
+ "line": 99,
"column": 4
},
"end": {
- "line": 93,
+ "line": 101,
"column": 5
}
},
@@ -2769,15 +2954,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 2528,
- "end": 2538,
+ "start": 2756,
+ "end": 2766,
"loc": {
"start": {
- "line": 91,
+ "line": 99,
"column": 4
},
"end": {
- "line": 91,
+ "line": 99,
"column": 14
},
"identifierName": "getDataURL"
@@ -2793,73 +2978,73 @@
"params": [],
"body": {
"type": "BlockStatement",
- "start": 2541,
- "end": 2579,
+ "start": 2769,
+ "end": 2807,
"loc": {
"start": {
- "line": 91,
+ "line": 99,
"column": 17
},
"end": {
- "line": 93,
+ "line": 101,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
- "start": 2552,
- "end": 2572,
+ "start": 2780,
+ "end": 2800,
"loc": {
"start": {
- "line": 92,
+ "line": 100,
"column": 8
},
"end": {
- "line": 92,
+ "line": 100,
"column": 28
}
},
"argument": {
"type": "MemberExpression",
- "start": 2559,
- "end": 2571,
+ "start": 2787,
+ "end": 2799,
"loc": {
"start": {
- "line": 92,
+ "line": 100,
"column": 15
},
"end": {
- "line": 92,
+ "line": 100,
"column": 27
}
},
"object": {
"type": "ThisExpression",
- "start": 2559,
- "end": 2563,
+ "start": 2787,
+ "end": 2791,
"loc": {
"start": {
- "line": 92,
+ "line": 100,
"column": 15
},
"end": {
- "line": 92,
+ "line": 100,
"column": 19
}
}
},
"property": {
"type": "Identifier",
- "start": 2564,
- "end": 2571,
+ "start": 2792,
+ "end": 2799,
"loc": {
"start": {
- "line": 92,
+ "line": 100,
"column": 20
},
"end": {
- "line": 92,
+ "line": 100,
"column": 27
},
"identifierName": "dataURL"
@@ -2877,15 +3062,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 2409,
- "end": 2522,
+ "start": 2637,
+ "end": 2750,
"loc": {
"start": {
- "line": 87,
+ "line": 95,
"column": 4
},
"end": {
- "line": 90,
+ "line": 98,
"column": 7
}
}
@@ -2894,16 +3079,16 @@
"trailingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Sets the index of the frame.\r\n * @private\r\n * @param {number} pIndex - The index to set the frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 2585,
- "end": 2760,
+ "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
+ "start": 2813,
+ "end": 2990,
"loc": {
"start": {
- "line": 94,
+ "line": 102,
"column": 4
},
"end": {
- "line": 99,
+ "line": 106,
"column": 7
}
}
@@ -2912,15 +3097,15 @@
},
{
"type": "ClassMethod",
- "start": 2766,
- "end": 3049,
+ "start": 2996,
+ "end": 3430,
"loc": {
"start": {
- "line": 100,
+ "line": 107,
"column": 4
},
"end": {
- "line": 109,
+ "line": 118,
"column": 5
}
},
@@ -2928,20 +3113,20 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 2766,
- "end": 2774,
+ "start": 2996,
+ "end": 3002,
"loc": {
"start": {
- "line": 100,
+ "line": 107,
"column": 4
},
"end": {
- "line": 100,
- "column": 12
+ "line": 107,
+ "column": 10
},
- "identifierName": "setIndex"
+ "identifierName": "export"
},
- "name": "setIndex",
+ "name": "export",
"leadingComments": null
},
"kind": "method",
@@ -2949,514 +3134,727 @@
"generator": false,
"expression": false,
"async": false,
- "params": [
- {
- "type": "Identifier",
- "start": 2775,
- "end": 2781,
- "loc": {
- "start": {
- "line": 100,
- "column": 13
- },
- "end": {
- "line": 100,
- "column": 19
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- }
- ],
+ "params": [],
"body": {
"type": "BlockStatement",
- "start": 2783,
- "end": 3049,
+ "start": 3005,
+ "end": 3430,
"loc": {
"start": {
- "line": 100,
- "column": 21
+ "line": 107,
+ "column": 13
},
"end": {
- "line": 109,
+ "line": 118,
"column": 5
}
},
"body": [
{
- "type": "IfStatement",
- "start": 2794,
- "end": 3020,
+ "type": "VariableDeclaration",
+ "start": 3016,
+ "end": 3037,
"loc": {
"start": {
- "line": 101,
+ "line": 108,
"column": 8
},
"end": {
- "line": 107,
- "column": 9
+ "line": 108,
+ "column": 29
}
},
- "test": {
- "type": "Identifier",
- "start": 2798,
- "end": 2804,
- "loc": {
- "start": {
- "line": 101,
- "column": 12
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 3022,
+ "end": 3036,
+ "loc": {
+ "start": {
+ "line": 108,
+ "column": 14
+ },
+ "end": {
+ "line": 108,
+ "column": 28
+ }
},
- "end": {
- "line": 101,
- "column": 18
+ "id": {
+ "type": "Identifier",
+ "start": 3022,
+ "end": 3031,
+ "loc": {
+ "start": {
+ "line": 108,
+ "column": 14
+ },
+ "end": {
+ "line": 108,
+ "column": 23
+ },
+ "identifierName": "frameData"
+ },
+ "name": "frameData"
},
- "identifierName": "pIndex"
+ "init": {
+ "type": "ArrayExpression",
+ "start": 3034,
+ "end": 3036,
+ "loc": {
+ "start": {
+ "line": 108,
+ "column": 26
+ },
+ "end": {
+ "line": 108,
+ "column": 28
+ }
+ },
+ "elements": []
+ }
+ }
+ ],
+ "kind": "const",
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame dataURL",
+ "start": 3047,
+ "end": 3063,
+ "loc": {
+ "start": {
+ "line": 109,
+ "column": 8
+ },
+ "end": {
+ "line": 109,
+ "column": 24
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 3073,
+ "end": 3106,
+ "loc": {
+ "start": {
+ "line": 110,
+ "column": 8
},
- "name": "pIndex"
+ "end": {
+ "line": 110,
+ "column": 41
+ }
},
- "consequent": {
- "type": "BlockStatement",
- "start": 2806,
- "end": 3020,
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 3073,
+ "end": 3105,
"loc": {
"start": {
- "line": 101,
- "column": 20
+ "line": 110,
+ "column": 8
},
"end": {
- "line": 107,
- "column": 9
+ "line": 110,
+ "column": 40
}
},
- "body": [
- {
- "type": "IfStatement",
- "start": 2821,
- "end": 3009,
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 3073,
+ "end": 3085,
+ "loc": {
+ "start": {
+ "line": 110,
+ "column": 8
+ },
+ "end": {
+ "line": 110,
+ "column": 20
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 3073,
+ "end": 3082,
"loc": {
"start": {
- "line": 102,
- "column": 12
+ "line": 110,
+ "column": 8
},
"end": {
- "line": 106,
- "column": 13
+ "line": 110,
+ "column": 17
+ },
+ "identifierName": "frameData"
+ },
+ "name": "frameData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 3083,
+ "end": 3084,
+ "loc": {
+ "start": {
+ "line": 110,
+ "column": 18
+ },
+ "end": {
+ "line": 110,
+ "column": 19
}
},
- "test": {
- "type": "BinaryExpression",
- "start": 2825,
- "end": 2852,
+ "extra": {
+ "rawValue": 0,
+ "raw": "0"
+ },
+ "value": 0
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 3088,
+ "end": 3105,
+ "loc": {
+ "start": {
+ "line": 110,
+ "column": 23
+ },
+ "end": {
+ "line": 110,
+ "column": 40
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 3088,
+ "end": 3103,
+ "loc": {
+ "start": {
+ "line": 110,
+ "column": 23
+ },
+ "end": {
+ "line": 110,
+ "column": 38
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 3088,
+ "end": 3092,
"loc": {
"start": {
- "line": 102,
- "column": 16
+ "line": 110,
+ "column": 23
},
"end": {
- "line": 102,
- "column": 43
+ "line": 110,
+ "column": 27
}
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 3093,
+ "end": 3103,
+ "loc": {
+ "start": {
+ "line": 110,
+ "column": 28
+ },
+ "end": {
+ "line": 110,
+ "column": 38
+ },
+ "identifierName": "getDataURL"
},
- "left": {
- "type": "UnaryExpression",
- "start": 2825,
- "end": 2839,
+ "name": "getDataURL"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame dataURL",
+ "start": 3047,
+ "end": 3063,
+ "loc": {
+ "start": {
+ "line": 109,
+ "column": 8
+ },
+ "end": {
+ "line": 109,
+ "column": 24
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " We do not have to store the delay if it is the default value of 100. This will save data.",
+ "start": 3116,
+ "end": 3208,
+ "loc": {
+ "start": {
+ "line": 111,
+ "column": 8
+ },
+ "end": {
+ "line": 111,
+ "column": 100
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "VariableDeclaration",
+ "start": 3218,
+ "end": 3280,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 8
+ },
+ "end": {
+ "line": 112,
+ "column": 70
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 3224,
+ "end": 3279,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 14
+ },
+ "end": {
+ "line": 112,
+ "column": 69
+ }
+ },
+ "id": {
+ "type": "Identifier",
+ "start": 3224,
+ "end": 3238,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 14
+ },
+ "end": {
+ "line": 112,
+ "column": 28
+ },
+ "identifierName": "delayIsDefault"
+ },
+ "name": "delayIsDefault",
+ "leadingComments": null
+ },
+ "init": {
+ "type": "BinaryExpression",
+ "start": 3241,
+ "end": 3279,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 31
+ },
+ "end": {
+ "line": 112,
+ "column": 69
+ }
+ },
+ "left": {
+ "type": "CallExpression",
+ "start": 3241,
+ "end": 3256,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 31
+ },
+ "end": {
+ "line": 112,
+ "column": 46
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 3241,
+ "end": 3254,
"loc": {
"start": {
- "line": 102,
- "column": 16
+ "line": 112,
+ "column": 31
},
"end": {
- "line": 102,
- "column": 30
+ "line": 112,
+ "column": 44
}
},
- "operator": "typeof",
- "prefix": true,
- "argument": {
- "type": "Identifier",
- "start": 2832,
- "end": 2838,
+ "object": {
+ "type": "ThisExpression",
+ "start": 3241,
+ "end": 3245,
"loc": {
"start": {
- "line": 102,
- "column": 23
+ "line": 112,
+ "column": 31
},
"end": {
- "line": 102,
- "column": 29
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex",
- "extra": {
- "parenthesized": true,
- "parenStart": 2831
- }
+ "line": 112,
+ "column": 35
+ }
+ }
},
- "extra": {
- "parenthesizedArgument": false
+ "property": {
+ "type": "Identifier",
+ "start": 3246,
+ "end": 3254,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 36
+ },
+ "end": {
+ "line": 112,
+ "column": 44
+ },
+ "identifierName": "getDelay"
+ },
+ "name": "getDelay"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "operator": "===",
+ "right": {
+ "type": "MemberExpression",
+ "start": 3261,
+ "end": 3279,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 51
+ },
+ "end": {
+ "line": 112,
+ "column": 69
}
},
- "operator": "===",
- "right": {
- "type": "StringLiteral",
- "start": 2844,
- "end": 2852,
+ "object": {
+ "type": "Identifier",
+ "start": 3261,
+ "end": 3266,
"loc": {
"start": {
- "line": 102,
- "column": 35
+ "line": 112,
+ "column": 51
},
"end": {
- "line": 102,
- "column": 43
- }
+ "line": 112,
+ "column": 56
+ },
+ "identifierName": "Frame"
},
- "extra": {
- "rawValue": "number",
- "raw": "'number'"
+ "name": "Frame"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 3267,
+ "end": 3279,
+ "loc": {
+ "start": {
+ "line": 112,
+ "column": 57
+ },
+ "end": {
+ "line": 112,
+ "column": 69
+ },
+ "identifierName": "defaultDelay"
},
- "value": "number"
+ "name": "defaultDelay"
+ },
+ "computed": false
+ }
+ },
+ "leadingComments": null
+ }
+ ],
+ "kind": "const",
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " We do not have to store the delay if it is the default value of 100. This will save data.",
+ "start": 3116,
+ "end": 3208,
+ "loc": {
+ "start": {
+ "line": 111,
+ "column": 8
+ },
+ "end": {
+ "line": 111,
+ "column": 100
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "IfStatement",
+ "start": 3290,
+ "end": 3396,
+ "loc": {
+ "start": {
+ "line": 113,
+ "column": 8
+ },
+ "end": {
+ "line": 116,
+ "column": 9
+ }
+ },
+ "test": {
+ "type": "UnaryExpression",
+ "start": 3294,
+ "end": 3309,
+ "loc": {
+ "start": {
+ "line": 113,
+ "column": 12
+ },
+ "end": {
+ "line": 113,
+ "column": 27
+ }
+ },
+ "operator": "!",
+ "prefix": true,
+ "argument": {
+ "type": "Identifier",
+ "start": 3295,
+ "end": 3309,
+ "loc": {
+ "start": {
+ "line": 113,
+ "column": 13
+ },
+ "end": {
+ "line": 113,
+ "column": 27
+ },
+ "identifierName": "delayIsDefault"
+ },
+ "name": "delayIsDefault"
+ },
+ "extra": {
+ "parenthesizedArgument": false
+ }
+ },
+ "consequent": {
+ "type": "BlockStatement",
+ "start": 3311,
+ "end": 3396,
+ "loc": {
+ "start": {
+ "line": 113,
+ "column": 29
+ },
+ "end": {
+ "line": 116,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 3354,
+ "end": 3385,
+ "loc": {
+ "start": {
+ "line": 115,
+ "column": 12
+ },
+ "end": {
+ "line": 115,
+ "column": 43
}
},
- "consequent": {
- "type": "BlockStatement",
- "start": 2854,
- "end": 2908,
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 3354,
+ "end": 3384,
"loc": {
"start": {
- "line": 102,
- "column": 45
+ "line": 115,
+ "column": 12
},
"end": {
- "line": 104,
- "column": 13
+ "line": 115,
+ "column": 42
}
},
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 2873,
- "end": 2893,
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 3354,
+ "end": 3366,
+ "loc": {
+ "start": {
+ "line": 115,
+ "column": 12
+ },
+ "end": {
+ "line": 115,
+ "column": 24
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 3354,
+ "end": 3363,
"loc": {
"start": {
- "line": 103,
- "column": 16
+ "line": 115,
+ "column": 12
},
"end": {
- "line": 103,
- "column": 36
+ "line": 115,
+ "column": 21
+ },
+ "identifierName": "frameData"
+ },
+ "name": "frameData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 3364,
+ "end": 3365,
+ "loc": {
+ "start": {
+ "line": 115,
+ "column": 22
+ },
+ "end": {
+ "line": 115,
+ "column": 23
}
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 2873,
- "end": 2892,
+ "extra": {
+ "rawValue": 1,
+ "raw": "1"
+ },
+ "value": 1
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 3369,
+ "end": 3384,
+ "loc": {
+ "start": {
+ "line": 115,
+ "column": 27
+ },
+ "end": {
+ "line": 115,
+ "column": 42
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 3369,
+ "end": 3382,
+ "loc": {
+ "start": {
+ "line": 115,
+ "column": 27
+ },
+ "end": {
+ "line": 115,
+ "column": 40
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 3369,
+ "end": 3373,
"loc": {
"start": {
- "line": 103,
- "column": 16
+ "line": 115,
+ "column": 27
},
"end": {
- "line": 103,
- "column": 35
+ "line": 115,
+ "column": 31
}
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 2873,
- "end": 2883,
- "loc": {
- "start": {
- "line": 103,
- "column": 16
- },
- "end": {
- "line": 103,
- "column": 26
- }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 3374,
+ "end": 3382,
+ "loc": {
+ "start": {
+ "line": 115,
+ "column": 32
},
- "object": {
- "type": "ThisExpression",
- "start": 2873,
- "end": 2877,
- "loc": {
- "start": {
- "line": 103,
- "column": 16
- },
- "end": {
- "line": 103,
- "column": 20
- }
- }
+ "end": {
+ "line": 115,
+ "column": 40
},
- "property": {
- "type": "Identifier",
- "start": 2878,
- "end": 2883,
- "loc": {
- "start": {
- "line": 103,
- "column": 21
- },
- "end": {
- "line": 103,
- "column": 26
- },
- "identifierName": "index"
- },
- "name": "index"
- },
- "computed": false
+ "identifierName": "getDelay"
},
- "right": {
- "type": "Identifier",
- "start": 2886,
- "end": 2892,
- "loc": {
- "start": {
- "line": 103,
- "column": 29
- },
- "end": {
- "line": 103,
- "column": 35
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- }
- }
- }
- ],
- "directives": []
- },
- "alternate": {
- "type": "BlockStatement",
- "start": 2914,
- "end": 3009,
- "loc": {
- "start": {
- "line": 104,
- "column": 19
+ "name": "getDelay"
+ },
+ "computed": false
},
- "end": {
- "line": 106,
- "column": 13
- }
+ "arguments": []
},
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 2933,
- "end": 2994,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 77
- }
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 3326,
+ "end": 3340,
+ "loc": {
+ "start": {
+ "line": 114,
+ "column": 12
},
- "expression": {
- "type": "CallExpression",
- "start": 2933,
- "end": 2993,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 76
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 2933,
- "end": 2970,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 53
- }
- },
- "object": {
- "type": "CallExpression",
- "start": 2933,
- "end": 2964,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 47
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 2933,
- "end": 2950,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 33
- }
- },
- "object": {
- "type": "MemberExpression",
- "start": 2933,
- "end": 2943,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 26
- }
- },
- "object": {
- "type": "Identifier",
- "start": 2933,
- "end": 2936,
- "loc": {
- "start": {
- "line": 105,
- "column": 16
- },
- "end": {
- "line": 105,
- "column": 19
- },
- "identifierName": "VYI"
- },
- "name": "VYI"
- },
- "property": {
- "type": "Identifier",
- "start": 2937,
- "end": 2943,
- "loc": {
- "start": {
- "line": 105,
- "column": 20
- },
- "end": {
- "line": 105,
- "column": 26
- },
- "identifierName": "logger"
- },
- "name": "logger"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "start": 2944,
- "end": 2950,
- "loc": {
- "start": {
- "line": 105,
- "column": 27
- },
- "end": {
- "line": 105,
- "column": 33
- },
- "identifierName": "prefix"
- },
- "name": "prefix"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 2951,
- "end": 2963,
- "loc": {
- "start": {
- "line": 105,
- "column": 34
- },
- "end": {
- "line": 105,
- "column": 46
- }
- },
- "extra": {
- "rawValue": "VYI-module",
- "raw": "'VYI-module'"
- },
- "value": "VYI-module"
- }
- ]
- },
- "property": {
- "type": "Identifier",
- "start": 2965,
- "end": 2970,
- "loc": {
- "start": {
- "line": 105,
- "column": 48
- },
- "end": {
- "line": 105,
- "column": 53
- },
- "identifierName": "error"
- },
- "name": "error"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 2971,
- "end": 2992,
- "loc": {
- "start": {
- "line": 105,
- "column": 54
- },
- "end": {
- "line": 105,
- "column": 75
- }
- },
- "extra": {
- "rawValue": "Invalid index type!",
- "raw": "'Invalid index type!'"
- },
- "value": "Invalid index type!"
- }
- ]
+ "end": {
+ "line": 114,
+ "column": 26
}
}
- ],
- "directives": []
- }
+ }
+ ]
}
],
"directives": []
@@ -3465,2765 +3863,362 @@
},
{
"type": "ReturnStatement",
- "start": 3030,
- "end": 3042,
+ "start": 3406,
+ "end": 3423,
"loc": {
"start": {
- "line": 108,
+ "line": 117,
"column": 8
},
"end": {
- "line": 108,
- "column": 20
+ "line": 117,
+ "column": 25
}
},
"argument": {
- "type": "ThisExpression",
- "start": 3037,
- "end": 3041,
+ "type": "Identifier",
+ "start": 3413,
+ "end": 3422,
"loc": {
"start": {
- "line": 108,
+ "line": 117,
"column": 15
},
"end": {
- "line": 108,
- "column": 19
- }
- }
+ "line": 117,
+ "column": 24
+ },
+ "identifierName": "frameData"
+ },
+ "name": "frameData"
}
}
],
- "directives": [],
- "trailingComments": null
+ "directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Sets the index of the frame.\r\n * @private\r\n * @param {number} pIndex - The index to set the frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 2585,
- "end": 2760,
- "loc": {
- "start": {
- "line": 94,
- "column": 4
- },
- "end": {
- "line": 99,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the index of this frame.\r\n * @returns {number} The index of this frame.\r\n ",
- "start": 3055,
- "end": 3156,
+ "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
+ "start": 2813,
+ "end": 2990,
"loc": {
"start": {
- "line": 110,
+ "line": 102,
"column": 4
},
"end": {
- "line": 113,
+ "line": 106,
"column": 7
}
}
}
]
- },
- {
- "type": "ClassMethod",
- "start": 3162,
- "end": 3209,
- "loc": {
- "start": {
- "line": 114,
- "column": 4
- },
- "end": {
- "line": 116,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 3162,
- "end": 3170,
- "loc": {
- "start": {
- "line": 114,
- "column": 4
- },
- "end": {
- "line": 114,
- "column": 12
- },
- "identifierName": "getIndex"
- },
- "name": "getIndex",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 3173,
- "end": 3209,
- "loc": {
- "start": {
- "line": 114,
- "column": 15
- },
- "end": {
- "line": 116,
- "column": 5
- }
- },
- "body": [
- {
- "type": "ReturnStatement",
- "start": 3184,
- "end": 3202,
- "loc": {
- "start": {
- "line": 115,
- "column": 8
- },
- "end": {
- "line": 115,
- "column": 26
- }
- },
- "argument": {
- "type": "MemberExpression",
- "start": 3191,
- "end": 3201,
- "loc": {
- "start": {
- "line": 115,
- "column": 15
- },
- "end": {
- "line": 115,
- "column": 25
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 3191,
- "end": 3195,
- "loc": {
- "start": {
- "line": 115,
- "column": 15
- },
- "end": {
- "line": 115,
- "column": 19
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 3196,
- "end": 3201,
- "loc": {
- "start": {
- "line": 115,
- "column": 20
- },
- "end": {
- "line": 115,
- "column": 25
- },
- "identifierName": "index"
- },
- "name": "index"
- },
- "computed": false
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the index of this frame.\r\n * @returns {number} The index of this frame.\r\n ",
- "start": 3055,
- "end": 3156,
- "loc": {
- "start": {
- "line": 110,
- "column": 4
- },
- "end": {
- "line": 113,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
- "start": 3215,
- "end": 3375,
- "loc": {
- "start": {
- "line": 117,
- "column": 4
- },
- "end": {
- "line": 120,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 3381,
- "end": 3815,
- "loc": {
- "start": {
- "line": 121,
- "column": 4
- },
- "end": {
- "line": 132,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 3381,
- "end": 3387,
- "loc": {
- "start": {
- "line": 121,
- "column": 4
- },
- "end": {
- "line": 121,
- "column": 10
- },
- "identifierName": "export"
- },
- "name": "export",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 3390,
- "end": 3815,
- "loc": {
- "start": {
- "line": 121,
- "column": 13
- },
- "end": {
- "line": 132,
- "column": 5
- }
- },
- "body": [
- {
- "type": "VariableDeclaration",
- "start": 3401,
- "end": 3422,
- "loc": {
- "start": {
- "line": 122,
- "column": 8
- },
- "end": {
- "line": 122,
- "column": 29
- }
- },
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 3407,
- "end": 3421,
- "loc": {
- "start": {
- "line": 122,
- "column": 14
- },
- "end": {
- "line": 122,
- "column": 28
- }
- },
- "id": {
- "type": "Identifier",
- "start": 3407,
- "end": 3416,
- "loc": {
- "start": {
- "line": 122,
- "column": 14
- },
- "end": {
- "line": 122,
- "column": 23
- },
- "identifierName": "frameData"
- },
- "name": "frameData"
- },
- "init": {
- "type": "ArrayExpression",
- "start": 3419,
- "end": 3421,
- "loc": {
- "start": {
- "line": 122,
- "column": 26
- },
- "end": {
- "line": 122,
- "column": 28
- }
- },
- "elements": []
- }
- }
- ],
- "kind": "const",
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " frame dataURL",
- "start": 3432,
- "end": 3448,
- "loc": {
- "start": {
- "line": 123,
- "column": 8
- },
- "end": {
- "line": 123,
- "column": 24
- }
- }
- }
- ]
- },
- {
- "type": "ExpressionStatement",
- "start": 3458,
- "end": 3491,
- "loc": {
- "start": {
- "line": 124,
- "column": 8
- },
- "end": {
- "line": 124,
- "column": 41
- }
- },
- "expression": {
- "type": "AssignmentExpression",
- "start": 3458,
- "end": 3490,
- "loc": {
- "start": {
- "line": 124,
- "column": 8
- },
- "end": {
- "line": 124,
- "column": 40
- }
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 3458,
- "end": 3470,
- "loc": {
- "start": {
- "line": 124,
- "column": 8
- },
- "end": {
- "line": 124,
- "column": 20
- }
- },
- "object": {
- "type": "Identifier",
- "start": 3458,
- "end": 3467,
- "loc": {
- "start": {
- "line": 124,
- "column": 8
- },
- "end": {
- "line": 124,
- "column": 17
- },
- "identifierName": "frameData"
- },
- "name": "frameData",
- "leadingComments": null
- },
- "property": {
- "type": "NumericLiteral",
- "start": 3468,
- "end": 3469,
- "loc": {
- "start": {
- "line": 124,
- "column": 18
- },
- "end": {
- "line": 124,
- "column": 19
- }
- },
- "extra": {
- "rawValue": 0,
- "raw": "0"
- },
- "value": 0
- },
- "computed": true,
- "leadingComments": null
- },
- "right": {
- "type": "CallExpression",
- "start": 3473,
- "end": 3490,
- "loc": {
- "start": {
- "line": 124,
- "column": 23
- },
- "end": {
- "line": 124,
- "column": 40
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 3473,
- "end": 3488,
- "loc": {
- "start": {
- "line": 124,
- "column": 23
- },
- "end": {
- "line": 124,
- "column": 38
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 3473,
- "end": 3477,
- "loc": {
- "start": {
- "line": 124,
- "column": 23
- },
- "end": {
- "line": 124,
- "column": 27
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 3478,
- "end": 3488,
- "loc": {
- "start": {
- "line": 124,
- "column": 28
- },
- "end": {
- "line": 124,
- "column": 38
- },
- "identifierName": "getDataURL"
- },
- "name": "getDataURL"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " frame dataURL",
- "start": 3432,
- "end": 3448,
- "loc": {
- "start": {
- "line": 123,
- "column": 8
- },
- "end": {
- "line": 123,
- "column": 24
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " We do not have to store the delay if it is the default value of 100. This will save data.",
- "start": 3501,
- "end": 3593,
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 100
- }
- }
- }
- ]
- },
- {
- "type": "VariableDeclaration",
- "start": 3603,
- "end": 3665,
- "loc": {
- "start": {
- "line": 126,
- "column": 8
- },
- "end": {
- "line": 126,
- "column": 70
- }
- },
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 3609,
- "end": 3664,
- "loc": {
- "start": {
- "line": 126,
- "column": 14
- },
- "end": {
- "line": 126,
- "column": 69
- }
- },
- "id": {
- "type": "Identifier",
- "start": 3609,
- "end": 3623,
- "loc": {
- "start": {
- "line": 126,
- "column": 14
- },
- "end": {
- "line": 126,
- "column": 28
- },
- "identifierName": "delayIsDefault"
- },
- "name": "delayIsDefault",
- "leadingComments": null
- },
- "init": {
- "type": "BinaryExpression",
- "start": 3626,
- "end": 3664,
- "loc": {
- "start": {
- "line": 126,
- "column": 31
- },
- "end": {
- "line": 126,
- "column": 69
- }
- },
- "left": {
- "type": "CallExpression",
- "start": 3626,
- "end": 3641,
- "loc": {
- "start": {
- "line": 126,
- "column": 31
- },
- "end": {
- "line": 126,
- "column": 46
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 3626,
- "end": 3639,
- "loc": {
- "start": {
- "line": 126,
- "column": 31
- },
- "end": {
- "line": 126,
- "column": 44
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 3626,
- "end": 3630,
- "loc": {
- "start": {
- "line": 126,
- "column": 31
- },
- "end": {
- "line": 126,
- "column": 35
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 3631,
- "end": 3639,
- "loc": {
- "start": {
- "line": 126,
- "column": 36
- },
- "end": {
- "line": 126,
- "column": 44
- },
- "identifierName": "getDelay"
- },
- "name": "getDelay"
- },
- "computed": false
- },
- "arguments": []
- },
- "operator": "===",
- "right": {
- "type": "MemberExpression",
- "start": 3646,
- "end": 3664,
- "loc": {
- "start": {
- "line": 126,
- "column": 51
- },
- "end": {
- "line": 126,
- "column": 69
- }
- },
- "object": {
- "type": "Identifier",
- "start": 3646,
- "end": 3651,
- "loc": {
- "start": {
- "line": 126,
- "column": 51
- },
- "end": {
- "line": 126,
- "column": 56
- },
- "identifierName": "Frame"
- },
- "name": "Frame"
- },
- "property": {
- "type": "Identifier",
- "start": 3652,
- "end": 3664,
- "loc": {
- "start": {
- "line": 126,
- "column": 57
- },
- "end": {
- "line": 126,
- "column": 69
- },
- "identifierName": "defaultDelay"
- },
- "name": "defaultDelay"
- },
- "computed": false
- }
- },
- "leadingComments": null
- }
- ],
- "kind": "const",
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " We do not have to store the delay if it is the default value of 100. This will save data.",
- "start": 3501,
- "end": 3593,
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 100
- }
- }
- }
- ]
- },
- {
- "type": "IfStatement",
- "start": 3675,
- "end": 3781,
- "loc": {
- "start": {
- "line": 127,
- "column": 8
- },
- "end": {
- "line": 130,
- "column": 9
- }
- },
- "test": {
- "type": "UnaryExpression",
- "start": 3679,
- "end": 3694,
- "loc": {
- "start": {
- "line": 127,
- "column": 12
- },
- "end": {
- "line": 127,
- "column": 27
- }
- },
- "operator": "!",
- "prefix": true,
- "argument": {
- "type": "Identifier",
- "start": 3680,
- "end": 3694,
- "loc": {
- "start": {
- "line": 127,
- "column": 13
- },
- "end": {
- "line": 127,
- "column": 27
- },
- "identifierName": "delayIsDefault"
- },
- "name": "delayIsDefault"
- },
- "extra": {
- "parenthesizedArgument": false
- }
- },
- "consequent": {
- "type": "BlockStatement",
- "start": 3696,
- "end": 3781,
- "loc": {
- "start": {
- "line": 127,
- "column": 29
- },
- "end": {
- "line": 130,
- "column": 9
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 3739,
- "end": 3770,
- "loc": {
- "start": {
- "line": 129,
- "column": 12
- },
- "end": {
- "line": 129,
- "column": 43
- }
- },
- "expression": {
- "type": "AssignmentExpression",
- "start": 3739,
- "end": 3769,
- "loc": {
- "start": {
- "line": 129,
- "column": 12
- },
- "end": {
- "line": 129,
- "column": 42
- }
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 3739,
- "end": 3751,
- "loc": {
- "start": {
- "line": 129,
- "column": 12
- },
- "end": {
- "line": 129,
- "column": 24
- }
- },
- "object": {
- "type": "Identifier",
- "start": 3739,
- "end": 3748,
- "loc": {
- "start": {
- "line": 129,
- "column": 12
- },
- "end": {
- "line": 129,
- "column": 21
- },
- "identifierName": "frameData"
- },
- "name": "frameData",
- "leadingComments": null
- },
- "property": {
- "type": "NumericLiteral",
- "start": 3749,
- "end": 3750,
- "loc": {
- "start": {
- "line": 129,
- "column": 22
- },
- "end": {
- "line": 129,
- "column": 23
- }
- },
- "extra": {
- "rawValue": 1,
- "raw": "1"
- },
- "value": 1
- },
- "computed": true,
- "leadingComments": null
- },
- "right": {
- "type": "CallExpression",
- "start": 3754,
- "end": 3769,
- "loc": {
- "start": {
- "line": 129,
- "column": 27
- },
- "end": {
- "line": 129,
- "column": 42
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 3754,
- "end": 3767,
- "loc": {
- "start": {
- "line": 129,
- "column": 27
- },
- "end": {
- "line": 129,
- "column": 40
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 3754,
- "end": 3758,
- "loc": {
- "start": {
- "line": 129,
- "column": 27
- },
- "end": {
- "line": 129,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 3759,
- "end": 3767,
- "loc": {
- "start": {
- "line": 129,
- "column": 32
- },
- "end": {
- "line": 129,
- "column": 40
- },
- "identifierName": "getDelay"
- },
- "name": "getDelay"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " frame delay",
- "start": 3711,
- "end": 3725,
- "loc": {
- "start": {
- "line": 128,
- "column": 12
- },
- "end": {
- "line": 128,
- "column": 26
- }
- }
- }
- ]
- }
- ],
- "directives": []
- },
- "alternate": null
- },
- {
- "type": "ReturnStatement",
- "start": 3791,
- "end": 3808,
- "loc": {
- "start": {
- "line": 131,
- "column": 8
- },
- "end": {
- "line": 131,
- "column": 25
- }
- },
- "argument": {
- "type": "Identifier",
- "start": 3798,
- "end": 3807,
- "loc": {
- "start": {
- "line": 131,
- "column": 15
- },
- "end": {
- "line": 131,
- "column": 24
- },
- "identifierName": "frameData"
- },
- "name": "frameData"
- }
- }
- ],
- "directives": []
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
- "start": 3215,
- "end": 3375,
- "loc": {
- "start": {
- "line": 117,
- "column": 4
- },
- "end": {
- "line": 120,
- "column": 7
- }
- }
- }
- ]
- }
- ]
- },
- "leadingComments": [],
- "trailingComments": []
- }
- }
- ],
- "directives": []
- },
- "comments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 62,
- "end": 147,
- "loc": {
- "start": {
- "line": 4,
- "column": 4
- },
- "end": {
- "line": 8,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
- "start": 171,
- "end": 273,
- "loc": {
- "start": {
- "line": 10,
- "column": 4
- },
- "end": {
- "line": 14,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The index of this frame. This indicates the order of the frame. 0 - Infinity.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 293,
- "end": 431,
- "loc": {
- "start": {
- "line": 16,
- "column": 4
- },
- "end": {
- "line": 20,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 453,
- "end": 548,
- "loc": {
- "start": {
- "line": 22,
- "column": 4
- },
- "end": {
- "line": 26,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 586,
- "end": 743,
- "loc": {
- "start": {
- "line": 28,
- "column": 4
- },
- "end": {
- "line": 32,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 820,
- "end": 1001,
- "loc": {
- "start": {
- "line": 36,
- "column": 4
- },
- "end": {
- "line": 40,
- "column": 7
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Loop through frame data and build frame.",
- "start": 1036,
- "end": 1079,
- "loc": {
- "start": {
- "line": 42,
- "column": 8
- },
- "end": {
- "line": 42,
- "column": 51
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Set the data url",
- "start": 1172,
- "end": 1191,
- "loc": {
- "start": {
- "line": 45,
- "column": 8
- },
- "end": {
- "line": 45,
- "column": 27
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Set the frame delay",
- "start": 1236,
- "end": 1258,
- "loc": {
- "start": {
- "line": 47,
- "column": 8
- },
- "end": {
- "line": 47,
- "column": 30
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1307,
- "end": 1479,
- "loc": {
- "start": {
- "line": 50,
- "column": 4
- },
- "end": {
- "line": 54,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n ",
- "start": 1774,
- "end": 1875,
- "loc": {
- "start": {
- "line": 65,
- "column": 4
- },
- "end": {
- "line": 68,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1934,
- "end": 2099,
- "loc": {
- "start": {
- "line": 72,
- "column": 4
- },
- "end": {
- "line": 76,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 2409,
- "end": 2522,
- "loc": {
- "start": {
- "line": 87,
- "column": 4
- },
- "end": {
- "line": 90,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Sets the index of the frame.\r\n * @private\r\n * @param {number} pIndex - The index to set the frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 2585,
- "end": 2760,
- "loc": {
- "start": {
- "line": 94,
- "column": 4
- },
- "end": {
- "line": 99,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the index of this frame.\r\n * @returns {number} The index of this frame.\r\n ",
- "start": 3055,
- "end": 3156,
- "loc": {
- "start": {
- "line": 110,
- "column": 4
- },
- "end": {
- "line": 113,
- "column": 7
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
- "start": 3215,
- "end": 3375,
- "loc": {
- "start": {
- "line": 117,
- "column": 4
- },
- "end": {
- "line": 120,
- "column": 7
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " frame dataURL",
- "start": 3432,
- "end": 3448,
- "loc": {
- "start": {
- "line": 123,
- "column": 8
- },
- "end": {
- "line": 123,
- "column": 24
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " We do not have to store the delay if it is the default value of 100. This will save data.",
- "start": 3501,
- "end": 3593,
- "loc": {
- "start": {
- "line": 125,
- "column": 8
- },
- "end": {
- "line": 125,
- "column": 100
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " frame delay",
- "start": 3711,
- "end": 3725,
- "loc": {
- "start": {
- "line": 128,
- "column": 12
- },
- "end": {
- "line": 128,
- "column": 26
- }
- }
- }
- ],
- "tokens": [
- {
- "type": {
- "label": "import",
- "keyword": "import",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "import",
- "start": 0,
- "end": 6,
- "loc": {
- "start": {
- "line": 1,
- "column": 0
- },
- "end": {
- "line": 1,
- "column": 6
- }
- }
- },
- {
- "type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 7,
- "end": 8,
- "loc": {
- "start": {
- "line": 1,
- "column": 7
- },
- "end": {
- "line": 1,
- "column": 8
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "VYI",
- "start": 9,
- "end": 12,
- "loc": {
- "start": {
- "line": 1,
- "column": 9
- },
- "end": {
- "line": 1,
- "column": 12
- }
- }
- },
- {
- "type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 13,
- "end": 14,
- "loc": {
- "start": {
- "line": 1,
- "column": 13
- },
- "end": {
- "line": 1,
- "column": 14
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "from",
- "start": 15,
- "end": 19,
- "loc": {
- "start": {
- "line": 1,
- "column": 15
- },
- "end": {
- "line": 1,
- "column": 19
- }
- }
- },
- {
- "type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "./vyi.mjs",
- "start": 20,
- "end": 31,
- "loc": {
- "start": {
- "line": 1,
- "column": 20
- },
- "end": {
- "line": 1,
- "column": 31
- }
- }
- },
- {
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 31,
- "end": 32,
- "loc": {
- "start": {
- "line": 1,
- "column": 31
- },
- "end": {
- "line": 1,
- "column": 32
- }
- }
- },
- {
- "type": {
- "label": "export",
- "keyword": "export",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "export",
- "start": 36,
- "end": 42,
- "loc": {
- "start": {
- "line": 3,
- "column": 0
- },
- "end": {
- "line": 3,
- "column": 6
- }
- }
- },
- {
- "type": {
- "label": "class",
- "keyword": "class",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "class",
- "start": 43,
- "end": 48,
- "loc": {
- "start": {
- "line": 3,
- "column": 7
- },
- "end": {
- "line": 3,
- "column": 12
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "Frame",
- "start": 49,
- "end": 54,
- "loc": {
- "start": {
- "line": 3,
- "column": 13
- },
- "end": {
- "line": 3,
- "column": 18
- }
- }
- },
- {
- "type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 55,
- "end": 56,
- "loc": {
- "start": {
- "line": 3,
- "column": 19
- },
- "end": {
- "line": 3,
- "column": 20
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 62,
- "end": 147,
- "loc": {
- "start": {
- "line": 4,
- "column": 4
- },
- "end": {
- "line": 8,
- "column": 7
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "delay",
- "start": 153,
- "end": 158,
- "loc": {
- "start": {
- "line": 9,
- "column": 4
- },
- "end": {
- "line": 9,
- "column": 9
- }
- }
- },
- {
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 159,
- "end": 160,
- "loc": {
- "start": {
- "line": 9,
- "column": 10
- },
- "end": {
- "line": 9,
- "column": 11
- }
- }
- },
- {
- "type": {
- "label": "num",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": 100,
- "start": 161,
- "end": 164,
- "loc": {
- "start": {
- "line": 9,
- "column": 12
- },
- "end": {
- "line": 9,
- "column": 15
- }
- }
- },
- {
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 164,
- "end": 165,
- "loc": {
- "start": {
- "line": 9,
- "column": 15
- },
- "end": {
- "line": 9,
- "column": 16
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
- "start": 171,
- "end": 273,
- "loc": {
- "start": {
- "line": 10,
- "column": 4
- },
- "end": {
- "line": 14,
- "column": 7
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "dataURL",
- "start": 279,
- "end": 286,
- "loc": {
- "start": {
- "line": 15,
- "column": 4
- },
- "end": {
- "line": 15,
- "column": 11
- }
- }
- },
- {
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 286,
- "end": 287,
- "loc": {
- "start": {
- "line": 15,
- "column": 11
- },
- "end": {
- "line": 15,
- "column": 12
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The index of this frame. This indicates the order of the frame. 0 - Infinity.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 293,
- "end": 431,
- "loc": {
- "start": {
- "line": 16,
- "column": 4
- },
- "end": {
- "line": 20,
- "column": 7
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "index",
- "start": 437,
- "end": 442,
- "loc": {
- "start": {
- "line": 21,
- "column": 4
- },
- "end": {
- "line": 21,
- "column": 9
- }
- }
- },
- {
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 443,
- "end": 444,
- "loc": {
- "start": {
- "line": 21,
- "column": 10
- },
- "end": {
- "line": 21,
- "column": 11
- }
- }
- },
- {
- "type": {
- "label": "num",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": 0,
- "start": 445,
- "end": 446,
- "loc": {
- "start": {
- "line": 21,
- "column": 12
- },
- "end": {
- "line": 21,
- "column": 13
- }
- }
- },
- {
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 446,
- "end": 447,
- "loc": {
- "start": {
- "line": 21,
- "column": 13
- },
- "end": {
- "line": 21,
- "column": 14
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 453,
- "end": 548,
- "loc": {
- "start": {
- "line": 22,
- "column": 4
- },
- "end": {
- "line": 26,
- "column": 7
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "static",
- "start": 554,
- "end": 560,
- "loc": {
- "start": {
- "line": 27,
- "column": 4
- },
- "end": {
- "line": 27,
- "column": 10
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "defaultDelay",
- "start": 561,
- "end": 573,
- "loc": {
- "start": {
- "line": 27,
- "column": 11
- },
- "end": {
- "line": 27,
- "column": 23
- }
- }
- },
- {
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 574,
- "end": 575,
- "loc": {
- "start": {
- "line": 27,
- "column": 24
- },
- "end": {
- "line": 27,
- "column": 25
- }
- }
- },
- {
- "type": {
- "label": "num",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": 100,
- "start": 576,
- "end": 579,
- "loc": {
- "start": {
- "line": 27,
- "column": 26
- },
- "end": {
- "line": 27,
- "column": 29
- }
- }
- },
- {
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 579,
- "end": 580,
- "loc": {
- "start": {
- "line": 27,
- "column": 29
- },
- "end": {
- "line": 27,
- "column": 30
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 586,
- "end": 743,
- "loc": {
- "start": {
- "line": 28,
- "column": 4
- },
- "end": {
- "line": 32,
- "column": 7
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "constructor",
- "start": 749,
- "end": 760,
- "loc": {
- "start": {
- "line": 33,
- "column": 4
- },
- "end": {
- "line": 33,
- "column": 15
- }
- }
- },
- {
- "type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 760,
- "end": 761,
- "loc": {
- "start": {
- "line": 33,
- "column": 15
- },
- "end": {
- "line": 33,
- "column": 16
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "pFrameData",
- "start": 761,
- "end": 771,
- "loc": {
- "start": {
- "line": 33,
- "column": 16
- },
- "end": {
- "line": 33,
- "column": 26
- }
- }
- },
- {
- "type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 771,
- "end": 772,
- "loc": {
- "start": {
- "line": 33,
- "column": 26
- },
- "end": {
- "line": 33,
- "column": 27
- }
- }
- },
- {
- "type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 773,
- "end": 774,
- "loc": {
- "start": {
- "line": 33,
- "column": 28
- },
- "end": {
- "line": 33,
- "column": 29
- }
- }
- },
- {
- "type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "this",
- "start": 784,
- "end": 788,
- "loc": {
- "start": {
- "line": 34,
- "column": 8
- },
- "end": {
- "line": 34,
- "column": 12
- }
- }
- },
- {
- "type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 788,
- "end": 789,
- "loc": {
- "start": {
- "line": 34,
- "column": 12
- },
- "end": {
- "line": 34,
- "column": 13
+ }
+ ]
+ },
+ "leadingComments": [],
+ "trailingComments": []
}
}
- },
+ ],
+ "directives": []
+ },
+ "comments": [
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "parse",
- "start": 789,
- "end": 794,
+ "type": "CommentBlock",
+ "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 62,
+ "end": 147,
"loc": {
"start": {
- "line": 34,
- "column": 13
+ "line": 4,
+ "column": 4
},
"end": {
- "line": 34,
- "column": 18
+ "line": 8,
+ "column": 7
}
}
},
{
- "type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 794,
- "end": 795,
+ "type": "CommentBlock",
+ "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
+ "start": 171,
+ "end": 273,
"loc": {
"start": {
- "line": 34,
- "column": 18
+ "line": 10,
+ "column": 4
},
"end": {
- "line": 34,
- "column": 19
+ "line": 14,
+ "column": 7
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "pFrameData",
- "start": 795,
- "end": 805,
+ "type": "CommentBlock",
+ "value": "*\r\n * The index of this frame. This indicates the order of the frame. 0 - Infinity.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 293,
+ "end": 431,
"loc": {
"start": {
- "line": 34,
- "column": 19
+ "line": 16,
+ "column": 4
},
"end": {
- "line": 34,
- "column": 29
+ "line": 20,
+ "column": 7
}
}
},
{
- "type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 805,
- "end": 806,
+ "type": "CommentBlock",
+ "value": "*\r\n * The icon that owns this frame. \r\n * @private\r\n * @type {Icon}\r\n ",
+ "start": 453,
+ "end": 543,
"loc": {
"start": {
- "line": 34,
- "column": 29
- },
- "end": {
- "line": 34,
- "column": 30
- }
- }
- },
- {
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 806,
- "end": 807,
+ "line": 22,
+ "column": 4
+ },
+ "end": {
+ "line": 26,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 562,
+ "end": 657,
"loc": {
"start": {
- "line": 34,
- "column": 30
+ "line": 28,
+ "column": 4
},
"end": {
- "line": 34,
- "column": 31
+ "line": 32,
+ "column": 7
}
}
},
{
- "type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 813,
- "end": 814,
+ "type": "CommentBlock",
+ "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @param {Icon} pParentIcon - The icon that created this frame.\r\n * @private\r\n ",
+ "start": 695,
+ "end": 922,
"loc": {
"start": {
- "line": 35,
+ "line": 34,
"column": 4
},
"end": {
- "line": 35,
- "column": 5
+ "line": 39,
+ "column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
- "start": 820,
- "end": 1001,
+ "start": 1048,
+ "end": 1229,
"loc": {
"start": {
- "line": 36,
+ "line": 44,
"column": 4
},
"end": {
- "line": 40,
+ "line": 48,
"column": 7
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "parse",
- "start": 1007,
- "end": 1012,
+ "type": "CommentLine",
+ "value": " Loop through frame data and build frame.",
+ "start": 1264,
+ "end": 1307,
"loc": {
"start": {
- "line": 41,
- "column": 4
+ "line": 50,
+ "column": 8
},
"end": {
- "line": 41,
- "column": 9
+ "line": 50,
+ "column": 51
}
}
},
{
- "type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 1012,
- "end": 1013,
+ "type": "CommentLine",
+ "value": " Set the data url",
+ "start": 1400,
+ "end": 1419,
"loc": {
"start": {
- "line": 41,
- "column": 9
+ "line": 53,
+ "column": 8
},
"end": {
- "line": 41,
- "column": 10
+ "line": 53,
+ "column": 27
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "pFrameData",
- "start": 1013,
- "end": 1023,
+ "type": "CommentLine",
+ "value": " Set the frame delay",
+ "start": 1464,
+ "end": 1486,
"loc": {
"start": {
- "line": 41,
- "column": 10
+ "line": 55,
+ "column": 8
},
"end": {
- "line": 41,
- "column": 20
+ "line": 55,
+ "column": 30
}
}
},
{
- "type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 1023,
- "end": 1024,
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n ",
+ "start": 1535,
+ "end": 1707,
"loc": {
"start": {
- "line": 41,
- "column": 20
+ "line": 58,
+ "column": 4
},
"end": {
- "line": 41,
- "column": 21
+ "line": 62,
+ "column": 7
}
}
},
{
- "type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 1025,
- "end": 1026,
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n ",
+ "start": 2002,
+ "end": 2103,
"loc": {
"start": {
- "line": 41,
- "column": 22
+ "line": 73,
+ "column": 4
},
"end": {
- "line": 41,
- "column": 23
+ "line": 76,
+ "column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " Loop through frame data and build frame.",
- "start": 1036,
- "end": 1079,
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n ",
+ "start": 2162,
+ "end": 2327,
"loc": {
"start": {
- "line": 42,
- "column": 8
+ "line": 80,
+ "column": 4
},
"end": {
- "line": 42,
- "column": 51
+ "line": 84,
+ "column": 7
}
}
},
{
- "type": {
- "label": "const",
- "keyword": "const",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "const",
- "start": 1089,
- "end": 1094,
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
+ "start": 2637,
+ "end": 2750,
"loc": {
"start": {
- "line": 43,
- "column": 8
+ "line": 95,
+ "column": 4
},
"end": {
- "line": 43,
- "column": 13
+ "line": 98,
+ "column": 7
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "dataURL",
- "start": 1095,
- "end": 1102,
+ "type": "CommentBlock",
+ "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
+ "start": 2813,
+ "end": 2990,
"loc": {
"start": {
- "line": 43,
- "column": 14
+ "line": 102,
+ "column": 4
},
"end": {
- "line": 43,
- "column": 21
+ "line": 106,
+ "column": 7
}
}
},
{
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 1103,
- "end": 1104,
+ "type": "CommentLine",
+ "value": " frame dataURL",
+ "start": 3047,
+ "end": 3063,
"loc": {
"start": {
- "line": 43,
- "column": 22
+ "line": 109,
+ "column": 8
},
"end": {
- "line": 43,
- "column": 23
+ "line": 109,
+ "column": 24
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "pFrameData",
- "start": 1105,
- "end": 1115,
+ "type": "CommentLine",
+ "value": " We do not have to store the delay if it is the default value of 100. This will save data.",
+ "start": 3116,
+ "end": 3208,
"loc": {
"start": {
- "line": 43,
- "column": 24
+ "line": 111,
+ "column": 8
},
"end": {
- "line": 43,
- "column": 34
+ "line": 111,
+ "column": 100
}
}
},
{
- "type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 1115,
- "end": 1116,
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 3326,
+ "end": 3340,
"loc": {
"start": {
- "line": 43,
- "column": 34
+ "line": 114,
+ "column": 12
},
"end": {
- "line": 43,
- "column": 35
+ "line": 114,
+ "column": 26
}
}
- },
+ }
+ ],
+ "tokens": [
{
"type": {
- "label": "num",
+ "label": "import",
+ "keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -6234,76 +4229,74 @@
"binop": null,
"updateContext": null
},
- "value": 0,
- "start": 1116,
- "end": 1117,
+ "value": "import",
+ "start": 0,
+ "end": 6,
"loc": {
"start": {
- "line": 43,
- "column": 35
+ "line": 1,
+ "column": 0
},
"end": {
- "line": 43,
- "column": 36
+ "line": 1,
+ "column": 6
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1117,
- "end": 1118,
+ "start": 7,
+ "end": 8,
"loc": {
"start": {
- "line": 43,
- "column": 36
+ "line": 1,
+ "column": 7
},
"end": {
- "line": 43,
- "column": 37
+ "line": 1,
+ "column": 8
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1118,
- "end": 1119,
+ "value": "VYI",
+ "start": 9,
+ "end": 12,
"loc": {
"start": {
- "line": 43,
- "column": 37
+ "line": 1,
+ "column": 9
},
"end": {
- "line": 43,
- "column": 38
+ "line": 1,
+ "column": 12
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -6311,20 +4304,18 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 1129,
- "end": 1134,
+ "start": 13,
+ "end": 14,
"loc": {
"start": {
- "line": 44,
- "column": 8
+ "line": 1,
+ "column": 13
},
"end": {
- "line": 44,
- "column": 13
+ "line": 1,
+ "column": 14
}
}
},
@@ -6340,78 +4331,79 @@
"postfix": false,
"binop": null
},
- "value": "frameDelay",
- "start": 1135,
- "end": 1145,
+ "value": "from",
+ "start": 15,
+ "end": 19,
"loc": {
"start": {
- "line": 44,
- "column": 14
+ "line": 1,
+ "column": 15
},
"end": {
- "line": 44,
- "column": 24
+ "line": 1,
+ "column": 19
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 1146,
- "end": 1147,
+ "value": "./vyi.mjs",
+ "start": 20,
+ "end": 31,
"loc": {
"start": {
- "line": 44,
- "column": 25
+ "line": 1,
+ "column": 20
},
"end": {
- "line": 44,
- "column": 26
+ "line": 1,
+ "column": 31
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pFrameData",
- "start": 1148,
- "end": 1158,
+ "start": 31,
+ "end": 32,
"loc": {
"start": {
- "line": 44,
- "column": 27
+ "line": 1,
+ "column": 31
},
"end": {
- "line": 44,
- "column": 37
+ "line": 1,
+ "column": 32
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "export",
+ "keyword": "export",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -6420,24 +4412,26 @@
"binop": null,
"updateContext": null
},
- "start": 1158,
- "end": 1159,
+ "value": "export",
+ "start": 36,
+ "end": 42,
"loc": {
"start": {
- "line": 44,
- "column": 37
+ "line": 3,
+ "column": 0
},
"end": {
- "line": 44,
- "column": 38
+ "line": 3,
+ "column": 6
}
}
},
{
"type": {
- "label": "num",
+ "label": "class",
+ "keyword": "class",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -6446,92 +4440,90 @@
"binop": null,
"updateContext": null
},
- "value": 1,
- "start": 1159,
- "end": 1160,
+ "value": "class",
+ "start": 43,
+ "end": 48,
"loc": {
"start": {
- "line": 44,
- "column": 38
+ "line": 3,
+ "column": 7
},
"end": {
- "line": 44,
- "column": 39
+ "line": 3,
+ "column": 12
}
}
},
{
"type": {
- "label": "]",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1160,
- "end": 1161,
+ "value": "Frame",
+ "start": 49,
+ "end": 54,
"loc": {
"start": {
- "line": 44,
- "column": 39
+ "line": 3,
+ "column": 13
},
"end": {
- "line": 44,
- "column": 40
+ "line": 3,
+ "column": 18
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1161,
- "end": 1162,
+ "start": 55,
+ "end": 56,
"loc": {
"start": {
- "line": 44,
- "column": 40
+ "line": 3,
+ "column": 19
},
"end": {
- "line": 44,
- "column": 41
+ "line": 3,
+ "column": 20
}
}
},
{
- "type": "CommentLine",
- "value": " Set the data url",
- "start": 1172,
- "end": 1191,
+ "type": "CommentBlock",
+ "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 62,
+ "end": 147,
"loc": {
"start": {
- "line": 45,
- "column": 8
+ "line": 4,
+ "column": 4
},
"end": {
- "line": 45,
- "column": 27
+ "line": 8,
+ "column": 7
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -6539,52 +4531,52 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 1201,
- "end": 1205,
+ "value": "delay",
+ "start": 153,
+ "end": 158,
"loc": {
"start": {
- "line": 46,
- "column": 8
+ "line": 9,
+ "column": 4
},
"end": {
- "line": 46,
- "column": 12
+ "line": 9,
+ "column": 9
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 1205,
- "end": 1206,
+ "value": "=",
+ "start": 159,
+ "end": 160,
"loc": {
"start": {
- "line": 46,
- "column": 12
+ "line": 9,
+ "column": 10
},
"end": {
- "line": 46,
- "column": 13
+ "line": 9,
+ "column": 11
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -6592,78 +4584,70 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "setDataURL",
- "start": 1206,
- "end": 1216,
+ "value": 100,
+ "start": 161,
+ "end": 164,
"loc": {
"start": {
- "line": 46,
- "column": 13
+ "line": 9,
+ "column": 12
},
"end": {
- "line": 46,
- "column": 23
+ "line": 9,
+ "column": 15
}
}
},
{
"type": {
- "label": "(",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1216,
- "end": 1217,
+ "start": 164,
+ "end": 165,
"loc": {
"start": {
- "line": 46,
- "column": 23
+ "line": 9,
+ "column": 15
},
"end": {
- "line": 46,
- "column": 24
+ "line": 9,
+ "column": 16
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "dataURL",
- "start": 1217,
- "end": 1224,
+ "type": "CommentBlock",
+ "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
+ "start": 171,
+ "end": 273,
"loc": {
"start": {
- "line": 46,
- "column": 24
+ "line": 10,
+ "column": 4
},
"end": {
- "line": 46,
- "column": 31
+ "line": 14,
+ "column": 7
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -6671,16 +4655,17 @@
"postfix": false,
"binop": null
},
- "start": 1224,
- "end": 1225,
+ "value": "dataURL",
+ "start": 279,
+ "end": 286,
"loc": {
"start": {
- "line": 46,
- "column": 31
+ "line": 15,
+ "column": 4
},
"end": {
- "line": 46,
- "column": 32
+ "line": 15,
+ "column": 11
}
}
},
@@ -6697,39 +4682,38 @@
"binop": null,
"updateContext": null
},
- "start": 1225,
- "end": 1226,
+ "start": 286,
+ "end": 287,
"loc": {
"start": {
- "line": 46,
- "column": 32
+ "line": 15,
+ "column": 11
},
"end": {
- "line": 46,
- "column": 33
+ "line": 15,
+ "column": 12
}
}
},
{
- "type": "CommentLine",
- "value": " Set the frame delay",
- "start": 1236,
- "end": 1258,
+ "type": "CommentBlock",
+ "value": "*\r\n * The index of this frame. This indicates the order of the frame. 0 - Infinity.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 293,
+ "end": 431,
"loc": {
"start": {
- "line": 47,
- "column": 8
+ "line": 16,
+ "column": 4
},
"end": {
- "line": 47,
- "column": 30
+ "line": 20,
+ "column": 7
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -6737,52 +4721,52 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 1268,
- "end": 1272,
+ "value": "index",
+ "start": 437,
+ "end": 442,
"loc": {
"start": {
- "line": 48,
- "column": 8
+ "line": 21,
+ "column": 4
},
"end": {
- "line": 48,
- "column": 12
+ "line": 21,
+ "column": 9
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 1272,
- "end": 1273,
+ "value": "=",
+ "start": 443,
+ "end": 444,
"loc": {
"start": {
- "line": 48,
- "column": 12
+ "line": 21,
+ "column": 10
},
"end": {
- "line": 48,
- "column": 13
+ "line": 21,
+ "column": 11
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -6790,78 +4774,70 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "setDelay",
- "start": 1273,
- "end": 1281,
+ "value": 0,
+ "start": 445,
+ "end": 446,
"loc": {
"start": {
- "line": 48,
- "column": 13
+ "line": 21,
+ "column": 12
},
"end": {
- "line": 48,
- "column": 21
+ "line": 21,
+ "column": 13
}
}
},
{
"type": {
- "label": "(",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1281,
- "end": 1282,
+ "start": 446,
+ "end": 447,
"loc": {
"start": {
- "line": 48,
- "column": 21
+ "line": 21,
+ "column": 13
},
"end": {
- "line": 48,
- "column": 22
+ "line": 21,
+ "column": 14
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "frameDelay",
- "start": 1282,
- "end": 1292,
+ "type": "CommentBlock",
+ "value": "*\r\n * The icon that owns this frame. \r\n * @private\r\n * @type {Icon}\r\n ",
+ "start": 453,
+ "end": 543,
"loc": {
"start": {
- "line": 48,
- "column": 22
+ "line": 22,
+ "column": 4
},
"end": {
- "line": 48,
- "column": 32
+ "line": 26,
+ "column": 7
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -6869,16 +4845,17 @@
"postfix": false,
"binop": null
},
- "start": 1292,
- "end": 1293,
+ "value": "parent",
+ "start": 549,
+ "end": 555,
"loc": {
"start": {
- "line": 48,
- "column": 32
+ "line": 27,
+ "column": 4
},
"end": {
- "line": 48,
- "column": 33
+ "line": 27,
+ "column": 10
}
}
},
@@ -6895,24 +4872,40 @@
"binop": null,
"updateContext": null
},
- "start": 1293,
- "end": 1294,
+ "start": 555,
+ "end": 556,
"loc": {
"start": {
- "line": 48,
- "column": 33
+ "line": 27,
+ "column": 10
},
"end": {
- "line": 48,
- "column": 34
+ "line": 27,
+ "column": 11
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 562,
+ "end": 657,
+ "loc": {
+ "start": {
+ "line": 28,
+ "column": 4
+ },
+ "end": {
+ "line": 32,
+ "column": 7
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -6920,117 +4913,147 @@
"postfix": false,
"binop": null
},
- "start": 1300,
- "end": 1301,
+ "value": "static",
+ "start": 663,
+ "end": 669,
"loc": {
"start": {
- "line": 49,
+ "line": 33,
"column": 4
},
"end": {
- "line": 49,
- "column": 5
+ "line": 33,
+ "column": 10
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1307,
- "end": 1479,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "defaultDelay",
+ "start": 670,
+ "end": 682,
"loc": {
"start": {
- "line": 50,
- "column": 4
+ "line": 33,
+ "column": 11
},
"end": {
- "line": 54,
- "column": 7
+ "line": 33,
+ "column": 23
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "setDelay",
- "start": 1485,
- "end": 1493,
+ "value": "=",
+ "start": 683,
+ "end": 684,
"loc": {
"start": {
- "line": 55,
- "column": 4
+ "line": 33,
+ "column": 24
},
"end": {
- "line": 55,
- "column": 12
+ "line": 33,
+ "column": 25
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "num",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1493,
- "end": 1494,
+ "value": 100,
+ "start": 685,
+ "end": 688,
"loc": {
"start": {
- "line": 55,
- "column": 12
+ "line": 33,
+ "column": 26
},
"end": {
- "line": 55,
- "column": 13
+ "line": 33,
+ "column": 29
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDelay",
- "start": 1494,
- "end": 1500,
+ "start": 688,
+ "end": 689,
"loc": {
"start": {
- "line": 55,
- "column": 13
+ "line": 33,
+ "column": 29
},
"end": {
- "line": 55,
- "column": 19
+ "line": 33,
+ "column": 30
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @param {Icon} pParentIcon - The icon that created this frame.\r\n * @private\r\n ",
+ "start": 695,
+ "end": 922,
+ "loc": {
+ "start": {
+ "line": 34,
+ "column": 4
+ },
+ "end": {
+ "line": 39,
+ "column": 7
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -7038,22 +5061,23 @@
"postfix": false,
"binop": null
},
- "start": 1500,
- "end": 1501,
+ "value": "constructor",
+ "start": 928,
+ "end": 939,
"loc": {
"start": {
- "line": 55,
- "column": 19
+ "line": 40,
+ "column": 4
},
"end": {
- "line": 55,
- "column": 20
+ "line": 40,
+ "column": 15
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -7063,69 +5087,68 @@
"postfix": false,
"binop": null
},
- "start": 1502,
- "end": 1503,
+ "start": 939,
+ "end": 940,
"loc": {
"start": {
- "line": 55,
- "column": 21
+ "line": 40,
+ "column": 15
},
"end": {
- "line": 55,
- "column": 22
+ "line": 40,
+ "column": 16
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 1513,
- "end": 1515,
+ "value": "pFrameData",
+ "start": 940,
+ "end": 950,
"loc": {
"start": {
- "line": 56,
- "column": 8
+ "line": 40,
+ "column": 16
},
"end": {
- "line": 56,
- "column": 10
+ "line": 40,
+ "column": 26
}
}
},
{
"type": {
- "label": "(",
+ "label": ",",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1516,
- "end": 1517,
+ "start": 950,
+ "end": 951,
"loc": {
"start": {
- "line": 56,
- "column": 11
+ "line": 40,
+ "column": 26
},
"end": {
- "line": 56,
- "column": 12
+ "line": 40,
+ "column": 27
}
}
},
@@ -7141,17 +5164,17 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 1517,
- "end": 1523,
+ "value": "pParentIcon",
+ "start": 952,
+ "end": 963,
"loc": {
"start": {
- "line": 56,
- "column": 12
+ "line": 40,
+ "column": 28
},
"end": {
- "line": 56,
- "column": 18
+ "line": 40,
+ "column": 39
}
}
},
@@ -7167,16 +5190,16 @@
"postfix": false,
"binop": null
},
- "start": 1523,
- "end": 1524,
+ "start": 963,
+ "end": 964,
"loc": {
"start": {
- "line": 56,
- "column": 18
+ "line": 40,
+ "column": 39
},
"end": {
- "line": 56,
- "column": 19
+ "line": 40,
+ "column": 40
}
}
},
@@ -7192,25 +5215,25 @@
"postfix": false,
"binop": null
},
- "start": 1525,
- "end": 1526,
+ "start": 965,
+ "end": 966,
"loc": {
"start": {
- "line": 56,
- "column": 20
+ "line": 40,
+ "column": 41
},
"end": {
- "line": 56,
- "column": 21
+ "line": 40,
+ "column": 42
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -7219,95 +5242,96 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 1540,
- "end": 1542,
+ "value": "this",
+ "start": 976,
+ "end": 980,
"loc": {
"start": {
- "line": 57,
- "column": 12
+ "line": 41,
+ "column": 8
},
"end": {
- "line": 57,
- "column": 14
+ "line": 41,
+ "column": 12
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1543,
- "end": 1544,
+ "start": 980,
+ "end": 981,
"loc": {
"start": {
- "line": 57,
- "column": 15
+ "line": 41,
+ "column": 12
},
"end": {
- "line": 57,
- "column": 16
+ "line": 41,
+ "column": 13
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "typeof",
- "start": 1544,
- "end": 1550,
+ "value": "parent",
+ "start": 981,
+ "end": 987,
"loc": {
"start": {
- "line": 57,
- "column": 16
+ "line": 41,
+ "column": 13
},
"end": {
- "line": 57,
- "column": 22
+ "line": 41,
+ "column": 19
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1550,
- "end": 1551,
+ "value": "=",
+ "start": 988,
+ "end": 989,
"loc": {
"start": {
- "line": 57,
- "column": 22
+ "line": 41,
+ "column": 20
},
"end": {
- "line": 57,
- "column": 23
+ "line": 41,
+ "column": 21
}
}
},
@@ -7323,77 +5347,79 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 1551,
- "end": 1557,
+ "value": "pParentIcon",
+ "start": 990,
+ "end": 1001,
"loc": {
"start": {
- "line": 57,
- "column": 23
+ "line": 41,
+ "column": 22
},
"end": {
- "line": 57,
- "column": 29
+ "line": 41,
+ "column": 33
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1557,
- "end": 1558,
+ "start": 1001,
+ "end": 1002,
"loc": {
"start": {
- "line": 57,
- "column": 29
+ "line": 41,
+ "column": 33
},
"end": {
- "line": 57,
- "column": 30
+ "line": 41,
+ "column": 34
}
}
},
{
"type": {
- "label": "==/!=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
+ "binop": null,
"updateContext": null
},
- "value": "===",
- "start": 1559,
- "end": 1562,
+ "value": "this",
+ "start": 1012,
+ "end": 1016,
"loc": {
"start": {
- "line": 57,
- "column": 31
+ "line": 42,
+ "column": 8
},
"end": {
- "line": 57,
- "column": 34
+ "line": 42,
+ "column": 12
}
}
},
{
"type": {
- "label": "string",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -7402,25 +5428,24 @@
"binop": null,
"updateContext": null
},
- "value": "number",
- "start": 1563,
- "end": 1571,
+ "start": 1016,
+ "end": 1017,
"loc": {
"start": {
- "line": 57,
- "column": 35
+ "line": 42,
+ "column": 12
},
"end": {
- "line": 57,
- "column": 43
+ "line": 42,
+ "column": 13
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -7428,22 +5453,23 @@
"postfix": false,
"binop": null
},
- "start": 1571,
- "end": 1572,
+ "value": "parse",
+ "start": 1017,
+ "end": 1022,
"loc": {
"start": {
- "line": 57,
- "column": 43
+ "line": 42,
+ "column": 13
},
"end": {
- "line": 57,
- "column": 44
+ "line": 42,
+ "column": 18
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -7453,23 +5479,22 @@
"postfix": false,
"binop": null
},
- "start": 1573,
- "end": 1574,
+ "start": 1022,
+ "end": 1023,
"loc": {
"start": {
- "line": 57,
- "column": 45
+ "line": 42,
+ "column": 18
},
"end": {
- "line": 57,
- "column": 46
+ "line": 42,
+ "column": 19
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -7477,26 +5502,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 1592,
- "end": 1596,
+ "value": "pFrameData",
+ "start": 1023,
+ "end": 1033,
"loc": {
"start": {
- "line": 58,
- "column": 16
+ "line": 42,
+ "column": 19
},
"end": {
- "line": 58,
- "column": 20
+ "line": 42,
+ "column": 29
}
}
},
{
"type": {
- "label": ".",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -7504,72 +5528,85 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1596,
- "end": 1597,
+ "start": 1033,
+ "end": 1034,
"loc": {
"start": {
- "line": 58,
- "column": 20
+ "line": 42,
+ "column": 29
},
"end": {
- "line": 58,
- "column": 21
+ "line": 42,
+ "column": 30
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "delay",
- "start": 1597,
- "end": 1602,
+ "start": 1034,
+ "end": 1035,
"loc": {
"start": {
- "line": 58,
- "column": 21
+ "line": 42,
+ "column": 30
},
"end": {
- "line": 58,
- "column": 26
+ "line": 42,
+ "column": 31
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": "}",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 1603,
- "end": 1604,
+ "start": 1041,
+ "end": 1042,
"loc": {
"start": {
- "line": 58,
- "column": 27
+ "line": 43,
+ "column": 4
},
"end": {
- "line": 58,
- "column": 28
+ "line": 43,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n ",
+ "start": 1048,
+ "end": 1229,
+ "loc": {
+ "start": {
+ "line": 44,
+ "column": 4
+ },
+ "end": {
+ "line": 48,
+ "column": 7
}
}
},
@@ -7585,51 +5622,50 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 1605,
- "end": 1611,
+ "value": "parse",
+ "start": 1235,
+ "end": 1240,
"loc": {
"start": {
- "line": 58,
- "column": 29
+ "line": 49,
+ "column": 4
},
"end": {
- "line": 58,
- "column": 35
+ "line": 49,
+ "column": 9
}
}
},
{
"type": {
- "label": ";",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1611,
- "end": 1612,
+ "start": 1240,
+ "end": 1241,
"loc": {
"start": {
- "line": 58,
- "column": 35
+ "line": 49,
+ "column": 9
},
"end": {
- "line": 58,
- "column": 36
+ "line": 49,
+ "column": 10
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -7637,44 +5673,42 @@
"postfix": false,
"binop": null
},
- "start": 1626,
- "end": 1627,
+ "value": "pFrameData",
+ "start": 1241,
+ "end": 1251,
"loc": {
"start": {
- "line": 59,
- "column": 12
+ "line": 49,
+ "column": 10
},
"end": {
- "line": 59,
- "column": 13
+ "line": 49,
+ "column": 20
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "else",
- "start": 1628,
- "end": 1632,
+ "start": 1251,
+ "end": 1252,
"loc": {
"start": {
- "line": 59,
- "column": 14
+ "line": 49,
+ "column": 20
},
"end": {
- "line": 59,
- "column": 18
+ "line": 49,
+ "column": 21
}
}
},
@@ -7690,48 +5724,39 @@
"postfix": false,
"binop": null
},
- "start": 1633,
- "end": 1634,
+ "start": 1253,
+ "end": 1254,
"loc": {
"start": {
- "line": 59,
- "column": 19
+ "line": 49,
+ "column": 22
},
"end": {
- "line": 59,
- "column": 20
+ "line": 49,
+ "column": 23
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "VYI",
- "start": 1652,
- "end": 1655,
+ "type": "CommentLine",
+ "value": " Loop through frame data and build frame.",
+ "start": 1264,
+ "end": 1307,
"loc": {
"start": {
- "line": 60,
- "column": 16
+ "line": 50,
+ "column": 8
},
"end": {
- "line": 60,
- "column": 19
+ "line": 50,
+ "column": 51
}
}
},
{
"type": {
- "label": ".",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -7742,16 +5767,17 @@
"binop": null,
"updateContext": null
},
- "start": 1655,
- "end": 1656,
+ "value": "const",
+ "start": 1317,
+ "end": 1322,
"loc": {
"start": {
- "line": 60,
- "column": 19
+ "line": 51,
+ "column": 8
},
"end": {
- "line": 60,
- "column": 20
+ "line": 51,
+ "column": 13
}
}
},
@@ -7767,43 +5793,44 @@
"postfix": false,
"binop": null
},
- "value": "logger",
- "start": 1656,
- "end": 1662,
+ "value": "dataURL",
+ "start": 1323,
+ "end": 1330,
"loc": {
"start": {
- "line": 60,
- "column": 20
+ "line": 51,
+ "column": 14
},
"end": {
- "line": 60,
- "column": 26
+ "line": 51,
+ "column": 21
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 1662,
- "end": 1663,
+ "value": "=",
+ "start": 1331,
+ "end": 1332,
"loc": {
"start": {
- "line": 60,
- "column": 26
+ "line": 51,
+ "column": 22
},
"end": {
- "line": 60,
- "column": 27
+ "line": 51,
+ "column": 23
}
}
},
@@ -7819,23 +5846,23 @@
"postfix": false,
"binop": null
},
- "value": "prefix",
- "start": 1663,
- "end": 1669,
+ "value": "pFrameData",
+ "start": 1333,
+ "end": 1343,
"loc": {
"start": {
- "line": 60,
- "column": 27
+ "line": 51,
+ "column": 24
},
"end": {
- "line": 60,
- "column": 33
+ "line": 51,
+ "column": 34
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -7843,24 +5870,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1669,
- "end": 1670,
+ "start": 1343,
+ "end": 1344,
"loc": {
"start": {
- "line": 60,
- "column": 33
+ "line": 51,
+ "column": 34
},
"end": {
- "line": 60,
- "column": 34
+ "line": 51,
+ "column": 35
}
}
},
{
"type": {
- "label": "string",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -7871,23 +5899,23 @@
"binop": null,
"updateContext": null
},
- "value": "VYI-module",
- "start": 1670,
- "end": 1682,
+ "value": 0,
+ "start": 1344,
+ "end": 1345,
"loc": {
"start": {
- "line": 60,
- "column": 34
+ "line": 51,
+ "column": 35
},
"end": {
- "line": 60,
- "column": 46
+ "line": 51,
+ "column": 36
}
}
},
{
"type": {
- "label": ")",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -7895,25 +5923,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1682,
- "end": 1683,
+ "start": 1345,
+ "end": 1346,
"loc": {
"start": {
- "line": 60,
- "column": 46
+ "line": 51,
+ "column": 36
},
"end": {
- "line": 60,
- "column": 47
+ "line": 51,
+ "column": 37
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -7923,49 +5952,51 @@
"binop": null,
"updateContext": null
},
- "start": 1683,
- "end": 1684,
+ "start": 1346,
+ "end": 1347,
"loc": {
"start": {
- "line": 60,
- "column": 47
+ "line": 51,
+ "column": 37
},
"end": {
- "line": 60,
- "column": 48
+ "line": 51,
+ "column": 38
}
}
},
{
"type": {
- "label": "name",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "error",
- "start": 1684,
- "end": 1689,
+ "value": "const",
+ "start": 1357,
+ "end": 1362,
"loc": {
"start": {
- "line": 60,
- "column": 48
+ "line": 52,
+ "column": 8
},
"end": {
- "line": 60,
- "column": 53
+ "line": 52,
+ "column": 13
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -7974,51 +6005,52 @@
"postfix": false,
"binop": null
},
- "start": 1689,
- "end": 1690,
+ "value": "frameDelay",
+ "start": 1363,
+ "end": 1373,
"loc": {
"start": {
- "line": 60,
- "column": 53
+ "line": 52,
+ "column": 14
},
"end": {
- "line": 60,
- "column": 54
+ "line": 52,
+ "column": 24
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "Invalid delay type!",
- "start": 1690,
- "end": 1711,
+ "value": "=",
+ "start": 1374,
+ "end": 1375,
"loc": {
"start": {
- "line": 60,
- "column": 54
+ "line": 52,
+ "column": 25
},
"end": {
- "line": 60,
- "column": 75
+ "line": 52,
+ "column": 26
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -8026,24 +6058,25 @@
"postfix": false,
"binop": null
},
- "start": 1711,
- "end": 1712,
+ "value": "pFrameData",
+ "start": 1376,
+ "end": 1386,
"loc": {
"start": {
- "line": 60,
- "column": 75
+ "line": 52,
+ "column": 27
},
"end": {
- "line": 60,
- "column": 76
+ "line": 52,
+ "column": 37
}
}
},
{
"type": {
- "label": ";",
+ "label": "[",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -8052,47 +6085,49 @@
"binop": null,
"updateContext": null
},
- "start": 1712,
- "end": 1713,
+ "start": 1386,
+ "end": 1387,
"loc": {
"start": {
- "line": 60,
- "column": 76
+ "line": 52,
+ "column": 37
},
"end": {
- "line": 60,
- "column": 77
+ "line": 52,
+ "column": 38
}
}
},
{
"type": {
- "label": "}",
+ "label": "num",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1727,
- "end": 1728,
+ "value": 1,
+ "start": 1387,
+ "end": 1388,
"loc": {
"start": {
- "line": 61,
- "column": 12
+ "line": 52,
+ "column": 38
},
"end": {
- "line": 61,
- "column": 13
+ "line": 52,
+ "column": 39
}
}
},
{
"type": {
- "label": "}",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -8100,25 +6135,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1738,
- "end": 1739,
+ "start": 1388,
+ "end": 1389,
"loc": {
"start": {
- "line": 62,
- "column": 8
+ "line": 52,
+ "column": 39
},
"end": {
- "line": 62,
- "column": 9
+ "line": 52,
+ "column": 40
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -8129,17 +6164,32 @@
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 1749,
- "end": 1755,
+ "start": 1389,
+ "end": 1390,
"loc": {
"start": {
- "line": 63,
+ "line": 52,
+ "column": 40
+ },
+ "end": {
+ "line": 52,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set the data url",
+ "start": 1400,
+ "end": 1419,
+ "loc": {
+ "start": {
+ "line": 53,
"column": 8
},
"end": {
- "line": 63,
- "column": 14
+ "line": 53,
+ "column": 27
}
}
},
@@ -8158,23 +6208,23 @@
"updateContext": null
},
"value": "this",
- "start": 1756,
- "end": 1760,
+ "start": 1429,
+ "end": 1433,
"loc": {
"start": {
- "line": 63,
- "column": 15
+ "line": 54,
+ "column": 8
},
"end": {
- "line": 63,
- "column": 19
+ "line": 54,
+ "column": 12
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -8184,24 +6234,24 @@
"binop": null,
"updateContext": null
},
- "start": 1760,
- "end": 1761,
+ "start": 1433,
+ "end": 1434,
"loc": {
"start": {
- "line": 63,
- "column": 19
+ "line": 54,
+ "column": 12
},
"end": {
- "line": 63,
- "column": 20
+ "line": 54,
+ "column": 13
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -8209,32 +6259,42 @@
"postfix": false,
"binop": null
},
- "start": 1767,
- "end": 1768,
+ "value": "setDataURL",
+ "start": 1434,
+ "end": 1444,
"loc": {
"start": {
- "line": 64,
- "column": 4
+ "line": 54,
+ "column": 13
},
"end": {
- "line": 64,
- "column": 5
+ "line": 54,
+ "column": 23
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n ",
- "start": 1774,
- "end": 1875,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 1444,
+ "end": 1445,
"loc": {
"start": {
- "line": 65,
- "column": 4
+ "line": 54,
+ "column": 23
},
"end": {
- "line": 68,
- "column": 7
+ "line": 54,
+ "column": 24
}
}
},
@@ -8250,25 +6310,25 @@
"postfix": false,
"binop": null
},
- "value": "getDelay",
- "start": 1881,
- "end": 1889,
+ "value": "dataURL",
+ "start": 1445,
+ "end": 1452,
"loc": {
"start": {
- "line": 69,
- "column": 4
+ "line": 54,
+ "column": 24
},
"end": {
- "line": 69,
- "column": 12
+ "line": 54,
+ "column": 31
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -8276,74 +6336,93 @@
"postfix": false,
"binop": null
},
- "start": 1889,
- "end": 1890,
+ "start": 1452,
+ "end": 1453,
"loc": {
"start": {
- "line": 69,
- "column": 12
+ "line": 54,
+ "column": 31
},
"end": {
- "line": 69,
- "column": 13
+ "line": 54,
+ "column": 32
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1890,
- "end": 1891,
+ "start": 1453,
+ "end": 1454,
"loc": {
"start": {
- "line": 69,
- "column": 13
+ "line": 54,
+ "column": 32
},
"end": {
- "line": 69,
- "column": 14
+ "line": 54,
+ "column": 33
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set the frame delay",
+ "start": 1464,
+ "end": 1486,
+ "loc": {
+ "start": {
+ "line": 55,
+ "column": 8
+ },
+ "end": {
+ "line": 55,
+ "column": 30
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1892,
- "end": 1893,
+ "value": "this",
+ "start": 1496,
+ "end": 1500,
"loc": {
"start": {
- "line": 69,
- "column": 15
+ "line": 56,
+ "column": 8
},
"end": {
- "line": 69,
- "column": 16
+ "line": 56,
+ "column": 12
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -8353,24 +6432,22 @@
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 1903,
- "end": 1909,
+ "start": 1500,
+ "end": 1501,
"loc": {
"start": {
- "line": 70,
- "column": 8
+ "line": 56,
+ "column": 12
},
"end": {
- "line": 70,
- "column": 14
+ "line": 56,
+ "column": 13
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -8378,54 +6455,78 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
+ },
+ "value": "setDelay",
+ "start": 1501,
+ "end": 1509,
+ "loc": {
+ "start": {
+ "line": 56,
+ "column": 13
+ },
+ "end": {
+ "line": 56,
+ "column": 21
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
},
- "value": "this",
- "start": 1910,
- "end": 1914,
+ "start": 1509,
+ "end": 1510,
"loc": {
"start": {
- "line": 70,
- "column": 15
+ "line": 56,
+ "column": 21
},
"end": {
- "line": 70,
- "column": 19
+ "line": 56,
+ "column": 22
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1914,
- "end": 1915,
+ "value": "frameDelay",
+ "start": 1510,
+ "end": 1520,
"loc": {
"start": {
- "line": 70,
- "column": 19
+ "line": 56,
+ "column": 22
},
"end": {
- "line": 70,
- "column": 20
+ "line": 56,
+ "column": 32
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -8433,17 +6534,16 @@
"postfix": false,
"binop": null
},
- "value": "delay",
- "start": 1915,
- "end": 1920,
+ "start": 1520,
+ "end": 1521,
"loc": {
"start": {
- "line": 70,
- "column": 20
+ "line": 56,
+ "column": 32
},
"end": {
- "line": 70,
- "column": 25
+ "line": 56,
+ "column": 33
}
}
},
@@ -8460,16 +6560,16 @@
"binop": null,
"updateContext": null
},
- "start": 1920,
- "end": 1921,
+ "start": 1521,
+ "end": 1522,
"loc": {
"start": {
- "line": 70,
- "column": 25
+ "line": 56,
+ "column": 33
},
"end": {
- "line": 70,
- "column": 26
+ "line": 56,
+ "column": 34
}
}
},
@@ -8485,31 +6585,31 @@
"postfix": false,
"binop": null
},
- "start": 1927,
- "end": 1928,
+ "start": 1528,
+ "end": 1529,
"loc": {
"start": {
- "line": 71,
+ "line": 57,
"column": 4
},
"end": {
- "line": 71,
+ "line": 57,
"column": 5
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 1934,
- "end": 2099,
+ "value": "*\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n ",
+ "start": 1535,
+ "end": 1707,
"loc": {
"start": {
- "line": 72,
+ "line": 58,
"column": 4
},
"end": {
- "line": 76,
+ "line": 62,
"column": 7
}
}
@@ -8526,17 +6626,17 @@
"postfix": false,
"binop": null
},
- "value": "setDataURL",
- "start": 2105,
- "end": 2115,
+ "value": "setDelay",
+ "start": 1713,
+ "end": 1721,
"loc": {
"start": {
- "line": 77,
+ "line": 63,
"column": 4
},
"end": {
- "line": 77,
- "column": 14
+ "line": 63,
+ "column": 12
}
}
},
@@ -8552,16 +6652,16 @@
"postfix": false,
"binop": null
},
- "start": 2115,
- "end": 2116,
+ "start": 1721,
+ "end": 1722,
"loc": {
"start": {
- "line": 77,
- "column": 14
+ "line": 63,
+ "column": 12
},
"end": {
- "line": 77,
- "column": 15
+ "line": 63,
+ "column": 13
}
}
},
@@ -8577,17 +6677,17 @@
"postfix": false,
"binop": null
},
- "value": "pDataURL",
- "start": 2116,
- "end": 2124,
+ "value": "pDelay",
+ "start": 1722,
+ "end": 1728,
"loc": {
"start": {
- "line": 77,
- "column": 15
+ "line": 63,
+ "column": 13
},
"end": {
- "line": 77,
- "column": 23
+ "line": 63,
+ "column": 19
}
}
},
@@ -8603,16 +6703,16 @@
"postfix": false,
"binop": null
},
- "start": 2124,
- "end": 2125,
+ "start": 1728,
+ "end": 1729,
"loc": {
"start": {
- "line": 77,
- "column": 23
+ "line": 63,
+ "column": 19
},
"end": {
- "line": 77,
- "column": 24
+ "line": 63,
+ "column": 20
}
}
},
@@ -8628,16 +6728,16 @@
"postfix": false,
"binop": null
},
- "start": 2126,
- "end": 2127,
+ "start": 1730,
+ "end": 1731,
"loc": {
"start": {
- "line": 77,
- "column": 25
+ "line": 63,
+ "column": 21
},
"end": {
- "line": 77,
- "column": 26
+ "line": 63,
+ "column": 22
}
}
},
@@ -8656,15 +6756,15 @@
"updateContext": null
},
"value": "if",
- "start": 2137,
- "end": 2139,
+ "start": 1741,
+ "end": 1743,
"loc": {
"start": {
- "line": 78,
+ "line": 64,
"column": 8
},
"end": {
- "line": 78,
+ "line": 64,
"column": 10
}
}
@@ -8681,15 +6781,15 @@
"postfix": false,
"binop": null
},
- "start": 2140,
- "end": 2141,
+ "start": 1744,
+ "end": 1745,
"loc": {
"start": {
- "line": 78,
+ "line": 64,
"column": 11
},
"end": {
- "line": 78,
+ "line": 64,
"column": 12
}
}
@@ -8706,17 +6806,17 @@
"postfix": false,
"binop": null
},
- "value": "pDataURL",
- "start": 2141,
- "end": 2149,
+ "value": "pDelay",
+ "start": 1745,
+ "end": 1751,
"loc": {
"start": {
- "line": 78,
+ "line": 64,
"column": 12
},
"end": {
- "line": 78,
- "column": 20
+ "line": 64,
+ "column": 18
}
}
},
@@ -8732,16 +6832,16 @@
"postfix": false,
"binop": null
},
- "start": 2149,
- "end": 2150,
+ "start": 1751,
+ "end": 1752,
"loc": {
"start": {
- "line": 78,
- "column": 20
+ "line": 64,
+ "column": 18
},
"end": {
- "line": 78,
- "column": 21
+ "line": 64,
+ "column": 19
}
}
},
@@ -8757,16 +6857,16 @@
"postfix": false,
"binop": null
},
- "start": 2151,
- "end": 2152,
+ "start": 1753,
+ "end": 1754,
"loc": {
"start": {
- "line": 78,
- "column": 22
+ "line": 64,
+ "column": 20
},
"end": {
- "line": 78,
- "column": 23
+ "line": 64,
+ "column": 21
}
}
},
@@ -8785,15 +6885,15 @@
"updateContext": null
},
"value": "if",
- "start": 2166,
- "end": 2168,
+ "start": 1768,
+ "end": 1770,
"loc": {
"start": {
- "line": 79,
+ "line": 65,
"column": 12
},
"end": {
- "line": 79,
+ "line": 65,
"column": 14
}
}
@@ -8810,15 +6910,15 @@
"postfix": false,
"binop": null
},
- "start": 2169,
- "end": 2170,
+ "start": 1771,
+ "end": 1772,
"loc": {
"start": {
- "line": 79,
+ "line": 65,
"column": 15
},
"end": {
- "line": 79,
+ "line": 65,
"column": 16
}
}
@@ -8838,15 +6938,15 @@
"updateContext": null
},
"value": "typeof",
- "start": 2170,
- "end": 2176,
+ "start": 1772,
+ "end": 1778,
"loc": {
"start": {
- "line": 79,
+ "line": 65,
"column": 16
},
"end": {
- "line": 79,
+ "line": 65,
"column": 22
}
}
@@ -8863,15 +6963,15 @@
"postfix": false,
"binop": null
},
- "start": 2176,
- "end": 2177,
+ "start": 1778,
+ "end": 1779,
"loc": {
"start": {
- "line": 79,
+ "line": 65,
"column": 22
},
"end": {
- "line": 79,
+ "line": 65,
"column": 23
}
}
@@ -8888,17 +6988,17 @@
"postfix": false,
"binop": null
},
- "value": "pDataURL",
- "start": 2177,
- "end": 2185,
+ "value": "pDelay",
+ "start": 1779,
+ "end": 1785,
"loc": {
"start": {
- "line": 79,
+ "line": 65,
"column": 23
},
"end": {
- "line": 79,
- "column": 31
+ "line": 65,
+ "column": 29
}
}
},
@@ -8914,16 +7014,16 @@
"postfix": false,
"binop": null
},
- "start": 2185,
- "end": 2186,
+ "start": 1785,
+ "end": 1786,
"loc": {
"start": {
- "line": 79,
- "column": 31
+ "line": 65,
+ "column": 29
},
"end": {
- "line": 79,
- "column": 32
+ "line": 65,
+ "column": 30
}
}
},
@@ -8941,16 +7041,16 @@
"updateContext": null
},
"value": "===",
- "start": 2187,
- "end": 2190,
+ "start": 1787,
+ "end": 1790,
"loc": {
"start": {
- "line": 79,
- "column": 33
+ "line": 65,
+ "column": 31
},
"end": {
- "line": 79,
- "column": 36
+ "line": 65,
+ "column": 34
}
}
},
@@ -8967,17 +7067,17 @@
"binop": null,
"updateContext": null
},
- "value": "string",
- "start": 2191,
- "end": 2199,
+ "value": "number",
+ "start": 1791,
+ "end": 1799,
"loc": {
"start": {
- "line": 79,
- "column": 37
+ "line": 65,
+ "column": 35
},
"end": {
- "line": 79,
- "column": 45
+ "line": 65,
+ "column": 43
}
}
},
@@ -8993,16 +7093,16 @@
"postfix": false,
"binop": null
},
- "start": 2199,
- "end": 2200,
+ "start": 1799,
+ "end": 1800,
"loc": {
"start": {
- "line": 79,
- "column": 45
+ "line": 65,
+ "column": 43
},
"end": {
- "line": 79,
- "column": 46
+ "line": 65,
+ "column": 44
}
}
},
@@ -9018,16 +7118,16 @@
"postfix": false,
"binop": null
},
- "start": 2201,
- "end": 2202,
+ "start": 1801,
+ "end": 1802,
"loc": {
"start": {
- "line": 79,
- "column": 47
+ "line": 65,
+ "column": 45
},
"end": {
- "line": 79,
- "column": 48
+ "line": 65,
+ "column": 46
}
}
},
@@ -9046,15 +7146,15 @@
"updateContext": null
},
"value": "this",
- "start": 2220,
- "end": 2224,
+ "start": 1820,
+ "end": 1824,
"loc": {
"start": {
- "line": 80,
+ "line": 66,
"column": 16
},
"end": {
- "line": 80,
+ "line": 66,
"column": 20
}
}
@@ -9072,15 +7172,15 @@
"binop": null,
"updateContext": null
},
- "start": 2224,
- "end": 2225,
+ "start": 1824,
+ "end": 1825,
"loc": {
"start": {
- "line": 80,
+ "line": 66,
"column": 20
},
"end": {
- "line": 80,
+ "line": 66,
"column": 21
}
}
@@ -9097,17 +7197,17 @@
"postfix": false,
"binop": null
},
- "value": "dataURL",
- "start": 2225,
- "end": 2232,
+ "value": "delay",
+ "start": 1825,
+ "end": 1830,
"loc": {
"start": {
- "line": 80,
+ "line": 66,
"column": 21
},
"end": {
- "line": 80,
- "column": 28
+ "line": 66,
+ "column": 26
}
}
},
@@ -9125,16 +7225,16 @@
"updateContext": null
},
"value": "=",
- "start": 2233,
- "end": 2234,
+ "start": 1831,
+ "end": 1832,
"loc": {
"start": {
- "line": 80,
- "column": 29
+ "line": 66,
+ "column": 27
},
"end": {
- "line": 80,
- "column": 30
+ "line": 66,
+ "column": 28
}
}
},
@@ -9150,17 +7250,17 @@
"postfix": false,
"binop": null
},
- "value": "pDataURL",
- "start": 2235,
- "end": 2243,
+ "value": "pDelay",
+ "start": 1833,
+ "end": 1839,
"loc": {
"start": {
- "line": 80,
- "column": 31
+ "line": 66,
+ "column": 29
},
"end": {
- "line": 80,
- "column": 39
+ "line": 66,
+ "column": 35
}
}
},
@@ -9177,16 +7277,16 @@
"binop": null,
"updateContext": null
},
- "start": 2243,
- "end": 2244,
+ "start": 1839,
+ "end": 1840,
"loc": {
"start": {
- "line": 80,
- "column": 39
+ "line": 66,
+ "column": 35
},
"end": {
- "line": 80,
- "column": 40
+ "line": 66,
+ "column": 36
}
}
},
@@ -9202,15 +7302,15 @@
"postfix": false,
"binop": null
},
- "start": 2258,
- "end": 2259,
+ "start": 1854,
+ "end": 1855,
"loc": {
"start": {
- "line": 81,
+ "line": 67,
"column": 12
},
"end": {
- "line": 81,
+ "line": 67,
"column": 13
}
}
@@ -9230,15 +7330,15 @@
"updateContext": null
},
"value": "else",
- "start": 2260,
- "end": 2264,
+ "start": 1856,
+ "end": 1860,
"loc": {
"start": {
- "line": 81,
+ "line": 67,
"column": 14
},
"end": {
- "line": 81,
+ "line": 67,
"column": 18
}
}
@@ -9255,15 +7355,15 @@
"postfix": false,
"binop": null
},
- "start": 2265,
- "end": 2266,
+ "start": 1861,
+ "end": 1862,
"loc": {
"start": {
- "line": 81,
+ "line": 67,
"column": 19
},
"end": {
- "line": 81,
+ "line": 67,
"column": 20
}
}
@@ -9281,15 +7381,15 @@
"binop": null
},
"value": "VYI",
- "start": 2284,
- "end": 2287,
+ "start": 1880,
+ "end": 1883,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 16
},
"end": {
- "line": 82,
+ "line": 68,
"column": 19
}
}
@@ -9307,15 +7407,15 @@
"binop": null,
"updateContext": null
},
- "start": 2287,
- "end": 2288,
+ "start": 1883,
+ "end": 1884,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 19
},
"end": {
- "line": 82,
+ "line": 68,
"column": 20
}
}
@@ -9333,15 +7433,15 @@
"binop": null
},
"value": "logger",
- "start": 2288,
- "end": 2294,
+ "start": 1884,
+ "end": 1890,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 20
},
"end": {
- "line": 82,
+ "line": 68,
"column": 26
}
}
@@ -9359,15 +7459,15 @@
"binop": null,
"updateContext": null
},
- "start": 2294,
- "end": 2295,
+ "start": 1890,
+ "end": 1891,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 26
},
"end": {
- "line": 82,
+ "line": 68,
"column": 27
}
}
@@ -9385,15 +7485,15 @@
"binop": null
},
"value": "prefix",
- "start": 2295,
- "end": 2301,
+ "start": 1891,
+ "end": 1897,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 27
},
"end": {
- "line": 82,
+ "line": 68,
"column": 33
}
}
@@ -9410,15 +7510,15 @@
"postfix": false,
"binop": null
},
- "start": 2301,
- "end": 2302,
+ "start": 1897,
+ "end": 1898,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 33
},
"end": {
- "line": 82,
+ "line": 68,
"column": 34
}
}
@@ -9437,15 +7537,15 @@
"updateContext": null
},
"value": "VYI-module",
- "start": 2302,
- "end": 2314,
+ "start": 1898,
+ "end": 1910,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 34
},
"end": {
- "line": 82,
+ "line": 68,
"column": 46
}
}
@@ -9462,15 +7562,15 @@
"postfix": false,
"binop": null
},
- "start": 2314,
- "end": 2315,
+ "start": 1910,
+ "end": 1911,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 46
},
"end": {
- "line": 82,
+ "line": 68,
"column": 47
}
}
@@ -9488,15 +7588,15 @@
"binop": null,
"updateContext": null
},
- "start": 2315,
- "end": 2316,
+ "start": 1911,
+ "end": 1912,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 47
},
"end": {
- "line": 82,
+ "line": 68,
"column": 48
}
}
@@ -9514,15 +7614,15 @@
"binop": null
},
"value": "error",
- "start": 2316,
- "end": 2321,
+ "start": 1912,
+ "end": 1917,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 48
},
"end": {
- "line": 82,
+ "line": 68,
"column": 53
}
}
@@ -9539,15 +7639,15 @@
"postfix": false,
"binop": null
},
- "start": 2321,
- "end": 2322,
+ "start": 1917,
+ "end": 1918,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 53
},
"end": {
- "line": 82,
+ "line": 68,
"column": 54
}
}
@@ -9565,17 +7665,17 @@
"binop": null,
"updateContext": null
},
- "value": "Invalid data url type!",
- "start": 2322,
- "end": 2346,
+ "value": "Invalid delay type!",
+ "start": 1918,
+ "end": 1939,
"loc": {
"start": {
- "line": 82,
+ "line": 68,
"column": 54
},
"end": {
- "line": 82,
- "column": 78
+ "line": 68,
+ "column": 75
}
}
},
@@ -9591,16 +7691,16 @@
"postfix": false,
"binop": null
},
- "start": 2346,
- "end": 2347,
+ "start": 1939,
+ "end": 1940,
"loc": {
"start": {
- "line": 82,
- "column": 78
+ "line": 68,
+ "column": 75
},
"end": {
- "line": 82,
- "column": 79
+ "line": 68,
+ "column": 76
}
}
},
@@ -9617,16 +7717,16 @@
"binop": null,
"updateContext": null
},
- "start": 2347,
- "end": 2348,
+ "start": 1940,
+ "end": 1941,
"loc": {
"start": {
- "line": 82,
- "column": 79
+ "line": 68,
+ "column": 76
},
"end": {
- "line": 82,
- "column": 80
+ "line": 68,
+ "column": 77
}
}
},
@@ -9642,15 +7742,15 @@
"postfix": false,
"binop": null
},
- "start": 2362,
- "end": 2363,
+ "start": 1955,
+ "end": 1956,
"loc": {
"start": {
- "line": 83,
+ "line": 69,
"column": 12
},
"end": {
- "line": 83,
+ "line": 69,
"column": 13
}
}
@@ -9667,15 +7767,15 @@
"postfix": false,
"binop": null
},
- "start": 2373,
- "end": 2374,
+ "start": 1966,
+ "end": 1967,
"loc": {
"start": {
- "line": 84,
+ "line": 70,
"column": 8
},
"end": {
- "line": 84,
+ "line": 70,
"column": 9
}
}
@@ -9695,15 +7795,15 @@
"updateContext": null
},
"value": "return",
- "start": 2384,
- "end": 2390,
+ "start": 1977,
+ "end": 1983,
"loc": {
"start": {
- "line": 85,
+ "line": 71,
"column": 8
},
"end": {
- "line": 85,
+ "line": 71,
"column": 14
}
}
@@ -9723,15 +7823,15 @@
"updateContext": null
},
"value": "this",
- "start": 2391,
- "end": 2395,
+ "start": 1984,
+ "end": 1988,
"loc": {
"start": {
- "line": 85,
+ "line": 71,
"column": 15
},
"end": {
- "line": 85,
+ "line": 71,
"column": 19
}
}
@@ -9749,15 +7849,15 @@
"binop": null,
"updateContext": null
},
- "start": 2395,
- "end": 2396,
+ "start": 1988,
+ "end": 1989,
"loc": {
"start": {
- "line": 85,
+ "line": 71,
"column": 19
},
"end": {
- "line": 85,
+ "line": 71,
"column": 20
}
}
@@ -9774,31 +7874,31 @@
"postfix": false,
"binop": null
},
- "start": 2402,
- "end": 2403,
+ "start": 1995,
+ "end": 1996,
"loc": {
"start": {
- "line": 86,
+ "line": 72,
"column": 4
},
"end": {
- "line": 86,
+ "line": 72,
"column": 5
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 2409,
- "end": 2522,
+ "value": "*\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n ",
+ "start": 2002,
+ "end": 2103,
"loc": {
"start": {
- "line": 87,
+ "line": 73,
"column": 4
},
"end": {
- "line": 90,
+ "line": 76,
"column": 7
}
}
@@ -9815,17 +7915,17 @@
"postfix": false,
"binop": null
},
- "value": "getDataURL",
- "start": 2528,
- "end": 2538,
+ "value": "getDelay",
+ "start": 2109,
+ "end": 2117,
"loc": {
"start": {
- "line": 91,
+ "line": 77,
"column": 4
},
"end": {
- "line": 91,
- "column": 14
+ "line": 77,
+ "column": 12
}
}
},
@@ -9841,16 +7941,16 @@
"postfix": false,
"binop": null
},
- "start": 2538,
- "end": 2539,
+ "start": 2117,
+ "end": 2118,
"loc": {
"start": {
- "line": 91,
- "column": 14
+ "line": 77,
+ "column": 12
},
"end": {
- "line": 91,
- "column": 15
+ "line": 77,
+ "column": 13
}
}
},
@@ -9866,16 +7966,16 @@
"postfix": false,
"binop": null
},
- "start": 2539,
- "end": 2540,
+ "start": 2118,
+ "end": 2119,
"loc": {
"start": {
- "line": 91,
- "column": 15
+ "line": 77,
+ "column": 13
},
"end": {
- "line": 91,
- "column": 16
+ "line": 77,
+ "column": 14
}
}
},
@@ -9891,16 +7991,16 @@
"postfix": false,
"binop": null
},
- "start": 2541,
- "end": 2542,
+ "start": 2120,
+ "end": 2121,
"loc": {
"start": {
- "line": 91,
- "column": 17
+ "line": 77,
+ "column": 15
},
"end": {
- "line": 91,
- "column": 18
+ "line": 77,
+ "column": 16
}
}
},
@@ -9919,15 +8019,15 @@
"updateContext": null
},
"value": "return",
- "start": 2552,
- "end": 2558,
+ "start": 2131,
+ "end": 2137,
"loc": {
"start": {
- "line": 92,
+ "line": 78,
"column": 8
},
"end": {
- "line": 92,
+ "line": 78,
"column": 14
}
}
@@ -9947,15 +8047,15 @@
"updateContext": null
},
"value": "this",
- "start": 2559,
- "end": 2563,
+ "start": 2138,
+ "end": 2142,
"loc": {
"start": {
- "line": 92,
+ "line": 78,
"column": 15
},
"end": {
- "line": 92,
+ "line": 78,
"column": 19
}
}
@@ -9973,15 +8073,15 @@
"binop": null,
"updateContext": null
},
- "start": 2563,
- "end": 2564,
+ "start": 2142,
+ "end": 2143,
"loc": {
"start": {
- "line": 92,
+ "line": 78,
"column": 19
},
"end": {
- "line": 92,
+ "line": 78,
"column": 20
}
}
@@ -9998,17 +8098,17 @@
"postfix": false,
"binop": null
},
- "value": "dataURL",
- "start": 2564,
- "end": 2571,
+ "value": "delay",
+ "start": 2143,
+ "end": 2148,
"loc": {
"start": {
- "line": 92,
+ "line": 78,
"column": 20
},
"end": {
- "line": 92,
- "column": 27
+ "line": 78,
+ "column": 25
}
}
},
@@ -10025,16 +8125,16 @@
"binop": null,
"updateContext": null
},
- "start": 2571,
- "end": 2572,
+ "start": 2148,
+ "end": 2149,
"loc": {
"start": {
- "line": 92,
- "column": 27
+ "line": 78,
+ "column": 25
},
"end": {
- "line": 92,
- "column": 28
+ "line": 78,
+ "column": 26
}
}
},
@@ -10050,31 +8150,31 @@
"postfix": false,
"binop": null
},
- "start": 2578,
- "end": 2579,
+ "start": 2155,
+ "end": 2156,
"loc": {
"start": {
- "line": 93,
+ "line": 79,
"column": 4
},
"end": {
- "line": 93,
+ "line": 79,
"column": 5
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Sets the index of the frame.\r\n * @private\r\n * @param {number} pIndex - The index to set the frame to.\r\n * @returns {self} This frame instance.\r\n ",
- "start": 2585,
- "end": 2760,
+ "value": "*\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n ",
+ "start": 2162,
+ "end": 2327,
"loc": {
"start": {
- "line": 94,
+ "line": 80,
"column": 4
},
"end": {
- "line": 99,
+ "line": 84,
"column": 7
}
}
@@ -10091,17 +8191,17 @@
"postfix": false,
"binop": null
},
- "value": "setIndex",
- "start": 2766,
- "end": 2774,
+ "value": "setDataURL",
+ "start": 2333,
+ "end": 2343,
"loc": {
"start": {
- "line": 100,
+ "line": 85,
"column": 4
},
"end": {
- "line": 100,
- "column": 12
+ "line": 85,
+ "column": 14
}
}
},
@@ -10117,16 +8217,16 @@
"postfix": false,
"binop": null
},
- "start": 2774,
- "end": 2775,
+ "start": 2343,
+ "end": 2344,
"loc": {
"start": {
- "line": 100,
- "column": 12
+ "line": 85,
+ "column": 14
},
"end": {
- "line": 100,
- "column": 13
+ "line": 85,
+ "column": 15
}
}
},
@@ -10142,17 +8242,17 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 2775,
- "end": 2781,
+ "value": "pDataURL",
+ "start": 2344,
+ "end": 2352,
"loc": {
"start": {
- "line": 100,
- "column": 13
+ "line": 85,
+ "column": 15
},
"end": {
- "line": 100,
- "column": 19
+ "line": 85,
+ "column": 23
}
}
},
@@ -10168,16 +8268,16 @@
"postfix": false,
"binop": null
},
- "start": 2781,
- "end": 2782,
+ "start": 2352,
+ "end": 2353,
"loc": {
"start": {
- "line": 100,
- "column": 19
+ "line": 85,
+ "column": 23
},
"end": {
- "line": 100,
- "column": 20
+ "line": 85,
+ "column": 24
}
}
},
@@ -10193,16 +8293,16 @@
"postfix": false,
"binop": null
},
- "start": 2783,
- "end": 2784,
+ "start": 2354,
+ "end": 2355,
"loc": {
"start": {
- "line": 100,
- "column": 21
+ "line": 85,
+ "column": 25
},
"end": {
- "line": 100,
- "column": 22
+ "line": 85,
+ "column": 26
}
}
},
@@ -10221,15 +8321,15 @@
"updateContext": null
},
"value": "if",
- "start": 2794,
- "end": 2796,
+ "start": 2365,
+ "end": 2367,
"loc": {
"start": {
- "line": 101,
+ "line": 86,
"column": 8
},
"end": {
- "line": 101,
+ "line": 86,
"column": 10
}
}
@@ -10246,15 +8346,15 @@
"postfix": false,
"binop": null
},
- "start": 2797,
- "end": 2798,
+ "start": 2368,
+ "end": 2369,
"loc": {
"start": {
- "line": 101,
+ "line": 86,
"column": 11
},
"end": {
- "line": 101,
+ "line": 86,
"column": 12
}
}
@@ -10271,17 +8371,17 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 2798,
- "end": 2804,
+ "value": "pDataURL",
+ "start": 2369,
+ "end": 2377,
"loc": {
"start": {
- "line": 101,
+ "line": 86,
"column": 12
},
"end": {
- "line": 101,
- "column": 18
+ "line": 86,
+ "column": 20
}
}
},
@@ -10297,16 +8397,16 @@
"postfix": false,
"binop": null
},
- "start": 2804,
- "end": 2805,
+ "start": 2377,
+ "end": 2378,
"loc": {
"start": {
- "line": 101,
- "column": 18
+ "line": 86,
+ "column": 20
},
"end": {
- "line": 101,
- "column": 19
+ "line": 86,
+ "column": 21
}
}
},
@@ -10322,16 +8422,16 @@
"postfix": false,
"binop": null
},
- "start": 2806,
- "end": 2807,
+ "start": 2379,
+ "end": 2380,
"loc": {
"start": {
- "line": 101,
- "column": 20
+ "line": 86,
+ "column": 22
},
"end": {
- "line": 101,
- "column": 21
+ "line": 86,
+ "column": 23
}
}
},
@@ -10350,15 +8450,15 @@
"updateContext": null
},
"value": "if",
- "start": 2821,
- "end": 2823,
+ "start": 2394,
+ "end": 2396,
"loc": {
"start": {
- "line": 102,
+ "line": 87,
"column": 12
},
"end": {
- "line": 102,
+ "line": 87,
"column": 14
}
}
@@ -10375,15 +8475,15 @@
"postfix": false,
"binop": null
},
- "start": 2824,
- "end": 2825,
+ "start": 2397,
+ "end": 2398,
"loc": {
"start": {
- "line": 102,
+ "line": 87,
"column": 15
},
"end": {
- "line": 102,
+ "line": 87,
"column": 16
}
}
@@ -10403,15 +8503,15 @@
"updateContext": null
},
"value": "typeof",
- "start": 2825,
- "end": 2831,
+ "start": 2398,
+ "end": 2404,
"loc": {
"start": {
- "line": 102,
+ "line": 87,
"column": 16
},
"end": {
- "line": 102,
+ "line": 87,
"column": 22
}
}
@@ -10428,15 +8528,15 @@
"postfix": false,
"binop": null
},
- "start": 2831,
- "end": 2832,
+ "start": 2404,
+ "end": 2405,
"loc": {
"start": {
- "line": 102,
+ "line": 87,
"column": 22
},
"end": {
- "line": 102,
+ "line": 87,
"column": 23
}
}
@@ -10453,17 +8553,17 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 2832,
- "end": 2838,
+ "value": "pDataURL",
+ "start": 2405,
+ "end": 2413,
"loc": {
"start": {
- "line": 102,
+ "line": 87,
"column": 23
},
"end": {
- "line": 102,
- "column": 29
+ "line": 87,
+ "column": 31
}
}
},
@@ -10479,16 +8579,16 @@
"postfix": false,
"binop": null
},
- "start": 2838,
- "end": 2839,
+ "start": 2413,
+ "end": 2414,
"loc": {
"start": {
- "line": 102,
- "column": 29
+ "line": 87,
+ "column": 31
},
"end": {
- "line": 102,
- "column": 30
+ "line": 87,
+ "column": 32
}
}
},
@@ -10506,16 +8606,16 @@
"updateContext": null
},
"value": "===",
- "start": 2840,
- "end": 2843,
+ "start": 2415,
+ "end": 2418,
"loc": {
"start": {
- "line": 102,
- "column": 31
+ "line": 87,
+ "column": 33
},
"end": {
- "line": 102,
- "column": 34
+ "line": 87,
+ "column": 36
}
}
},
@@ -10532,17 +8632,17 @@
"binop": null,
"updateContext": null
},
- "value": "number",
- "start": 2844,
- "end": 2852,
+ "value": "string",
+ "start": 2419,
+ "end": 2427,
"loc": {
"start": {
- "line": 102,
- "column": 35
+ "line": 87,
+ "column": 37
},
"end": {
- "line": 102,
- "column": 43
+ "line": 87,
+ "column": 45
}
}
},
@@ -10558,16 +8658,16 @@
"postfix": false,
"binop": null
},
- "start": 2852,
- "end": 2853,
+ "start": 2427,
+ "end": 2428,
"loc": {
"start": {
- "line": 102,
- "column": 43
+ "line": 87,
+ "column": 45
},
"end": {
- "line": 102,
- "column": 44
+ "line": 87,
+ "column": 46
}
}
},
@@ -10583,16 +8683,16 @@
"postfix": false,
"binop": null
},
- "start": 2854,
- "end": 2855,
+ "start": 2429,
+ "end": 2430,
"loc": {
"start": {
- "line": 102,
- "column": 45
+ "line": 87,
+ "column": 47
},
"end": {
- "line": 102,
- "column": 46
+ "line": 87,
+ "column": 48
}
}
},
@@ -10611,15 +8711,15 @@
"updateContext": null
},
"value": "this",
- "start": 2873,
- "end": 2877,
+ "start": 2448,
+ "end": 2452,
"loc": {
"start": {
- "line": 103,
+ "line": 88,
"column": 16
},
"end": {
- "line": 103,
+ "line": 88,
"column": 20
}
}
@@ -10637,15 +8737,15 @@
"binop": null,
"updateContext": null
},
- "start": 2877,
- "end": 2878,
+ "start": 2452,
+ "end": 2453,
"loc": {
"start": {
- "line": 103,
+ "line": 88,
"column": 20
},
"end": {
- "line": 103,
+ "line": 88,
"column": 21
}
}
@@ -10662,17 +8762,17 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 2878,
- "end": 2883,
+ "value": "dataURL",
+ "start": 2453,
+ "end": 2460,
"loc": {
"start": {
- "line": 103,
+ "line": 88,
"column": 21
},
"end": {
- "line": 103,
- "column": 26
+ "line": 88,
+ "column": 28
}
}
},
@@ -10690,16 +8790,16 @@
"updateContext": null
},
"value": "=",
- "start": 2884,
- "end": 2885,
+ "start": 2461,
+ "end": 2462,
"loc": {
"start": {
- "line": 103,
- "column": 27
+ "line": 88,
+ "column": 29
},
"end": {
- "line": 103,
- "column": 28
+ "line": 88,
+ "column": 30
}
}
},
@@ -10715,17 +8815,17 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 2886,
- "end": 2892,
+ "value": "pDataURL",
+ "start": 2463,
+ "end": 2471,
"loc": {
"start": {
- "line": 103,
- "column": 29
+ "line": 88,
+ "column": 31
},
"end": {
- "line": 103,
- "column": 35
+ "line": 88,
+ "column": 39
}
}
},
@@ -10742,16 +8842,16 @@
"binop": null,
"updateContext": null
},
- "start": 2892,
- "end": 2893,
+ "start": 2471,
+ "end": 2472,
"loc": {
"start": {
- "line": 103,
- "column": 35
+ "line": 88,
+ "column": 39
},
"end": {
- "line": 103,
- "column": 36
+ "line": 88,
+ "column": 40
}
}
},
@@ -10767,15 +8867,15 @@
"postfix": false,
"binop": null
},
- "start": 2907,
- "end": 2908,
+ "start": 2486,
+ "end": 2487,
"loc": {
"start": {
- "line": 104,
+ "line": 89,
"column": 12
},
"end": {
- "line": 104,
+ "line": 89,
"column": 13
}
}
@@ -10795,15 +8895,15 @@
"updateContext": null
},
"value": "else",
- "start": 2909,
- "end": 2913,
+ "start": 2488,
+ "end": 2492,
"loc": {
"start": {
- "line": 104,
+ "line": 89,
"column": 14
},
"end": {
- "line": 104,
+ "line": 89,
"column": 18
}
}
@@ -10820,15 +8920,15 @@
"postfix": false,
"binop": null
},
- "start": 2914,
- "end": 2915,
+ "start": 2493,
+ "end": 2494,
"loc": {
"start": {
- "line": 104,
+ "line": 89,
"column": 19
},
"end": {
- "line": 104,
+ "line": 89,
"column": 20
}
}
@@ -10846,15 +8946,15 @@
"binop": null
},
"value": "VYI",
- "start": 2933,
- "end": 2936,
+ "start": 2512,
+ "end": 2515,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 16
},
"end": {
- "line": 105,
+ "line": 90,
"column": 19
}
}
@@ -10872,15 +8972,15 @@
"binop": null,
"updateContext": null
},
- "start": 2936,
- "end": 2937,
+ "start": 2515,
+ "end": 2516,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 19
},
"end": {
- "line": 105,
+ "line": 90,
"column": 20
}
}
@@ -10898,15 +8998,15 @@
"binop": null
},
"value": "logger",
- "start": 2937,
- "end": 2943,
+ "start": 2516,
+ "end": 2522,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 20
},
"end": {
- "line": 105,
+ "line": 90,
"column": 26
}
}
@@ -10924,15 +9024,15 @@
"binop": null,
"updateContext": null
},
- "start": 2943,
- "end": 2944,
+ "start": 2522,
+ "end": 2523,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 26
},
"end": {
- "line": 105,
+ "line": 90,
"column": 27
}
}
@@ -10950,15 +9050,15 @@
"binop": null
},
"value": "prefix",
- "start": 2944,
- "end": 2950,
+ "start": 2523,
+ "end": 2529,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 27
},
"end": {
- "line": 105,
+ "line": 90,
"column": 33
}
}
@@ -10975,15 +9075,15 @@
"postfix": false,
"binop": null
},
- "start": 2950,
- "end": 2951,
+ "start": 2529,
+ "end": 2530,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 33
},
"end": {
- "line": 105,
+ "line": 90,
"column": 34
}
}
@@ -11002,15 +9102,15 @@
"updateContext": null
},
"value": "VYI-module",
- "start": 2951,
- "end": 2963,
+ "start": 2530,
+ "end": 2542,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 34
},
"end": {
- "line": 105,
+ "line": 90,
"column": 46
}
}
@@ -11027,15 +9127,15 @@
"postfix": false,
"binop": null
},
- "start": 2963,
- "end": 2964,
+ "start": 2542,
+ "end": 2543,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 46
},
"end": {
- "line": 105,
+ "line": 90,
"column": 47
}
}
@@ -11053,15 +9153,15 @@
"binop": null,
"updateContext": null
},
- "start": 2964,
- "end": 2965,
+ "start": 2543,
+ "end": 2544,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 47
},
"end": {
- "line": 105,
+ "line": 90,
"column": 48
}
}
@@ -11079,15 +9179,15 @@
"binop": null
},
"value": "error",
- "start": 2965,
- "end": 2970,
+ "start": 2544,
+ "end": 2549,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 48
},
"end": {
- "line": 105,
+ "line": 90,
"column": 53
}
}
@@ -11104,15 +9204,15 @@
"postfix": false,
"binop": null
},
- "start": 2970,
- "end": 2971,
+ "start": 2549,
+ "end": 2550,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 53
},
"end": {
- "line": 105,
+ "line": 90,
"column": 54
}
}
@@ -11130,17 +9230,17 @@
"binop": null,
"updateContext": null
},
- "value": "Invalid index type!",
- "start": 2971,
- "end": 2992,
+ "value": "Invalid data url type!",
+ "start": 2550,
+ "end": 2574,
"loc": {
"start": {
- "line": 105,
+ "line": 90,
"column": 54
},
"end": {
- "line": 105,
- "column": 75
+ "line": 90,
+ "column": 78
}
}
},
@@ -11156,16 +9256,16 @@
"postfix": false,
"binop": null
},
- "start": 2992,
- "end": 2993,
+ "start": 2574,
+ "end": 2575,
"loc": {
"start": {
- "line": 105,
- "column": 75
+ "line": 90,
+ "column": 78
},
"end": {
- "line": 105,
- "column": 76
+ "line": 90,
+ "column": 79
}
}
},
@@ -11182,16 +9282,16 @@
"binop": null,
"updateContext": null
},
- "start": 2993,
- "end": 2994,
+ "start": 2575,
+ "end": 2576,
"loc": {
"start": {
- "line": 105,
- "column": 76
+ "line": 90,
+ "column": 79
},
"end": {
- "line": 105,
- "column": 77
+ "line": 90,
+ "column": 80
}
}
},
@@ -11207,15 +9307,15 @@
"postfix": false,
"binop": null
},
- "start": 3008,
- "end": 3009,
+ "start": 2590,
+ "end": 2591,
"loc": {
"start": {
- "line": 106,
+ "line": 91,
"column": 12
},
"end": {
- "line": 106,
+ "line": 91,
"column": 13
}
}
@@ -11232,15 +9332,15 @@
"postfix": false,
"binop": null
},
- "start": 3019,
- "end": 3020,
+ "start": 2601,
+ "end": 2602,
"loc": {
"start": {
- "line": 107,
+ "line": 92,
"column": 8
},
"end": {
- "line": 107,
+ "line": 92,
"column": 9
}
}
@@ -11260,15 +9360,15 @@
"updateContext": null
},
"value": "return",
- "start": 3030,
- "end": 3036,
+ "start": 2612,
+ "end": 2618,
"loc": {
"start": {
- "line": 108,
+ "line": 93,
"column": 8
},
"end": {
- "line": 108,
+ "line": 93,
"column": 14
}
}
@@ -11288,15 +9388,15 @@
"updateContext": null
},
"value": "this",
- "start": 3037,
- "end": 3041,
+ "start": 2619,
+ "end": 2623,
"loc": {
"start": {
- "line": 108,
+ "line": 93,
"column": 15
},
"end": {
- "line": 108,
+ "line": 93,
"column": 19
}
}
@@ -11314,15 +9414,15 @@
"binop": null,
"updateContext": null
},
- "start": 3041,
- "end": 3042,
+ "start": 2623,
+ "end": 2624,
"loc": {
"start": {
- "line": 108,
+ "line": 93,
"column": 19
},
"end": {
- "line": 108,
+ "line": 93,
"column": 20
}
}
@@ -11339,31 +9439,31 @@
"postfix": false,
"binop": null
},
- "start": 3048,
- "end": 3049,
+ "start": 2630,
+ "end": 2631,
"loc": {
"start": {
- "line": 109,
+ "line": 94,
"column": 4
},
"end": {
- "line": 109,
+ "line": 94,
"column": 5
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Gets the index of this frame.\r\n * @returns {number} The index of this frame.\r\n ",
- "start": 3055,
- "end": 3156,
+ "value": "*\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
+ "start": 2637,
+ "end": 2750,
"loc": {
"start": {
- "line": 110,
+ "line": 95,
"column": 4
},
"end": {
- "line": 113,
+ "line": 98,
"column": 7
}
}
@@ -11380,17 +9480,17 @@
"postfix": false,
"binop": null
},
- "value": "getIndex",
- "start": 3162,
- "end": 3170,
+ "value": "getDataURL",
+ "start": 2756,
+ "end": 2766,
"loc": {
"start": {
- "line": 114,
+ "line": 99,
"column": 4
},
"end": {
- "line": 114,
- "column": 12
+ "line": 99,
+ "column": 14
}
}
},
@@ -11406,16 +9506,16 @@
"postfix": false,
"binop": null
},
- "start": 3170,
- "end": 3171,
+ "start": 2766,
+ "end": 2767,
"loc": {
"start": {
- "line": 114,
- "column": 12
+ "line": 99,
+ "column": 14
},
"end": {
- "line": 114,
- "column": 13
+ "line": 99,
+ "column": 15
}
}
},
@@ -11431,16 +9531,16 @@
"postfix": false,
"binop": null
},
- "start": 3171,
- "end": 3172,
+ "start": 2767,
+ "end": 2768,
"loc": {
"start": {
- "line": 114,
- "column": 13
+ "line": 99,
+ "column": 15
},
"end": {
- "line": 114,
- "column": 14
+ "line": 99,
+ "column": 16
}
}
},
@@ -11456,16 +9556,16 @@
"postfix": false,
"binop": null
},
- "start": 3173,
- "end": 3174,
+ "start": 2769,
+ "end": 2770,
"loc": {
"start": {
- "line": 114,
- "column": 15
+ "line": 99,
+ "column": 17
},
"end": {
- "line": 114,
- "column": 16
+ "line": 99,
+ "column": 18
}
}
},
@@ -11484,15 +9584,15 @@
"updateContext": null
},
"value": "return",
- "start": 3184,
- "end": 3190,
+ "start": 2780,
+ "end": 2786,
"loc": {
"start": {
- "line": 115,
+ "line": 100,
"column": 8
},
"end": {
- "line": 115,
+ "line": 100,
"column": 14
}
}
@@ -11512,15 +9612,15 @@
"updateContext": null
},
"value": "this",
- "start": 3191,
- "end": 3195,
+ "start": 2787,
+ "end": 2791,
"loc": {
"start": {
- "line": 115,
+ "line": 100,
"column": 15
},
"end": {
- "line": 115,
+ "line": 100,
"column": 19
}
}
@@ -11538,15 +9638,15 @@
"binop": null,
"updateContext": null
},
- "start": 3195,
- "end": 3196,
+ "start": 2791,
+ "end": 2792,
"loc": {
"start": {
- "line": 115,
+ "line": 100,
"column": 19
},
"end": {
- "line": 115,
+ "line": 100,
"column": 20
}
}
@@ -11563,17 +9663,17 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 3196,
- "end": 3201,
+ "value": "dataURL",
+ "start": 2792,
+ "end": 2799,
"loc": {
"start": {
- "line": 115,
+ "line": 100,
"column": 20
},
"end": {
- "line": 115,
- "column": 25
+ "line": 100,
+ "column": 27
}
}
},
@@ -11590,16 +9690,16 @@
"binop": null,
"updateContext": null
},
- "start": 3201,
- "end": 3202,
+ "start": 2799,
+ "end": 2800,
"loc": {
"start": {
- "line": 115,
- "column": 25
+ "line": 100,
+ "column": 27
},
"end": {
- "line": 115,
- "column": 26
+ "line": 100,
+ "column": 28
}
}
},
@@ -11615,31 +9715,31 @@
"postfix": false,
"binop": null
},
- "start": 3208,
- "end": 3209,
+ "start": 2806,
+ "end": 2807,
"loc": {
"start": {
- "line": 116,
+ "line": 101,
"column": 4
},
"end": {
- "line": 116,
+ "line": 101,
"column": 5
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
- "start": 3215,
- "end": 3375,
+ "value": "*\r\n * Exports this frame's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n ",
+ "start": 2813,
+ "end": 2990,
"loc": {
"start": {
- "line": 117,
+ "line": 102,
"column": 4
},
"end": {
- "line": 120,
+ "line": 106,
"column": 7
}
}
@@ -11659,15 +9759,15 @@
"updateContext": null
},
"value": "export",
- "start": 3381,
- "end": 3387,
+ "start": 2996,
+ "end": 3002,
"loc": {
"start": {
- "line": 121,
+ "line": 107,
"column": 4
},
"end": {
- "line": 121,
+ "line": 107,
"column": 10
}
}
@@ -11684,15 +9784,15 @@
"postfix": false,
"binop": null
},
- "start": 3387,
- "end": 3388,
+ "start": 3002,
+ "end": 3003,
"loc": {
"start": {
- "line": 121,
+ "line": 107,
"column": 10
},
"end": {
- "line": 121,
+ "line": 107,
"column": 11
}
}
@@ -11709,15 +9809,15 @@
"postfix": false,
"binop": null
},
- "start": 3388,
- "end": 3389,
+ "start": 3003,
+ "end": 3004,
"loc": {
"start": {
- "line": 121,
+ "line": 107,
"column": 11
},
"end": {
- "line": 121,
+ "line": 107,
"column": 12
}
}
@@ -11734,15 +9834,15 @@
"postfix": false,
"binop": null
},
- "start": 3390,
- "end": 3391,
+ "start": 3005,
+ "end": 3006,
"loc": {
"start": {
- "line": 121,
+ "line": 107,
"column": 13
},
"end": {
- "line": 121,
+ "line": 107,
"column": 14
}
}
@@ -11762,15 +9862,15 @@
"updateContext": null
},
"value": "const",
- "start": 3401,
- "end": 3406,
+ "start": 3016,
+ "end": 3021,
"loc": {
"start": {
- "line": 122,
+ "line": 108,
"column": 8
},
"end": {
- "line": 122,
+ "line": 108,
"column": 13
}
}
@@ -11788,15 +9888,15 @@
"binop": null
},
"value": "frameData",
- "start": 3407,
- "end": 3416,
+ "start": 3022,
+ "end": 3031,
"loc": {
"start": {
- "line": 122,
+ "line": 108,
"column": 14
},
"end": {
- "line": 122,
+ "line": 108,
"column": 23
}
}
@@ -11815,15 +9915,15 @@
"updateContext": null
},
"value": "=",
- "start": 3417,
- "end": 3418,
+ "start": 3032,
+ "end": 3033,
"loc": {
"start": {
- "line": 122,
+ "line": 108,
"column": 24
},
"end": {
- "line": 122,
+ "line": 108,
"column": 25
}
}
@@ -11841,15 +9941,15 @@
"binop": null,
"updateContext": null
},
- "start": 3419,
- "end": 3420,
+ "start": 3034,
+ "end": 3035,
"loc": {
"start": {
- "line": 122,
+ "line": 108,
"column": 26
},
"end": {
- "line": 122,
+ "line": 108,
"column": 27
}
}
@@ -11867,15 +9967,15 @@
"binop": null,
"updateContext": null
},
- "start": 3420,
- "end": 3421,
+ "start": 3035,
+ "end": 3036,
"loc": {
"start": {
- "line": 122,
+ "line": 108,
"column": 27
},
"end": {
- "line": 122,
+ "line": 108,
"column": 28
}
}
@@ -11893,15 +9993,15 @@
"binop": null,
"updateContext": null
},
- "start": 3421,
- "end": 3422,
+ "start": 3036,
+ "end": 3037,
"loc": {
"start": {
- "line": 122,
+ "line": 108,
"column": 28
},
"end": {
- "line": 122,
+ "line": 108,
"column": 29
}
}
@@ -11909,15 +10009,15 @@
{
"type": "CommentLine",
"value": " frame dataURL",
- "start": 3432,
- "end": 3448,
+ "start": 3047,
+ "end": 3063,
"loc": {
"start": {
- "line": 123,
+ "line": 109,
"column": 8
},
"end": {
- "line": 123,
+ "line": 109,
"column": 24
}
}
@@ -11935,15 +10035,15 @@
"binop": null
},
"value": "frameData",
- "start": 3458,
- "end": 3467,
+ "start": 3073,
+ "end": 3082,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 8
},
"end": {
- "line": 124,
+ "line": 110,
"column": 17
}
}
@@ -11961,15 +10061,15 @@
"binop": null,
"updateContext": null
},
- "start": 3467,
- "end": 3468,
+ "start": 3082,
+ "end": 3083,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 17
},
"end": {
- "line": 124,
+ "line": 110,
"column": 18
}
}
@@ -11988,15 +10088,15 @@
"updateContext": null
},
"value": 0,
- "start": 3468,
- "end": 3469,
+ "start": 3083,
+ "end": 3084,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 18
},
"end": {
- "line": 124,
+ "line": 110,
"column": 19
}
}
@@ -12014,15 +10114,15 @@
"binop": null,
"updateContext": null
},
- "start": 3469,
- "end": 3470,
+ "start": 3084,
+ "end": 3085,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 19
},
"end": {
- "line": 124,
+ "line": 110,
"column": 20
}
}
@@ -12041,15 +10141,15 @@
"updateContext": null
},
"value": "=",
- "start": 3471,
- "end": 3472,
+ "start": 3086,
+ "end": 3087,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 21
},
"end": {
- "line": 124,
+ "line": 110,
"column": 22
}
}
@@ -12069,15 +10169,15 @@
"updateContext": null
},
"value": "this",
- "start": 3473,
- "end": 3477,
+ "start": 3088,
+ "end": 3092,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 23
},
"end": {
- "line": 124,
+ "line": 110,
"column": 27
}
}
@@ -12095,15 +10195,15 @@
"binop": null,
"updateContext": null
},
- "start": 3477,
- "end": 3478,
+ "start": 3092,
+ "end": 3093,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 27
},
"end": {
- "line": 124,
+ "line": 110,
"column": 28
}
}
@@ -12121,15 +10221,15 @@
"binop": null
},
"value": "getDataURL",
- "start": 3478,
- "end": 3488,
+ "start": 3093,
+ "end": 3103,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 28
},
"end": {
- "line": 124,
+ "line": 110,
"column": 38
}
}
@@ -12146,15 +10246,15 @@
"postfix": false,
"binop": null
},
- "start": 3488,
- "end": 3489,
+ "start": 3103,
+ "end": 3104,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 38
},
"end": {
- "line": 124,
+ "line": 110,
"column": 39
}
}
@@ -12171,15 +10271,15 @@
"postfix": false,
"binop": null
},
- "start": 3489,
- "end": 3490,
+ "start": 3104,
+ "end": 3105,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 39
},
"end": {
- "line": 124,
+ "line": 110,
"column": 40
}
}
@@ -12197,15 +10297,15 @@
"binop": null,
"updateContext": null
},
- "start": 3490,
- "end": 3491,
+ "start": 3105,
+ "end": 3106,
"loc": {
"start": {
- "line": 124,
+ "line": 110,
"column": 40
},
"end": {
- "line": 124,
+ "line": 110,
"column": 41
}
}
@@ -12213,15 +10313,15 @@
{
"type": "CommentLine",
"value": " We do not have to store the delay if it is the default value of 100. This will save data.",
- "start": 3501,
- "end": 3593,
+ "start": 3116,
+ "end": 3208,
"loc": {
"start": {
- "line": 125,
+ "line": 111,
"column": 8
},
"end": {
- "line": 125,
+ "line": 111,
"column": 100
}
}
@@ -12241,15 +10341,15 @@
"updateContext": null
},
"value": "const",
- "start": 3603,
- "end": 3608,
+ "start": 3218,
+ "end": 3223,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 8
},
"end": {
- "line": 126,
+ "line": 112,
"column": 13
}
}
@@ -12267,15 +10367,15 @@
"binop": null
},
"value": "delayIsDefault",
- "start": 3609,
- "end": 3623,
+ "start": 3224,
+ "end": 3238,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 14
},
"end": {
- "line": 126,
+ "line": 112,
"column": 28
}
}
@@ -12294,15 +10394,15 @@
"updateContext": null
},
"value": "=",
- "start": 3624,
- "end": 3625,
+ "start": 3239,
+ "end": 3240,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 29
},
"end": {
- "line": 126,
+ "line": 112,
"column": 30
}
}
@@ -12322,15 +10422,15 @@
"updateContext": null
},
"value": "this",
- "start": 3626,
- "end": 3630,
+ "start": 3241,
+ "end": 3245,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 31
},
"end": {
- "line": 126,
+ "line": 112,
"column": 35
}
}
@@ -12348,15 +10448,15 @@
"binop": null,
"updateContext": null
},
- "start": 3630,
- "end": 3631,
+ "start": 3245,
+ "end": 3246,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 35
},
"end": {
- "line": 126,
+ "line": 112,
"column": 36
}
}
@@ -12374,15 +10474,15 @@
"binop": null
},
"value": "getDelay",
- "start": 3631,
- "end": 3639,
+ "start": 3246,
+ "end": 3254,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 36
},
"end": {
- "line": 126,
+ "line": 112,
"column": 44
}
}
@@ -12399,15 +10499,15 @@
"postfix": false,
"binop": null
},
- "start": 3639,
- "end": 3640,
+ "start": 3254,
+ "end": 3255,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 44
},
"end": {
- "line": 126,
+ "line": 112,
"column": 45
}
}
@@ -12424,15 +10524,15 @@
"postfix": false,
"binop": null
},
- "start": 3640,
- "end": 3641,
+ "start": 3255,
+ "end": 3256,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 45
},
"end": {
- "line": 126,
+ "line": 112,
"column": 46
}
}
@@ -12451,15 +10551,15 @@
"updateContext": null
},
"value": "===",
- "start": 3642,
- "end": 3645,
+ "start": 3257,
+ "end": 3260,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 47
},
"end": {
- "line": 126,
+ "line": 112,
"column": 50
}
}
@@ -12477,15 +10577,15 @@
"binop": null
},
"value": "Frame",
- "start": 3646,
- "end": 3651,
+ "start": 3261,
+ "end": 3266,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 51
},
"end": {
- "line": 126,
+ "line": 112,
"column": 56
}
}
@@ -12503,15 +10603,15 @@
"binop": null,
"updateContext": null
},
- "start": 3651,
- "end": 3652,
+ "start": 3266,
+ "end": 3267,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 56
},
"end": {
- "line": 126,
+ "line": 112,
"column": 57
}
}
@@ -12529,15 +10629,15 @@
"binop": null
},
"value": "defaultDelay",
- "start": 3652,
- "end": 3664,
+ "start": 3267,
+ "end": 3279,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 57
},
"end": {
- "line": 126,
+ "line": 112,
"column": 69
}
}
@@ -12555,15 +10655,15 @@
"binop": null,
"updateContext": null
},
- "start": 3664,
- "end": 3665,
+ "start": 3279,
+ "end": 3280,
"loc": {
"start": {
- "line": 126,
+ "line": 112,
"column": 69
},
"end": {
- "line": 126,
+ "line": 112,
"column": 70
}
}
@@ -12583,15 +10683,15 @@
"updateContext": null
},
"value": "if",
- "start": 3675,
- "end": 3677,
+ "start": 3290,
+ "end": 3292,
"loc": {
"start": {
- "line": 127,
+ "line": 113,
"column": 8
},
"end": {
- "line": 127,
+ "line": 113,
"column": 10
}
}
@@ -12608,15 +10708,15 @@
"postfix": false,
"binop": null
},
- "start": 3678,
- "end": 3679,
+ "start": 3293,
+ "end": 3294,
"loc": {
"start": {
- "line": 127,
+ "line": 113,
"column": 11
},
"end": {
- "line": 127,
+ "line": 113,
"column": 12
}
}
@@ -12635,15 +10735,15 @@
"updateContext": null
},
"value": "!",
- "start": 3679,
- "end": 3680,
+ "start": 3294,
+ "end": 3295,
"loc": {
"start": {
- "line": 127,
+ "line": 113,
"column": 12
},
"end": {
- "line": 127,
+ "line": 113,
"column": 13
}
}
@@ -12661,15 +10761,15 @@
"binop": null
},
"value": "delayIsDefault",
- "start": 3680,
- "end": 3694,
+ "start": 3295,
+ "end": 3309,
"loc": {
"start": {
- "line": 127,
+ "line": 113,
"column": 13
},
"end": {
- "line": 127,
+ "line": 113,
"column": 27
}
}
@@ -12686,15 +10786,15 @@
"postfix": false,
"binop": null
},
- "start": 3694,
- "end": 3695,
+ "start": 3309,
+ "end": 3310,
"loc": {
"start": {
- "line": 127,
+ "line": 113,
"column": 27
},
"end": {
- "line": 127,
+ "line": 113,
"column": 28
}
}
@@ -12711,15 +10811,15 @@
"postfix": false,
"binop": null
},
- "start": 3696,
- "end": 3697,
+ "start": 3311,
+ "end": 3312,
"loc": {
"start": {
- "line": 127,
+ "line": 113,
"column": 29
},
"end": {
- "line": 127,
+ "line": 113,
"column": 30
}
}
@@ -12727,15 +10827,15 @@
{
"type": "CommentLine",
"value": " frame delay",
- "start": 3711,
- "end": 3725,
+ "start": 3326,
+ "end": 3340,
"loc": {
"start": {
- "line": 128,
+ "line": 114,
"column": 12
},
"end": {
- "line": 128,
+ "line": 114,
"column": 26
}
}
@@ -12753,15 +10853,15 @@
"binop": null
},
"value": "frameData",
- "start": 3739,
- "end": 3748,
+ "start": 3354,
+ "end": 3363,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 12
},
"end": {
- "line": 129,
+ "line": 115,
"column": 21
}
}
@@ -12779,15 +10879,15 @@
"binop": null,
"updateContext": null
},
- "start": 3748,
- "end": 3749,
+ "start": 3363,
+ "end": 3364,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 21
},
"end": {
- "line": 129,
+ "line": 115,
"column": 22
}
}
@@ -12806,15 +10906,15 @@
"updateContext": null
},
"value": 1,
- "start": 3749,
- "end": 3750,
+ "start": 3364,
+ "end": 3365,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 22
},
"end": {
- "line": 129,
+ "line": 115,
"column": 23
}
}
@@ -12832,15 +10932,15 @@
"binop": null,
"updateContext": null
},
- "start": 3750,
- "end": 3751,
+ "start": 3365,
+ "end": 3366,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 23
},
"end": {
- "line": 129,
+ "line": 115,
"column": 24
}
}
@@ -12859,15 +10959,15 @@
"updateContext": null
},
"value": "=",
- "start": 3752,
- "end": 3753,
+ "start": 3367,
+ "end": 3368,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 25
},
"end": {
- "line": 129,
+ "line": 115,
"column": 26
}
}
@@ -12887,15 +10987,15 @@
"updateContext": null
},
"value": "this",
- "start": 3754,
- "end": 3758,
+ "start": 3369,
+ "end": 3373,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 27
},
"end": {
- "line": 129,
+ "line": 115,
"column": 31
}
}
@@ -12913,15 +11013,15 @@
"binop": null,
"updateContext": null
},
- "start": 3758,
- "end": 3759,
+ "start": 3373,
+ "end": 3374,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 31
},
"end": {
- "line": 129,
+ "line": 115,
"column": 32
}
}
@@ -12939,15 +11039,15 @@
"binop": null
},
"value": "getDelay",
- "start": 3759,
- "end": 3767,
+ "start": 3374,
+ "end": 3382,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 32
},
"end": {
- "line": 129,
+ "line": 115,
"column": 40
}
}
@@ -12964,15 +11064,15 @@
"postfix": false,
"binop": null
},
- "start": 3767,
- "end": 3768,
+ "start": 3382,
+ "end": 3383,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 40
},
"end": {
- "line": 129,
+ "line": 115,
"column": 41
}
}
@@ -12989,15 +11089,15 @@
"postfix": false,
"binop": null
},
- "start": 3768,
- "end": 3769,
+ "start": 3383,
+ "end": 3384,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 41
},
"end": {
- "line": 129,
+ "line": 115,
"column": 42
}
}
@@ -13015,15 +11115,15 @@
"binop": null,
"updateContext": null
},
- "start": 3769,
- "end": 3770,
+ "start": 3384,
+ "end": 3385,
"loc": {
"start": {
- "line": 129,
+ "line": 115,
"column": 42
},
"end": {
- "line": 129,
+ "line": 115,
"column": 43
}
}
@@ -13040,15 +11140,15 @@
"postfix": false,
"binop": null
},
- "start": 3780,
- "end": 3781,
+ "start": 3395,
+ "end": 3396,
"loc": {
"start": {
- "line": 130,
+ "line": 116,
"column": 8
},
"end": {
- "line": 130,
+ "line": 116,
"column": 9
}
}
@@ -13068,15 +11168,15 @@
"updateContext": null
},
"value": "return",
- "start": 3791,
- "end": 3797,
+ "start": 3406,
+ "end": 3412,
"loc": {
"start": {
- "line": 131,
+ "line": 117,
"column": 8
},
"end": {
- "line": 131,
+ "line": 117,
"column": 14
}
}
@@ -13094,15 +11194,15 @@
"binop": null
},
"value": "frameData",
- "start": 3798,
- "end": 3807,
+ "start": 3413,
+ "end": 3422,
"loc": {
"start": {
- "line": 131,
+ "line": 117,
"column": 15
},
"end": {
- "line": 131,
+ "line": 117,
"column": 24
}
}
@@ -13120,15 +11220,15 @@
"binop": null,
"updateContext": null
},
- "start": 3807,
- "end": 3808,
+ "start": 3422,
+ "end": 3423,
"loc": {
"start": {
- "line": 131,
+ "line": 117,
"column": 24
},
"end": {
- "line": 131,
+ "line": 117,
"column": 25
}
}
@@ -13145,15 +11245,15 @@
"postfix": false,
"binop": null
},
- "start": 3814,
- "end": 3815,
+ "start": 3429,
+ "end": 3430,
"loc": {
"start": {
- "line": 132,
+ "line": 118,
"column": 4
},
"end": {
- "line": 132,
+ "line": 118,
"column": 5
}
}
@@ -13170,15 +11270,15 @@
"postfix": false,
"binop": null
},
- "start": 3817,
- "end": 3818,
+ "start": 3432,
+ "end": 3433,
"loc": {
"start": {
- "line": 133,
+ "line": 119,
"column": 0
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
}
@@ -13196,15 +11296,15 @@
"binop": null,
"updateContext": null
},
- "start": 3818,
- "end": 3818,
+ "start": 3433,
+ "end": 3433,
"loc": {
"start": {
- "line": 133,
+ "line": 119,
"column": 1
},
"end": {
- "line": 133,
+ "line": 119,
"column": 1
}
}
diff --git a/docs/ast/source/icon.mjs.json b/docs/ast/source/icon.mjs.json
index 8f3c95a..7427d10 100644
--- a/docs/ast/source/icon.mjs.json
+++ b/docs/ast/source/icon.mjs.json
@@ -1,28 +1,28 @@
{
"type": "File",
"start": 0,
- "end": 16362,
+ "end": 17360,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
- "end": 16362,
+ "end": 17360,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
},
@@ -203,14 +203,14 @@
{
"type": "ExportNamedDeclaration",
"start": 74,
- "end": 16362,
+ "end": 17360,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
},
@@ -219,14 +219,14 @@
"declaration": {
"type": "ClassDeclaration",
"start": 81,
- "end": 16362,
+ "end": 17360,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
},
@@ -251,14 +251,14 @@
"body": {
"type": "ClassBody",
"start": 92,
- "end": 16362,
+ "end": 17360,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
},
@@ -1068,428 +1068,16 @@
"trailingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Swaps the positions of two elements in an array.\r\n * @param {Array} pArray - The array in which to swap elements.\r\n * @param {number} pIndex1 - The index of the first element to swap.\r\n * @param {number} pIndex2 - The index of the second element to swap.\r\n * @returns {void}\r\n ",
- "start": 1272,
- "end": 1583,
- "loc": {
- "start": {
- "line": 55,
- "column": 4
- },
- "end": {
- "line": 61,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 1589,
- "end": 1730,
- "loc": {
- "start": {
- "line": 62,
- "column": 4
- },
- "end": {
- "line": 64,
- "column": 5
- }
- },
- "static": true,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 1596,
- "end": 1613,
- "loc": {
- "start": {
- "line": 62,
- "column": 11
- },
- "end": {
- "line": 62,
- "column": 28
- },
- "identifierName": "swapArrayElements"
- },
- "name": "swapArrayElements"
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [
- {
- "type": "Identifier",
- "start": 1614,
- "end": 1620,
- "loc": {
- "start": {
- "line": 62,
- "column": 29
- },
- "end": {
- "line": 62,
- "column": 35
- },
- "identifierName": "pArray"
- },
- "name": "pArray"
- },
- {
- "type": "Identifier",
- "start": 1622,
- "end": 1629,
- "loc": {
- "start": {
- "line": 62,
- "column": 37
- },
- "end": {
- "line": 62,
- "column": 44
- },
- "identifierName": "pIndex1"
- },
- "name": "pIndex1"
- },
- {
- "type": "Identifier",
- "start": 1631,
- "end": 1638,
- "loc": {
- "start": {
- "line": 62,
- "column": 46
- },
- "end": {
- "line": 62,
- "column": 53
- },
- "identifierName": "pIndex2"
- },
- "name": "pIndex2"
- }
- ],
- "body": {
- "type": "BlockStatement",
- "start": 1640,
- "end": 1730,
- "loc": {
- "start": {
- "line": 62,
- "column": 55
- },
- "end": {
- "line": 64,
- "column": 5
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 1651,
- "end": 1723,
- "loc": {
- "start": {
- "line": 63,
- "column": 8
- },
- "end": {
- "line": 63,
- "column": 80
- }
- },
- "expression": {
- "type": "AssignmentExpression",
- "start": 1651,
- "end": 1722,
- "loc": {
- "start": {
- "line": 63,
- "column": 8
- },
- "end": {
- "line": 63,
- "column": 79
- }
- },
- "operator": "=",
- "left": {
- "type": "ArrayPattern",
- "start": 1651,
- "end": 1685,
- "loc": {
- "start": {
- "line": 63,
- "column": 8
- },
- "end": {
- "line": 63,
- "column": 42
- }
- },
- "elements": [
- {
- "type": "MemberExpression",
- "start": 1652,
- "end": 1667,
- "loc": {
- "start": {
- "line": 63,
- "column": 9
- },
- "end": {
- "line": 63,
- "column": 24
- }
- },
- "object": {
- "type": "Identifier",
- "start": 1652,
- "end": 1658,
- "loc": {
- "start": {
- "line": 63,
- "column": 9
- },
- "end": {
- "line": 63,
- "column": 15
- },
- "identifierName": "pArray"
- },
- "name": "pArray"
- },
- "property": {
- "type": "Identifier",
- "start": 1659,
- "end": 1666,
- "loc": {
- "start": {
- "line": 63,
- "column": 16
- },
- "end": {
- "line": 63,
- "column": 23
- },
- "identifierName": "pIndex1"
- },
- "name": "pIndex1"
- },
- "computed": true
- },
- {
- "type": "MemberExpression",
- "start": 1669,
- "end": 1684,
- "loc": {
- "start": {
- "line": 63,
- "column": 26
- },
- "end": {
- "line": 63,
- "column": 41
- }
- },
- "object": {
- "type": "Identifier",
- "start": 1669,
- "end": 1675,
- "loc": {
- "start": {
- "line": 63,
- "column": 26
- },
- "end": {
- "line": 63,
- "column": 32
- },
- "identifierName": "pArray"
- },
- "name": "pArray"
- },
- "property": {
- "type": "Identifier",
- "start": 1676,
- "end": 1683,
- "loc": {
- "start": {
- "line": 63,
- "column": 33
- },
- "end": {
- "line": 63,
- "column": 40
- },
- "identifierName": "pIndex2"
- },
- "name": "pIndex2"
- },
- "computed": true
- }
- ]
- },
- "right": {
- "type": "ArrayExpression",
- "start": 1688,
- "end": 1722,
- "loc": {
- "start": {
- "line": 63,
- "column": 45
- },
- "end": {
- "line": 63,
- "column": 79
- }
- },
- "elements": [
- {
- "type": "MemberExpression",
- "start": 1689,
- "end": 1704,
- "loc": {
- "start": {
- "line": 63,
- "column": 46
- },
- "end": {
- "line": 63,
- "column": 61
- }
- },
- "object": {
- "type": "Identifier",
- "start": 1689,
- "end": 1695,
- "loc": {
- "start": {
- "line": 63,
- "column": 46
- },
- "end": {
- "line": 63,
- "column": 52
- },
- "identifierName": "pArray"
- },
- "name": "pArray"
- },
- "property": {
- "type": "Identifier",
- "start": 1696,
- "end": 1703,
- "loc": {
- "start": {
- "line": 63,
- "column": 53
- },
- "end": {
- "line": 63,
- "column": 60
- },
- "identifierName": "pIndex2"
- },
- "name": "pIndex2"
- },
- "computed": true
- },
- {
- "type": "MemberExpression",
- "start": 1706,
- "end": 1721,
- "loc": {
- "start": {
- "line": 63,
- "column": 63
- },
- "end": {
- "line": 63,
- "column": 78
- }
- },
- "object": {
- "type": "Identifier",
- "start": 1706,
- "end": 1712,
- "loc": {
- "start": {
- "line": 63,
- "column": 63
- },
- "end": {
- "line": 63,
- "column": 69
- },
- "identifierName": "pArray"
- },
- "name": "pArray"
- },
- "property": {
- "type": "Identifier",
- "start": 1713,
- "end": 1720,
- "loc": {
- "start": {
- "line": 63,
- "column": 70
- },
- "end": {
- "line": 63,
- "column": 77
- },
- "identifierName": "pIndex1"
- },
- "name": "pIndex1"
- },
- "computed": true
- }
- ]
- }
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Swaps the positions of two elements in an array.\r\n * @param {Array} pArray - The array in which to swap elements.\r\n * @param {number} pIndex1 - The index of the first element to swap.\r\n * @param {number} pIndex2 - The index of the second element to swap.\r\n * @returns {void}\r\n ",
+ "value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
"start": 1272,
- "end": 1583,
+ "end": 1449,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
- "line": 61,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
- "start": 1736,
- "end": 1913,
- "loc": {
- "start": {
- "line": 65,
- "column": 4
- },
- "end": {
- "line": 69,
+ "line": 59,
"column": 7
}
}
@@ -1498,15 +1086,15 @@
},
{
"type": "ClassMethod",
- "start": 1919,
- "end": 4231,
+ "start": 1455,
+ "end": 3767,
"loc": {
"start": {
- "line": 70,
+ "line": 60,
"column": 4
},
"end": {
- "line": 122,
+ "line": 112,
"column": 5
}
},
@@ -1514,15 +1102,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 1919,
- "end": 1924,
+ "start": 1455,
+ "end": 1460,
"loc": {
"start": {
- "line": 70,
+ "line": 60,
"column": 4
},
"end": {
- "line": 70,
+ "line": 60,
"column": 9
},
"identifierName": "parse"
@@ -1538,15 +1126,15 @@
"params": [
{
"type": "Identifier",
- "start": 1925,
- "end": 1934,
+ "start": 1461,
+ "end": 1470,
"loc": {
"start": {
- "line": 70,
+ "line": 60,
"column": 10
},
"end": {
- "line": 70,
+ "line": 60,
"column": 19
},
"identifierName": "pIconData"
@@ -1556,59 +1144,59 @@
],
"body": {
"type": "BlockStatement",
- "start": 1936,
- "end": 4231,
+ "start": 1472,
+ "end": 3767,
"loc": {
"start": {
- "line": 70,
+ "line": 60,
"column": 21
},
"end": {
- "line": 122,
+ "line": 112,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 2003,
- "end": 2033,
+ "start": 1539,
+ "end": 1569,
"loc": {
"start": {
- "line": 72,
+ "line": 62,
"column": 8
},
"end": {
- "line": 72,
+ "line": 62,
"column": 38
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2009,
- "end": 2032,
+ "start": 1545,
+ "end": 1568,
"loc": {
"start": {
- "line": 72,
+ "line": 62,
"column": 14
},
"end": {
- "line": 72,
+ "line": 62,
"column": 37
}
},
"id": {
"type": "Identifier",
- "start": 2009,
- "end": 2017,
+ "start": 1545,
+ "end": 1553,
"loc": {
"start": {
- "line": 72,
+ "line": 62,
"column": 14
},
"end": {
- "line": 72,
+ "line": 62,
"column": 22
},
"identifierName": "iconName"
@@ -1618,29 +1206,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2020,
- "end": 2032,
+ "start": 1556,
+ "end": 1568,
"loc": {
"start": {
- "line": 72,
+ "line": 62,
"column": 25
},
"end": {
- "line": 72,
+ "line": 62,
"column": 37
}
},
"object": {
"type": "Identifier",
- "start": 2020,
- "end": 2029,
+ "start": 1556,
+ "end": 1565,
"loc": {
"start": {
- "line": 72,
+ "line": 62,
"column": 25
},
"end": {
- "line": 72,
+ "line": 62,
"column": 34
},
"identifierName": "pIconData"
@@ -1649,15 +1237,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2030,
- "end": 2031,
+ "start": 1566,
+ "end": 1567,
"loc": {
"start": {
- "line": 72,
+ "line": 62,
"column": 35
},
"end": {
- "line": 72,
+ "line": 62,
"column": 36
}
},
@@ -1677,15 +1265,15 @@
{
"type": "CommentLine",
"value": " Loop through pIconData and create this icon",
- "start": 1947,
- "end": 1993,
+ "start": 1483,
+ "end": 1529,
"loc": {
"start": {
- "line": 71,
+ "line": 61,
"column": 8
},
"end": {
- "line": 71,
+ "line": 61,
"column": 54
}
}
@@ -1694,44 +1282,44 @@
},
{
"type": "VariableDeclaration",
- "start": 2043,
- "end": 2074,
+ "start": 1579,
+ "end": 1610,
"loc": {
"start": {
- "line": 73,
+ "line": 63,
"column": 8
},
"end": {
- "line": 73,
+ "line": 63,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2049,
- "end": 2073,
+ "start": 1585,
+ "end": 1609,
"loc": {
"start": {
- "line": 73,
+ "line": 63,
"column": 14
},
"end": {
- "line": 73,
+ "line": 63,
"column": 38
}
},
"id": {
"type": "Identifier",
- "start": 2049,
- "end": 2058,
+ "start": 1585,
+ "end": 1594,
"loc": {
"start": {
- "line": 73,
+ "line": 63,
"column": 14
},
"end": {
- "line": 73,
+ "line": 63,
"column": 23
},
"identifierName": "iconWidth"
@@ -1740,29 +1328,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2061,
- "end": 2073,
+ "start": 1597,
+ "end": 1609,
"loc": {
"start": {
- "line": 73,
+ "line": 63,
"column": 26
},
"end": {
- "line": 73,
+ "line": 63,
"column": 38
}
},
"object": {
"type": "Identifier",
- "start": 2061,
- "end": 2070,
+ "start": 1597,
+ "end": 1606,
"loc": {
"start": {
- "line": 73,
+ "line": 63,
"column": 26
},
"end": {
- "line": 73,
+ "line": 63,
"column": 35
},
"identifierName": "pIconData"
@@ -1771,15 +1359,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2071,
- "end": 2072,
+ "start": 1607,
+ "end": 1608,
"loc": {
"start": {
- "line": 73,
+ "line": 63,
"column": 36
},
"end": {
- "line": 73,
+ "line": 63,
"column": 37
}
},
@@ -1797,44 +1385,44 @@
},
{
"type": "VariableDeclaration",
- "start": 2084,
- "end": 2116,
+ "start": 1620,
+ "end": 1652,
"loc": {
"start": {
- "line": 74,
+ "line": 64,
"column": 8
},
"end": {
- "line": 74,
+ "line": 64,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2090,
- "end": 2115,
+ "start": 1626,
+ "end": 1651,
"loc": {
"start": {
- "line": 74,
+ "line": 64,
"column": 14
},
"end": {
- "line": 74,
+ "line": 64,
"column": 39
}
},
"id": {
"type": "Identifier",
- "start": 2090,
- "end": 2100,
+ "start": 1626,
+ "end": 1636,
"loc": {
"start": {
- "line": 74,
+ "line": 64,
"column": 14
},
"end": {
- "line": 74,
+ "line": 64,
"column": 24
},
"identifierName": "iconHeight"
@@ -1843,29 +1431,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2103,
- "end": 2115,
+ "start": 1639,
+ "end": 1651,
"loc": {
"start": {
- "line": 74,
+ "line": 64,
"column": 27
},
"end": {
- "line": 74,
+ "line": 64,
"column": 39
}
},
"object": {
"type": "Identifier",
- "start": 2103,
- "end": 2112,
+ "start": 1639,
+ "end": 1648,
"loc": {
"start": {
- "line": 74,
+ "line": 64,
"column": 27
},
"end": {
- "line": 74,
+ "line": 64,
"column": 36
},
"identifierName": "pIconData"
@@ -1874,15 +1462,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2113,
- "end": 2114,
+ "start": 1649,
+ "end": 1650,
"loc": {
"start": {
- "line": 74,
+ "line": 64,
"column": 37
},
"end": {
- "line": 74,
+ "line": 64,
"column": 38
}
},
@@ -1900,44 +1488,44 @@
},
{
"type": "VariableDeclaration",
- "start": 2126,
- "end": 2157,
+ "start": 1662,
+ "end": 1693,
"loc": {
"start": {
- "line": 75,
+ "line": 65,
"column": 8
},
"end": {
- "line": 75,
+ "line": 65,
"column": 39
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2132,
- "end": 2156,
+ "start": 1668,
+ "end": 1692,
"loc": {
"start": {
- "line": 75,
+ "line": 65,
"column": 14
},
"end": {
- "line": 75,
+ "line": 65,
"column": 38
}
},
"id": {
"type": "Identifier",
- "start": 2132,
- "end": 2141,
+ "start": 1668,
+ "end": 1677,
"loc": {
"start": {
- "line": 75,
+ "line": 65,
"column": 14
},
"end": {
- "line": 75,
+ "line": 65,
"column": 23
},
"identifierName": "iconDelay"
@@ -1946,29 +1534,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2144,
- "end": 2156,
+ "start": 1680,
+ "end": 1692,
"loc": {
"start": {
- "line": 75,
+ "line": 65,
"column": 26
},
"end": {
- "line": 75,
+ "line": 65,
"column": 38
}
},
"object": {
"type": "Identifier",
- "start": 2144,
- "end": 2153,
+ "start": 1680,
+ "end": 1689,
"loc": {
"start": {
- "line": 75,
+ "line": 65,
"column": 26
},
"end": {
- "line": 75,
+ "line": 65,
"column": 35
},
"identifierName": "pIconData"
@@ -1977,15 +1565,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2154,
- "end": 2155,
+ "start": 1690,
+ "end": 1691,
"loc": {
"start": {
- "line": 75,
+ "line": 65,
"column": 36
},
"end": {
- "line": 75,
+ "line": 65,
"column": 37
}
},
@@ -2003,44 +1591,44 @@
},
{
"type": "VariableDeclaration",
- "start": 2167,
- "end": 2200,
+ "start": 1703,
+ "end": 1736,
"loc": {
"start": {
- "line": 76,
+ "line": 66,
"column": 8
},
"end": {
- "line": 76,
+ "line": 66,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2173,
- "end": 2199,
+ "start": 1709,
+ "end": 1735,
"loc": {
"start": {
- "line": 76,
+ "line": 66,
"column": 14
},
"end": {
- "line": 76,
+ "line": 66,
"column": 40
}
},
"id": {
"type": "Identifier",
- "start": 2173,
- "end": 2184,
+ "start": 1709,
+ "end": 1720,
"loc": {
"start": {
- "line": 76,
+ "line": 66,
"column": 14
},
"end": {
- "line": 76,
+ "line": 66,
"column": 25
},
"identifierName": "iconDataURL"
@@ -2049,29 +1637,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2187,
- "end": 2199,
+ "start": 1723,
+ "end": 1735,
"loc": {
"start": {
- "line": 76,
+ "line": 66,
"column": 28
},
"end": {
- "line": 76,
+ "line": 66,
"column": 40
}
},
"object": {
"type": "Identifier",
- "start": 2187,
- "end": 2196,
+ "start": 1723,
+ "end": 1732,
"loc": {
"start": {
- "line": 76,
+ "line": 66,
"column": 28
},
"end": {
- "line": 76,
+ "line": 66,
"column": 37
},
"identifierName": "pIconData"
@@ -2080,15 +1668,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2197,
- "end": 2198,
+ "start": 1733,
+ "end": 1734,
"loc": {
"start": {
- "line": 76,
+ "line": 66,
"column": 38
},
"end": {
- "line": 76,
+ "line": 66,
"column": 39
}
},
@@ -2106,44 +1694,44 @@
},
{
"type": "VariableDeclaration",
- "start": 2210,
- "end": 2242,
+ "start": 1746,
+ "end": 1778,
"loc": {
"start": {
- "line": 77,
+ "line": 67,
"column": 8
},
"end": {
- "line": 77,
+ "line": 67,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2216,
- "end": 2241,
+ "start": 1752,
+ "end": 1777,
"loc": {
"start": {
- "line": 77,
+ "line": 67,
"column": 14
},
"end": {
- "line": 77,
+ "line": 67,
"column": 39
}
},
"id": {
"type": "Identifier",
- "start": 2216,
- "end": 2226,
+ "start": 1752,
+ "end": 1762,
"loc": {
"start": {
- "line": 77,
+ "line": 67,
"column": 14
},
"end": {
- "line": 77,
+ "line": 67,
"column": 24
},
"identifierName": "frameArray"
@@ -2152,29 +1740,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2229,
- "end": 2241,
+ "start": 1765,
+ "end": 1777,
"loc": {
"start": {
- "line": 77,
+ "line": 67,
"column": 27
},
"end": {
- "line": 77,
+ "line": 67,
"column": 39
}
},
"object": {
"type": "Identifier",
- "start": 2229,
- "end": 2238,
+ "start": 1765,
+ "end": 1774,
"loc": {
"start": {
- "line": 77,
+ "line": 67,
"column": 27
},
"end": {
- "line": 77,
+ "line": 67,
"column": 36
},
"identifierName": "pIconData"
@@ -2183,15 +1771,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2239,
- "end": 2240,
+ "start": 1775,
+ "end": 1776,
"loc": {
"start": {
- "line": 77,
+ "line": 67,
"column": 37
},
"end": {
- "line": 77,
+ "line": 67,
"column": 38
}
},
@@ -2209,44 +1797,44 @@
},
{
"type": "VariableDeclaration",
- "start": 2252,
- "end": 2284,
+ "start": 1788,
+ "end": 1820,
"loc": {
"start": {
- "line": 78,
+ "line": 68,
"column": 8
},
"end": {
- "line": 78,
+ "line": 68,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 2258,
- "end": 2283,
+ "start": 1794,
+ "end": 1819,
"loc": {
"start": {
- "line": 78,
+ "line": 68,
"column": 14
},
"end": {
- "line": 78,
+ "line": 68,
"column": 39
}
},
"id": {
"type": "Identifier",
- "start": 2258,
- "end": 2268,
+ "start": 1794,
+ "end": 1804,
"loc": {
"start": {
- "line": 78,
+ "line": 68,
"column": 14
},
"end": {
- "line": 78,
+ "line": 68,
"column": 24
},
"identifierName": "stateArray"
@@ -2255,29 +1843,29 @@
},
"init": {
"type": "MemberExpression",
- "start": 2271,
- "end": 2283,
+ "start": 1807,
+ "end": 1819,
"loc": {
"start": {
- "line": 78,
+ "line": 68,
"column": 27
},
"end": {
- "line": 78,
+ "line": 68,
"column": 39
}
},
"object": {
"type": "Identifier",
- "start": 2271,
- "end": 2280,
+ "start": 1807,
+ "end": 1816,
"loc": {
"start": {
- "line": 78,
+ "line": 68,
"column": 27
},
"end": {
- "line": 78,
+ "line": 68,
"column": 36
},
"identifierName": "pIconData"
@@ -2286,15 +1874,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 2281,
- "end": 2282,
+ "start": 1817,
+ "end": 1818,
"loc": {
"start": {
- "line": 78,
+ "line": 68,
"column": 37
},
"end": {
- "line": 78,
+ "line": 68,
"column": 38
}
},
@@ -2313,15 +1901,15 @@
{
"type": "CommentLine",
"value": " Set name",
- "start": 2296,
- "end": 2307,
+ "start": 1832,
+ "end": 1843,
"loc": {
"start": {
- "line": 80,
+ "line": 70,
"column": 8
},
"end": {
- "line": 80,
+ "line": 70,
"column": 19
}
}
@@ -2330,57 +1918,57 @@
},
{
"type": "ExpressionStatement",
- "start": 2317,
- "end": 2339,
+ "start": 1853,
+ "end": 1875,
"loc": {
"start": {
- "line": 81,
+ "line": 71,
"column": 8
},
"end": {
- "line": 81,
+ "line": 71,
"column": 30
}
},
"expression": {
"type": "CallExpression",
- "start": 2317,
- "end": 2338,
+ "start": 1853,
+ "end": 1874,
"loc": {
"start": {
- "line": 81,
+ "line": 71,
"column": 8
},
"end": {
- "line": 81,
+ "line": 71,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
- "start": 2317,
- "end": 2328,
+ "start": 1853,
+ "end": 1864,
"loc": {
"start": {
- "line": 81,
+ "line": 71,
"column": 8
},
"end": {
- "line": 81,
+ "line": 71,
"column": 19
}
},
"object": {
"type": "ThisExpression",
- "start": 2317,
- "end": 2321,
+ "start": 1853,
+ "end": 1857,
"loc": {
"start": {
- "line": 81,
+ "line": 71,
"column": 8
},
"end": {
- "line": 81,
+ "line": 71,
"column": 12
}
},
@@ -2388,15 +1976,15 @@
},
"property": {
"type": "Identifier",
- "start": 2322,
- "end": 2328,
+ "start": 1858,
+ "end": 1864,
"loc": {
"start": {
- "line": 81,
+ "line": 71,
"column": 13
},
"end": {
- "line": 81,
+ "line": 71,
"column": 19
},
"identifierName": "rename"
@@ -2409,15 +1997,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 2329,
- "end": 2337,
+ "start": 1865,
+ "end": 1873,
"loc": {
"start": {
- "line": 81,
+ "line": 71,
"column": 20
},
"end": {
- "line": 81,
+ "line": 71,
"column": 28
},
"identifierName": "iconName"
@@ -2431,15 +2019,15 @@
{
"type": "CommentLine",
"value": " Set name",
- "start": 2296,
- "end": 2307,
+ "start": 1832,
+ "end": 1843,
"loc": {
"start": {
- "line": 80,
+ "line": 70,
"column": 8
},
"end": {
- "line": 80,
+ "line": 70,
"column": 19
}
}
@@ -2449,15 +2037,15 @@
{
"type": "CommentLine",
"value": " Set size",
- "start": 2349,
- "end": 2360,
+ "start": 1885,
+ "end": 1896,
"loc": {
"start": {
- "line": 82,
+ "line": 72,
"column": 8
},
"end": {
- "line": 82,
+ "line": 72,
"column": 19
}
}
@@ -2466,57 +2054,57 @@
},
{
"type": "ExpressionStatement",
- "start": 2370,
- "end": 2406,
+ "start": 1906,
+ "end": 1942,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 8
},
"end": {
- "line": 83,
+ "line": 73,
"column": 44
}
},
"expression": {
"type": "CallExpression",
- "start": 2370,
- "end": 2405,
+ "start": 1906,
+ "end": 1941,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 8
},
"end": {
- "line": 83,
+ "line": 73,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
- "start": 2370,
- "end": 2382,
+ "start": 1906,
+ "end": 1918,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 8
},
"end": {
- "line": 83,
+ "line": 73,
"column": 20
}
},
"object": {
"type": "ThisExpression",
- "start": 2370,
- "end": 2374,
+ "start": 1906,
+ "end": 1910,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 8
},
"end": {
- "line": 83,
+ "line": 73,
"column": 12
}
},
@@ -2524,15 +2112,15 @@
},
"property": {
"type": "Identifier",
- "start": 2375,
- "end": 2382,
+ "start": 1911,
+ "end": 1918,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 13
},
"end": {
- "line": 83,
+ "line": 73,
"column": 20
},
"identifierName": "setSize"
@@ -2545,15 +2133,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 2383,
- "end": 2392,
+ "start": 1919,
+ "end": 1928,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 21
},
"end": {
- "line": 83,
+ "line": 73,
"column": 30
},
"identifierName": "iconWidth"
@@ -2562,15 +2150,15 @@
},
{
"type": "Identifier",
- "start": 2394,
- "end": 2404,
+ "start": 1930,
+ "end": 1940,
"loc": {
"start": {
- "line": 83,
+ "line": 73,
"column": 32
},
"end": {
- "line": 83,
+ "line": 73,
"column": 42
},
"identifierName": "iconHeight"
@@ -2584,15 +2172,15 @@
{
"type": "CommentLine",
"value": " Set size",
- "start": 2349,
- "end": 2360,
+ "start": 1885,
+ "end": 1896,
"loc": {
"start": {
- "line": 82,
+ "line": 72,
"column": 8
},
"end": {
- "line": 82,
+ "line": 72,
"column": 19
}
}
@@ -2602,15 +2190,15 @@
{
"type": "CommentLine",
"value": " Set icon delay",
- "start": 2416,
- "end": 2433,
+ "start": 1952,
+ "end": 1969,
"loc": {
"start": {
- "line": 84,
+ "line": 74,
"column": 8
},
"end": {
- "line": 84,
+ "line": 74,
"column": 25
}
}
@@ -2619,57 +2207,57 @@
},
{
"type": "ExpressionStatement",
- "start": 2443,
- "end": 2468,
+ "start": 1979,
+ "end": 2004,
"loc": {
"start": {
- "line": 85,
+ "line": 75,
"column": 8
},
"end": {
- "line": 85,
+ "line": 75,
"column": 33
}
},
"expression": {
"type": "CallExpression",
- "start": 2443,
- "end": 2467,
+ "start": 1979,
+ "end": 2003,
"loc": {
"start": {
- "line": 85,
+ "line": 75,
"column": 8
},
"end": {
- "line": 85,
+ "line": 75,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
- "start": 2443,
- "end": 2456,
+ "start": 1979,
+ "end": 1992,
"loc": {
"start": {
- "line": 85,
+ "line": 75,
"column": 8
},
"end": {
- "line": 85,
+ "line": 75,
"column": 21
}
},
"object": {
"type": "ThisExpression",
- "start": 2443,
- "end": 2447,
+ "start": 1979,
+ "end": 1983,
"loc": {
"start": {
- "line": 85,
+ "line": 75,
"column": 8
},
"end": {
- "line": 85,
+ "line": 75,
"column": 12
}
},
@@ -2677,15 +2265,15 @@
},
"property": {
"type": "Identifier",
- "start": 2448,
- "end": 2456,
+ "start": 1984,
+ "end": 1992,
"loc": {
"start": {
- "line": 85,
+ "line": 75,
"column": 13
},
"end": {
- "line": 85,
+ "line": 75,
"column": 21
},
"identifierName": "setDelay"
@@ -2698,15 +2286,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 2457,
- "end": 2466,
+ "start": 1993,
+ "end": 2002,
"loc": {
"start": {
- "line": 85,
+ "line": 75,
"column": 22
},
"end": {
- "line": 85,
+ "line": 75,
"column": 31
},
"identifierName": "iconDelay"
@@ -2720,15 +2308,15 @@
{
"type": "CommentLine",
"value": " Set icon delay",
- "start": 2416,
- "end": 2433,
+ "start": 1952,
+ "end": 1969,
"loc": {
"start": {
- "line": 84,
+ "line": 74,
"column": 8
},
"end": {
- "line": 84,
+ "line": 74,
"column": 25
}
}
@@ -2738,15 +2326,15 @@
{
"type": "CommentLine",
"value": " Set dataURL",
- "start": 2478,
- "end": 2492,
+ "start": 2014,
+ "end": 2028,
"loc": {
"start": {
- "line": 86,
+ "line": 76,
"column": 8
},
"end": {
- "line": 86,
+ "line": 76,
"column": 22
}
}
@@ -2755,57 +2343,57 @@
},
{
"type": "ExpressionStatement",
- "start": 2502,
- "end": 2531,
+ "start": 2038,
+ "end": 2067,
"loc": {
"start": {
- "line": 87,
+ "line": 77,
"column": 8
},
"end": {
- "line": 87,
+ "line": 77,
"column": 37
}
},
"expression": {
"type": "CallExpression",
- "start": 2502,
- "end": 2530,
+ "start": 2038,
+ "end": 2066,
"loc": {
"start": {
- "line": 87,
+ "line": 77,
"column": 8
},
"end": {
- "line": 87,
+ "line": 77,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
- "start": 2502,
- "end": 2517,
+ "start": 2038,
+ "end": 2053,
"loc": {
"start": {
- "line": 87,
+ "line": 77,
"column": 8
},
"end": {
- "line": 87,
+ "line": 77,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 2502,
- "end": 2506,
+ "start": 2038,
+ "end": 2042,
"loc": {
"start": {
- "line": 87,
+ "line": 77,
"column": 8
},
"end": {
- "line": 87,
+ "line": 77,
"column": 12
}
},
@@ -2813,15 +2401,15 @@
},
"property": {
"type": "Identifier",
- "start": 2507,
- "end": 2517,
+ "start": 2043,
+ "end": 2053,
"loc": {
"start": {
- "line": 87,
+ "line": 77,
"column": 13
},
"end": {
- "line": 87,
+ "line": 77,
"column": 23
},
"identifierName": "setDataURL"
@@ -2834,15 +2422,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 2518,
- "end": 2529,
+ "start": 2054,
+ "end": 2065,
"loc": {
"start": {
- "line": 87,
+ "line": 77,
"column": 24
},
"end": {
- "line": 87,
+ "line": 77,
"column": 35
},
"identifierName": "iconDataURL"
@@ -2856,15 +2444,15 @@
{
"type": "CommentLine",
"value": " Set dataURL",
- "start": 2478,
- "end": 2492,
+ "start": 2014,
+ "end": 2028,
"loc": {
"start": {
- "line": 86,
+ "line": 76,
"column": 8
},
"end": {
- "line": 86,
+ "line": 76,
"column": 22
}
}
@@ -2874,15 +2462,15 @@
{
"type": "CommentLine",
"value": " Check if the frame data is an array",
- "start": 2541,
- "end": 2579,
+ "start": 2077,
+ "end": 2115,
"loc": {
"start": {
- "line": 88,
+ "line": 78,
"column": 8
},
"end": {
- "line": 88,
+ "line": 78,
"column": 46
}
}
@@ -2891,57 +2479,57 @@
},
{
"type": "IfStatement",
- "start": 2589,
- "end": 2962,
+ "start": 2125,
+ "end": 2498,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 8
},
"end": {
- "line": 97,
+ "line": 87,
"column": 9
}
},
"test": {
"type": "CallExpression",
- "start": 2593,
- "end": 2618,
+ "start": 2129,
+ "end": 2154,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 12
},
"end": {
- "line": 89,
+ "line": 79,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
- "start": 2593,
- "end": 2606,
+ "start": 2129,
+ "end": 2142,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 12
},
"end": {
- "line": 89,
+ "line": 79,
"column": 25
}
},
"object": {
"type": "Identifier",
- "start": 2593,
- "end": 2598,
+ "start": 2129,
+ "end": 2134,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 12
},
"end": {
- "line": 89,
+ "line": 79,
"column": 17
},
"identifierName": "Array"
@@ -2951,15 +2539,15 @@
},
"property": {
"type": "Identifier",
- "start": 2599,
- "end": 2606,
+ "start": 2135,
+ "end": 2142,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 18
},
"end": {
- "line": 89,
+ "line": 79,
"column": 25
},
"identifierName": "isArray"
@@ -2972,15 +2560,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 2607,
- "end": 2617,
+ "start": 2143,
+ "end": 2153,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 26
},
"end": {
- "line": 89,
+ "line": 79,
"column": 36
},
"identifierName": "frameArray"
@@ -2992,58 +2580,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 2620,
- "end": 2962,
+ "start": 2156,
+ "end": 2498,
"loc": {
"start": {
- "line": 89,
+ "line": 79,
"column": 39
},
"end": {
- "line": 97,
+ "line": 87,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 2705,
- "end": 2951,
+ "start": 2241,
+ "end": 2487,
"loc": {
"start": {
- "line": 91,
+ "line": 81,
"column": 12
},
"end": {
- "line": 96,
+ "line": 86,
"column": 13
}
},
"test": {
"type": "MemberExpression",
- "start": 2709,
- "end": 2726,
+ "start": 2245,
+ "end": 2262,
"loc": {
"start": {
- "line": 91,
+ "line": 81,
"column": 16
},
"end": {
- "line": 91,
+ "line": 81,
"column": 33
}
},
"object": {
"type": "Identifier",
- "start": 2709,
- "end": 2719,
+ "start": 2245,
+ "end": 2255,
"loc": {
"start": {
- "line": 91,
+ "line": 81,
"column": 16
},
"end": {
- "line": 91,
+ "line": 81,
"column": 26
},
"identifierName": "frameArray"
@@ -3053,15 +2641,15 @@
},
"property": {
"type": "Identifier",
- "start": 2720,
- "end": 2726,
+ "start": 2256,
+ "end": 2262,
"loc": {
"start": {
- "line": 91,
+ "line": 81,
"column": 27
},
"end": {
- "line": 91,
+ "line": 81,
"column": 33
},
"identifierName": "length"
@@ -3073,72 +2661,72 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 2728,
- "end": 2951,
+ "start": 2264,
+ "end": 2487,
"loc": {
"start": {
- "line": 91,
+ "line": 81,
"column": 35
},
"end": {
- "line": 96,
+ "line": 86,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 2747,
- "end": 2936,
+ "start": 2283,
+ "end": 2472,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 16
},
"end": {
- "line": 95,
+ "line": 85,
"column": 19
}
},
"expression": {
"type": "CallExpression",
- "start": 2747,
- "end": 2935,
+ "start": 2283,
+ "end": 2471,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 16
},
"end": {
- "line": 95,
+ "line": 85,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
- "start": 2747,
- "end": 2765,
+ "start": 2283,
+ "end": 2301,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 16
},
"end": {
- "line": 92,
+ "line": 82,
"column": 34
}
},
"object": {
"type": "Identifier",
- "start": 2747,
- "end": 2757,
+ "start": 2283,
+ "end": 2293,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 16
},
"end": {
- "line": 92,
+ "line": 82,
"column": 26
},
"identifierName": "frameArray"
@@ -3147,15 +2735,15 @@
},
"property": {
"type": "Identifier",
- "start": 2758,
- "end": 2765,
+ "start": 2294,
+ "end": 2301,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 27
},
"end": {
- "line": 92,
+ "line": 82,
"column": 34
},
"identifierName": "forEach"
@@ -3167,15 +2755,15 @@
"arguments": [
{
"type": "ArrowFunctionExpression",
- "start": 2766,
- "end": 2934,
+ "start": 2302,
+ "end": 2470,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 35
},
"end": {
- "line": 95,
+ "line": 85,
"column": 17
}
},
@@ -3186,15 +2774,15 @@
"params": [
{
"type": "Identifier",
- "start": 2767,
- "end": 2773,
+ "start": 2303,
+ "end": 2309,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 36
},
"end": {
- "line": 92,
+ "line": 82,
"column": 42
},
"identifierName": "pFrame"
@@ -3204,72 +2792,72 @@
],
"body": {
"type": "BlockStatement",
- "start": 2778,
- "end": 2934,
+ "start": 2314,
+ "end": 2470,
"loc": {
"start": {
- "line": 92,
+ "line": 82,
"column": 47
},
"end": {
- "line": 95,
+ "line": 85,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 2893,
- "end": 2915,
+ "start": 2429,
+ "end": 2451,
"loc": {
"start": {
- "line": 94,
+ "line": 84,
"column": 20
},
"end": {
- "line": 94,
+ "line": 84,
"column": 42
}
},
"expression": {
"type": "CallExpression",
- "start": 2893,
- "end": 2914,
+ "start": 2429,
+ "end": 2450,
"loc": {
"start": {
- "line": 94,
+ "line": 84,
"column": 20
},
"end": {
- "line": 94,
+ "line": 84,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
- "start": 2893,
- "end": 2906,
+ "start": 2429,
+ "end": 2442,
"loc": {
"start": {
- "line": 94,
+ "line": 84,
"column": 20
},
"end": {
- "line": 94,
+ "line": 84,
"column": 33
}
},
"object": {
"type": "ThisExpression",
- "start": 2893,
- "end": 2897,
+ "start": 2429,
+ "end": 2433,
"loc": {
"start": {
- "line": 94,
+ "line": 84,
"column": 20
},
"end": {
- "line": 94,
+ "line": 84,
"column": 24
}
},
@@ -3277,15 +2865,15 @@
},
"property": {
"type": "Identifier",
- "start": 2898,
- "end": 2906,
+ "start": 2434,
+ "end": 2442,
"loc": {
"start": {
- "line": 94,
+ "line": 84,
"column": 25
},
"end": {
- "line": 94,
+ "line": 84,
"column": 33
},
"identifierName": "addFrame"
@@ -3298,15 +2886,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 2907,
- "end": 2913,
+ "start": 2443,
+ "end": 2449,
"loc": {
"start": {
- "line": 94,
+ "line": 84,
"column": 34
},
"end": {
- "line": 94,
+ "line": 84,
"column": 40
},
"identifierName": "pFrame"
@@ -3320,15 +2908,15 @@
{
"type": "CommentLine",
"value": " pFrame is an array holding the datalURL and frameDelay of the frame",
- "start": 2801,
- "end": 2871,
+ "start": 2337,
+ "end": 2407,
"loc": {
"start": {
- "line": 93,
+ "line": 83,
"column": 20
},
"end": {
- "line": 93,
+ "line": 83,
"column": 90
}
}
@@ -3350,15 +2938,15 @@
{
"type": "CommentLine",
"value": " If the frame array has data then we need to store it.",
- "start": 2635,
- "end": 2691,
+ "start": 2171,
+ "end": 2227,
"loc": {
"start": {
- "line": 90,
+ "line": 80,
"column": 12
},
"end": {
- "line": 90,
+ "line": 80,
"column": 68
}
}
@@ -3374,15 +2962,15 @@
{
"type": "CommentLine",
"value": " Check if the frame data is an array",
- "start": 2541,
- "end": 2579,
+ "start": 2077,
+ "end": 2115,
"loc": {
"start": {
- "line": 88,
+ "line": 78,
"column": 8
},
"end": {
- "line": 88,
+ "line": 78,
"column": 46
}
}
@@ -3392,15 +2980,15 @@
{
"type": "CommentLine",
"value": " Check if the states data is an array",
- "start": 2972,
- "end": 3011,
+ "start": 2508,
+ "end": 2547,
"loc": {
"start": {
- "line": 98,
+ "line": 88,
"column": 8
},
"end": {
- "line": 98,
+ "line": 88,
"column": 47
}
}
@@ -3409,57 +2997,57 @@
},
{
"type": "IfStatement",
- "start": 3021,
- "end": 4224,
+ "start": 2557,
+ "end": 3760,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 8
},
"end": {
- "line": 121,
+ "line": 111,
"column": 9
}
},
"test": {
"type": "CallExpression",
- "start": 3025,
- "end": 3050,
+ "start": 2561,
+ "end": 2586,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 12
},
"end": {
- "line": 99,
+ "line": 89,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
- "start": 3025,
- "end": 3038,
+ "start": 2561,
+ "end": 2574,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 12
},
"end": {
- "line": 99,
+ "line": 89,
"column": 25
}
},
"object": {
"type": "Identifier",
- "start": 3025,
- "end": 3030,
+ "start": 2561,
+ "end": 2566,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 12
},
"end": {
- "line": 99,
+ "line": 89,
"column": 17
},
"identifierName": "Array"
@@ -3469,15 +3057,15 @@
},
"property": {
"type": "Identifier",
- "start": 3031,
- "end": 3038,
+ "start": 2567,
+ "end": 2574,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 18
},
"end": {
- "line": 99,
+ "line": 89,
"column": 25
},
"identifierName": "isArray"
@@ -3490,15 +3078,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 3039,
- "end": 3049,
+ "start": 2575,
+ "end": 2585,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 26
},
"end": {
- "line": 99,
+ "line": 89,
"column": 36
},
"identifierName": "stateArray"
@@ -3510,58 +3098,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 3052,
- "end": 4224,
+ "start": 2588,
+ "end": 3760,
"loc": {
"start": {
- "line": 99,
+ "line": 89,
"column": 39
},
"end": {
- "line": 121,
+ "line": 111,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 3137,
- "end": 4213,
+ "start": 2673,
+ "end": 3749,
"loc": {
"start": {
- "line": 101,
+ "line": 91,
"column": 12
},
"end": {
- "line": 120,
+ "line": 110,
"column": 13
}
},
"test": {
"type": "MemberExpression",
- "start": 3141,
- "end": 3158,
+ "start": 2677,
+ "end": 2694,
"loc": {
"start": {
- "line": 101,
+ "line": 91,
"column": 16
},
"end": {
- "line": 101,
+ "line": 91,
"column": 33
}
},
"object": {
"type": "Identifier",
- "start": 3141,
- "end": 3151,
+ "start": 2677,
+ "end": 2687,
"loc": {
"start": {
- "line": 101,
+ "line": 91,
"column": 16
},
"end": {
- "line": 101,
+ "line": 91,
"column": 26
},
"identifierName": "stateArray"
@@ -3571,15 +3159,15 @@
},
"property": {
"type": "Identifier",
- "start": 3152,
- "end": 3158,
+ "start": 2688,
+ "end": 2694,
"loc": {
"start": {
- "line": 101,
+ "line": 91,
"column": 27
},
"end": {
- "line": 101,
+ "line": 91,
"column": 33
},
"identifierName": "length"
@@ -3591,72 +3179,72 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 3160,
- "end": 4213,
+ "start": 2696,
+ "end": 3749,
"loc": {
"start": {
- "line": 101,
+ "line": 91,
"column": 35
},
"end": {
- "line": 120,
+ "line": 110,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 3179,
- "end": 4198,
+ "start": 2715,
+ "end": 3734,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 16
},
"end": {
- "line": 119,
+ "line": 109,
"column": 19
}
},
"expression": {
"type": "CallExpression",
- "start": 3179,
- "end": 4197,
+ "start": 2715,
+ "end": 3733,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 16
},
"end": {
- "line": 119,
+ "line": 109,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
- "start": 3179,
- "end": 3197,
+ "start": 2715,
+ "end": 2733,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 16
},
"end": {
- "line": 102,
+ "line": 92,
"column": 34
}
},
"object": {
"type": "Identifier",
- "start": 3179,
- "end": 3189,
+ "start": 2715,
+ "end": 2725,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 16
},
"end": {
- "line": 102,
+ "line": 92,
"column": 26
},
"identifierName": "stateArray"
@@ -3665,15 +3253,15 @@
},
"property": {
"type": "Identifier",
- "start": 3190,
- "end": 3197,
+ "start": 2726,
+ "end": 2733,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 27
},
"end": {
- "line": 102,
+ "line": 92,
"column": 34
},
"identifierName": "forEach"
@@ -3685,15 +3273,15 @@
"arguments": [
{
"type": "ArrowFunctionExpression",
- "start": 3198,
- "end": 4196,
+ "start": 2734,
+ "end": 3732,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 35
},
"end": {
- "line": 119,
+ "line": 109,
"column": 17
}
},
@@ -3704,15 +3292,15 @@
"params": [
{
"type": "Identifier",
- "start": 3199,
- "end": 3205,
+ "start": 2735,
+ "end": 2741,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 36
},
"end": {
- "line": 102,
+ "line": 92,
"column": 42
},
"identifierName": "pState"
@@ -3722,59 +3310,59 @@
],
"body": {
"type": "BlockStatement",
- "start": 3210,
- "end": 4196,
+ "start": 2746,
+ "end": 3732,
"loc": {
"start": {
- "line": 102,
+ "line": 92,
"column": 47
},
"end": {
- "line": 119,
+ "line": 109,
"column": 17
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 3544,
- "end": 3574,
+ "start": 3080,
+ "end": 3110,
"loc": {
"start": {
- "line": 105,
+ "line": 95,
"column": 20
},
"end": {
- "line": 105,
+ "line": 95,
"column": 50
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 3550,
- "end": 3573,
+ "start": 3086,
+ "end": 3109,
"loc": {
"start": {
- "line": 105,
+ "line": 95,
"column": 26
},
"end": {
- "line": 105,
+ "line": 95,
"column": 49
}
},
"id": {
"type": "Identifier",
- "start": 3550,
- "end": 3568,
+ "start": 3086,
+ "end": 3104,
"loc": {
"start": {
- "line": 105,
+ "line": 95,
"column": 26
},
"end": {
- "line": 105,
+ "line": 95,
"column": 44
},
"identifierName": "aggregatedIconData"
@@ -3784,15 +3372,15 @@
},
"init": {
"type": "ArrayExpression",
- "start": 3571,
- "end": 3573,
+ "start": 3107,
+ "end": 3109,
"loc": {
"start": {
- "line": 105,
+ "line": 95,
"column": 47
},
"end": {
- "line": 105,
+ "line": 95,
"column": 49
}
},
@@ -3806,15 +3394,15 @@
{
"type": "CommentLine",
"value": " Here we create a icon with aggregated data because the state data is not enough to make it an icon.",
- "start": 3233,
- "end": 3335,
+ "start": 2769,
+ "end": 2871,
"loc": {
"start": {
- "line": 103,
+ "line": 93,
"column": 20
},
"end": {
- "line": 103,
+ "line": 93,
"column": 122
}
}
@@ -3822,15 +3410,15 @@
{
"type": "CommentLine",
"value": " We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.",
- "start": 3357,
- "end": 3522,
+ "start": 2893,
+ "end": 3058,
"loc": {
"start": {
- "line": 104,
+ "line": 94,
"column": 20
},
"end": {
- "line": 104,
+ "line": 94,
"column": 185
}
}
@@ -3840,15 +3428,15 @@
{
"type": "CommentLine",
"value": " iconName",
- "start": 3596,
- "end": 3607,
+ "start": 3132,
+ "end": 3143,
"loc": {
"start": {
- "line": 106,
+ "line": 96,
"column": 20
},
"end": {
- "line": 106,
+ "line": 96,
"column": 31
}
}
@@ -3857,58 +3445,58 @@
},
{
"type": "ExpressionStatement",
- "start": 3629,
- "end": 3663,
+ "start": 3165,
+ "end": 3199,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 20
},
"end": {
- "line": 107,
+ "line": 97,
"column": 54
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 3629,
- "end": 3662,
+ "start": 3165,
+ "end": 3198,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 20
},
"end": {
- "line": 107,
+ "line": 97,
"column": 53
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 3629,
- "end": 3650,
+ "start": 3165,
+ "end": 3186,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 20
},
"end": {
- "line": 107,
+ "line": 97,
"column": 41
}
},
"object": {
"type": "Identifier",
- "start": 3629,
- "end": 3647,
+ "start": 3165,
+ "end": 3183,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 20
},
"end": {
- "line": 107,
+ "line": 97,
"column": 38
},
"identifierName": "aggregatedIconData"
@@ -3918,15 +3506,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 3648,
- "end": 3649,
+ "start": 3184,
+ "end": 3185,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 39
},
"end": {
- "line": 107,
+ "line": 97,
"column": 40
}
},
@@ -3941,29 +3529,29 @@
},
"right": {
"type": "MemberExpression",
- "start": 3653,
- "end": 3662,
+ "start": 3189,
+ "end": 3198,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 44
},
"end": {
- "line": 107,
+ "line": 97,
"column": 53
}
},
"object": {
"type": "Identifier",
- "start": 3653,
- "end": 3659,
+ "start": 3189,
+ "end": 3195,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 44
},
"end": {
- "line": 107,
+ "line": 97,
"column": 50
},
"identifierName": "pState"
@@ -3972,15 +3560,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 3660,
- "end": 3661,
+ "start": 3196,
+ "end": 3197,
"loc": {
"start": {
- "line": 107,
+ "line": 97,
"column": 51
},
"end": {
- "line": 107,
+ "line": 97,
"column": 52
}
},
@@ -3998,15 +3586,15 @@
{
"type": "CommentLine",
"value": " iconName",
- "start": 3596,
- "end": 3607,
+ "start": 3132,
+ "end": 3143,
"loc": {
"start": {
- "line": 106,
+ "line": 96,
"column": 20
},
"end": {
- "line": 106,
+ "line": 96,
"column": 31
}
}
@@ -4016,15 +3604,15 @@
{
"type": "CommentLine",
"value": " iconWidth",
- "start": 3685,
- "end": 3697,
+ "start": 3221,
+ "end": 3233,
"loc": {
"start": {
- "line": 108,
+ "line": 98,
"column": 20
},
"end": {
- "line": 108,
+ "line": 98,
"column": 32
}
}
@@ -4033,58 +3621,58 @@
},
{
"type": "ExpressionStatement",
- "start": 3719,
- "end": 3753,
+ "start": 3255,
+ "end": 3289,
"loc": {
"start": {
- "line": 109,
+ "line": 99,
"column": 20
},
"end": {
- "line": 109,
+ "line": 99,
"column": 54
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 3719,
- "end": 3752,
+ "start": 3255,
+ "end": 3288,
"loc": {
"start": {
- "line": 109,
+ "line": 99,
"column": 20
},
"end": {
- "line": 109,
+ "line": 99,
"column": 53
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 3719,
- "end": 3740,
+ "start": 3255,
+ "end": 3276,
"loc": {
"start": {
- "line": 109,
+ "line": 99,
"column": 20
},
"end": {
- "line": 109,
+ "line": 99,
"column": 41
}
},
"object": {
"type": "Identifier",
- "start": 3719,
- "end": 3737,
+ "start": 3255,
+ "end": 3273,
"loc": {
"start": {
- "line": 109,
+ "line": 99,
"column": 20
},
"end": {
- "line": 109,
+ "line": 99,
"column": 38
},
"identifierName": "aggregatedIconData"
@@ -4094,15 +3682,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 3738,
- "end": 3739,
+ "start": 3274,
+ "end": 3275,
"loc": {
"start": {
- "line": 109,
+ "line": 99,
"column": 39
},
"end": {
- "line": 109,
+ "line": 99,
"column": 40
}
},
@@ -4117,15 +3705,15 @@
},
"right": {
"type": "Identifier",
- "start": 3743,
- "end": 3752,
+ "start": 3279,
+ "end": 3288,
"loc": {
"start": {
- "line": 109,
+ "line": 99,
"column": 44
},
"end": {
- "line": 109,
+ "line": 99,
"column": 53
},
"identifierName": "iconWidth"
@@ -4138,15 +3726,15 @@
{
"type": "CommentLine",
"value": " iconWidth",
- "start": 3685,
- "end": 3697,
+ "start": 3221,
+ "end": 3233,
"loc": {
"start": {
- "line": 108,
+ "line": 98,
"column": 20
},
"end": {
- "line": 108,
+ "line": 98,
"column": 32
}
}
@@ -4156,15 +3744,15 @@
{
"type": "CommentLine",
"value": " iconHeight",
- "start": 3775,
- "end": 3788,
+ "start": 3311,
+ "end": 3324,
"loc": {
"start": {
- "line": 110,
+ "line": 100,
"column": 20
},
"end": {
- "line": 110,
+ "line": 100,
"column": 33
}
}
@@ -4173,58 +3761,58 @@
},
{
"type": "ExpressionStatement",
- "start": 3810,
- "end": 3845,
+ "start": 3346,
+ "end": 3381,
"loc": {
"start": {
- "line": 111,
+ "line": 101,
"column": 20
},
"end": {
- "line": 111,
+ "line": 101,
"column": 55
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 3810,
- "end": 3844,
+ "start": 3346,
+ "end": 3380,
"loc": {
"start": {
- "line": 111,
+ "line": 101,
"column": 20
},
"end": {
- "line": 111,
+ "line": 101,
"column": 54
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 3810,
- "end": 3831,
+ "start": 3346,
+ "end": 3367,
"loc": {
"start": {
- "line": 111,
+ "line": 101,
"column": 20
},
"end": {
- "line": 111,
+ "line": 101,
"column": 41
}
},
"object": {
"type": "Identifier",
- "start": 3810,
- "end": 3828,
+ "start": 3346,
+ "end": 3364,
"loc": {
"start": {
- "line": 111,
+ "line": 101,
"column": 20
},
"end": {
- "line": 111,
+ "line": 101,
"column": 38
},
"identifierName": "aggregatedIconData"
@@ -4234,15 +3822,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 3829,
- "end": 3830,
+ "start": 3365,
+ "end": 3366,
"loc": {
"start": {
- "line": 111,
+ "line": 101,
"column": 39
},
"end": {
- "line": 111,
+ "line": 101,
"column": 40
}
},
@@ -4257,15 +3845,15 @@
},
"right": {
"type": "Identifier",
- "start": 3834,
- "end": 3844,
+ "start": 3370,
+ "end": 3380,
"loc": {
"start": {
- "line": 111,
+ "line": 101,
"column": 44
},
"end": {
- "line": 111,
+ "line": 101,
"column": 54
},
"identifierName": "iconHeight"
@@ -4278,15 +3866,15 @@
{
"type": "CommentLine",
"value": " iconHeight",
- "start": 3775,
- "end": 3788,
+ "start": 3311,
+ "end": 3324,
"loc": {
"start": {
- "line": 110,
+ "line": 100,
"column": 20
},
"end": {
- "line": 110,
+ "line": 100,
"column": 33
}
}
@@ -4296,15 +3884,15 @@
{
"type": "CommentLine",
"value": " frame delay",
- "start": 3867,
- "end": 3881,
+ "start": 3403,
+ "end": 3417,
"loc": {
"start": {
- "line": 112,
+ "line": 102,
"column": 20
},
"end": {
- "line": 112,
+ "line": 102,
"column": 34
}
}
@@ -4313,58 +3901,58 @@
},
{
"type": "ExpressionStatement",
- "start": 3903,
- "end": 3937,
+ "start": 3439,
+ "end": 3473,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 20
},
"end": {
- "line": 113,
+ "line": 103,
"column": 54
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 3903,
- "end": 3936,
+ "start": 3439,
+ "end": 3472,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 20
},
"end": {
- "line": 113,
+ "line": 103,
"column": 53
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 3903,
- "end": 3924,
+ "start": 3439,
+ "end": 3460,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 20
},
"end": {
- "line": 113,
+ "line": 103,
"column": 41
}
},
"object": {
"type": "Identifier",
- "start": 3903,
- "end": 3921,
+ "start": 3439,
+ "end": 3457,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 20
},
"end": {
- "line": 113,
+ "line": 103,
"column": 38
},
"identifierName": "aggregatedIconData"
@@ -4374,15 +3962,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 3922,
- "end": 3923,
+ "start": 3458,
+ "end": 3459,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 39
},
"end": {
- "line": 113,
+ "line": 103,
"column": 40
}
},
@@ -4397,29 +3985,29 @@
},
"right": {
"type": "MemberExpression",
- "start": 3927,
- "end": 3936,
+ "start": 3463,
+ "end": 3472,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 44
},
"end": {
- "line": 113,
+ "line": 103,
"column": 53
}
},
"object": {
"type": "Identifier",
- "start": 3927,
- "end": 3933,
+ "start": 3463,
+ "end": 3469,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 44
},
"end": {
- "line": 113,
+ "line": 103,
"column": 50
},
"identifierName": "pState"
@@ -4428,15 +4016,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 3934,
- "end": 3935,
+ "start": 3470,
+ "end": 3471,
"loc": {
"start": {
- "line": 113,
+ "line": 103,
"column": 51
},
"end": {
- "line": 113,
+ "line": 103,
"column": 52
}
},
@@ -4454,15 +4042,15 @@
{
"type": "CommentLine",
"value": " frame delay",
- "start": 3867,
- "end": 3881,
+ "start": 3403,
+ "end": 3417,
"loc": {
"start": {
- "line": 112,
+ "line": 102,
"column": 20
},
"end": {
- "line": 112,
+ "line": 102,
"column": 34
}
}
@@ -4472,15 +4060,15 @@
{
"type": "CommentLine",
"value": " iconDataURL",
- "start": 3959,
- "end": 3973,
+ "start": 3495,
+ "end": 3509,
"loc": {
"start": {
- "line": 114,
+ "line": 104,
"column": 20
},
"end": {
- "line": 114,
+ "line": 104,
"column": 34
}
}
@@ -4489,58 +4077,58 @@
},
{
"type": "ExpressionStatement",
- "start": 3995,
- "end": 4029,
+ "start": 3531,
+ "end": 3565,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 20
},
"end": {
- "line": 115,
+ "line": 105,
"column": 54
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 3995,
- "end": 4028,
+ "start": 3531,
+ "end": 3564,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 20
},
"end": {
- "line": 115,
+ "line": 105,
"column": 53
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 3995,
- "end": 4016,
+ "start": 3531,
+ "end": 3552,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 20
},
"end": {
- "line": 115,
+ "line": 105,
"column": 41
}
},
"object": {
"type": "Identifier",
- "start": 3995,
- "end": 4013,
+ "start": 3531,
+ "end": 3549,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 20
},
"end": {
- "line": 115,
+ "line": 105,
"column": 38
},
"identifierName": "aggregatedIconData"
@@ -4550,15 +4138,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 4014,
- "end": 4015,
+ "start": 3550,
+ "end": 3551,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 39
},
"end": {
- "line": 115,
+ "line": 105,
"column": 40
}
},
@@ -4573,29 +4161,29 @@
},
"right": {
"type": "MemberExpression",
- "start": 4019,
- "end": 4028,
+ "start": 3555,
+ "end": 3564,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 44
},
"end": {
- "line": 115,
+ "line": 105,
"column": 53
}
},
"object": {
"type": "Identifier",
- "start": 4019,
- "end": 4025,
+ "start": 3555,
+ "end": 3561,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 44
},
"end": {
- "line": 115,
+ "line": 105,
"column": 50
},
"identifierName": "pState"
@@ -4604,15 +4192,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 4026,
- "end": 4027,
+ "start": 3562,
+ "end": 3563,
"loc": {
"start": {
- "line": 115,
+ "line": 105,
"column": 51
},
"end": {
- "line": 115,
+ "line": 105,
"column": 52
}
},
@@ -4630,15 +4218,15 @@
{
"type": "CommentLine",
"value": " iconDataURL",
- "start": 3959,
- "end": 3973,
+ "start": 3495,
+ "end": 3509,
"loc": {
"start": {
- "line": 114,
+ "line": 104,
"column": 20
},
"end": {
- "line": 114,
+ "line": 104,
"column": 34
}
}
@@ -4648,15 +4236,15 @@
{
"type": "CommentLine",
"value": " frame array",
- "start": 4051,
- "end": 4065,
+ "start": 3587,
+ "end": 3601,
"loc": {
"start": {
- "line": 116,
+ "line": 106,
"column": 20
},
"end": {
- "line": 116,
+ "line": 106,
"column": 34
}
}
@@ -4665,58 +4253,58 @@
},
{
"type": "ExpressionStatement",
- "start": 4087,
- "end": 4121,
+ "start": 3623,
+ "end": 3657,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 20
},
"end": {
- "line": 117,
+ "line": 107,
"column": 54
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 4087,
- "end": 4120,
+ "start": 3623,
+ "end": 3656,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 20
},
"end": {
- "line": 117,
+ "line": 107,
"column": 53
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 4087,
- "end": 4108,
+ "start": 3623,
+ "end": 3644,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 20
},
"end": {
- "line": 117,
+ "line": 107,
"column": 41
}
},
"object": {
"type": "Identifier",
- "start": 4087,
- "end": 4105,
+ "start": 3623,
+ "end": 3641,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 20
},
"end": {
- "line": 117,
+ "line": 107,
"column": 38
},
"identifierName": "aggregatedIconData"
@@ -4726,15 +4314,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 4106,
- "end": 4107,
+ "start": 3642,
+ "end": 3643,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 39
},
"end": {
- "line": 117,
+ "line": 107,
"column": 40
}
},
@@ -4749,29 +4337,29 @@
},
"right": {
"type": "MemberExpression",
- "start": 4111,
- "end": 4120,
+ "start": 3647,
+ "end": 3656,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 44
},
"end": {
- "line": 117,
+ "line": 107,
"column": 53
}
},
"object": {
"type": "Identifier",
- "start": 4111,
- "end": 4117,
+ "start": 3647,
+ "end": 3653,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 44
},
"end": {
- "line": 117,
+ "line": 107,
"column": 50
},
"identifierName": "pState"
@@ -4780,15 +4368,15 @@
},
"property": {
"type": "NumericLiteral",
- "start": 4118,
- "end": 4119,
+ "start": 3654,
+ "end": 3655,
"loc": {
"start": {
- "line": 117,
+ "line": 107,
"column": 51
},
"end": {
- "line": 117,
+ "line": 107,
"column": 52
}
},
@@ -4806,15 +4394,15 @@
{
"type": "CommentLine",
"value": " frame array",
- "start": 4051,
- "end": 4065,
+ "start": 3587,
+ "end": 3601,
"loc": {
"start": {
- "line": 116,
+ "line": 106,
"column": 20
},
"end": {
- "line": 116,
+ "line": 106,
"column": 34
}
}
@@ -4823,72 +4411,72 @@
},
{
"type": "ExpressionStatement",
- "start": 4143,
- "end": 4177,
+ "start": 3679,
+ "end": 3713,
"loc": {
"start": {
- "line": 118,
+ "line": 108,
"column": 20
},
"end": {
- "line": 118,
+ "line": 108,
"column": 54
}
},
"expression": {
"type": "CallExpression",
- "start": 4143,
- "end": 4176,
+ "start": 3679,
+ "end": 3712,
"loc": {
"start": {
- "line": 118,
+ "line": 108,
"column": 20
},
"end": {
- "line": 118,
+ "line": 108,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
- "start": 4143,
- "end": 4156,
+ "start": 3679,
+ "end": 3692,
"loc": {
"start": {
- "line": 118,
+ "line": 108,
"column": 20
},
"end": {
- "line": 118,
+ "line": 108,
"column": 33
}
},
"object": {
"type": "ThisExpression",
- "start": 4143,
- "end": 4147,
+ "start": 3679,
+ "end": 3683,
"loc": {
"start": {
- "line": 118,
+ "line": 108,
"column": 20
},
"end": {
- "line": 118,
+ "line": 108,
"column": 24
}
}
},
"property": {
"type": "Identifier",
- "start": 4148,
- "end": 4156,
+ "start": 3684,
+ "end": 3692,
"loc": {
"start": {
- "line": 118,
+ "line": 108,
"column": 25
},
"end": {
- "line": 118,
+ "line": 108,
"column": 33
},
"identifierName": "addState"
@@ -4900,15 +4488,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 4157,
- "end": 4175,
+ "start": 3693,
+ "end": 3711,
"loc": {
"start": {
- "line": 118,
+ "line": 108,
"column": 34
},
"end": {
- "line": 118,
+ "line": 108,
"column": 52
},
"identifierName": "aggregatedIconData"
@@ -4933,15 +4521,15 @@
{
"type": "CommentLine",
"value": " If the state array has data then we need to store it.",
- "start": 3067,
- "end": 3123,
+ "start": 2603,
+ "end": 2659,
"loc": {
"start": {
- "line": 100,
+ "line": 90,
"column": 12
},
"end": {
- "line": 100,
+ "line": 90,
"column": 68
}
}
@@ -4956,15 +4544,15 @@
{
"type": "CommentLine",
"value": " Check if the states data is an array",
- "start": 2972,
- "end": 3011,
+ "start": 2508,
+ "end": 2547,
"loc": {
"start": {
- "line": 98,
+ "line": 88,
"column": 8
},
"end": {
- "line": 98,
+ "line": 88,
"column": 47
}
}
@@ -4979,15 +4567,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
- "start": 1736,
- "end": 1913,
+ "start": 1272,
+ "end": 1449,
"loc": {
"start": {
- "line": 65,
+ "line": 55,
"column": 4
},
"end": {
- "line": 69,
+ "line": 59,
"column": 7
}
}
@@ -4997,15 +4585,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4237,
- "end": 4445,
+ "start": 3773,
+ "end": 3981,
"loc": {
"start": {
- "line": 123,
+ "line": 113,
"column": 4
},
"end": {
- "line": 128,
+ "line": 118,
"column": 7
}
}
@@ -5014,15 +4602,15 @@
},
{
"type": "ClassMethod",
- "start": 4451,
- "end": 4665,
+ "start": 3987,
+ "end": 4201,
"loc": {
"start": {
- "line": 129,
+ "line": 119,
"column": 4
},
"end": {
- "line": 136,
+ "line": 126,
"column": 5
}
},
@@ -5030,15 +4618,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 4451,
- "end": 4458,
+ "start": 3987,
+ "end": 3994,
"loc": {
"start": {
- "line": 129,
+ "line": 119,
"column": 4
},
"end": {
- "line": 129,
+ "line": 119,
"column": 11
},
"identifierName": "setSize"
@@ -5054,15 +4642,15 @@
"params": [
{
"type": "Identifier",
- "start": 4459,
- "end": 4465,
+ "start": 3995,
+ "end": 4001,
"loc": {
"start": {
- "line": 129,
+ "line": 119,
"column": 12
},
"end": {
- "line": 129,
+ "line": 119,
"column": 18
},
"identifierName": "pWidth"
@@ -5071,15 +4659,15 @@
},
{
"type": "Identifier",
- "start": 4467,
- "end": 4474,
+ "start": 4003,
+ "end": 4010,
"loc": {
"start": {
- "line": 129,
+ "line": 119,
"column": 20
},
"end": {
- "line": 129,
+ "line": 119,
"column": 27
},
"identifierName": "pHeight"
@@ -5089,58 +4677,58 @@
],
"body": {
"type": "BlockStatement",
- "start": 4476,
- "end": 4665,
+ "start": 4012,
+ "end": 4201,
"loc": {
"start": {
- "line": 129,
+ "line": 119,
"column": 29
},
"end": {
- "line": 136,
+ "line": 126,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 4487,
- "end": 4566,
+ "start": 4023,
+ "end": 4102,
"loc": {
"start": {
- "line": 130,
+ "line": 120,
"column": 8
},
"end": {
- "line": 132,
+ "line": 122,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
- "start": 4491,
- "end": 4518,
+ "start": 4027,
+ "end": 4054,
"loc": {
"start": {
- "line": 130,
+ "line": 120,
"column": 12
},
"end": {
- "line": 130,
+ "line": 120,
"column": 39
}
},
"left": {
"type": "UnaryExpression",
- "start": 4491,
- "end": 4505,
+ "start": 4027,
+ "end": 4041,
"loc": {
"start": {
- "line": 130,
+ "line": 120,
"column": 12
},
"end": {
- "line": 130,
+ "line": 120,
"column": 26
}
},
@@ -5148,15 +4736,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 4498,
- "end": 4504,
+ "start": 4034,
+ "end": 4040,
"loc": {
"start": {
- "line": 130,
+ "line": 120,
"column": 19
},
"end": {
- "line": 130,
+ "line": 120,
"column": 25
},
"identifierName": "pWidth"
@@ -5164,7 +4752,7 @@
"name": "pWidth",
"extra": {
"parenthesized": true,
- "parenStart": 4497
+ "parenStart": 4033
}
},
"extra": {
@@ -5174,15 +4762,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 4510,
- "end": 4518,
+ "start": 4046,
+ "end": 4054,
"loc": {
"start": {
- "line": 130,
+ "line": 120,
"column": 31
},
"end": {
- "line": 130,
+ "line": 120,
"column": 39
}
},
@@ -5195,88 +4783,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 4520,
- "end": 4566,
+ "start": 4056,
+ "end": 4102,
"loc": {
"start": {
- "line": 130,
+ "line": 120,
"column": 41
},
"end": {
- "line": 132,
+ "line": 122,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 4535,
- "end": 4555,
+ "start": 4071,
+ "end": 4091,
"loc": {
"start": {
- "line": 131,
+ "line": 121,
"column": 12
},
"end": {
- "line": 131,
+ "line": 121,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 4535,
- "end": 4554,
+ "start": 4071,
+ "end": 4090,
"loc": {
"start": {
- "line": 131,
+ "line": 121,
"column": 12
},
"end": {
- "line": 131,
+ "line": 121,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 4535,
- "end": 4545,
+ "start": 4071,
+ "end": 4081,
"loc": {
"start": {
- "line": 131,
+ "line": 121,
"column": 12
},
"end": {
- "line": 131,
+ "line": 121,
"column": 22
}
},
"object": {
"type": "ThisExpression",
- "start": 4535,
- "end": 4539,
+ "start": 4071,
+ "end": 4075,
"loc": {
"start": {
- "line": 131,
+ "line": 121,
"column": 12
},
"end": {
- "line": 131,
+ "line": 121,
"column": 16
}
}
},
"property": {
"type": "Identifier",
- "start": 4540,
- "end": 4545,
+ "start": 4076,
+ "end": 4081,
"loc": {
"start": {
- "line": 131,
+ "line": 121,
"column": 17
},
"end": {
- "line": 131,
+ "line": 121,
"column": 22
},
"identifierName": "width"
@@ -5287,15 +4875,15 @@
},
"right": {
"type": "Identifier",
- "start": 4548,
- "end": 4554,
+ "start": 4084,
+ "end": 4090,
"loc": {
"start": {
- "line": 131,
+ "line": 121,
"column": 25
},
"end": {
- "line": 131,
+ "line": 121,
"column": 31
},
"identifierName": "pWidth"
@@ -5311,43 +4899,43 @@
},
{
"type": "IfStatement",
- "start": 4576,
- "end": 4658,
+ "start": 4112,
+ "end": 4194,
"loc": {
"start": {
- "line": 133,
+ "line": 123,
"column": 8
},
"end": {
- "line": 135,
+ "line": 125,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
- "start": 4580,
- "end": 4608,
+ "start": 4116,
+ "end": 4144,
"loc": {
"start": {
- "line": 133,
+ "line": 123,
"column": 12
},
"end": {
- "line": 133,
+ "line": 123,
"column": 40
}
},
"left": {
"type": "UnaryExpression",
- "start": 4580,
- "end": 4595,
+ "start": 4116,
+ "end": 4131,
"loc": {
"start": {
- "line": 133,
+ "line": 123,
"column": 12
},
"end": {
- "line": 133,
+ "line": 123,
"column": 27
}
},
@@ -5355,15 +4943,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 4587,
- "end": 4594,
+ "start": 4123,
+ "end": 4130,
"loc": {
"start": {
- "line": 133,
+ "line": 123,
"column": 19
},
"end": {
- "line": 133,
+ "line": 123,
"column": 26
},
"identifierName": "pHeight"
@@ -5371,7 +4959,7 @@
"name": "pHeight",
"extra": {
"parenthesized": true,
- "parenStart": 4586
+ "parenStart": 4122
}
},
"extra": {
@@ -5381,15 +4969,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 4600,
- "end": 4608,
+ "start": 4136,
+ "end": 4144,
"loc": {
"start": {
- "line": 133,
+ "line": 123,
"column": 32
},
"end": {
- "line": 133,
+ "line": 123,
"column": 40
}
},
@@ -5402,88 +4990,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 4610,
- "end": 4658,
+ "start": 4146,
+ "end": 4194,
"loc": {
"start": {
- "line": 133,
+ "line": 123,
"column": 42
},
"end": {
- "line": 135,
+ "line": 125,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 4625,
- "end": 4647,
+ "start": 4161,
+ "end": 4183,
"loc": {
"start": {
- "line": 134,
+ "line": 124,
"column": 12
},
"end": {
- "line": 134,
+ "line": 124,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 4625,
- "end": 4646,
+ "start": 4161,
+ "end": 4182,
"loc": {
"start": {
- "line": 134,
+ "line": 124,
"column": 12
},
"end": {
- "line": 134,
+ "line": 124,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 4625,
- "end": 4636,
+ "start": 4161,
+ "end": 4172,
"loc": {
"start": {
- "line": 134,
+ "line": 124,
"column": 12
},
"end": {
- "line": 134,
+ "line": 124,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 4625,
- "end": 4629,
+ "start": 4161,
+ "end": 4165,
"loc": {
"start": {
- "line": 134,
+ "line": 124,
"column": 12
},
"end": {
- "line": 134,
+ "line": 124,
"column": 16
}
}
},
"property": {
"type": "Identifier",
- "start": 4630,
- "end": 4636,
+ "start": 4166,
+ "end": 4172,
"loc": {
"start": {
- "line": 134,
+ "line": 124,
"column": 17
},
"end": {
- "line": 134,
+ "line": 124,
"column": 23
},
"identifierName": "height"
@@ -5494,15 +5082,15 @@
},
"right": {
"type": "Identifier",
- "start": 4639,
- "end": 4646,
+ "start": 4175,
+ "end": 4182,
"loc": {
"start": {
- "line": 134,
+ "line": 124,
"column": 26
},
"end": {
- "line": 134,
+ "line": 124,
"column": 33
},
"identifierName": "pHeight"
@@ -5524,15 +5112,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4237,
- "end": 4445,
+ "start": 3773,
+ "end": 3981,
"loc": {
"start": {
- "line": 123,
+ "line": 113,
"column": 4
},
"end": {
- "line": 128,
+ "line": 118,
"column": 7
}
}
@@ -5542,15 +5130,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n ",
- "start": 4671,
- "end": 4822,
+ "start": 4207,
+ "end": 4358,
"loc": {
"start": {
- "line": 137,
+ "line": 127,
"column": 4
},
"end": {
- "line": 140,
+ "line": 130,
"column": 7
}
}
@@ -5559,15 +5147,15 @@
},
{
"type": "ClassMethod",
- "start": 4828,
- "end": 4906,
+ "start": 4364,
+ "end": 4442,
"loc": {
"start": {
- "line": 141,
+ "line": 131,
"column": 4
},
"end": {
- "line": 143,
+ "line": 133,
"column": 5
}
},
@@ -5575,15 +5163,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 4828,
- "end": 4835,
+ "start": 4364,
+ "end": 4371,
"loc": {
"start": {
- "line": 141,
+ "line": 131,
"column": 4
},
"end": {
- "line": 141,
+ "line": 131,
"column": 11
},
"identifierName": "getSize"
@@ -5599,59 +5187,59 @@
"params": [],
"body": {
"type": "BlockStatement",
- "start": 4838,
- "end": 4906,
+ "start": 4374,
+ "end": 4442,
"loc": {
"start": {
- "line": 141,
+ "line": 131,
"column": 14
},
"end": {
- "line": 143,
+ "line": 133,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
- "start": 4849,
- "end": 4899,
+ "start": 4385,
+ "end": 4435,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 8
},
"end": {
- "line": 142,
+ "line": 132,
"column": 58
}
},
"argument": {
"type": "ObjectExpression",
- "start": 4856,
- "end": 4898,
+ "start": 4392,
+ "end": 4434,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 15
},
"end": {
- "line": 142,
+ "line": 132,
"column": 57
}
},
"properties": [
{
"type": "ObjectProperty",
- "start": 4858,
- "end": 4875,
+ "start": 4394,
+ "end": 4411,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 17
},
"end": {
- "line": 142,
+ "line": 132,
"column": 34
}
},
@@ -5660,15 +5248,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 4858,
- "end": 4863,
+ "start": 4394,
+ "end": 4399,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 17
},
"end": {
- "line": 142,
+ "line": 132,
"column": 22
},
"identifierName": "width"
@@ -5677,44 +5265,44 @@
},
"value": {
"type": "MemberExpression",
- "start": 4865,
- "end": 4875,
+ "start": 4401,
+ "end": 4411,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 24
},
"end": {
- "line": 142,
+ "line": 132,
"column": 34
}
},
"object": {
"type": "ThisExpression",
- "start": 4865,
- "end": 4869,
+ "start": 4401,
+ "end": 4405,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 24
},
"end": {
- "line": 142,
+ "line": 132,
"column": 28
}
}
},
"property": {
"type": "Identifier",
- "start": 4870,
- "end": 4875,
+ "start": 4406,
+ "end": 4411,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 29
},
"end": {
- "line": 142,
+ "line": 132,
"column": 34
},
"identifierName": "width"
@@ -5726,15 +5314,15 @@
},
{
"type": "ObjectProperty",
- "start": 4877,
- "end": 4896,
+ "start": 4413,
+ "end": 4432,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 36
},
"end": {
- "line": 142,
+ "line": 132,
"column": 55
}
},
@@ -5743,15 +5331,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 4877,
- "end": 4883,
+ "start": 4413,
+ "end": 4419,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 36
},
"end": {
- "line": 142,
+ "line": 132,
"column": 42
},
"identifierName": "height"
@@ -5760,44 +5348,44 @@
},
"value": {
"type": "MemberExpression",
- "start": 4885,
- "end": 4896,
+ "start": 4421,
+ "end": 4432,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 44
},
"end": {
- "line": 142,
+ "line": 132,
"column": 55
}
},
"object": {
"type": "ThisExpression",
- "start": 4885,
- "end": 4889,
+ "start": 4421,
+ "end": 4425,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 44
},
"end": {
- "line": 142,
+ "line": 132,
"column": 48
}
}
},
"property": {
"type": "Identifier",
- "start": 4890,
- "end": 4896,
+ "start": 4426,
+ "end": 4432,
"loc": {
"start": {
- "line": 142,
+ "line": 132,
"column": 49
},
"end": {
- "line": 142,
+ "line": 132,
"column": 55
},
"identifierName": "height"
@@ -5818,15 +5406,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n ",
- "start": 4671,
- "end": 4822,
+ "start": 4207,
+ "end": 4358,
"loc": {
"start": {
- "line": 137,
+ "line": 127,
"column": 4
},
"end": {
- "line": 140,
+ "line": 130,
"column": 7
}
}
@@ -5836,15 +5424,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4912,
- "end": 5075,
+ "start": 4448,
+ "end": 4611,
"loc": {
"start": {
- "line": 144,
+ "line": 134,
"column": 4
},
"end": {
- "line": 148,
+ "line": 138,
"column": 7
}
}
@@ -5853,15 +5441,15 @@
},
{
"type": "ClassMethod",
- "start": 5081,
- "end": 5379,
+ "start": 4617,
+ "end": 4915,
"loc": {
"start": {
- "line": 149,
+ "line": 139,
"column": 4
},
"end": {
- "line": 158,
+ "line": 148,
"column": 5
}
},
@@ -5869,15 +5457,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 5081,
- "end": 5091,
+ "start": 4617,
+ "end": 4627,
"loc": {
"start": {
- "line": 149,
+ "line": 139,
"column": 4
},
"end": {
- "line": 149,
+ "line": 139,
"column": 14
},
"identifierName": "setDataURL"
@@ -5893,15 +5481,15 @@
"params": [
{
"type": "Identifier",
- "start": 5092,
- "end": 5100,
+ "start": 4628,
+ "end": 4636,
"loc": {
"start": {
- "line": 149,
+ "line": 139,
"column": 15
},
"end": {
- "line": 149,
+ "line": 139,
"column": 23
},
"identifierName": "pDataURL"
@@ -5911,44 +5499,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 5102,
- "end": 5379,
+ "start": 4638,
+ "end": 4915,
"loc": {
"start": {
- "line": 149,
+ "line": 139,
"column": 25
},
"end": {
- "line": 158,
+ "line": 148,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 5113,
- "end": 5350,
+ "start": 4649,
+ "end": 4886,
"loc": {
"start": {
- "line": 150,
+ "line": 140,
"column": 8
},
"end": {
- "line": 156,
+ "line": 146,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 5117,
- "end": 5125,
+ "start": 4653,
+ "end": 4661,
"loc": {
"start": {
- "line": 150,
+ "line": 140,
"column": 12
},
"end": {
- "line": 150,
+ "line": 140,
"column": 20
},
"identifierName": "pDataURL"
@@ -5957,58 +5545,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 5127,
- "end": 5350,
+ "start": 4663,
+ "end": 4886,
"loc": {
"start": {
- "line": 150,
+ "line": 140,
"column": 22
},
"end": {
- "line": 156,
+ "line": 146,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 5142,
- "end": 5339,
+ "start": 4678,
+ "end": 4875,
"loc": {
"start": {
- "line": 151,
+ "line": 141,
"column": 12
},
"end": {
- "line": 155,
+ "line": 145,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 5146,
- "end": 5175,
+ "start": 4682,
+ "end": 4711,
"loc": {
"start": {
- "line": 151,
+ "line": 141,
"column": 16
},
"end": {
- "line": 151,
+ "line": 141,
"column": 45
}
},
"left": {
"type": "UnaryExpression",
- "start": 5146,
- "end": 5162,
+ "start": 4682,
+ "end": 4698,
"loc": {
"start": {
- "line": 151,
+ "line": 141,
"column": 16
},
"end": {
- "line": 151,
+ "line": 141,
"column": 32
}
},
@@ -6016,15 +5604,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 5153,
- "end": 5161,
+ "start": 4689,
+ "end": 4697,
"loc": {
"start": {
- "line": 151,
+ "line": 141,
"column": 23
},
"end": {
- "line": 151,
+ "line": 141,
"column": 31
},
"identifierName": "pDataURL"
@@ -6032,7 +5620,7 @@
"name": "pDataURL",
"extra": {
"parenthesized": true,
- "parenStart": 5152
+ "parenStart": 4688
}
},
"extra": {
@@ -6042,15 +5630,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 5167,
- "end": 5175,
+ "start": 4703,
+ "end": 4711,
"loc": {
"start": {
- "line": 151,
+ "line": 141,
"column": 37
},
"end": {
- "line": 151,
+ "line": 141,
"column": 45
}
},
@@ -6063,88 +5651,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 5177,
- "end": 5235,
+ "start": 4713,
+ "end": 4771,
"loc": {
"start": {
- "line": 151,
+ "line": 141,
"column": 47
},
"end": {
- "line": 153,
+ "line": 143,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 5196,
- "end": 5220,
+ "start": 4732,
+ "end": 4756,
"loc": {
"start": {
- "line": 152,
+ "line": 142,
"column": 16
},
"end": {
- "line": 152,
+ "line": 142,
"column": 40
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 5196,
- "end": 5219,
+ "start": 4732,
+ "end": 4755,
"loc": {
"start": {
- "line": 152,
+ "line": 142,
"column": 16
},
"end": {
- "line": 152,
+ "line": 142,
"column": 39
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 5196,
- "end": 5208,
+ "start": 4732,
+ "end": 4744,
"loc": {
"start": {
- "line": 152,
+ "line": 142,
"column": 16
},
"end": {
- "line": 152,
+ "line": 142,
"column": 28
}
},
"object": {
"type": "ThisExpression",
- "start": 5196,
- "end": 5200,
+ "start": 4732,
+ "end": 4736,
"loc": {
"start": {
- "line": 152,
+ "line": 142,
"column": 16
},
"end": {
- "line": 152,
+ "line": 142,
"column": 20
}
}
},
"property": {
"type": "Identifier",
- "start": 5201,
- "end": 5208,
+ "start": 4737,
+ "end": 4744,
"loc": {
"start": {
- "line": 152,
+ "line": 142,
"column": 21
},
"end": {
- "line": 152,
+ "line": 142,
"column": 28
},
"identifierName": "dataURL"
@@ -6155,15 +5743,15 @@
},
"right": {
"type": "Identifier",
- "start": 5211,
- "end": 5219,
+ "start": 4747,
+ "end": 4755,
"loc": {
"start": {
- "line": 152,
+ "line": 142,
"column": 31
},
"end": {
- "line": 152,
+ "line": 142,
"column": 39
},
"identifierName": "pDataURL"
@@ -6177,114 +5765,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 5241,
- "end": 5339,
+ "start": 4777,
+ "end": 4875,
"loc": {
"start": {
- "line": 153,
+ "line": 143,
"column": 19
},
"end": {
- "line": 155,
+ "line": 145,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 5260,
- "end": 5324,
+ "start": 4796,
+ "end": 4860,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 80
}
},
"expression": {
"type": "CallExpression",
- "start": 5260,
- "end": 5323,
+ "start": 4796,
+ "end": 4859,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 79
}
},
"callee": {
"type": "MemberExpression",
- "start": 5260,
- "end": 5297,
+ "start": 4796,
+ "end": 4833,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 5260,
- "end": 5291,
+ "start": 4796,
+ "end": 4827,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 5260,
- "end": 5277,
+ "start": 4796,
+ "end": 4813,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 5260,
- "end": 5270,
+ "start": 4796,
+ "end": 4806,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 5260,
- "end": 5263,
+ "start": 4796,
+ "end": 4799,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 16
},
"end": {
- "line": 154,
+ "line": 144,
"column": 19
},
"identifierName": "VYI"
@@ -6293,15 +5881,15 @@
},
"property": {
"type": "Identifier",
- "start": 5264,
- "end": 5270,
+ "start": 4800,
+ "end": 4806,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 20
},
"end": {
- "line": 154,
+ "line": 144,
"column": 26
},
"identifierName": "logger"
@@ -6312,15 +5900,15 @@
},
"property": {
"type": "Identifier",
- "start": 5271,
- "end": 5277,
+ "start": 4807,
+ "end": 4813,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 27
},
"end": {
- "line": 154,
+ "line": 144,
"column": 33
},
"identifierName": "prefix"
@@ -6332,15 +5920,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 5278,
- "end": 5290,
+ "start": 4814,
+ "end": 4826,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 34
},
"end": {
- "line": 154,
+ "line": 144,
"column": 46
}
},
@@ -6354,15 +5942,15 @@
},
"property": {
"type": "Identifier",
- "start": 5292,
- "end": 5297,
+ "start": 4828,
+ "end": 4833,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 48
},
"end": {
- "line": 154,
+ "line": 144,
"column": 53
},
"identifierName": "error"
@@ -6374,15 +5962,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 5298,
- "end": 5322,
+ "start": 4834,
+ "end": 4858,
"loc": {
"start": {
- "line": 154,
+ "line": 144,
"column": 54
},
"end": {
- "line": 154,
+ "line": 144,
"column": 78
}
},
@@ -6406,29 +5994,29 @@
},
{
"type": "ReturnStatement",
- "start": 5360,
- "end": 5372,
+ "start": 4896,
+ "end": 4908,
"loc": {
"start": {
- "line": 157,
+ "line": 147,
"column": 8
},
"end": {
- "line": 157,
+ "line": 147,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 5367,
- "end": 5371,
+ "start": 4903,
+ "end": 4907,
"loc": {
"start": {
- "line": 157,
+ "line": 147,
"column": 15
},
"end": {
- "line": 157,
+ "line": 147,
"column": 19
}
}
@@ -6442,15 +6030,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4912,
- "end": 5075,
+ "start": 4448,
+ "end": 4611,
"loc": {
"start": {
- "line": 144,
+ "line": 134,
"column": 4
},
"end": {
- "line": 148,
+ "line": 138,
"column": 7
}
}
@@ -6460,15 +6048,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 5385,
- "end": 5497,
+ "start": 4921,
+ "end": 5033,
"loc": {
"start": {
- "line": 159,
+ "line": 149,
"column": 4
},
"end": {
- "line": 162,
+ "line": 152,
"column": 7
}
}
@@ -6477,15 +6065,15 @@
},
{
"type": "ClassMethod",
- "start": 5503,
- "end": 5554,
+ "start": 5039,
+ "end": 5090,
"loc": {
"start": {
- "line": 163,
+ "line": 153,
"column": 4
},
"end": {
- "line": 165,
+ "line": 155,
"column": 5
}
},
@@ -6493,15 +6081,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 5503,
- "end": 5513,
+ "start": 5039,
+ "end": 5049,
"loc": {
"start": {
- "line": 163,
+ "line": 153,
"column": 4
},
"end": {
- "line": 163,
+ "line": 153,
"column": 14
},
"identifierName": "getDataURL"
@@ -6517,73 +6105,73 @@
"params": [],
"body": {
"type": "BlockStatement",
- "start": 5516,
- "end": 5554,
+ "start": 5052,
+ "end": 5090,
"loc": {
"start": {
- "line": 163,
+ "line": 153,
"column": 17
},
"end": {
- "line": 165,
+ "line": 155,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
- "start": 5527,
- "end": 5547,
+ "start": 5063,
+ "end": 5083,
"loc": {
"start": {
- "line": 164,
+ "line": 154,
"column": 8
},
"end": {
- "line": 164,
+ "line": 154,
"column": 28
}
},
"argument": {
"type": "MemberExpression",
- "start": 5534,
- "end": 5546,
+ "start": 5070,
+ "end": 5082,
"loc": {
"start": {
- "line": 164,
+ "line": 154,
"column": 15
},
"end": {
- "line": 164,
+ "line": 154,
"column": 27
}
},
"object": {
"type": "ThisExpression",
- "start": 5534,
- "end": 5538,
+ "start": 5070,
+ "end": 5074,
"loc": {
"start": {
- "line": 164,
+ "line": 154,
"column": 15
},
"end": {
- "line": 164,
+ "line": 154,
"column": 19
}
}
},
"property": {
"type": "Identifier",
- "start": 5539,
- "end": 5546,
+ "start": 5075,
+ "end": 5082,
"loc": {
"start": {
- "line": 164,
+ "line": 154,
"column": 20
},
"end": {
- "line": 164,
+ "line": 154,
"column": 27
},
"identifierName": "dataURL"
@@ -6601,15 +6189,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 5385,
- "end": 5497,
+ "start": 4921,
+ "end": 5033,
"loc": {
"start": {
- "line": 159,
+ "line": 149,
"column": 4
},
"end": {
- "line": 162,
+ "line": 152,
"column": 7
}
}
@@ -6619,15 +6207,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 5560,
- "end": 5724,
+ "start": 5096,
+ "end": 5260,
"loc": {
"start": {
- "line": 166,
+ "line": 156,
"column": 4
},
"end": {
- "line": 170,
+ "line": 160,
"column": 7
}
}
@@ -6636,15 +6224,15 @@
},
{
"type": "ClassMethod",
- "start": 5730,
- "end": 6013,
+ "start": 5266,
+ "end": 5549,
"loc": {
"start": {
- "line": 171,
+ "line": 161,
"column": 4
},
"end": {
- "line": 180,
+ "line": 170,
"column": 5
}
},
@@ -6652,15 +6240,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 5730,
- "end": 5738,
+ "start": 5266,
+ "end": 5274,
"loc": {
"start": {
- "line": 171,
+ "line": 161,
"column": 4
},
"end": {
- "line": 171,
+ "line": 161,
"column": 12
},
"identifierName": "setDelay"
@@ -6676,15 +6264,15 @@
"params": [
{
"type": "Identifier",
- "start": 5739,
- "end": 5745,
+ "start": 5275,
+ "end": 5281,
"loc": {
"start": {
- "line": 171,
+ "line": 161,
"column": 13
},
"end": {
- "line": 171,
+ "line": 161,
"column": 19
},
"identifierName": "pDelay"
@@ -6694,44 +6282,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 5747,
- "end": 6013,
+ "start": 5283,
+ "end": 5549,
"loc": {
"start": {
- "line": 171,
+ "line": 161,
"column": 21
},
"end": {
- "line": 180,
+ "line": 170,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 5758,
- "end": 5984,
+ "start": 5294,
+ "end": 5520,
"loc": {
"start": {
- "line": 172,
+ "line": 162,
"column": 8
},
"end": {
- "line": 178,
+ "line": 168,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 5762,
- "end": 5768,
+ "start": 5298,
+ "end": 5304,
"loc": {
"start": {
- "line": 172,
+ "line": 162,
"column": 12
},
"end": {
- "line": 172,
+ "line": 162,
"column": 18
},
"identifierName": "pDelay"
@@ -6740,58 +6328,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 5770,
- "end": 5984,
+ "start": 5306,
+ "end": 5520,
"loc": {
"start": {
- "line": 172,
+ "line": 162,
"column": 20
},
"end": {
- "line": 178,
+ "line": 168,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 5785,
- "end": 5973,
+ "start": 5321,
+ "end": 5509,
"loc": {
"start": {
- "line": 173,
+ "line": 163,
"column": 12
},
"end": {
- "line": 177,
+ "line": 167,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 5789,
- "end": 5816,
+ "start": 5325,
+ "end": 5352,
"loc": {
"start": {
- "line": 173,
+ "line": 163,
"column": 16
},
"end": {
- "line": 173,
+ "line": 163,
"column": 43
}
},
"left": {
"type": "UnaryExpression",
- "start": 5789,
- "end": 5803,
+ "start": 5325,
+ "end": 5339,
"loc": {
"start": {
- "line": 173,
+ "line": 163,
"column": 16
},
"end": {
- "line": 173,
+ "line": 163,
"column": 30
}
},
@@ -6799,15 +6387,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 5796,
- "end": 5802,
+ "start": 5332,
+ "end": 5338,
"loc": {
"start": {
- "line": 173,
+ "line": 163,
"column": 23
},
"end": {
- "line": 173,
+ "line": 163,
"column": 29
},
"identifierName": "pDelay"
@@ -6815,7 +6403,7 @@
"name": "pDelay",
"extra": {
"parenthesized": true,
- "parenStart": 5795
+ "parenStart": 5331
}
},
"extra": {
@@ -6825,15 +6413,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 5808,
- "end": 5816,
+ "start": 5344,
+ "end": 5352,
"loc": {
"start": {
- "line": 173,
+ "line": 163,
"column": 35
},
"end": {
- "line": 173,
+ "line": 163,
"column": 43
}
},
@@ -6846,88 +6434,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 5818,
- "end": 5872,
+ "start": 5354,
+ "end": 5408,
"loc": {
"start": {
- "line": 173,
+ "line": 163,
"column": 45
},
"end": {
- "line": 175,
+ "line": 165,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 5837,
- "end": 5857,
+ "start": 5373,
+ "end": 5393,
"loc": {
"start": {
- "line": 174,
+ "line": 164,
"column": 16
},
"end": {
- "line": 174,
+ "line": 164,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 5837,
- "end": 5856,
+ "start": 5373,
+ "end": 5392,
"loc": {
"start": {
- "line": 174,
+ "line": 164,
"column": 16
},
"end": {
- "line": 174,
+ "line": 164,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 5837,
- "end": 5847,
+ "start": 5373,
+ "end": 5383,
"loc": {
"start": {
- "line": 174,
+ "line": 164,
"column": 16
},
"end": {
- "line": 174,
+ "line": 164,
"column": 26
}
},
"object": {
"type": "ThisExpression",
- "start": 5837,
- "end": 5841,
+ "start": 5373,
+ "end": 5377,
"loc": {
"start": {
- "line": 174,
+ "line": 164,
"column": 16
},
"end": {
- "line": 174,
+ "line": 164,
"column": 20
}
}
},
"property": {
"type": "Identifier",
- "start": 5842,
- "end": 5847,
+ "start": 5378,
+ "end": 5383,
"loc": {
"start": {
- "line": 174,
+ "line": 164,
"column": 21
},
"end": {
- "line": 174,
+ "line": 164,
"column": 26
},
"identifierName": "delay"
@@ -6938,15 +6526,15 @@
},
"right": {
"type": "Identifier",
- "start": 5850,
- "end": 5856,
+ "start": 5386,
+ "end": 5392,
"loc": {
"start": {
- "line": 174,
+ "line": 164,
"column": 29
},
"end": {
- "line": 174,
+ "line": 164,
"column": 35
},
"identifierName": "pDelay"
@@ -6960,114 +6548,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 5878,
- "end": 5973,
+ "start": 5414,
+ "end": 5509,
"loc": {
"start": {
- "line": 175,
+ "line": 165,
"column": 19
},
"end": {
- "line": 177,
+ "line": 167,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 5897,
- "end": 5958,
+ "start": 5433,
+ "end": 5494,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 77
}
},
"expression": {
"type": "CallExpression",
- "start": 5897,
- "end": 5957,
+ "start": 5433,
+ "end": 5493,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
- "start": 5897,
- "end": 5934,
+ "start": 5433,
+ "end": 5470,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 5897,
- "end": 5928,
+ "start": 5433,
+ "end": 5464,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 5897,
- "end": 5914,
+ "start": 5433,
+ "end": 5450,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 5897,
- "end": 5907,
+ "start": 5433,
+ "end": 5443,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 5897,
- "end": 5900,
+ "start": 5433,
+ "end": 5436,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 16
},
"end": {
- "line": 176,
+ "line": 166,
"column": 19
},
"identifierName": "VYI"
@@ -7076,15 +6664,15 @@
},
"property": {
"type": "Identifier",
- "start": 5901,
- "end": 5907,
+ "start": 5437,
+ "end": 5443,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 20
},
"end": {
- "line": 176,
+ "line": 166,
"column": 26
},
"identifierName": "logger"
@@ -7095,15 +6683,15 @@
},
"property": {
"type": "Identifier",
- "start": 5908,
- "end": 5914,
+ "start": 5444,
+ "end": 5450,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 27
},
"end": {
- "line": 176,
+ "line": 166,
"column": 33
},
"identifierName": "prefix"
@@ -7115,15 +6703,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 5915,
- "end": 5927,
+ "start": 5451,
+ "end": 5463,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 34
},
"end": {
- "line": 176,
+ "line": 166,
"column": 46
}
},
@@ -7137,15 +6725,15 @@
},
"property": {
"type": "Identifier",
- "start": 5929,
- "end": 5934,
+ "start": 5465,
+ "end": 5470,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 48
},
"end": {
- "line": 176,
+ "line": 166,
"column": 53
},
"identifierName": "error"
@@ -7157,15 +6745,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 5935,
- "end": 5956,
+ "start": 5471,
+ "end": 5492,
"loc": {
"start": {
- "line": 176,
+ "line": 166,
"column": 54
},
"end": {
- "line": 176,
+ "line": 166,
"column": 75
}
},
@@ -7189,29 +6777,29 @@
},
{
"type": "ReturnStatement",
- "start": 5994,
- "end": 6006,
+ "start": 5530,
+ "end": 5542,
"loc": {
"start": {
- "line": 179,
+ "line": 169,
"column": 8
},
"end": {
- "line": 179,
+ "line": 169,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 6001,
- "end": 6005,
+ "start": 5537,
+ "end": 5541,
"loc": {
"start": {
- "line": 179,
+ "line": 169,
"column": 15
},
"end": {
- "line": 179,
+ "line": 169,
"column": 19
}
}
@@ -7225,15 +6813,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 5560,
- "end": 5724,
+ "start": 5096,
+ "end": 5260,
"loc": {
"start": {
- "line": 166,
+ "line": 156,
"column": 4
},
"end": {
- "line": 170,
+ "line": 160,
"column": 7
}
}
@@ -7243,15 +6831,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n ",
- "start": 6019,
- "end": 6118,
+ "start": 5555,
+ "end": 5654,
"loc": {
"start": {
- "line": 181,
+ "line": 171,
"column": 4
},
"end": {
- "line": 184,
+ "line": 174,
"column": 7
}
}
@@ -7260,15 +6848,15 @@
},
{
"type": "ClassMethod",
- "start": 6124,
- "end": 6171,
+ "start": 5660,
+ "end": 5707,
"loc": {
"start": {
- "line": 185,
+ "line": 175,
"column": 4
},
"end": {
- "line": 187,
+ "line": 177,
"column": 5
}
},
@@ -7276,15 +6864,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 6124,
- "end": 6132,
+ "start": 5660,
+ "end": 5668,
"loc": {
"start": {
- "line": 185,
+ "line": 175,
"column": 4
},
"end": {
- "line": 185,
+ "line": 175,
"column": 12
},
"identifierName": "getDelay"
@@ -7300,73 +6888,73 @@
"params": [],
"body": {
"type": "BlockStatement",
- "start": 6135,
- "end": 6171,
+ "start": 5671,
+ "end": 5707,
"loc": {
"start": {
- "line": 185,
+ "line": 175,
"column": 15
},
"end": {
- "line": 187,
+ "line": 177,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
- "start": 6146,
- "end": 6164,
+ "start": 5682,
+ "end": 5700,
"loc": {
"start": {
- "line": 186,
+ "line": 176,
"column": 8
},
"end": {
- "line": 186,
+ "line": 176,
"column": 26
}
},
"argument": {
"type": "MemberExpression",
- "start": 6153,
- "end": 6163,
+ "start": 5689,
+ "end": 5699,
"loc": {
"start": {
- "line": 186,
+ "line": 176,
"column": 15
},
"end": {
- "line": 186,
+ "line": 176,
"column": 25
}
},
"object": {
"type": "ThisExpression",
- "start": 6153,
- "end": 6157,
+ "start": 5689,
+ "end": 5693,
"loc": {
"start": {
- "line": 186,
+ "line": 176,
"column": 15
},
"end": {
- "line": 186,
+ "line": 176,
"column": 19
}
}
},
"property": {
"type": "Identifier",
- "start": 6158,
- "end": 6163,
+ "start": 5694,
+ "end": 5699,
"loc": {
"start": {
- "line": 186,
+ "line": 176,
"column": 20
},
"end": {
- "line": 186,
+ "line": 176,
"column": 25
},
"identifierName": "delay"
@@ -7384,15 +6972,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n ",
- "start": 6019,
- "end": 6118,
+ "start": 5555,
+ "end": 5654,
"loc": {
"start": {
- "line": 181,
+ "line": 171,
"column": 4
},
"end": {
- "line": 184,
+ "line": 174,
"column": 7
}
}
@@ -7402,15 +6990,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6177,
- "end": 6330,
+ "start": 5713,
+ "end": 5866,
"loc": {
"start": {
- "line": 188,
+ "line": 178,
"column": 4
},
"end": {
- "line": 192,
+ "line": 182,
"column": 7
}
}
@@ -7419,15 +7007,15 @@
},
{
"type": "ClassMethod",
- "start": 6336,
- "end": 6616,
+ "start": 5872,
+ "end": 6152,
"loc": {
"start": {
- "line": 193,
+ "line": 183,
"column": 4
},
"end": {
- "line": 202,
+ "line": 192,
"column": 5
}
},
@@ -7435,15 +7023,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 6336,
- "end": 6342,
+ "start": 5872,
+ "end": 5878,
"loc": {
"start": {
- "line": 193,
+ "line": 183,
"column": 4
},
"end": {
- "line": 193,
+ "line": 183,
"column": 10
},
"identifierName": "rename"
@@ -7459,15 +7047,15 @@
"params": [
{
"type": "Identifier",
- "start": 6343,
- "end": 6348,
+ "start": 5879,
+ "end": 5884,
"loc": {
"start": {
- "line": 193,
+ "line": 183,
"column": 11
},
"end": {
- "line": 193,
+ "line": 183,
"column": 16
},
"identifierName": "pName"
@@ -7477,44 +7065,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 6350,
- "end": 6616,
+ "start": 5886,
+ "end": 6152,
"loc": {
"start": {
- "line": 193,
+ "line": 183,
"column": 18
},
"end": {
- "line": 202,
+ "line": 192,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 6361,
- "end": 6587,
+ "start": 5897,
+ "end": 6123,
"loc": {
"start": {
- "line": 194,
+ "line": 184,
"column": 8
},
"end": {
- "line": 200,
+ "line": 190,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 6365,
- "end": 6370,
+ "start": 5901,
+ "end": 5906,
"loc": {
"start": {
- "line": 194,
+ "line": 184,
"column": 12
},
"end": {
- "line": 194,
+ "line": 184,
"column": 17
},
"identifierName": "pName"
@@ -7523,58 +7111,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 6372,
- "end": 6587,
+ "start": 5908,
+ "end": 6123,
"loc": {
"start": {
- "line": 194,
+ "line": 184,
"column": 19
},
"end": {
- "line": 200,
+ "line": 190,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 6387,
- "end": 6576,
+ "start": 5923,
+ "end": 6112,
"loc": {
"start": {
- "line": 195,
+ "line": 185,
"column": 12
},
"end": {
- "line": 199,
+ "line": 189,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 6391,
- "end": 6417,
+ "start": 5927,
+ "end": 5953,
"loc": {
"start": {
- "line": 195,
+ "line": 185,
"column": 16
},
"end": {
- "line": 195,
+ "line": 185,
"column": 42
}
},
"left": {
"type": "UnaryExpression",
- "start": 6391,
- "end": 6404,
+ "start": 5927,
+ "end": 5940,
"loc": {
"start": {
- "line": 195,
+ "line": 185,
"column": 16
},
"end": {
- "line": 195,
+ "line": 185,
"column": 29
}
},
@@ -7582,15 +7170,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 6398,
- "end": 6403,
+ "start": 5934,
+ "end": 5939,
"loc": {
"start": {
- "line": 195,
+ "line": 185,
"column": 23
},
"end": {
- "line": 195,
+ "line": 185,
"column": 28
},
"identifierName": "pName"
@@ -7598,7 +7186,7 @@
"name": "pName",
"extra": {
"parenthesized": true,
- "parenStart": 6397
+ "parenStart": 5933
}
},
"extra": {
@@ -7608,15 +7196,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 6409,
- "end": 6417,
+ "start": 5945,
+ "end": 5953,
"loc": {
"start": {
- "line": 195,
+ "line": 185,
"column": 34
},
"end": {
- "line": 195,
+ "line": 185,
"column": 42
}
},
@@ -7629,88 +7217,88 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 6419,
- "end": 6471,
+ "start": 5955,
+ "end": 6007,
"loc": {
"start": {
- "line": 195,
+ "line": 185,
"column": 44
},
"end": {
- "line": 197,
+ "line": 187,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 6438,
- "end": 6456,
+ "start": 5974,
+ "end": 5992,
"loc": {
"start": {
- "line": 196,
+ "line": 186,
"column": 16
},
"end": {
- "line": 196,
+ "line": 186,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 6438,
- "end": 6455,
+ "start": 5974,
+ "end": 5991,
"loc": {
"start": {
- "line": 196,
+ "line": 186,
"column": 16
},
"end": {
- "line": 196,
+ "line": 186,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 6438,
- "end": 6447,
+ "start": 5974,
+ "end": 5983,
"loc": {
"start": {
- "line": 196,
+ "line": 186,
"column": 16
},
"end": {
- "line": 196,
+ "line": 186,
"column": 25
}
},
"object": {
"type": "ThisExpression",
- "start": 6438,
- "end": 6442,
+ "start": 5974,
+ "end": 5978,
"loc": {
"start": {
- "line": 196,
+ "line": 186,
"column": 16
},
"end": {
- "line": 196,
+ "line": 186,
"column": 20
}
}
},
"property": {
"type": "Identifier",
- "start": 6443,
- "end": 6447,
+ "start": 5979,
+ "end": 5983,
"loc": {
"start": {
- "line": 196,
+ "line": 186,
"column": 21
},
"end": {
- "line": 196,
+ "line": 186,
"column": 25
},
"identifierName": "name"
@@ -7721,15 +7309,15 @@
},
"right": {
"type": "Identifier",
- "start": 6450,
- "end": 6455,
+ "start": 5986,
+ "end": 5991,
"loc": {
"start": {
- "line": 196,
+ "line": 186,
"column": 28
},
"end": {
- "line": 196,
+ "line": 186,
"column": 33
},
"identifierName": "pName"
@@ -7743,114 +7331,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 6477,
- "end": 6576,
+ "start": 6013,
+ "end": 6112,
"loc": {
"start": {
- "line": 197,
+ "line": 187,
"column": 19
},
"end": {
- "line": 199,
+ "line": 189,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 6496,
- "end": 6561,
+ "start": 6032,
+ "end": 6097,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 81
}
},
"expression": {
"type": "CallExpression",
- "start": 6496,
- "end": 6560,
+ "start": 6032,
+ "end": 6096,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 80
}
},
"callee": {
"type": "MemberExpression",
- "start": 6496,
- "end": 6533,
+ "start": 6032,
+ "end": 6069,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 6496,
- "end": 6527,
+ "start": 6032,
+ "end": 6063,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 6496,
- "end": 6513,
+ "start": 6032,
+ "end": 6049,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 6496,
- "end": 6506,
+ "start": 6032,
+ "end": 6042,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 6496,
- "end": 6499,
+ "start": 6032,
+ "end": 6035,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 16
},
"end": {
- "line": 198,
+ "line": 188,
"column": 19
},
"identifierName": "VYI"
@@ -7859,15 +7447,15 @@
},
"property": {
"type": "Identifier",
- "start": 6500,
- "end": 6506,
+ "start": 6036,
+ "end": 6042,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 20
},
"end": {
- "line": 198,
+ "line": 188,
"column": 26
},
"identifierName": "logger"
@@ -7878,15 +7466,15 @@
},
"property": {
"type": "Identifier",
- "start": 6507,
- "end": 6513,
+ "start": 6043,
+ "end": 6049,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 27
},
"end": {
- "line": 198,
+ "line": 188,
"column": 33
},
"identifierName": "prefix"
@@ -7898,15 +7486,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 6514,
- "end": 6526,
+ "start": 6050,
+ "end": 6062,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 34
},
"end": {
- "line": 198,
+ "line": 188,
"column": 46
}
},
@@ -7920,15 +7508,15 @@
},
"property": {
"type": "Identifier",
- "start": 6528,
- "end": 6533,
+ "start": 6064,
+ "end": 6069,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 48
},
"end": {
- "line": 198,
+ "line": 188,
"column": 53
},
"identifierName": "error"
@@ -7940,15 +7528,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 6534,
- "end": 6559,
+ "start": 6070,
+ "end": 6095,
"loc": {
"start": {
- "line": 198,
+ "line": 188,
"column": 54
},
"end": {
- "line": 198,
+ "line": 188,
"column": 79
}
},
@@ -7972,29 +7560,29 @@
},
{
"type": "ReturnStatement",
- "start": 6597,
- "end": 6609,
+ "start": 6133,
+ "end": 6145,
"loc": {
"start": {
- "line": 201,
+ "line": 191,
"column": 8
},
"end": {
- "line": 201,
+ "line": 191,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 6604,
- "end": 6608,
+ "start": 6140,
+ "end": 6144,
"loc": {
"start": {
- "line": 201,
+ "line": 191,
"column": 15
},
"end": {
- "line": 201,
+ "line": 191,
"column": 19
}
}
@@ -8008,15 +7596,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6177,
- "end": 6330,
+ "start": 5713,
+ "end": 5866,
"loc": {
"start": {
- "line": 188,
+ "line": 178,
"column": 4
},
"end": {
- "line": 192,
+ "line": 182,
"column": 7
}
}
@@ -8026,15 +7614,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n ",
- "start": 6622,
- "end": 6722,
+ "start": 6158,
+ "end": 6258,
"loc": {
"start": {
- "line": 203,
+ "line": 193,
"column": 4
},
"end": {
- "line": 206,
+ "line": 196,
"column": 7
}
}
@@ -8043,15 +7631,15 @@
},
{
"type": "ClassMethod",
- "start": 6728,
- "end": 6773,
+ "start": 6264,
+ "end": 6309,
"loc": {
"start": {
- "line": 207,
+ "line": 197,
"column": 4
},
"end": {
- "line": 209,
+ "line": 199,
"column": 5
}
},
@@ -8059,15 +7647,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 6728,
- "end": 6735,
+ "start": 6264,
+ "end": 6271,
"loc": {
"start": {
- "line": 207,
+ "line": 197,
"column": 4
},
"end": {
- "line": 207,
+ "line": 197,
"column": 11
},
"identifierName": "getName"
@@ -8083,73 +7671,73 @@
"params": [],
"body": {
"type": "BlockStatement",
- "start": 6738,
- "end": 6773,
+ "start": 6274,
+ "end": 6309,
"loc": {
"start": {
- "line": 207,
+ "line": 197,
"column": 14
},
"end": {
- "line": 209,
+ "line": 199,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
- "start": 6749,
- "end": 6766,
+ "start": 6285,
+ "end": 6302,
"loc": {
"start": {
- "line": 208,
+ "line": 198,
"column": 8
},
"end": {
- "line": 208,
+ "line": 198,
"column": 25
}
},
"argument": {
"type": "MemberExpression",
- "start": 6756,
- "end": 6765,
+ "start": 6292,
+ "end": 6301,
"loc": {
"start": {
- "line": 208,
+ "line": 198,
"column": 15
},
"end": {
- "line": 208,
+ "line": 198,
"column": 24
}
},
"object": {
"type": "ThisExpression",
- "start": 6756,
- "end": 6760,
+ "start": 6292,
+ "end": 6296,
"loc": {
"start": {
- "line": 208,
+ "line": 198,
"column": 15
},
"end": {
- "line": 208,
+ "line": 198,
"column": 19
}
}
},
"property": {
"type": "Identifier",
- "start": 6761,
- "end": 6765,
+ "start": 6297,
+ "end": 6301,
"loc": {
"start": {
- "line": 208,
+ "line": 198,
"column": 20
},
"end": {
- "line": 208,
+ "line": 198,
"column": 24
},
"identifierName": "name"
@@ -8167,15 +7755,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n ",
- "start": 6622,
- "end": 6722,
+ "start": 6158,
+ "end": 6258,
"loc": {
"start": {
- "line": 203,
+ "line": 193,
"column": 4
},
"end": {
- "line": 206,
+ "line": 196,
"column": 7
}
}
@@ -8185,15 +7773,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6779,
- "end": 6970,
+ "start": 6315,
+ "end": 6506,
"loc": {
"start": {
- "line": 210,
+ "line": 200,
"column": 4
},
"end": {
- "line": 214,
+ "line": 204,
"column": 7
}
}
@@ -8202,15 +7790,15 @@
},
{
"type": "ClassMethod",
- "start": 6976,
- "end": 7353,
+ "start": 6512,
+ "end": 6889,
"loc": {
"start": {
- "line": 215,
+ "line": 205,
"column": 4
},
"end": {
- "line": 226,
+ "line": 216,
"column": 5
}
},
@@ -8218,15 +7806,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 6976,
- "end": 6993,
+ "start": 6512,
+ "end": 6529,
"loc": {
"start": {
- "line": 215,
+ "line": 205,
"column": 4
},
"end": {
- "line": 215,
+ "line": 205,
"column": 21
},
"identifierName": "setAllFrameDelays"
@@ -8242,15 +7830,15 @@
"params": [
{
"type": "Identifier",
- "start": 6994,
- "end": 7000,
+ "start": 6530,
+ "end": 6536,
"loc": {
"start": {
- "line": 215,
+ "line": 205,
"column": 22
},
"end": {
- "line": 215,
+ "line": 205,
"column": 28
},
"identifierName": "pDelay"
@@ -8260,44 +7848,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 7002,
- "end": 7353,
+ "start": 6538,
+ "end": 6889,
"loc": {
"start": {
- "line": 215,
+ "line": 205,
"column": 30
},
"end": {
- "line": 226,
+ "line": 216,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 7013,
- "end": 7324,
+ "start": 6549,
+ "end": 6860,
"loc": {
"start": {
- "line": 216,
+ "line": 206,
"column": 8
},
"end": {
- "line": 224,
+ "line": 214,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 7017,
- "end": 7023,
+ "start": 6553,
+ "end": 6559,
"loc": {
"start": {
- "line": 216,
+ "line": 206,
"column": 12
},
"end": {
- "line": 216,
+ "line": 206,
"column": 18
},
"identifierName": "pDelay"
@@ -8306,58 +7894,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 7025,
- "end": 7324,
+ "start": 6561,
+ "end": 6860,
"loc": {
"start": {
- "line": 216,
+ "line": 206,
"column": 20
},
"end": {
- "line": 224,
+ "line": 214,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 7040,
- "end": 7313,
+ "start": 6576,
+ "end": 6849,
"loc": {
"start": {
- "line": 217,
+ "line": 207,
"column": 12
},
"end": {
- "line": 223,
+ "line": 213,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 7044,
- "end": 7071,
+ "start": 6580,
+ "end": 6607,
"loc": {
"start": {
- "line": 217,
+ "line": 207,
"column": 16
},
"end": {
- "line": 217,
+ "line": 207,
"column": 43
}
},
"left": {
"type": "UnaryExpression",
- "start": 7044,
- "end": 7058,
+ "start": 6580,
+ "end": 6594,
"loc": {
"start": {
- "line": 217,
+ "line": 207,
"column": 16
},
"end": {
- "line": 217,
+ "line": 207,
"column": 30
}
},
@@ -8365,15 +7953,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 7051,
- "end": 7057,
+ "start": 6587,
+ "end": 6593,
"loc": {
"start": {
- "line": 217,
+ "line": 207,
"column": 23
},
"end": {
- "line": 217,
+ "line": 207,
"column": 29
},
"identifierName": "pDelay"
@@ -8381,7 +7969,7 @@
"name": "pDelay",
"extra": {
"parenthesized": true,
- "parenStart": 7050
+ "parenStart": 6586
}
},
"extra": {
@@ -8391,15 +7979,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 7063,
- "end": 7071,
+ "start": 6599,
+ "end": 6607,
"loc": {
"start": {
- "line": 217,
+ "line": 207,
"column": 35
},
"end": {
- "line": 217,
+ "line": 207,
"column": 43
}
},
@@ -8412,101 +8000,101 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 7073,
- "end": 7207,
+ "start": 6609,
+ "end": 6743,
"loc": {
"start": {
- "line": 217,
+ "line": 207,
"column": 45
},
"end": {
- "line": 221,
+ "line": 211,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 7092,
- "end": 7192,
+ "start": 6628,
+ "end": 6728,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 16
},
"end": {
- "line": 220,
+ "line": 210,
"column": 19
}
},
"expression": {
"type": "CallExpression",
- "start": 7092,
- "end": 7191,
+ "start": 6628,
+ "end": 6727,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 16
},
"end": {
- "line": 220,
+ "line": 210,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
- "start": 7092,
- "end": 7111,
+ "start": 6628,
+ "end": 6647,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 16
},
"end": {
- "line": 218,
+ "line": 208,
"column": 35
}
},
"object": {
"type": "MemberExpression",
- "start": 7092,
- "end": 7103,
+ "start": 6628,
+ "end": 6639,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 16
},
"end": {
- "line": 218,
+ "line": 208,
"column": 27
}
},
"object": {
"type": "ThisExpression",
- "start": 7092,
- "end": 7096,
+ "start": 6628,
+ "end": 6632,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 16
},
"end": {
- "line": 218,
+ "line": 208,
"column": 20
}
}
},
"property": {
"type": "Identifier",
- "start": 7097,
- "end": 7103,
+ "start": 6633,
+ "end": 6639,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 21
},
"end": {
- "line": 218,
+ "line": 208,
"column": 27
},
"identifierName": "frames"
@@ -8517,15 +8105,15 @@
},
"property": {
"type": "Identifier",
- "start": 7104,
- "end": 7111,
+ "start": 6640,
+ "end": 6647,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 28
},
"end": {
- "line": 218,
+ "line": 208,
"column": 35
},
"identifierName": "forEach"
@@ -8537,15 +8125,15 @@
"arguments": [
{
"type": "ArrowFunctionExpression",
- "start": 7112,
- "end": 7190,
+ "start": 6648,
+ "end": 6726,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 36
},
"end": {
- "line": 220,
+ "line": 210,
"column": 17
}
},
@@ -8556,15 +8144,15 @@
"params": [
{
"type": "Identifier",
- "start": 7113,
- "end": 7119,
+ "start": 6649,
+ "end": 6655,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 37
},
"end": {
- "line": 218,
+ "line": 208,
"column": 43
},
"identifierName": "pFrame"
@@ -8574,72 +8162,72 @@
],
"body": {
"type": "BlockStatement",
- "start": 7124,
- "end": 7190,
+ "start": 6660,
+ "end": 6726,
"loc": {
"start": {
- "line": 218,
+ "line": 208,
"column": 48
},
"end": {
- "line": 220,
+ "line": 210,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 7147,
- "end": 7171,
+ "start": 6683,
+ "end": 6707,
"loc": {
"start": {
- "line": 219,
+ "line": 209,
"column": 20
},
"end": {
- "line": 219,
+ "line": 209,
"column": 44
}
},
"expression": {
"type": "CallExpression",
- "start": 7147,
- "end": 7170,
+ "start": 6683,
+ "end": 6706,
"loc": {
"start": {
- "line": 219,
+ "line": 209,
"column": 20
},
"end": {
- "line": 219,
+ "line": 209,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
- "start": 7147,
- "end": 7162,
+ "start": 6683,
+ "end": 6698,
"loc": {
"start": {
- "line": 219,
+ "line": 209,
"column": 20
},
"end": {
- "line": 219,
+ "line": 209,
"column": 35
}
},
"object": {
"type": "Identifier",
- "start": 7147,
- "end": 7153,
+ "start": 6683,
+ "end": 6689,
"loc": {
"start": {
- "line": 219,
+ "line": 209,
"column": 20
},
"end": {
- "line": 219,
+ "line": 209,
"column": 26
},
"identifierName": "pFrame"
@@ -8648,15 +8236,15 @@
},
"property": {
"type": "Identifier",
- "start": 7154,
- "end": 7162,
+ "start": 6690,
+ "end": 6698,
"loc": {
"start": {
- "line": 219,
+ "line": 209,
"column": 27
},
"end": {
- "line": 219,
+ "line": 209,
"column": 35
},
"identifierName": "setDelay"
@@ -8668,15 +8256,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 7163,
- "end": 7169,
+ "start": 6699,
+ "end": 6705,
"loc": {
"start": {
- "line": 219,
+ "line": 209,
"column": 36
},
"end": {
- "line": 219,
+ "line": 209,
"column": 42
},
"identifierName": "pDelay"
@@ -8698,114 +8286,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 7213,
- "end": 7313,
+ "start": 6749,
+ "end": 6849,
"loc": {
"start": {
- "line": 221,
+ "line": 211,
"column": 19
},
"end": {
- "line": 223,
+ "line": 213,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 7232,
- "end": 7298,
+ "start": 6768,
+ "end": 6834,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 82
}
},
"expression": {
"type": "CallExpression",
- "start": 7232,
- "end": 7297,
+ "start": 6768,
+ "end": 6833,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 81
}
},
"callee": {
"type": "MemberExpression",
- "start": 7232,
- "end": 7269,
+ "start": 6768,
+ "end": 6805,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 7232,
- "end": 7263,
+ "start": 6768,
+ "end": 6799,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 7232,
- "end": 7249,
+ "start": 6768,
+ "end": 6785,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 7232,
- "end": 7242,
+ "start": 6768,
+ "end": 6778,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 7232,
- "end": 7235,
+ "start": 6768,
+ "end": 6771,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 16
},
"end": {
- "line": 222,
+ "line": 212,
"column": 19
},
"identifierName": "VYI"
@@ -8814,15 +8402,15 @@
},
"property": {
"type": "Identifier",
- "start": 7236,
- "end": 7242,
+ "start": 6772,
+ "end": 6778,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 20
},
"end": {
- "line": 222,
+ "line": 212,
"column": 26
},
"identifierName": "logger"
@@ -8833,15 +8421,15 @@
},
"property": {
"type": "Identifier",
- "start": 7243,
- "end": 7249,
+ "start": 6779,
+ "end": 6785,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 27
},
"end": {
- "line": 222,
+ "line": 212,
"column": 33
},
"identifierName": "prefix"
@@ -8853,15 +8441,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 7250,
- "end": 7262,
+ "start": 6786,
+ "end": 6798,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 34
},
"end": {
- "line": 222,
+ "line": 212,
"column": 46
}
},
@@ -8875,15 +8463,15 @@
},
"property": {
"type": "Identifier",
- "start": 7264,
- "end": 7269,
+ "start": 6800,
+ "end": 6805,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 48
},
"end": {
- "line": 222,
+ "line": 212,
"column": 53
},
"identifierName": "error"
@@ -8895,15 +8483,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 7270,
- "end": 7296,
+ "start": 6806,
+ "end": 6832,
"loc": {
"start": {
- "line": 222,
+ "line": 212,
"column": 54
},
"end": {
- "line": 222,
+ "line": 212,
"column": 80
}
},
@@ -8927,29 +8515,29 @@
},
{
"type": "ReturnStatement",
- "start": 7334,
- "end": 7346,
+ "start": 6870,
+ "end": 6882,
"loc": {
"start": {
- "line": 225,
+ "line": 215,
"column": 8
},
"end": {
- "line": 225,
+ "line": 215,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 7341,
- "end": 7345,
+ "start": 6877,
+ "end": 6881,
"loc": {
"start": {
- "line": 225,
+ "line": 215,
"column": 15
},
"end": {
- "line": 225,
+ "line": 215,
"column": 19
}
}
@@ -8963,15 +8551,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6779,
- "end": 6970,
+ "start": 6315,
+ "end": 6506,
"loc": {
"start": {
- "line": 210,
+ "line": 200,
"column": 4
},
"end": {
- "line": 214,
+ "line": 204,
"column": 7
}
}
@@ -8981,15 +8569,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n ",
- "start": 7359,
- "end": 7586,
+ "start": 6895,
+ "end": 7122,
"loc": {
"start": {
- "line": 227,
+ "line": 217,
"column": 4
},
"end": {
- "line": 231,
+ "line": 221,
"column": 7
}
}
@@ -8998,15 +8586,15 @@
},
{
"type": "ClassMethod",
- "start": 7592,
- "end": 7788,
+ "start": 7128,
+ "end": 7324,
"loc": {
"start": {
- "line": 232,
+ "line": 222,
"column": 4
},
"end": {
- "line": 238,
+ "line": 228,
"column": 5
}
},
@@ -9014,15 +8602,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 7592,
- "end": 7600,
+ "start": 7128,
+ "end": 7136,
"loc": {
"start": {
- "line": 232,
+ "line": 222,
"column": 4
},
"end": {
- "line": 232,
+ "line": 222,
"column": 12
},
"identifierName": "addState"
@@ -9038,15 +8626,15 @@
"params": [
{
"type": "Identifier",
- "start": 7601,
- "end": 7610,
+ "start": 7137,
+ "end": 7146,
"loc": {
"start": {
- "line": 232,
+ "line": 222,
"column": 13
},
"end": {
- "line": 232,
+ "line": 222,
"column": 22
},
"identifierName": "pIconData"
@@ -9056,58 +8644,58 @@
],
"body": {
"type": "BlockStatement",
- "start": 7612,
- "end": 7788,
+ "start": 7148,
+ "end": 7324,
"loc": {
"start": {
- "line": 232,
+ "line": 222,
"column": 24
},
"end": {
- "line": 238,
+ "line": 228,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 7623,
- "end": 7781,
+ "start": 7159,
+ "end": 7317,
"loc": {
"start": {
- "line": 233,
+ "line": 223,
"column": 8
},
"end": {
- "line": 237,
+ "line": 227,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
- "start": 7627,
- "end": 7654,
+ "start": 7163,
+ "end": 7190,
"loc": {
"start": {
- "line": 233,
+ "line": 223,
"column": 12
},
"end": {
- "line": 233,
+ "line": 223,
"column": 39
}
},
"left": {
"type": "Identifier",
- "start": 7627,
- "end": 7636,
+ "start": 7163,
+ "end": 7172,
"loc": {
"start": {
- "line": 233,
+ "line": 223,
"column": 12
},
"end": {
- "line": 233,
+ "line": 223,
"column": 21
},
"identifierName": "pIconData"
@@ -9117,15 +8705,15 @@
"operator": "instanceof",
"right": {
"type": "Identifier",
- "start": 7648,
- "end": 7654,
+ "start": 7184,
+ "end": 7190,
"loc": {
"start": {
- "line": 233,
+ "line": 223,
"column": 33
},
"end": {
- "line": 233,
+ "line": 223,
"column": 39
},
"identifierName": "Object"
@@ -9135,59 +8723,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 7656,
- "end": 7781,
+ "start": 7192,
+ "end": 7317,
"loc": {
"start": {
- "line": 233,
+ "line": 223,
"column": 41
},
"end": {
- "line": 237,
+ "line": 227,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 7671,
- "end": 7705,
+ "start": 7207,
+ "end": 7241,
"loc": {
"start": {
- "line": 234,
+ "line": 224,
"column": 12
},
"end": {
- "line": 234,
+ "line": 224,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 7677,
- "end": 7704,
+ "start": 7213,
+ "end": 7240,
"loc": {
"start": {
- "line": 234,
+ "line": 224,
"column": 18
},
"end": {
- "line": 234,
+ "line": 224,
"column": 45
}
},
"id": {
"type": "Identifier",
- "start": 7677,
- "end": 7682,
+ "start": 7213,
+ "end": 7218,
"loc": {
"start": {
- "line": 234,
+ "line": 224,
"column": 18
},
"end": {
- "line": 234,
+ "line": 224,
"column": 23
},
"identifierName": "state"
@@ -9196,29 +8784,29 @@
},
"init": {
"type": "NewExpression",
- "start": 7685,
- "end": 7704,
+ "start": 7221,
+ "end": 7240,
"loc": {
"start": {
- "line": 234,
+ "line": 224,
"column": 26
},
"end": {
- "line": 234,
+ "line": 224,
"column": 45
}
},
"callee": {
"type": "Identifier",
- "start": 7689,
- "end": 7693,
+ "start": 7225,
+ "end": 7229,
"loc": {
"start": {
- "line": 234,
+ "line": 224,
"column": 30
},
"end": {
- "line": 234,
+ "line": 224,
"column": 34
},
"identifierName": "Icon"
@@ -9228,15 +8816,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 7694,
- "end": 7703,
+ "start": 7230,
+ "end": 7239,
"loc": {
"start": {
- "line": 234,
+ "line": 224,
"column": 35
},
"end": {
- "line": 234,
+ "line": 224,
"column": 44
},
"identifierName": "pIconData"
@@ -9251,86 +8839,86 @@
},
{
"type": "ExpressionStatement",
- "start": 7719,
- "end": 7743,
+ "start": 7255,
+ "end": 7279,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 12
},
"end": {
- "line": 235,
+ "line": 225,
"column": 36
}
},
"expression": {
"type": "CallExpression",
- "start": 7719,
- "end": 7742,
+ "start": 7255,
+ "end": 7278,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 12
},
"end": {
- "line": 235,
+ "line": 225,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
- "start": 7719,
- "end": 7735,
+ "start": 7255,
+ "end": 7271,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 12
},
"end": {
- "line": 235,
+ "line": 225,
"column": 28
}
},
"object": {
"type": "MemberExpression",
- "start": 7719,
- "end": 7730,
+ "start": 7255,
+ "end": 7266,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 12
},
"end": {
- "line": 235,
+ "line": 225,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 7719,
- "end": 7723,
+ "start": 7255,
+ "end": 7259,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 12
},
"end": {
- "line": 235,
+ "line": 225,
"column": 16
}
}
},
"property": {
"type": "Identifier",
- "start": 7724,
- "end": 7730,
+ "start": 7260,
+ "end": 7266,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 17
},
"end": {
- "line": 235,
+ "line": 225,
"column": 23
},
"identifierName": "states"
@@ -9341,15 +8929,15 @@
},
"property": {
"type": "Identifier",
- "start": 7731,
- "end": 7735,
+ "start": 7267,
+ "end": 7271,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 24
},
"end": {
- "line": 235,
+ "line": 225,
"column": 28
},
"identifierName": "push"
@@ -9361,15 +8949,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 7736,
- "end": 7741,
+ "start": 7272,
+ "end": 7277,
"loc": {
"start": {
- "line": 235,
+ "line": 225,
"column": 29
},
"end": {
- "line": 235,
+ "line": 225,
"column": 34
},
"identifierName": "state"
@@ -9381,29 +8969,29 @@
},
{
"type": "ReturnStatement",
- "start": 7757,
- "end": 7770,
+ "start": 7293,
+ "end": 7306,
"loc": {
"start": {
- "line": 236,
+ "line": 226,
"column": 12
},
"end": {
- "line": 236,
+ "line": 226,
"column": 25
}
},
"argument": {
"type": "Identifier",
- "start": 7764,
- "end": 7769,
+ "start": 7300,
+ "end": 7305,
"loc": {
"start": {
- "line": 236,
+ "line": 226,
"column": 19
},
"end": {
- "line": 236,
+ "line": 226,
"column": 24
},
"identifierName": "state"
@@ -9424,15 +9012,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n ",
- "start": 7359,
- "end": 7586,
+ "start": 6895,
+ "end": 7122,
"loc": {
"start": {
- "line": 227,
+ "line": 217,
"column": 4
},
"end": {
- "line": 231,
+ "line": 221,
"column": 7
}
}
@@ -9442,15 +9030,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 7794,
- "end": 8155,
+ "start": 7330,
+ "end": 7691,
"loc": {
"start": {
- "line": 239,
+ "line": 229,
"column": 4
},
"end": {
- "line": 244,
+ "line": 234,
"column": 7
}
}
@@ -9459,15 +9047,15 @@
},
{
"type": "ClassMethod",
- "start": 8161,
- "end": 8923,
+ "start": 7697,
+ "end": 8459,
"loc": {
"start": {
- "line": 245,
+ "line": 235,
"column": 4
},
"end": {
- "line": 266,
+ "line": 256,
"column": 5
}
},
@@ -9475,15 +9063,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 8161,
- "end": 8172,
+ "start": 7697,
+ "end": 7708,
"loc": {
"start": {
- "line": 245,
+ "line": 235,
"column": 4
},
"end": {
- "line": 245,
+ "line": 235,
"column": 15
},
"identifierName": "removeState"
@@ -9499,15 +9087,15 @@
"params": [
{
"type": "Identifier",
- "start": 8173,
- "end": 8179,
+ "start": 7709,
+ "end": 7715,
"loc": {
"start": {
- "line": 245,
+ "line": 235,
"column": 16
},
"end": {
- "line": 245,
+ "line": 235,
"column": 22
},
"identifierName": "pState"
@@ -9516,15 +9104,15 @@
},
{
"type": "Identifier",
- "start": 8181,
- "end": 8186,
+ "start": 7717,
+ "end": 7722,
"loc": {
"start": {
- "line": 245,
+ "line": 235,
"column": 24
},
"end": {
- "line": 245,
+ "line": 235,
"column": 29
},
"identifierName": "pName"
@@ -9534,59 +9122,59 @@
],
"body": {
"type": "BlockStatement",
- "start": 8188,
- "end": 8923,
+ "start": 7724,
+ "end": 8459,
"loc": {
"start": {
- "line": 245,
+ "line": 235,
"column": 31
},
"end": {
- "line": 266,
+ "line": 256,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 8248,
- "end": 8258,
+ "start": 7784,
+ "end": 7794,
"loc": {
"start": {
- "line": 247,
+ "line": 237,
"column": 8
},
"end": {
- "line": 247,
+ "line": 237,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 8252,
- "end": 8257,
+ "start": 7788,
+ "end": 7793,
"loc": {
"start": {
- "line": 247,
+ "line": 237,
"column": 12
},
"end": {
- "line": 247,
+ "line": 237,
"column": 17
}
},
"id": {
"type": "Identifier",
- "start": 8252,
- "end": 8257,
+ "start": 7788,
+ "end": 7793,
"loc": {
"start": {
- "line": 247,
+ "line": 237,
"column": 12
},
"end": {
- "line": 247,
+ "line": 237,
"column": 17
},
"identifierName": "index"
@@ -9603,15 +9191,15 @@
{
"type": "CommentLine",
"value": " The index used to remove this frame.",
- "start": 8199,
- "end": 8238,
+ "start": 7735,
+ "end": 7774,
"loc": {
"start": {
- "line": 246,
+ "line": 236,
"column": 8
},
"end": {
- "line": 246,
+ "line": 236,
"column": 47
}
}
@@ -9621,15 +9209,15 @@
{
"type": "CommentLine",
"value": " Remove via reference to state.",
- "start": 8268,
- "end": 8301,
+ "start": 7804,
+ "end": 7837,
"loc": {
"start": {
- "line": 248,
+ "line": 238,
"column": 8
},
"end": {
- "line": 248,
+ "line": 238,
"column": 41
}
}
@@ -9638,71 +9226,71 @@
},
{
"type": "IfStatement",
- "start": 8311,
- "end": 8764,
+ "start": 7847,
+ "end": 8300,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 8
},
"end": {
- "line": 260,
+ "line": 250,
"column": 9
}
},
"test": {
"type": "CallExpression",
- "start": 8315,
- "end": 8343,
+ "start": 7851,
+ "end": 7879,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 12
},
"end": {
- "line": 249,
+ "line": 239,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
- "start": 8315,
- "end": 8335,
+ "start": 7851,
+ "end": 7871,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 12
},
"end": {
- "line": 249,
+ "line": 239,
"column": 32
}
},
"object": {
"type": "MemberExpression",
- "start": 8315,
- "end": 8326,
+ "start": 7851,
+ "end": 7862,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 12
},
"end": {
- "line": 249,
+ "line": 239,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 8315,
- "end": 8319,
+ "start": 7851,
+ "end": 7855,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 12
},
"end": {
- "line": 249,
+ "line": 239,
"column": 16
}
},
@@ -9710,15 +9298,15 @@
},
"property": {
"type": "Identifier",
- "start": 8320,
- "end": 8326,
+ "start": 7856,
+ "end": 7862,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 17
},
"end": {
- "line": 249,
+ "line": 239,
"column": 23
},
"identifierName": "states"
@@ -9730,15 +9318,15 @@
},
"property": {
"type": "Identifier",
- "start": 8327,
- "end": 8335,
+ "start": 7863,
+ "end": 7871,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 24
},
"end": {
- "line": 249,
+ "line": 239,
"column": 32
},
"identifierName": "includes"
@@ -9751,15 +9339,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 8336,
- "end": 8342,
+ "start": 7872,
+ "end": 7878,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 33
},
"end": {
- "line": 249,
+ "line": 239,
"column": 39
},
"identifierName": "pState"
@@ -9771,59 +9359,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 8345,
- "end": 8448,
+ "start": 7881,
+ "end": 7984,
"loc": {
"start": {
- "line": 249,
+ "line": 239,
"column": 42
},
"end": {
- "line": 252,
+ "line": 242,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 8360,
- "end": 8396,
+ "start": 7896,
+ "end": 7932,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 12
},
"end": {
- "line": 250,
+ "line": 240,
"column": 48
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 8360,
- "end": 8395,
+ "start": 7896,
+ "end": 7931,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 12
},
"end": {
- "line": 250,
+ "line": 240,
"column": 47
}
},
"operator": "=",
"left": {
"type": "Identifier",
- "start": 8360,
- "end": 8365,
+ "start": 7896,
+ "end": 7901,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 12
},
"end": {
- "line": 250,
+ "line": 240,
"column": 17
},
"identifierName": "index"
@@ -9832,72 +9420,72 @@
},
"right": {
"type": "CallExpression",
- "start": 8368,
- "end": 8395,
+ "start": 7904,
+ "end": 7931,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 20
},
"end": {
- "line": 250,
+ "line": 240,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 8368,
- "end": 8387,
+ "start": 7904,
+ "end": 7923,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 20
},
"end": {
- "line": 250,
+ "line": 240,
"column": 39
}
},
"object": {
"type": "MemberExpression",
- "start": 8368,
- "end": 8379,
+ "start": 7904,
+ "end": 7915,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 20
},
"end": {
- "line": 250,
+ "line": 240,
"column": 31
}
},
"object": {
"type": "ThisExpression",
- "start": 8368,
- "end": 8372,
+ "start": 7904,
+ "end": 7908,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 20
},
"end": {
- "line": 250,
+ "line": 240,
"column": 24
}
}
},
"property": {
"type": "Identifier",
- "start": 8373,
- "end": 8379,
+ "start": 7909,
+ "end": 7915,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 25
},
"end": {
- "line": 250,
+ "line": 240,
"column": 31
},
"identifierName": "states"
@@ -9908,15 +9496,15 @@
},
"property": {
"type": "Identifier",
- "start": 8380,
- "end": 8387,
+ "start": 7916,
+ "end": 7923,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 32
},
"end": {
- "line": 250,
+ "line": 240,
"column": 39
},
"identifierName": "indexOf"
@@ -9928,15 +9516,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 8388,
- "end": 8394,
+ "start": 7924,
+ "end": 7930,
"loc": {
"start": {
- "line": 250,
+ "line": 240,
"column": 40
},
"end": {
- "line": 250,
+ "line": 240,
"column": 46
},
"identifierName": "pState"
@@ -9950,15 +9538,15 @@
{
"type": "CommentLine",
"value": " Remove via reference to name",
- "start": 8406,
- "end": 8437,
+ "start": 7942,
+ "end": 7973,
"loc": {
"start": {
- "line": 251,
+ "line": 241,
"column": 8
},
"end": {
- "line": 251,
+ "line": 241,
"column": 39
}
}
@@ -9970,43 +9558,43 @@
},
"alternate": {
"type": "IfStatement",
- "start": 8454,
- "end": 8764,
+ "start": 7990,
+ "end": 8300,
"loc": {
"start": {
- "line": 252,
+ "line": 242,
"column": 15
},
"end": {
- "line": 260,
+ "line": 250,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
- "start": 8458,
- "end": 8484,
+ "start": 7994,
+ "end": 8020,
"loc": {
"start": {
- "line": 252,
+ "line": 242,
"column": 19
},
"end": {
- "line": 252,
+ "line": 242,
"column": 45
}
},
"left": {
"type": "UnaryExpression",
- "start": 8458,
- "end": 8471,
+ "start": 7994,
+ "end": 8007,
"loc": {
"start": {
- "line": 252,
+ "line": 242,
"column": 19
},
"end": {
- "line": 252,
+ "line": 242,
"column": 32
}
},
@@ -10014,15 +9602,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 8465,
- "end": 8470,
+ "start": 8001,
+ "end": 8006,
"loc": {
"start": {
- "line": 252,
+ "line": 242,
"column": 26
},
"end": {
- "line": 252,
+ "line": 242,
"column": 31
},
"identifierName": "pName"
@@ -10030,7 +9618,7 @@
"name": "pName",
"extra": {
"parenthesized": true,
- "parenStart": 8464
+ "parenStart": 8000
}
},
"extra": {
@@ -10040,15 +9628,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 8476,
- "end": 8484,
+ "start": 8012,
+ "end": 8020,
"loc": {
"start": {
- "line": 252,
+ "line": 242,
"column": 37
},
"end": {
- "line": 252,
+ "line": 242,
"column": 45
}
},
@@ -10061,59 +9649,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 8486,
- "end": 8641,
+ "start": 8022,
+ "end": 8177,
"loc": {
"start": {
- "line": 252,
+ "line": 242,
"column": 47
},
"end": {
- "line": 257,
+ "line": 247,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 8501,
- "end": 8536,
+ "start": 8037,
+ "end": 8072,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 12
},
"end": {
- "line": 253,
+ "line": 243,
"column": 47
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 8507,
- "end": 8535,
+ "start": 8043,
+ "end": 8071,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 18
},
"end": {
- "line": 253,
+ "line": 243,
"column": 46
}
},
"id": {
"type": "Identifier",
- "start": 8507,
- "end": 8512,
+ "start": 8043,
+ "end": 8048,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 18
},
"end": {
- "line": 253,
+ "line": 243,
"column": 23
},
"identifierName": "state"
@@ -10122,58 +9710,58 @@
},
"init": {
"type": "CallExpression",
- "start": 8515,
- "end": 8535,
+ "start": 8051,
+ "end": 8071,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 26
},
"end": {
- "line": 253,
+ "line": 243,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
- "start": 8515,
- "end": 8528,
+ "start": 8051,
+ "end": 8064,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 26
},
"end": {
- "line": 253,
+ "line": 243,
"column": 39
}
},
"object": {
"type": "ThisExpression",
- "start": 8515,
- "end": 8519,
+ "start": 8051,
+ "end": 8055,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 26
},
"end": {
- "line": 253,
+ "line": 243,
"column": 30
}
}
},
"property": {
"type": "Identifier",
- "start": 8520,
- "end": 8528,
+ "start": 8056,
+ "end": 8064,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 31
},
"end": {
- "line": 253,
+ "line": 243,
"column": 39
},
"identifierName": "getState"
@@ -10185,15 +9773,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 8529,
- "end": 8534,
+ "start": 8065,
+ "end": 8070,
"loc": {
"start": {
- "line": 253,
+ "line": 243,
"column": 40
},
"end": {
- "line": 253,
+ "line": 243,
"column": 45
},
"identifierName": "pName"
@@ -10208,29 +9796,29 @@
},
{
"type": "IfStatement",
- "start": 8550,
- "end": 8630,
+ "start": 8086,
+ "end": 8166,
"loc": {
"start": {
- "line": 254,
+ "line": 244,
"column": 12
},
"end": {
- "line": 256,
+ "line": 246,
"column": 13
}
},
"test": {
"type": "Identifier",
- "start": 8554,
- "end": 8559,
+ "start": 8090,
+ "end": 8095,
"loc": {
"start": {
- "line": 254,
+ "line": 244,
"column": 16
},
"end": {
- "line": 254,
+ "line": 244,
"column": 21
},
"identifierName": "state"
@@ -10239,59 +9827,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 8561,
- "end": 8630,
+ "start": 8097,
+ "end": 8166,
"loc": {
"start": {
- "line": 254,
+ "line": 244,
"column": 23
},
"end": {
- "line": 256,
+ "line": 246,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 8580,
- "end": 8615,
+ "start": 8116,
+ "end": 8151,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 16
},
"end": {
- "line": 255,
+ "line": 245,
"column": 51
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 8580,
- "end": 8614,
+ "start": 8116,
+ "end": 8150,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 16
},
"end": {
- "line": 255,
+ "line": 245,
"column": 50
}
},
"operator": "=",
"left": {
"type": "Identifier",
- "start": 8580,
- "end": 8585,
+ "start": 8116,
+ "end": 8121,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 16
},
"end": {
- "line": 255,
+ "line": 245,
"column": 21
},
"identifierName": "index"
@@ -10300,72 +9888,72 @@
},
"right": {
"type": "CallExpression",
- "start": 8588,
- "end": 8614,
+ "start": 8124,
+ "end": 8150,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 24
},
"end": {
- "line": 255,
+ "line": 245,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
- "start": 8588,
- "end": 8607,
+ "start": 8124,
+ "end": 8143,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 24
},
"end": {
- "line": 255,
+ "line": 245,
"column": 43
}
},
"object": {
"type": "MemberExpression",
- "start": 8588,
- "end": 8599,
+ "start": 8124,
+ "end": 8135,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 24
},
"end": {
- "line": 255,
+ "line": 245,
"column": 35
}
},
"object": {
"type": "ThisExpression",
- "start": 8588,
- "end": 8592,
+ "start": 8124,
+ "end": 8128,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 24
},
"end": {
- "line": 255,
+ "line": 245,
"column": 28
}
}
},
"property": {
"type": "Identifier",
- "start": 8593,
- "end": 8599,
+ "start": 8129,
+ "end": 8135,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 29
},
"end": {
- "line": 255,
+ "line": 245,
"column": 35
},
"identifierName": "states"
@@ -10376,15 +9964,15 @@
},
"property": {
"type": "Identifier",
- "start": 8600,
- "end": 8607,
+ "start": 8136,
+ "end": 8143,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 36
},
"end": {
- "line": 255,
+ "line": 245,
"column": 43
},
"identifierName": "indexOf"
@@ -10396,15 +9984,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 8608,
- "end": 8613,
+ "start": 8144,
+ "end": 8149,
"loc": {
"start": {
- "line": 255,
+ "line": 245,
"column": 44
},
"end": {
- "line": 255,
+ "line": 245,
"column": 49
},
"identifierName": "state"
@@ -10425,114 +10013,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 8647,
- "end": 8764,
+ "start": 8183,
+ "end": 8300,
"loc": {
"start": {
- "line": 257,
+ "line": 247,
"column": 15
},
"end": {
- "line": 260,
+ "line": 250,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 8662,
- "end": 8727,
+ "start": 8198,
+ "end": 8263,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 77
}
},
"expression": {
"type": "CallExpression",
- "start": 8662,
- "end": 8726,
+ "start": 8198,
+ "end": 8262,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
- "start": 8662,
- "end": 8699,
+ "start": 8198,
+ "end": 8235,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 49
}
},
"object": {
"type": "CallExpression",
- "start": 8662,
- "end": 8693,
+ "start": 8198,
+ "end": 8229,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
- "start": 8662,
- "end": 8679,
+ "start": 8198,
+ "end": 8215,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 29
}
},
"object": {
"type": "MemberExpression",
- "start": 8662,
- "end": 8672,
+ "start": 8198,
+ "end": 8208,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 22
}
},
"object": {
"type": "Identifier",
- "start": 8662,
- "end": 8665,
+ "start": 8198,
+ "end": 8201,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 12
},
"end": {
- "line": 258,
+ "line": 248,
"column": 15
},
"identifierName": "VYI"
@@ -10541,15 +10129,15 @@
},
"property": {
"type": "Identifier",
- "start": 8666,
- "end": 8672,
+ "start": 8202,
+ "end": 8208,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 16
},
"end": {
- "line": 258,
+ "line": 248,
"column": 22
},
"identifierName": "logger"
@@ -10560,15 +10148,15 @@
},
"property": {
"type": "Identifier",
- "start": 8673,
- "end": 8679,
+ "start": 8209,
+ "end": 8215,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 23
},
"end": {
- "line": 258,
+ "line": 248,
"column": 29
},
"identifierName": "prefix"
@@ -10580,15 +10168,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 8680,
- "end": 8692,
+ "start": 8216,
+ "end": 8228,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 30
},
"end": {
- "line": 258,
+ "line": 248,
"column": 42
}
},
@@ -10602,15 +10190,15 @@
},
"property": {
"type": "Identifier",
- "start": 8694,
- "end": 8699,
+ "start": 8230,
+ "end": 8235,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 44
},
"end": {
- "line": 258,
+ "line": 248,
"column": 49
},
"identifierName": "error"
@@ -10622,15 +10210,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 8700,
- "end": 8725,
+ "start": 8236,
+ "end": 8261,
"loc": {
"start": {
- "line": 258,
+ "line": 248,
"column": 50
},
"end": {
- "line": 258,
+ "line": 248,
"column": 75
}
},
@@ -10645,29 +10233,29 @@
},
{
"type": "ReturnStatement",
- "start": 8741,
- "end": 8753,
+ "start": 8277,
+ "end": 8289,
"loc": {
"start": {
- "line": 259,
+ "line": 249,
"column": 12
},
"end": {
- "line": 259,
+ "line": 249,
"column": 24
}
},
"argument": {
"type": "ThisExpression",
- "start": 8748,
- "end": 8752,
+ "start": 8284,
+ "end": 8288,
"loc": {
"start": {
- "line": 259,
+ "line": 249,
"column": 19
},
"end": {
- "line": 259,
+ "line": 249,
"column": 23
}
}
@@ -10681,15 +10269,15 @@
{
"type": "CommentLine",
"value": " Remove via reference to state.",
- "start": 8268,
- "end": 8301,
+ "start": 7804,
+ "end": 7837,
"loc": {
"start": {
- "line": 248,
+ "line": 238,
"column": 8
},
"end": {
- "line": 248,
+ "line": 238,
"column": 41
}
}
@@ -10698,43 +10286,43 @@
},
{
"type": "IfStatement",
- "start": 8774,
- "end": 8894,
+ "start": 8310,
+ "end": 8430,
"loc": {
"start": {
- "line": 261,
+ "line": 251,
"column": 8
},
"end": {
- "line": 264,
+ "line": 254,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
- "start": 8778,
- "end": 8804,
+ "start": 8314,
+ "end": 8340,
"loc": {
"start": {
- "line": 261,
+ "line": 251,
"column": 12
},
"end": {
- "line": 261,
+ "line": 251,
"column": 38
}
},
"left": {
"type": "UnaryExpression",
- "start": 8778,
- "end": 8791,
+ "start": 8314,
+ "end": 8327,
"loc": {
"start": {
- "line": 261,
+ "line": 251,
"column": 12
},
"end": {
- "line": 261,
+ "line": 251,
"column": 25
}
},
@@ -10742,15 +10330,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 8785,
- "end": 8790,
+ "start": 8321,
+ "end": 8326,
"loc": {
"start": {
- "line": 261,
+ "line": 251,
"column": 19
},
"end": {
- "line": 261,
+ "line": 251,
"column": 24
},
"identifierName": "index"
@@ -10758,7 +10346,7 @@
"name": "index",
"extra": {
"parenthesized": true,
- "parenStart": 8784
+ "parenStart": 8320
}
},
"extra": {
@@ -10768,15 +10356,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 8796,
- "end": 8804,
+ "start": 8332,
+ "end": 8340,
"loc": {
"start": {
- "line": 261,
+ "line": 251,
"column": 30
},
"end": {
- "line": 261,
+ "line": 251,
"column": 38
}
},
@@ -10789,86 +10377,86 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 8806,
- "end": 8894,
+ "start": 8342,
+ "end": 8430,
"loc": {
"start": {
- "line": 261,
+ "line": 251,
"column": 40
},
"end": {
- "line": 264,
+ "line": 254,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 8854,
- "end": 8883,
+ "start": 8390,
+ "end": 8419,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 12
},
"end": {
- "line": 263,
+ "line": 253,
"column": 41
}
},
"expression": {
"type": "CallExpression",
- "start": 8854,
- "end": 8882,
+ "start": 8390,
+ "end": 8418,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 12
},
"end": {
- "line": 263,
+ "line": 253,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
- "start": 8854,
- "end": 8872,
+ "start": 8390,
+ "end": 8408,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 12
},
"end": {
- "line": 263,
+ "line": 253,
"column": 30
}
},
"object": {
"type": "MemberExpression",
- "start": 8854,
- "end": 8865,
+ "start": 8390,
+ "end": 8401,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 12
},
"end": {
- "line": 263,
+ "line": 253,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 8854,
- "end": 8858,
+ "start": 8390,
+ "end": 8394,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 12
},
"end": {
- "line": 263,
+ "line": 253,
"column": 16
}
},
@@ -10876,15 +10464,15 @@
},
"property": {
"type": "Identifier",
- "start": 8859,
- "end": 8865,
+ "start": 8395,
+ "end": 8401,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 17
},
"end": {
- "line": 263,
+ "line": 253,
"column": 23
},
"identifierName": "states"
@@ -10896,15 +10484,15 @@
},
"property": {
"type": "Identifier",
- "start": 8866,
- "end": 8872,
+ "start": 8402,
+ "end": 8408,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 24
},
"end": {
- "line": 263,
+ "line": 253,
"column": 30
},
"identifierName": "splice"
@@ -10917,15 +10505,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 8873,
- "end": 8878,
+ "start": 8409,
+ "end": 8414,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 31
},
"end": {
- "line": 263,
+ "line": 253,
"column": 36
},
"identifierName": "index"
@@ -10934,15 +10522,15 @@
},
{
"type": "NumericLiteral",
- "start": 8880,
- "end": 8881,
+ "start": 8416,
+ "end": 8417,
"loc": {
"start": {
- "line": 263,
+ "line": 253,
"column": 38
},
"end": {
- "line": 263,
+ "line": 253,
"column": 39
}
},
@@ -10959,15 +10547,15 @@
{
"type": "CommentLine",
"value": " Remove the state",
- "start": 8821,
- "end": 8840,
+ "start": 8357,
+ "end": 8376,
"loc": {
"start": {
- "line": 262,
+ "line": 252,
"column": 12
},
"end": {
- "line": 262,
+ "line": 252,
"column": 31
}
}
@@ -10981,29 +10569,29 @@
},
{
"type": "ReturnStatement",
- "start": 8904,
- "end": 8916,
+ "start": 8440,
+ "end": 8452,
"loc": {
"start": {
- "line": 265,
+ "line": 255,
"column": 8
},
"end": {
- "line": 265,
+ "line": 255,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 8911,
- "end": 8915,
+ "start": 8447,
+ "end": 8451,
"loc": {
"start": {
- "line": 265,
+ "line": 255,
"column": 15
},
"end": {
- "line": 265,
+ "line": 255,
"column": 19
}
}
@@ -11017,15 +10605,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 7794,
- "end": 8155,
+ "start": 7330,
+ "end": 7691,
"loc": {
"start": {
- "line": 239,
+ "line": 229,
"column": 4
},
"end": {
- "line": 244,
+ "line": 234,
"column": 7
}
}
@@ -11035,15 +10623,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n ",
- "start": 8929,
- "end": 9126,
+ "start": 8465,
+ "end": 8662,
"loc": {
"start": {
- "line": 267,
+ "line": 257,
"column": 4
},
"end": {
- "line": 271,
+ "line": 261,
"column": 7
}
}
@@ -11052,15 +10640,15 @@
},
{
"type": "ClassMethod",
- "start": 9132,
- "end": 9736,
+ "start": 8668,
+ "end": 9278,
"loc": {
"start": {
- "line": 272,
+ "line": 262,
"column": 4
},
"end": {
- "line": 287,
+ "line": 277,
"column": 5
}
},
@@ -11068,15 +10656,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 9132,
- "end": 9140,
+ "start": 8668,
+ "end": 8676,
"loc": {
"start": {
- "line": 272,
+ "line": 262,
"column": 4
},
"end": {
- "line": 272,
+ "line": 262,
"column": 12
},
"identifierName": "addFrame"
@@ -11092,15 +10680,15 @@
"params": [
{
"type": "Identifier",
- "start": 9141,
- "end": 9151,
+ "start": 8677,
+ "end": 8687,
"loc": {
"start": {
- "line": 272,
+ "line": 262,
"column": 13
},
"end": {
- "line": 272,
+ "line": 262,
"column": 23
},
"identifierName": "pFrameData"
@@ -11110,44 +10698,44 @@
],
"body": {
"type": "BlockStatement",
- "start": 9153,
- "end": 9736,
+ "start": 8689,
+ "end": 9278,
"loc": {
"start": {
- "line": 272,
+ "line": 262,
"column": 25
},
"end": {
- "line": 287,
+ "line": 277,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 9164,
- "end": 9729,
+ "start": 8700,
+ "end": 9271,
"loc": {
"start": {
- "line": 273,
+ "line": 263,
"column": 8
},
"end": {
- "line": 286,
+ "line": 276,
"column": 9
}
},
"test": {
"type": "Identifier",
- "start": 9168,
- "end": 9178,
+ "start": 8704,
+ "end": 8714,
"loc": {
"start": {
- "line": 273,
+ "line": 263,
"column": 12
},
"end": {
- "line": 273,
+ "line": 263,
"column": 22
},
"identifierName": "pFrameData"
@@ -11156,58 +10744,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 9180,
- "end": 9634,
+ "start": 8716,
+ "end": 9176,
"loc": {
"start": {
- "line": 273,
+ "line": 263,
"column": 24
},
"end": {
- "line": 284,
+ "line": 274,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 9195,
- "end": 9623,
+ "start": 8731,
+ "end": 9165,
"loc": {
"start": {
- "line": 274,
+ "line": 264,
"column": 12
},
"end": {
- "line": 283,
+ "line": 273,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 9199,
- "end": 9227,
+ "start": 8735,
+ "end": 8763,
"loc": {
"start": {
- "line": 274,
+ "line": 264,
"column": 16
},
"end": {
- "line": 274,
+ "line": 264,
"column": 44
}
},
"left": {
"type": "Identifier",
- "start": 9199,
- "end": 9209,
+ "start": 8735,
+ "end": 8745,
"loc": {
"start": {
- "line": 274,
+ "line": 264,
"column": 16
},
"end": {
- "line": 274,
+ "line": 264,
"column": 26
},
"identifierName": "pFrameData"
@@ -11217,15 +10805,15 @@
"operator": "instanceof",
"right": {
"type": "Identifier",
- "start": 9221,
- "end": 9227,
+ "start": 8757,
+ "end": 8763,
"loc": {
"start": {
- "line": 274,
+ "line": 264,
"column": 38
},
"end": {
- "line": 274,
+ "line": 264,
"column": 44
},
"identifierName": "Object"
@@ -11235,59 +10823,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 9229,
- "end": 9515,
+ "start": 8765,
+ "end": 9057,
"loc": {
"start": {
- "line": 274,
+ "line": 264,
"column": 46
},
"end": {
- "line": 281,
+ "line": 271,
"column": 13
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 9248,
- "end": 9284,
+ "start": 8784,
+ "end": 8826,
"loc": {
"start": {
- "line": 275,
+ "line": 265,
"column": 16
},
"end": {
- "line": 275,
- "column": 52
+ "line": 265,
+ "column": 58
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 9254,
- "end": 9283,
+ "start": 8790,
+ "end": 8825,
"loc": {
"start": {
- "line": 275,
+ "line": 265,
"column": 22
},
"end": {
- "line": 275,
- "column": 51
+ "line": 265,
+ "column": 57
}
},
"id": {
"type": "Identifier",
- "start": 9254,
- "end": 9259,
+ "start": 8790,
+ "end": 8795,
"loc": {
"start": {
- "line": 275,
+ "line": 265,
"column": 22
},
"end": {
- "line": 275,
+ "line": 265,
"column": 27
},
"identifierName": "frame"
@@ -11296,29 +10884,29 @@
},
"init": {
"type": "NewExpression",
- "start": 9262,
- "end": 9283,
+ "start": 8798,
+ "end": 8825,
"loc": {
"start": {
- "line": 275,
+ "line": 265,
"column": 30
},
"end": {
- "line": 275,
- "column": 51
+ "line": 265,
+ "column": 57
}
},
"callee": {
"type": "Identifier",
- "start": 9266,
- "end": 9271,
+ "start": 8802,
+ "end": 8807,
"loc": {
"start": {
- "line": 275,
+ "line": 265,
"column": 34
},
"end": {
- "line": 275,
+ "line": 265,
"column": 39
},
"identifierName": "Frame"
@@ -11328,20 +10916,35 @@
"arguments": [
{
"type": "Identifier",
- "start": 9272,
- "end": 9282,
+ "start": 8808,
+ "end": 8818,
"loc": {
"start": {
- "line": 275,
+ "line": 265,
"column": 40
},
"end": {
- "line": 275,
+ "line": 265,
"column": 50
},
"identifierName": "pFrameData"
},
"name": "pFrameData"
+ },
+ {
+ "type": "ThisExpression",
+ "start": 8820,
+ "end": 8824,
+ "loc": {
+ "start": {
+ "line": 265,
+ "column": 52
+ },
+ "end": {
+ "line": 265,
+ "column": 56
+ }
+ }
}
]
}
@@ -11352,15 +10955,15 @@
{
"type": "CommentLine",
"value": " Add the frame to the frames array.",
- "start": 9302,
- "end": 9339,
+ "start": 8844,
+ "end": 8881,
"loc": {
"start": {
- "line": 276,
+ "line": 266,
"column": 16
},
"end": {
- "line": 276,
+ "line": 266,
"column": 53
}
}
@@ -11369,71 +10972,71 @@
},
{
"type": "ExpressionStatement",
- "start": 9357,
- "end": 9381,
+ "start": 8899,
+ "end": 8923,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 16
},
"end": {
- "line": 277,
+ "line": 267,
"column": 40
}
},
"expression": {
"type": "CallExpression",
- "start": 9357,
- "end": 9380,
+ "start": 8899,
+ "end": 8922,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 16
},
"end": {
- "line": 277,
+ "line": 267,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
- "start": 9357,
- "end": 9373,
+ "start": 8899,
+ "end": 8915,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 16
},
"end": {
- "line": 277,
+ "line": 267,
"column": 32
}
},
"object": {
"type": "MemberExpression",
- "start": 9357,
- "end": 9368,
+ "start": 8899,
+ "end": 8910,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 16
},
"end": {
- "line": 277,
+ "line": 267,
"column": 27
}
},
"object": {
"type": "ThisExpression",
- "start": 9357,
- "end": 9361,
+ "start": 8899,
+ "end": 8903,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 16
},
"end": {
- "line": 277,
+ "line": 267,
"column": 20
}
},
@@ -11441,15 +11044,15 @@
},
"property": {
"type": "Identifier",
- "start": 9362,
- "end": 9368,
+ "start": 8904,
+ "end": 8910,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 21
},
"end": {
- "line": 277,
+ "line": 267,
"column": 27
},
"identifierName": "frames"
@@ -11461,15 +11064,15 @@
},
"property": {
"type": "Identifier",
- "start": 9369,
- "end": 9373,
+ "start": 8911,
+ "end": 8915,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 28
},
"end": {
- "line": 277,
+ "line": 267,
"column": 32
},
"identifierName": "push"
@@ -11482,15 +11085,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 9374,
- "end": 9379,
+ "start": 8916,
+ "end": 8921,
"loc": {
"start": {
- "line": 277,
+ "line": 267,
"column": 33
},
"end": {
- "line": 277,
+ "line": 267,
"column": 38
},
"identifierName": "frame"
@@ -11504,15 +11107,15 @@
{
"type": "CommentLine",
"value": " Add the frame to the frames array.",
- "start": 9302,
- "end": 9339,
+ "start": 8844,
+ "end": 8881,
"loc": {
"start": {
- "line": 276,
+ "line": 266,
"column": 16
},
"end": {
- "line": 276,
+ "line": 266,
"column": 53
}
}
@@ -11522,15 +11125,15 @@
{
"type": "CommentLine",
"value": " Re-index frames after a change",
- "start": 9399,
- "end": 9432,
+ "start": 8941,
+ "end": 8974,
"loc": {
"start": {
- "line": 278,
+ "line": 268,
"column": 16
},
"end": {
- "line": 278,
+ "line": 268,
"column": 49
}
}
@@ -11539,57 +11142,57 @@
},
{
"type": "ExpressionStatement",
- "start": 9450,
- "end": 9469,
+ "start": 8992,
+ "end": 9011,
"loc": {
"start": {
- "line": 279,
+ "line": 269,
"column": 16
},
"end": {
- "line": 279,
+ "line": 269,
"column": 35
}
},
"expression": {
"type": "CallExpression",
- "start": 9450,
- "end": 9468,
+ "start": 8992,
+ "end": 9010,
"loc": {
"start": {
- "line": 279,
+ "line": 269,
"column": 16
},
"end": {
- "line": 279,
+ "line": 269,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
- "start": 9450,
- "end": 9466,
+ "start": 8992,
+ "end": 9008,
"loc": {
"start": {
- "line": 279,
+ "line": 269,
"column": 16
},
"end": {
- "line": 279,
+ "line": 269,
"column": 32
}
},
"object": {
"type": "ThisExpression",
- "start": 9450,
- "end": 9454,
+ "start": 8992,
+ "end": 8996,
"loc": {
"start": {
- "line": 279,
+ "line": 269,
"column": 16
},
"end": {
- "line": 279,
+ "line": 269,
"column": 20
}
},
@@ -11597,15 +11200,15 @@
},
"property": {
"type": "Identifier",
- "start": 9455,
- "end": 9466,
+ "start": 8997,
+ "end": 9008,
"loc": {
"start": {
- "line": 279,
+ "line": 269,
"column": 21
},
"end": {
- "line": 279,
+ "line": 269,
"column": 32
},
"identifierName": "indexFrames"
@@ -11622,15 +11225,15 @@
{
"type": "CommentLine",
"value": " Re-index frames after a change",
- "start": 9399,
- "end": 9432,
+ "start": 8941,
+ "end": 8974,
"loc": {
"start": {
- "line": 278,
+ "line": 268,
"column": 16
},
"end": {
- "line": 278,
+ "line": 268,
"column": 49
}
}
@@ -11639,29 +11242,29 @@
},
{
"type": "ReturnStatement",
- "start": 9487,
- "end": 9500,
+ "start": 9029,
+ "end": 9042,
"loc": {
"start": {
- "line": 280,
+ "line": 270,
"column": 16
},
"end": {
- "line": 280,
+ "line": 270,
"column": 29
}
},
"argument": {
"type": "Identifier",
- "start": 9494,
- "end": 9499,
+ "start": 9036,
+ "end": 9041,
"loc": {
"start": {
- "line": 280,
+ "line": 270,
"column": 23
},
"end": {
- "line": 280,
+ "line": 270,
"column": 28
},
"identifierName": "frame"
@@ -11674,114 +11277,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 9521,
- "end": 9623,
+ "start": 9063,
+ "end": 9165,
"loc": {
"start": {
- "line": 281,
+ "line": 271,
"column": 19
},
"end": {
- "line": 283,
+ "line": 273,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 9540,
- "end": 9608,
+ "start": 9082,
+ "end": 9150,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 84
}
},
"expression": {
"type": "CallExpression",
- "start": 9540,
- "end": 9607,
+ "start": 9082,
+ "end": 9149,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 83
}
},
"callee": {
"type": "MemberExpression",
- "start": 9540,
- "end": 9577,
+ "start": 9082,
+ "end": 9119,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 9540,
- "end": 9571,
+ "start": 9082,
+ "end": 9113,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 9540,
- "end": 9557,
+ "start": 9082,
+ "end": 9099,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 9540,
- "end": 9550,
+ "start": 9082,
+ "end": 9092,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 9540,
- "end": 9543,
+ "start": 9082,
+ "end": 9085,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 16
},
"end": {
- "line": 282,
+ "line": 272,
"column": 19
},
"identifierName": "VYI"
@@ -11790,15 +11393,15 @@
},
"property": {
"type": "Identifier",
- "start": 9544,
- "end": 9550,
+ "start": 9086,
+ "end": 9092,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 20
},
"end": {
- "line": 282,
+ "line": 272,
"column": 26
},
"identifierName": "logger"
@@ -11809,15 +11412,15 @@
},
"property": {
"type": "Identifier",
- "start": 9551,
- "end": 9557,
+ "start": 9093,
+ "end": 9099,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 27
},
"end": {
- "line": 282,
+ "line": 272,
"column": 33
},
"identifierName": "prefix"
@@ -11829,15 +11432,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 9558,
- "end": 9570,
+ "start": 9100,
+ "end": 9112,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 34
},
"end": {
- "line": 282,
+ "line": 272,
"column": 46
}
},
@@ -11851,15 +11454,15 @@
},
"property": {
"type": "Identifier",
- "start": 9572,
- "end": 9577,
+ "start": 9114,
+ "end": 9119,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 48
},
"end": {
- "line": 282,
+ "line": 272,
"column": 53
},
"identifierName": "error"
@@ -11871,15 +11474,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 9578,
- "end": 9606,
+ "start": 9120,
+ "end": 9148,
"loc": {
"start": {
- "line": 282,
+ "line": 272,
"column": 54
},
"end": {
- "line": 282,
+ "line": 272,
"column": 82
}
},
@@ -11901,114 +11504,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 9640,
- "end": 9729,
+ "start": 9182,
+ "end": 9271,
"loc": {
"start": {
- "line": 284,
+ "line": 274,
"column": 15
},
"end": {
- "line": 286,
+ "line": 276,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 9655,
- "end": 9718,
+ "start": 9197,
+ "end": 9260,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 75
}
},
"expression": {
"type": "CallExpression",
- "start": 9655,
- "end": 9717,
+ "start": 9197,
+ "end": 9259,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 74
}
},
"callee": {
"type": "MemberExpression",
- "start": 9655,
- "end": 9692,
+ "start": 9197,
+ "end": 9234,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 49
}
},
"object": {
"type": "CallExpression",
- "start": 9655,
- "end": 9686,
+ "start": 9197,
+ "end": 9228,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
- "start": 9655,
- "end": 9672,
+ "start": 9197,
+ "end": 9214,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 29
}
},
"object": {
"type": "MemberExpression",
- "start": 9655,
- "end": 9665,
+ "start": 9197,
+ "end": 9207,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 22
}
},
"object": {
"type": "Identifier",
- "start": 9655,
- "end": 9658,
+ "start": 9197,
+ "end": 9200,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 12
},
"end": {
- "line": 285,
+ "line": 275,
"column": 15
},
"identifierName": "VYI"
@@ -12017,15 +11620,15 @@
},
"property": {
"type": "Identifier",
- "start": 9659,
- "end": 9665,
+ "start": 9201,
+ "end": 9207,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 16
},
"end": {
- "line": 285,
+ "line": 275,
"column": 22
},
"identifierName": "logger"
@@ -12036,15 +11639,15 @@
},
"property": {
"type": "Identifier",
- "start": 9666,
- "end": 9672,
+ "start": 9208,
+ "end": 9214,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 23
},
"end": {
- "line": 285,
+ "line": 275,
"column": 29
},
"identifierName": "prefix"
@@ -12056,15 +11659,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 9673,
- "end": 9685,
+ "start": 9215,
+ "end": 9227,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 30
},
"end": {
- "line": 285,
+ "line": 275,
"column": 42
}
},
@@ -12078,15 +11681,15 @@
},
"property": {
"type": "Identifier",
- "start": 9687,
- "end": 9692,
+ "start": 9229,
+ "end": 9234,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 44
},
"end": {
- "line": 285,
+ "line": 275,
"column": 49
},
"identifierName": "error"
@@ -12098,15 +11701,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 9693,
- "end": 9716,
+ "start": 9235,
+ "end": 9258,
"loc": {
"start": {
- "line": 285,
+ "line": 275,
"column": 50
},
"end": {
- "line": 285,
+ "line": 275,
"column": 73
}
},
@@ -12131,15 +11734,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n ",
- "start": 8929,
- "end": 9126,
+ "start": 8465,
+ "end": 8662,
"loc": {
"start": {
- "line": 267,
+ "line": 257,
"column": 4
},
"end": {
- "line": 271,
+ "line": 261,
"column": 7
}
}
@@ -12149,15 +11752,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 9742,
- "end": 10149,
+ "start": 9284,
+ "end": 9691,
"loc": {
"start": {
- "line": 288,
+ "line": 278,
"column": 4
},
"end": {
- "line": 293,
+ "line": 283,
"column": 7
}
}
@@ -12166,15 +11769,15 @@
},
{
"type": "ClassMethod",
- "start": 10155,
- "end": 11126,
+ "start": 9697,
+ "end": 10668,
"loc": {
"start": {
- "line": 294,
+ "line": 284,
"column": 4
},
"end": {
- "line": 320,
+ "line": 310,
"column": 5
}
},
@@ -12182,15 +11785,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 10155,
- "end": 10166,
+ "start": 9697,
+ "end": 9708,
"loc": {
"start": {
- "line": 294,
+ "line": 284,
"column": 4
},
"end": {
- "line": 294,
+ "line": 284,
"column": 15
},
"identifierName": "removeFrame"
@@ -12206,15 +11809,15 @@
"params": [
{
"type": "Identifier",
- "start": 10167,
- "end": 10173,
+ "start": 9709,
+ "end": 9715,
"loc": {
"start": {
- "line": 294,
+ "line": 284,
"column": 16
},
"end": {
- "line": 294,
+ "line": 284,
"column": 22
},
"identifierName": "pFrame"
@@ -12223,15 +11826,15 @@
},
{
"type": "Identifier",
- "start": 10175,
- "end": 10181,
+ "start": 9717,
+ "end": 9723,
"loc": {
"start": {
- "line": 294,
+ "line": 284,
"column": 24
},
"end": {
- "line": 294,
+ "line": 284,
"column": 30
},
"identifierName": "pIndex"
@@ -12241,59 +11844,59 @@
],
"body": {
"type": "BlockStatement",
- "start": 10183,
- "end": 11126,
+ "start": 9725,
+ "end": 10668,
"loc": {
"start": {
- "line": 294,
+ "line": 284,
"column": 32
},
"end": {
- "line": 320,
+ "line": 310,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 10243,
- "end": 10253,
+ "start": 9785,
+ "end": 9795,
"loc": {
"start": {
- "line": 296,
+ "line": 286,
"column": 8
},
"end": {
- "line": 296,
+ "line": 286,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 10247,
- "end": 10252,
+ "start": 9789,
+ "end": 9794,
"loc": {
"start": {
- "line": 296,
+ "line": 286,
"column": 12
},
"end": {
- "line": 296,
+ "line": 286,
"column": 17
}
},
"id": {
"type": "Identifier",
- "start": 10247,
- "end": 10252,
+ "start": 9789,
+ "end": 9794,
"loc": {
"start": {
- "line": 296,
+ "line": 286,
"column": 12
},
"end": {
- "line": 296,
+ "line": 286,
"column": 17
},
"identifierName": "index"
@@ -12310,15 +11913,15 @@
{
"type": "CommentLine",
"value": " The index used to remove this frame.",
- "start": 10194,
- "end": 10233,
+ "start": 9736,
+ "end": 9775,
"loc": {
"start": {
- "line": 295,
+ "line": 285,
"column": 8
},
"end": {
- "line": 295,
+ "line": 285,
"column": 47
}
}
@@ -12328,15 +11931,15 @@
{
"type": "CommentLine",
"value": " Remove via reference to frame.",
- "start": 10263,
- "end": 10296,
+ "start": 9805,
+ "end": 9838,
"loc": {
"start": {
- "line": 297,
+ "line": 287,
"column": 8
},
"end": {
- "line": 297,
+ "line": 287,
"column": 41
}
}
@@ -12345,71 +11948,71 @@
},
{
"type": "IfStatement",
- "start": 10306,
- "end": 10887,
+ "start": 9848,
+ "end": 10429,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 8
},
"end": {
- "line": 312,
+ "line": 302,
"column": 9
}
},
"test": {
"type": "CallExpression",
- "start": 10310,
- "end": 10338,
+ "start": 9852,
+ "end": 9880,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 12
},
"end": {
- "line": 298,
+ "line": 288,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
- "start": 10310,
- "end": 10330,
+ "start": 9852,
+ "end": 9872,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 12
},
"end": {
- "line": 298,
+ "line": 288,
"column": 32
}
},
"object": {
"type": "MemberExpression",
- "start": 10310,
- "end": 10321,
+ "start": 9852,
+ "end": 9863,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 12
},
"end": {
- "line": 298,
+ "line": 288,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 10310,
- "end": 10314,
+ "start": 9852,
+ "end": 9856,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 12
},
"end": {
- "line": 298,
+ "line": 288,
"column": 16
}
},
@@ -12417,15 +12020,15 @@
},
"property": {
"type": "Identifier",
- "start": 10315,
- "end": 10321,
+ "start": 9857,
+ "end": 9863,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 17
},
"end": {
- "line": 298,
+ "line": 288,
"column": 23
},
"identifierName": "frames"
@@ -12437,15 +12040,15 @@
},
"property": {
"type": "Identifier",
- "start": 10322,
- "end": 10330,
+ "start": 9864,
+ "end": 9872,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 24
},
"end": {
- "line": 298,
+ "line": 288,
"column": 32
},
"identifierName": "includes"
@@ -12458,15 +12061,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 10331,
- "end": 10337,
+ "start": 9873,
+ "end": 9879,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 33
},
"end": {
- "line": 298,
+ "line": 288,
"column": 39
},
"identifierName": "pFrame"
@@ -12478,59 +12081,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 10340,
- "end": 10439,
+ "start": 9882,
+ "end": 9981,
"loc": {
"start": {
- "line": 298,
+ "line": 288,
"column": 42
},
"end": {
- "line": 301,
+ "line": 291,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 10355,
- "end": 10391,
+ "start": 9897,
+ "end": 9933,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 12
},
"end": {
- "line": 299,
+ "line": 289,
"column": 48
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 10355,
- "end": 10390,
+ "start": 9897,
+ "end": 9932,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 12
},
"end": {
- "line": 299,
+ "line": 289,
"column": 47
}
},
"operator": "=",
"left": {
"type": "Identifier",
- "start": 10355,
- "end": 10360,
+ "start": 9897,
+ "end": 9902,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 12
},
"end": {
- "line": 299,
+ "line": 289,
"column": 17
},
"identifierName": "index"
@@ -12539,72 +12142,72 @@
},
"right": {
"type": "CallExpression",
- "start": 10363,
- "end": 10390,
+ "start": 9905,
+ "end": 9932,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 20
},
"end": {
- "line": 299,
+ "line": 289,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 10363,
- "end": 10382,
+ "start": 9905,
+ "end": 9924,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 20
},
"end": {
- "line": 299,
+ "line": 289,
"column": 39
}
},
"object": {
"type": "MemberExpression",
- "start": 10363,
- "end": 10374,
+ "start": 9905,
+ "end": 9916,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 20
},
"end": {
- "line": 299,
+ "line": 289,
"column": 31
}
},
"object": {
"type": "ThisExpression",
- "start": 10363,
- "end": 10367,
+ "start": 9905,
+ "end": 9909,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 20
},
"end": {
- "line": 299,
+ "line": 289,
"column": 24
}
}
},
"property": {
"type": "Identifier",
- "start": 10368,
- "end": 10374,
+ "start": 9910,
+ "end": 9916,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 25
},
"end": {
- "line": 299,
+ "line": 289,
"column": 31
},
"identifierName": "frames"
@@ -12615,15 +12218,15 @@
},
"property": {
"type": "Identifier",
- "start": 10375,
- "end": 10382,
+ "start": 9917,
+ "end": 9924,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 32
},
"end": {
- "line": 299,
+ "line": 289,
"column": 39
},
"identifierName": "indexOf"
@@ -12635,15 +12238,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 10383,
- "end": 10389,
+ "start": 9925,
+ "end": 9931,
"loc": {
"start": {
- "line": 299,
+ "line": 289,
"column": 40
},
"end": {
- "line": 299,
+ "line": 289,
"column": 46
},
"identifierName": "pFrame"
@@ -12657,15 +12260,15 @@
{
"type": "CommentLine",
"value": " Remove via index passed.",
- "start": 10401,
- "end": 10428,
+ "start": 9943,
+ "end": 9970,
"loc": {
"start": {
- "line": 300,
+ "line": 290,
"column": 8
},
"end": {
- "line": 300,
+ "line": 290,
"column": 35
}
}
@@ -12677,43 +12280,43 @@
},
"alternate": {
"type": "IfStatement",
- "start": 10445,
- "end": 10887,
+ "start": 9987,
+ "end": 10429,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 15
},
"end": {
- "line": 312,
+ "line": 302,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
- "start": 10449,
- "end": 10471,
+ "start": 9991,
+ "end": 10013,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 19
},
"end": {
- "line": 301,
+ "line": 291,
"column": 41
}
},
"left": {
"type": "Identifier",
- "start": 10449,
- "end": 10455,
+ "start": 9991,
+ "end": 9997,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 19
},
"end": {
- "line": 301,
+ "line": 291,
"column": 25
},
"identifierName": "pIndex"
@@ -12723,29 +12326,29 @@
"operator": "||",
"right": {
"type": "BinaryExpression",
- "start": 10459,
- "end": 10471,
+ "start": 10001,
+ "end": 10013,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 29
},
"end": {
- "line": 301,
+ "line": 291,
"column": 41
}
},
"left": {
"type": "Identifier",
- "start": 10459,
- "end": 10465,
+ "start": 10001,
+ "end": 10007,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 29
},
"end": {
- "line": 301,
+ "line": 291,
"column": 35
},
"identifierName": "pIndex"
@@ -12755,15 +12358,15 @@
"operator": "===",
"right": {
"type": "NumericLiteral",
- "start": 10470,
- "end": 10471,
+ "start": 10012,
+ "end": 10013,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 40
},
"end": {
- "line": 301,
+ "line": 291,
"column": 41
}
},
@@ -12777,58 +12380,58 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 10473,
- "end": 10790,
+ "start": 10015,
+ "end": 10332,
"loc": {
"start": {
- "line": 301,
+ "line": 291,
"column": 43
},
"end": {
- "line": 310,
+ "line": 300,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
- "start": 10488,
- "end": 10779,
+ "start": 10030,
+ "end": 10321,
"loc": {
"start": {
- "line": 302,
+ "line": 292,
"column": 12
},
"end": {
- "line": 309,
+ "line": 299,
"column": 13
}
},
"test": {
"type": "BinaryExpression",
- "start": 10492,
- "end": 10519,
+ "start": 10034,
+ "end": 10061,
"loc": {
"start": {
- "line": 302,
+ "line": 292,
"column": 16
},
"end": {
- "line": 302,
+ "line": 292,
"column": 43
}
},
"left": {
"type": "UnaryExpression",
- "start": 10492,
- "end": 10506,
+ "start": 10034,
+ "end": 10048,
"loc": {
"start": {
- "line": 302,
+ "line": 292,
"column": 16
},
"end": {
- "line": 302,
+ "line": 292,
"column": 30
}
},
@@ -12836,15 +12439,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 10499,
- "end": 10505,
+ "start": 10041,
+ "end": 10047,
"loc": {
"start": {
- "line": 302,
+ "line": 292,
"column": 23
},
"end": {
- "line": 302,
+ "line": 292,
"column": 29
},
"identifierName": "pIndex"
@@ -12852,7 +12455,7 @@
"name": "pIndex",
"extra": {
"parenthesized": true,
- "parenStart": 10498
+ "parenStart": 10040
}
},
"extra": {
@@ -12862,15 +12465,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 10511,
- "end": 10519,
+ "start": 10053,
+ "end": 10061,
"loc": {
"start": {
- "line": 302,
+ "line": 292,
"column": 35
},
"end": {
- "line": 302,
+ "line": 292,
"column": 43
}
},
@@ -12883,59 +12486,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 10521,
- "end": 10677,
+ "start": 10063,
+ "end": 10219,
"loc": {
"start": {
- "line": 302,
+ "line": 292,
"column": 45
},
"end": {
- "line": 307,
+ "line": 297,
"column": 13
}
},
"body": [
{
"type": "VariableDeclaration",
- "start": 10540,
- "end": 10576,
+ "start": 10082,
+ "end": 10118,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 16
},
"end": {
- "line": 303,
+ "line": 293,
"column": 52
}
},
"declarations": [
{
"type": "VariableDeclarator",
- "start": 10546,
- "end": 10575,
+ "start": 10088,
+ "end": 10117,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 22
},
"end": {
- "line": 303,
+ "line": 293,
"column": 51
}
},
"id": {
"type": "Identifier",
- "start": 10546,
- "end": 10551,
+ "start": 10088,
+ "end": 10093,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 22
},
"end": {
- "line": 303,
+ "line": 293,
"column": 27
},
"identifierName": "frame"
@@ -12944,58 +12547,58 @@
},
"init": {
"type": "CallExpression",
- "start": 10554,
- "end": 10575,
+ "start": 10096,
+ "end": 10117,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 30
},
"end": {
- "line": 303,
+ "line": 293,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
- "start": 10554,
- "end": 10567,
+ "start": 10096,
+ "end": 10109,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 30
},
"end": {
- "line": 303,
+ "line": 293,
"column": 43
}
},
"object": {
"type": "ThisExpression",
- "start": 10554,
- "end": 10558,
+ "start": 10096,
+ "end": 10100,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 30
},
"end": {
- "line": 303,
+ "line": 293,
"column": 34
}
}
},
"property": {
"type": "Identifier",
- "start": 10559,
- "end": 10567,
+ "start": 10101,
+ "end": 10109,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 35
},
"end": {
- "line": 303,
+ "line": 293,
"column": 43
},
"identifierName": "getFrame"
@@ -13007,15 +12610,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 10568,
- "end": 10574,
+ "start": 10110,
+ "end": 10116,
"loc": {
"start": {
- "line": 303,
+ "line": 293,
"column": 44
},
"end": {
- "line": 303,
+ "line": 293,
"column": 50
},
"identifierName": "pIndex"
@@ -13030,29 +12633,29 @@
},
{
"type": "IfStatement",
- "start": 10594,
- "end": 10662,
+ "start": 10136,
+ "end": 10204,
"loc": {
"start": {
- "line": 304,
+ "line": 294,
"column": 16
},
"end": {
- "line": 306,
+ "line": 296,
"column": 17
}
},
"test": {
"type": "Identifier",
- "start": 10598,
- "end": 10603,
+ "start": 10140,
+ "end": 10145,
"loc": {
"start": {
- "line": 304,
+ "line": 294,
"column": 20
},
"end": {
- "line": 304,
+ "line": 294,
"column": 25
},
"identifierName": "frame"
@@ -13061,59 +12664,59 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 10605,
- "end": 10662,
+ "start": 10147,
+ "end": 10204,
"loc": {
"start": {
- "line": 304,
+ "line": 294,
"column": 27
},
"end": {
- "line": 306,
+ "line": 296,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 10628,
- "end": 10643,
+ "start": 10170,
+ "end": 10185,
"loc": {
"start": {
- "line": 305,
+ "line": 295,
"column": 20
},
"end": {
- "line": 305,
+ "line": 295,
"column": 35
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 10628,
- "end": 10642,
+ "start": 10170,
+ "end": 10184,
"loc": {
"start": {
- "line": 305,
+ "line": 295,
"column": 20
},
"end": {
- "line": 305,
+ "line": 295,
"column": 34
}
},
"operator": "=",
"left": {
"type": "Identifier",
- "start": 10628,
- "end": 10633,
+ "start": 10170,
+ "end": 10175,
"loc": {
"start": {
- "line": 305,
+ "line": 295,
"column": 20
},
"end": {
- "line": 305,
+ "line": 295,
"column": 25
},
"identifierName": "index"
@@ -13122,15 +12725,15 @@
},
"right": {
"type": "Identifier",
- "start": 10636,
- "end": 10642,
+ "start": 10178,
+ "end": 10184,
"loc": {
"start": {
- "line": 305,
+ "line": 295,
"column": 28
},
"end": {
- "line": 305,
+ "line": 295,
"column": 34
},
"identifierName": "pIndex"
@@ -13149,114 +12752,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 10683,
- "end": 10779,
+ "start": 10225,
+ "end": 10321,
"loc": {
"start": {
- "line": 307,
+ "line": 297,
"column": 19
},
"end": {
- "line": 309,
+ "line": 299,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 10702,
- "end": 10764,
+ "start": 10244,
+ "end": 10306,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 78
}
},
"expression": {
"type": "CallExpression",
- "start": 10702,
- "end": 10763,
+ "start": 10244,
+ "end": 10305,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 77
}
},
"callee": {
"type": "MemberExpression",
- "start": 10702,
- "end": 10739,
+ "start": 10244,
+ "end": 10281,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 53
}
},
"object": {
"type": "CallExpression",
- "start": 10702,
- "end": 10733,
+ "start": 10244,
+ "end": 10275,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 10702,
- "end": 10719,
+ "start": 10244,
+ "end": 10261,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 33
}
},
"object": {
"type": "MemberExpression",
- "start": 10702,
- "end": 10712,
+ "start": 10244,
+ "end": 10254,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 26
}
},
"object": {
"type": "Identifier",
- "start": 10702,
- "end": 10705,
+ "start": 10244,
+ "end": 10247,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 16
},
"end": {
- "line": 308,
+ "line": 298,
"column": 19
},
"identifierName": "VYI"
@@ -13265,15 +12868,15 @@
},
"property": {
"type": "Identifier",
- "start": 10706,
- "end": 10712,
+ "start": 10248,
+ "end": 10254,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 20
},
"end": {
- "line": 308,
+ "line": 298,
"column": 26
},
"identifierName": "logger"
@@ -13284,15 +12887,15 @@
},
"property": {
"type": "Identifier",
- "start": 10713,
- "end": 10719,
+ "start": 10255,
+ "end": 10261,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 27
},
"end": {
- "line": 308,
+ "line": 298,
"column": 33
},
"identifierName": "prefix"
@@ -13304,15 +12907,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 10720,
- "end": 10732,
+ "start": 10262,
+ "end": 10274,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 34
},
"end": {
- "line": 308,
+ "line": 298,
"column": 46
}
},
@@ -13326,15 +12929,15 @@
},
"property": {
"type": "Identifier",
- "start": 10734,
- "end": 10739,
+ "start": 10276,
+ "end": 10281,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 48
},
"end": {
- "line": 308,
+ "line": 298,
"column": 53
},
"identifierName": "error"
@@ -13346,15 +12949,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 10740,
- "end": 10762,
+ "start": 10282,
+ "end": 10304,
"loc": {
"start": {
- "line": 308,
+ "line": 298,
"column": 54
},
"end": {
- "line": 308,
+ "line": 298,
"column": 76
}
},
@@ -13376,114 +12979,114 @@
},
"alternate": {
"type": "BlockStatement",
- "start": 10796,
- "end": 10887,
+ "start": 10338,
+ "end": 10429,
"loc": {
"start": {
- "line": 310,
+ "line": 300,
"column": 15
},
"end": {
- "line": 312,
+ "line": 302,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 10811,
- "end": 10876,
+ "start": 10353,
+ "end": 10418,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 77
}
},
"expression": {
"type": "CallExpression",
- "start": 10811,
- "end": 10875,
+ "start": 10353,
+ "end": 10417,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
- "start": 10811,
- "end": 10848,
+ "start": 10353,
+ "end": 10390,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 49
}
},
"object": {
"type": "CallExpression",
- "start": 10811,
- "end": 10842,
+ "start": 10353,
+ "end": 10384,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
- "start": 10811,
- "end": 10828,
+ "start": 10353,
+ "end": 10370,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 29
}
},
"object": {
"type": "MemberExpression",
- "start": 10811,
- "end": 10821,
+ "start": 10353,
+ "end": 10363,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 22
}
},
"object": {
"type": "Identifier",
- "start": 10811,
- "end": 10814,
+ "start": 10353,
+ "end": 10356,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 12
},
"end": {
- "line": 311,
+ "line": 301,
"column": 15
},
"identifierName": "VYI"
@@ -13492,15 +13095,15 @@
},
"property": {
"type": "Identifier",
- "start": 10815,
- "end": 10821,
+ "start": 10357,
+ "end": 10363,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 16
},
"end": {
- "line": 311,
+ "line": 301,
"column": 22
},
"identifierName": "logger"
@@ -13511,15 +13114,15 @@
},
"property": {
"type": "Identifier",
- "start": 10822,
- "end": 10828,
+ "start": 10364,
+ "end": 10370,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 23
},
"end": {
- "line": 311,
+ "line": 301,
"column": 29
},
"identifierName": "prefix"
@@ -13531,15 +13134,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 10829,
- "end": 10841,
+ "start": 10371,
+ "end": 10383,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 30
},
"end": {
- "line": 311,
+ "line": 301,
"column": 42
}
},
@@ -13553,15 +13156,15 @@
},
"property": {
"type": "Identifier",
- "start": 10843,
- "end": 10848,
+ "start": 10385,
+ "end": 10390,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 44
},
"end": {
- "line": 311,
+ "line": 301,
"column": 49
},
"identifierName": "error"
@@ -13573,15 +13176,15 @@
"arguments": [
{
"type": "StringLiteral",
- "start": 10849,
- "end": 10874,
+ "start": 10391,
+ "end": 10416,
"loc": {
"start": {
- "line": 311,
+ "line": 301,
"column": 50
},
"end": {
- "line": 311,
+ "line": 301,
"column": 75
}
},
@@ -13602,15 +13205,15 @@
{
"type": "CommentLine",
"value": " Remove via reference to frame.",
- "start": 10263,
- "end": 10296,
+ "start": 9805,
+ "end": 9838,
"loc": {
"start": {
- "line": 297,
+ "line": 287,
"column": 8
},
"end": {
- "line": 297,
+ "line": 287,
"column": 41
}
}
@@ -13619,43 +13222,43 @@
},
{
"type": "IfStatement",
- "start": 10897,
- "end": 11097,
+ "start": 10439,
+ "end": 10639,
"loc": {
"start": {
- "line": 313,
+ "line": 303,
"column": 8
},
"end": {
- "line": 318,
+ "line": 308,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
- "start": 10901,
- "end": 10927,
+ "start": 10443,
+ "end": 10469,
"loc": {
"start": {
- "line": 313,
+ "line": 303,
"column": 12
},
"end": {
- "line": 313,
+ "line": 303,
"column": 38
}
},
"left": {
"type": "UnaryExpression",
- "start": 10901,
- "end": 10914,
+ "start": 10443,
+ "end": 10456,
"loc": {
"start": {
- "line": 313,
+ "line": 303,
"column": 12
},
"end": {
- "line": 313,
+ "line": 303,
"column": 25
}
},
@@ -13663,15 +13266,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 10908,
- "end": 10913,
+ "start": 10450,
+ "end": 10455,
"loc": {
"start": {
- "line": 313,
+ "line": 303,
"column": 19
},
"end": {
- "line": 313,
+ "line": 303,
"column": 24
},
"identifierName": "index"
@@ -13679,7 +13282,7 @@
"name": "index",
"extra": {
"parenthesized": true,
- "parenStart": 10907
+ "parenStart": 10449
}
},
"extra": {
@@ -13689,15 +13292,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 10919,
- "end": 10927,
+ "start": 10461,
+ "end": 10469,
"loc": {
"start": {
- "line": 313,
+ "line": 303,
"column": 30
},
"end": {
- "line": 313,
+ "line": 303,
"column": 38
}
},
@@ -13710,86 +13313,86 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 10929,
- "end": 11097,
+ "start": 10471,
+ "end": 10639,
"loc": {
"start": {
- "line": 313,
+ "line": 303,
"column": 40
},
"end": {
- "line": 318,
+ "line": 308,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 10977,
- "end": 11006,
+ "start": 10519,
+ "end": 10548,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 12
},
"end": {
- "line": 315,
+ "line": 305,
"column": 41
}
},
"expression": {
"type": "CallExpression",
- "start": 10977,
- "end": 11005,
+ "start": 10519,
+ "end": 10547,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 12
},
"end": {
- "line": 315,
+ "line": 305,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
- "start": 10977,
- "end": 10995,
+ "start": 10519,
+ "end": 10537,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 12
},
"end": {
- "line": 315,
+ "line": 305,
"column": 30
}
},
"object": {
"type": "MemberExpression",
- "start": 10977,
- "end": 10988,
+ "start": 10519,
+ "end": 10530,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 12
},
"end": {
- "line": 315,
+ "line": 305,
"column": 23
}
},
"object": {
"type": "ThisExpression",
- "start": 10977,
- "end": 10981,
+ "start": 10519,
+ "end": 10523,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 12
},
"end": {
- "line": 315,
+ "line": 305,
"column": 16
}
},
@@ -13797,15 +13400,15 @@
},
"property": {
"type": "Identifier",
- "start": 10982,
- "end": 10988,
+ "start": 10524,
+ "end": 10530,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 17
},
"end": {
- "line": 315,
+ "line": 305,
"column": 23
},
"identifierName": "frames"
@@ -13817,15 +13420,15 @@
},
"property": {
"type": "Identifier",
- "start": 10989,
- "end": 10995,
+ "start": 10531,
+ "end": 10537,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 24
},
"end": {
- "line": 315,
+ "line": 305,
"column": 30
},
"identifierName": "splice"
@@ -13838,15 +13441,15 @@
"arguments": [
{
"type": "Identifier",
- "start": 10996,
- "end": 11001,
+ "start": 10538,
+ "end": 10543,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 31
},
"end": {
- "line": 315,
+ "line": 305,
"column": 36
},
"identifierName": "index"
@@ -13855,15 +13458,15 @@
},
{
"type": "NumericLiteral",
- "start": 11003,
- "end": 11004,
+ "start": 10545,
+ "end": 10546,
"loc": {
"start": {
- "line": 315,
+ "line": 305,
"column": 38
},
"end": {
- "line": 315,
+ "line": 305,
"column": 39
}
},
@@ -13880,15 +13483,15 @@
{
"type": "CommentLine",
"value": " Remove the frame",
- "start": 10944,
- "end": 10963,
+ "start": 10486,
+ "end": 10505,
"loc": {
"start": {
- "line": 314,
+ "line": 304,
"column": 12
},
"end": {
- "line": 314,
+ "line": 304,
"column": 31
}
}
@@ -13898,15 +13501,15 @@
{
"type": "CommentLine",
"value": " Re-index frames after a change",
- "start": 11020,
- "end": 11053,
+ "start": 10562,
+ "end": 10595,
"loc": {
"start": {
- "line": 316,
+ "line": 306,
"column": 12
},
"end": {
- "line": 316,
+ "line": 306,
"column": 45
}
}
@@ -13915,57 +13518,57 @@
},
{
"type": "ExpressionStatement",
- "start": 11067,
- "end": 11086,
+ "start": 10609,
+ "end": 10628,
"loc": {
"start": {
- "line": 317,
+ "line": 307,
"column": 12
},
"end": {
- "line": 317,
+ "line": 307,
"column": 31
}
},
"expression": {
"type": "CallExpression",
- "start": 11067,
- "end": 11085,
+ "start": 10609,
+ "end": 10627,
"loc": {
"start": {
- "line": 317,
+ "line": 307,
"column": 12
},
"end": {
- "line": 317,
+ "line": 307,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
- "start": 11067,
- "end": 11083,
+ "start": 10609,
+ "end": 10625,
"loc": {
"start": {
- "line": 317,
+ "line": 307,
"column": 12
},
"end": {
- "line": 317,
+ "line": 307,
"column": 28
}
},
"object": {
"type": "ThisExpression",
- "start": 11067,
- "end": 11071,
+ "start": 10609,
+ "end": 10613,
"loc": {
"start": {
- "line": 317,
+ "line": 307,
"column": 12
},
"end": {
- "line": 317,
+ "line": 307,
"column": 16
}
},
@@ -13973,15 +13576,15 @@
},
"property": {
"type": "Identifier",
- "start": 11072,
- "end": 11083,
+ "start": 10614,
+ "end": 10625,
"loc": {
"start": {
- "line": 317,
+ "line": 307,
"column": 17
},
"end": {
- "line": 317,
+ "line": 307,
"column": 28
},
"identifierName": "indexFrames"
@@ -13998,15 +13601,15 @@
{
"type": "CommentLine",
"value": " Re-index frames after a change",
- "start": 11020,
- "end": 11053,
+ "start": 10562,
+ "end": 10595,
"loc": {
"start": {
- "line": 316,
+ "line": 306,
"column": 12
},
"end": {
- "line": 316,
+ "line": 306,
"column": 45
}
}
@@ -14020,29 +13623,29 @@
},
{
"type": "ReturnStatement",
- "start": 11107,
- "end": 11119,
+ "start": 10649,
+ "end": 10661,
"loc": {
"start": {
- "line": 319,
+ "line": 309,
"column": 8
},
"end": {
- "line": 319,
+ "line": 309,
"column": 20
}
},
"argument": {
"type": "ThisExpression",
- "start": 11114,
- "end": 11118,
+ "start": 10656,
+ "end": 10660,
"loc": {
"start": {
- "line": 319,
+ "line": 309,
"column": 15
},
"end": {
- "line": 319,
+ "line": 309,
"column": 19
}
}
@@ -14056,15 +13659,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 9742,
- "end": 10149,
+ "start": 9284,
+ "end": 9691,
"loc": {
"start": {
- "line": 288,
+ "line": 278,
"column": 4
},
"end": {
- "line": 293,
+ "line": 283,
"column": 7
}
}
@@ -14074,15 +13677,417 @@
{
"type": "CommentBlock",
"value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
- "start": 11132,
- "end": 11196,
+ "start": 10674,
+ "end": 10738,
+ "loc": {
+ "start": {
+ "line": 311,
+ "column": 4
+ },
+ "end": {
+ "line": 314,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassMethod",
+ "start": 10744,
+ "end": 10913,
+ "loc": {
+ "start": {
+ "line": 315,
+ "column": 4
+ },
+ "end": {
+ "line": 320,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 10744,
+ "end": 10755,
+ "loc": {
+ "start": {
+ "line": 315,
+ "column": 4
+ },
+ "end": {
+ "line": 315,
+ "column": 15
+ },
+ "identifierName": "indexFrames"
+ },
+ "name": "indexFrames",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 10758,
+ "end": 10913,
+ "loc": {
+ "start": {
+ "line": 315,
+ "column": 18
+ },
+ "end": {
+ "line": 320,
+ "column": 5
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 10816,
+ "end": 10906,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 8
+ },
+ "end": {
+ "line": 319,
+ "column": 11
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 10816,
+ "end": 10905,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 8
+ },
+ "end": {
+ "line": 319,
+ "column": 10
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 10816,
+ "end": 10835,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 8
+ },
+ "end": {
+ "line": 317,
+ "column": 27
+ }
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 10816,
+ "end": 10827,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 8
+ },
+ "end": {
+ "line": 317,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 10816,
+ "end": 10820,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 8
+ },
+ "end": {
+ "line": 317,
+ "column": 12
+ }
+ },
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 10821,
+ "end": 10827,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 13
+ },
+ "end": {
+ "line": 317,
+ "column": 19
+ },
+ "identifierName": "frames"
+ },
+ "name": "frames"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 10828,
+ "end": 10835,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 20
+ },
+ "end": {
+ "line": 317,
+ "column": 27
+ },
+ "identifierName": "forEach"
+ },
+ "name": "forEach"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "arguments": [
+ {
+ "type": "ArrowFunctionExpression",
+ "start": 10836,
+ "end": 10904,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 28
+ },
+ "end": {
+ "line": 319,
+ "column": 9
+ }
+ },
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [
+ {
+ "type": "Identifier",
+ "start": 10837,
+ "end": 10843,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 29
+ },
+ "end": {
+ "line": 317,
+ "column": 35
+ },
+ "identifierName": "pFrame"
+ },
+ "name": "pFrame"
+ },
+ {
+ "type": "Identifier",
+ "start": 10845,
+ "end": 10851,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 37
+ },
+ "end": {
+ "line": 317,
+ "column": 43
+ },
+ "identifierName": "pIndex"
+ },
+ "name": "pIndex"
+ }
+ ],
+ "body": {
+ "type": "BlockStatement",
+ "start": 10856,
+ "end": 10904,
+ "loc": {
+ "start": {
+ "line": 317,
+ "column": 48
+ },
+ "end": {
+ "line": 319,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 10871,
+ "end": 10893,
+ "loc": {
+ "start": {
+ "line": 318,
+ "column": 12
+ },
+ "end": {
+ "line": 318,
+ "column": 34
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 10871,
+ "end": 10892,
+ "loc": {
+ "start": {
+ "line": 318,
+ "column": 12
+ },
+ "end": {
+ "line": 318,
+ "column": 33
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 10871,
+ "end": 10883,
+ "loc": {
+ "start": {
+ "line": 318,
+ "column": 12
+ },
+ "end": {
+ "line": 318,
+ "column": 24
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 10871,
+ "end": 10877,
+ "loc": {
+ "start": {
+ "line": 318,
+ "column": 12
+ },
+ "end": {
+ "line": 318,
+ "column": 18
+ },
+ "identifierName": "pFrame"
+ },
+ "name": "pFrame"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 10878,
+ "end": 10883,
+ "loc": {
+ "start": {
+ "line": 318,
+ "column": 19
+ },
+ "end": {
+ "line": 318,
+ "column": 24
+ },
+ "identifierName": "index"
+ },
+ "name": "index"
+ },
+ "computed": false
+ },
+ "right": {
+ "type": "Identifier",
+ "start": 10886,
+ "end": 10892,
+ "loc": {
+ "start": {
+ "line": 318,
+ "column": 27
+ },
+ "end": {
+ "line": 318,
+ "column": 33
+ },
+ "identifierName": "pIndex"
+ },
+ "name": "pIndex"
+ }
+ }
+ }
+ ],
+ "directives": []
+ }
+ }
+ ],
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Reorder the frames after removing.",
+ "start": 10769,
+ "end": 10806,
+ "loc": {
+ "start": {
+ "line": 316,
+ "column": 8
+ },
+ "end": {
+ "line": 316,
+ "column": 45
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
+ "start": 10674,
+ "end": 10738,
+ "loc": {
+ "start": {
+ "line": 311,
+ "column": 4
+ },
+ "end": {
+ "line": 314,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * The \"first\" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.\r\n * pCurrentIndex must be set to -1 to match this icon.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 10919,
+ "end": 11458,
"loc": {
"start": {
"line": 321,
"column": 4
},
"end": {
- "line": 324,
+ "line": 328,
"column": 7
}
}
@@ -14091,15 +14096,15 @@
},
{
"type": "ClassMethod",
- "start": 11202,
- "end": 11371,
+ "start": 11464,
+ "end": 13393,
"loc": {
"start": {
- "line": 325,
+ "line": 329,
"column": 4
},
"end": {
- "line": 330,
+ "line": 369,
"column": 5
}
},
@@ -14107,417 +14112,15 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 11202,
- "end": 11213,
+ "start": 11464,
+ "end": 11476,
"loc": {
"start": {
- "line": 325,
+ "line": 329,
"column": 4
},
"end": {
- "line": 325,
- "column": 15
- },
- "identifierName": "indexFrames"
- },
- "name": "indexFrames",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 11216,
- "end": 11371,
- "loc": {
- "start": {
- "line": 325,
- "column": 18
- },
- "end": {
- "line": 330,
- "column": 5
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 11274,
- "end": 11364,
- "loc": {
- "start": {
- "line": 327,
- "column": 8
- },
- "end": {
- "line": 329,
- "column": 11
- }
- },
- "expression": {
- "type": "CallExpression",
- "start": 11274,
- "end": 11363,
- "loc": {
- "start": {
- "line": 327,
- "column": 8
- },
- "end": {
- "line": 329,
- "column": 10
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 11274,
- "end": 11293,
- "loc": {
- "start": {
- "line": 327,
- "column": 8
- },
- "end": {
- "line": 327,
- "column": 27
- }
- },
- "object": {
- "type": "MemberExpression",
- "start": 11274,
- "end": 11285,
- "loc": {
- "start": {
- "line": 327,
- "column": 8
- },
- "end": {
- "line": 327,
- "column": 19
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 11274,
- "end": 11278,
- "loc": {
- "start": {
- "line": 327,
- "column": 8
- },
- "end": {
- "line": 327,
- "column": 12
- }
- },
- "leadingComments": null
- },
- "property": {
- "type": "Identifier",
- "start": 11279,
- "end": 11285,
- "loc": {
- "start": {
- "line": 327,
- "column": 13
- },
- "end": {
- "line": 327,
- "column": 19
- },
- "identifierName": "frames"
- },
- "name": "frames"
- },
- "computed": false,
- "leadingComments": null
- },
- "property": {
- "type": "Identifier",
- "start": 11286,
- "end": 11293,
- "loc": {
- "start": {
- "line": 327,
- "column": 20
- },
- "end": {
- "line": 327,
- "column": 27
- },
- "identifierName": "forEach"
- },
- "name": "forEach"
- },
- "computed": false,
- "leadingComments": null
- },
- "arguments": [
- {
- "type": "ArrowFunctionExpression",
- "start": 11294,
- "end": 11362,
- "loc": {
- "start": {
- "line": 327,
- "column": 28
- },
- "end": {
- "line": 329,
- "column": 9
- }
- },
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [
- {
- "type": "Identifier",
- "start": 11295,
- "end": 11301,
- "loc": {
- "start": {
- "line": 327,
- "column": 29
- },
- "end": {
- "line": 327,
- "column": 35
- },
- "identifierName": "pFrame"
- },
- "name": "pFrame"
- },
- {
- "type": "Identifier",
- "start": 11303,
- "end": 11309,
- "loc": {
- "start": {
- "line": 327,
- "column": 37
- },
- "end": {
- "line": 327,
- "column": 43
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- }
- ],
- "body": {
- "type": "BlockStatement",
- "start": 11314,
- "end": 11362,
- "loc": {
- "start": {
- "line": 327,
- "column": 48
- },
- "end": {
- "line": 329,
- "column": 9
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 11329,
- "end": 11351,
- "loc": {
- "start": {
- "line": 328,
- "column": 12
- },
- "end": {
- "line": 328,
- "column": 34
- }
- },
- "expression": {
- "type": "AssignmentExpression",
- "start": 11329,
- "end": 11350,
- "loc": {
- "start": {
- "line": 328,
- "column": 12
- },
- "end": {
- "line": 328,
- "column": 33
- }
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 11329,
- "end": 11341,
- "loc": {
- "start": {
- "line": 328,
- "column": 12
- },
- "end": {
- "line": 328,
- "column": 24
- }
- },
- "object": {
- "type": "Identifier",
- "start": 11329,
- "end": 11335,
- "loc": {
- "start": {
- "line": 328,
- "column": 12
- },
- "end": {
- "line": 328,
- "column": 18
- },
- "identifierName": "pFrame"
- },
- "name": "pFrame"
- },
- "property": {
- "type": "Identifier",
- "start": 11336,
- "end": 11341,
- "loc": {
- "start": {
- "line": 328,
- "column": 19
- },
- "end": {
- "line": 328,
- "column": 24
- },
- "identifierName": "index"
- },
- "name": "index"
- },
- "computed": false
- },
- "right": {
- "type": "Identifier",
- "start": 11344,
- "end": 11350,
- "loc": {
- "start": {
- "line": 328,
- "column": 27
- },
- "end": {
- "line": 328,
- "column": 33
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- }
- }
- }
- ],
- "directives": []
- }
- }
- ],
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Reorder the frames after removing.",
- "start": 11227,
- "end": 11264,
- "loc": {
- "start": {
- "line": 326,
- "column": 8
- },
- "end": {
- "line": 326,
- "column": 45
- }
- }
- }
- ]
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
- "start": 11132,
- "end": 11196,
- "loc": {
- "start": {
- "line": 321,
- "column": 4
- },
- "end": {
- "line": 324,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 11377,
- "end": 11694,
- "loc": {
- "start": {
- "line": 331,
- "column": 4
- },
- "end": {
- "line": 336,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 11700,
- "end": 12512,
- "loc": {
- "start": {
- "line": 337,
- "column": 4
- },
- "end": {
- "line": 352,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 11700,
- "end": 11712,
- "loc": {
- "start": {
- "line": 337,
- "column": 4
- },
- "end": {
- "line": 337,
+ "line": 329,
"column": 16
},
"identifierName": "reorderFrame"
@@ -14533,15 +14136,15 @@
"params": [
{
"type": "Identifier",
- "start": 11713,
- "end": 11726,
+ "start": 11477,
+ "end": 11490,
"loc": {
"start": {
- "line": 337,
+ "line": 329,
"column": 17
},
"end": {
- "line": 337,
+ "line": 329,
"column": 30
},
"identifierName": "pCurrentIndex"
@@ -14550,15 +14153,15 @@
},
{
"type": "Identifier",
- "start": 11728,
- "end": 11734,
+ "start": 11492,
+ "end": 11498,
"loc": {
"start": {
- "line": 337,
+ "line": 329,
"column": 32
},
"end": {
- "line": 337,
+ "line": 329,
"column": 38
},
"identifierName": "pIndex"
@@ -14568,72 +14171,72 @@
],
"body": {
"type": "BlockStatement",
- "start": 11736,
- "end": 12512,
+ "start": 11500,
+ "end": 13393,
"loc": {
"start": {
- "line": 337,
+ "line": 329,
"column": 40
},
"end": {
- "line": 352,
+ "line": 369,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
- "start": 11747,
- "end": 12483,
+ "start": 11511,
+ "end": 13364,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 8
},
"end": {
- "line": 350,
+ "line": 367,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
- "start": 11751,
- "end": 11816,
+ "start": 11515,
+ "end": 11580,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 12
},
"end": {
- "line": 338,
+ "line": 330,
"column": 77
}
},
"left": {
"type": "BinaryExpression",
- "start": 11751,
- "end": 11785,
+ "start": 11515,
+ "end": 11549,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 12
},
"end": {
- "line": 338,
+ "line": 330,
"column": 46
}
},
"left": {
"type": "UnaryExpression",
- "start": 11751,
- "end": 11772,
+ "start": 11515,
+ "end": 11536,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 12
},
"end": {
- "line": 338,
+ "line": 330,
"column": 33
}
},
@@ -14641,15 +14244,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 11758,
- "end": 11771,
+ "start": 11522,
+ "end": 11535,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 19
},
"end": {
- "line": 338,
+ "line": 330,
"column": 32
},
"identifierName": "pCurrentIndex"
@@ -14657,7 +14260,7 @@
"name": "pCurrentIndex",
"extra": {
"parenthesized": true,
- "parenStart": 11757
+ "parenStart": 11521
}
},
"extra": {
@@ -14667,15 +14270,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 11777,
- "end": 11785,
+ "start": 11541,
+ "end": 11549,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 38
},
"end": {
- "line": 338,
+ "line": 330,
"column": 46
}
},
@@ -14689,29 +14292,29 @@
"operator": "&&",
"right": {
"type": "BinaryExpression",
- "start": 11789,
- "end": 11816,
+ "start": 11553,
+ "end": 11580,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 50
},
"end": {
- "line": 338,
+ "line": 330,
"column": 77
}
},
"left": {
"type": "UnaryExpression",
- "start": 11789,
- "end": 11803,
+ "start": 11553,
+ "end": 11567,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 50
},
"end": {
- "line": 338,
+ "line": 330,
"column": 64
}
},
@@ -14719,15 +14322,15 @@
"prefix": true,
"argument": {
"type": "Identifier",
- "start": 11796,
- "end": 11802,
+ "start": 11560,
+ "end": 11566,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 57
},
"end": {
- "line": 338,
+ "line": 330,
"column": 63
},
"identifierName": "pIndex"
@@ -14735,7 +14338,7 @@
"name": "pIndex",
"extra": {
"parenthesized": true,
- "parenStart": 11795
+ "parenStart": 11559
}
},
"extra": {
@@ -14745,15 +14348,15 @@
"operator": "===",
"right": {
"type": "StringLiteral",
- "start": 11808,
- "end": 11816,
+ "start": 11572,
+ "end": 11580,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 69
},
"end": {
- "line": 338,
+ "line": 330,
"column": 77
}
},
@@ -14767,3508 +14370,2484 @@
},
"consequent": {
"type": "BlockStatement",
- "start": 11818,
- "end": 12391,
+ "start": 11582,
+ "end": 13272,
"loc": {
"start": {
- "line": 338,
+ "line": 330,
"column": 79
},
"end": {
- "line": 348,
+ "line": 365,
"column": 9
}
},
"body": [
{
- "type": "IfStatement",
- "start": 11944,
- "end": 12380,
+ "type": "VariableDeclaration",
+ "start": 11597,
+ "end": 11614,
"loc": {
"start": {
- "line": 340,
+ "line": 331,
"column": 12
},
"end": {
- "line": 347,
- "column": 13
+ "line": 331,
+ "column": 29
}
},
- "test": {
- "type": "LogicalExpression",
- "start": 11948,
- "end": 11997,
- "loc": {
- "start": {
- "line": 340,
- "column": 16
- },
- "end": {
- "line": 340,
- "column": 65
- }
- },
- "left": {
- "type": "MemberExpression",
- "start": 11948,
- "end": 11974,
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 11601,
+ "end": 11613,
"loc": {
"start": {
- "line": 340,
+ "line": 331,
"column": 16
},
"end": {
- "line": 340,
- "column": 42
+ "line": 331,
+ "column": 28
}
},
- "object": {
- "type": "MemberExpression",
- "start": 11948,
- "end": 11959,
+ "id": {
+ "type": "Identifier",
+ "start": 11601,
+ "end": 11613,
"loc": {
"start": {
- "line": 340,
+ "line": 331,
"column": 16
},
"end": {
- "line": 340,
- "column": 27
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 11948,
- "end": 11952,
- "loc": {
- "start": {
- "line": 340,
- "column": 16
- },
- "end": {
- "line": 340,
- "column": 20
- }
+ "line": 331,
+ "column": 28
},
- "leadingComments": null
+ "identifierName": "frameAtIndex"
},
- "property": {
- "type": "Identifier",
- "start": 11953,
- "end": 11959,
- "loc": {
- "start": {
- "line": 340,
- "column": 21
- },
- "end": {
- "line": 340,
- "column": 27
- },
- "identifierName": "frames"
- },
- "name": "frames"
+ "name": "frameAtIndex"
+ },
+ "init": null
+ }
+ ],
+ "kind": "let"
+ },
+ {
+ "type": "VariableDeclaration",
+ "start": 11628,
+ "end": 11645,
+ "loc": {
+ "start": {
+ "line": 332,
+ "column": 12
+ },
+ "end": {
+ "line": 332,
+ "column": 29
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 11632,
+ "end": 11644,
+ "loc": {
+ "start": {
+ "line": 332,
+ "column": 16
},
- "computed": false,
- "leadingComments": null
+ "end": {
+ "line": 332,
+ "column": 28
+ }
},
- "property": {
+ "id": {
"type": "Identifier",
- "start": 11960,
- "end": 11973,
+ "start": 11632,
+ "end": 11644,
"loc": {
"start": {
- "line": 340,
- "column": 28
+ "line": 332,
+ "column": 16
},
"end": {
- "line": 340,
- "column": 41
+ "line": 332,
+ "column": 28
},
- "identifierName": "pCurrentIndex"
+ "identifierName": "currentFrame"
},
- "name": "pCurrentIndex"
+ "name": "currentFrame"
},
- "computed": true,
+ "init": null
+ }
+ ],
+ "kind": "let",
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves",
+ "start": 11659,
+ "end": 11807,
+ "loc": {
+ "start": {
+ "line": 333,
+ "column": 12
+ },
+ "end": {
+ "line": 333,
+ "column": 160
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " as the frame 0.",
+ "start": 11821,
+ "end": 11839,
+ "loc": {
+ "start": {
+ "line": 334,
+ "column": 12
+ },
+ "end": {
+ "line": 334,
+ "column": 30
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "IfStatement",
+ "start": 11853,
+ "end": 12151,
+ "loc": {
+ "start": {
+ "line": 335,
+ "column": 12
+ },
+ "end": {
+ "line": 340,
+ "column": 13
+ }
+ },
+ "test": {
+ "type": "BinaryExpression",
+ "start": 11857,
+ "end": 11877,
+ "loc": {
+ "start": {
+ "line": 335,
+ "column": 16
+ },
+ "end": {
+ "line": 335,
+ "column": 36
+ }
+ },
+ "left": {
+ "type": "Identifier",
+ "start": 11857,
+ "end": 11870,
+ "loc": {
+ "start": {
+ "line": 335,
+ "column": 16
+ },
+ "end": {
+ "line": 335,
+ "column": 29
+ },
+ "identifierName": "pCurrentIndex"
+ },
+ "name": "pCurrentIndex",
"leadingComments": null
},
- "operator": "&&",
+ "operator": "===",
"right": {
- "type": "MemberExpression",
- "start": 11978,
- "end": 11997,
+ "type": "UnaryExpression",
+ "start": 11875,
+ "end": 11877,
"loc": {
"start": {
- "line": 340,
- "column": 46
+ "line": 335,
+ "column": 34
},
"end": {
- "line": 340,
- "column": 65
+ "line": 335,
+ "column": 36
}
},
- "object": {
- "type": "MemberExpression",
- "start": 11978,
- "end": 11989,
+ "operator": "-",
+ "prefix": true,
+ "argument": {
+ "type": "NumericLiteral",
+ "start": 11876,
+ "end": 11877,
"loc": {
"start": {
- "line": 340,
- "column": 46
+ "line": 335,
+ "column": 35
},
"end": {
- "line": 340,
- "column": 57
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 11978,
- "end": 11982,
- "loc": {
- "start": {
- "line": 340,
- "column": 46
- },
- "end": {
- "line": 340,
- "column": 50
- }
+ "line": 335,
+ "column": 36
}
},
- "property": {
- "type": "Identifier",
- "start": 11983,
- "end": 11989,
- "loc": {
- "start": {
- "line": 340,
- "column": 51
- },
- "end": {
- "line": 340,
- "column": 57
- },
- "identifierName": "frames"
- },
- "name": "frames"
+ "extra": {
+ "rawValue": 1,
+ "raw": "1"
},
- "computed": false
+ "value": 1
},
- "property": {
- "type": "Identifier",
- "start": 11990,
- "end": 11996,
- "loc": {
- "start": {
- "line": 340,
- "column": 58
- },
- "end": {
- "line": 340,
- "column": 64
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- },
- "computed": true
+ "extra": {
+ "parenthesizedArgument": false
+ }
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
- "start": 11999,
- "end": 12217,
+ "start": 11879,
+ "end": 12037,
"loc": {
"start": {
- "line": 340,
- "column": 67
+ "line": 335,
+ "column": 38
},
"end": {
- "line": 345,
+ "line": 338,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 12055,
- "end": 12114,
+ "start": 11898,
+ "end": 11918,
"loc": {
"start": {
- "line": 342,
+ "line": 336,
"column": 16
},
"end": {
- "line": 342,
- "column": 75
+ "line": 336,
+ "column": 36
}
},
"expression": {
- "type": "CallExpression",
- "start": 12055,
- "end": 12113,
+ "type": "AssignmentExpression",
+ "start": 11898,
+ "end": 11917,
"loc": {
"start": {
- "line": 342,
+ "line": 336,
"column": 16
},
"end": {
- "line": 342,
- "column": 74
+ "line": 336,
+ "column": 35
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 12055,
- "end": 12077,
+ "operator": "=",
+ "left": {
+ "type": "Identifier",
+ "start": 11898,
+ "end": 11910,
"loc": {
"start": {
- "line": 342,
+ "line": 336,
"column": 16
},
"end": {
- "line": 342,
- "column": 38
- }
- },
- "object": {
- "type": "Identifier",
- "start": 12055,
- "end": 12059,
- "loc": {
- "start": {
- "line": 342,
- "column": 16
- },
- "end": {
- "line": 342,
- "column": 20
- },
- "identifierName": "Icon"
- },
- "name": "Icon",
- "leadingComments": null
- },
- "property": {
- "type": "Identifier",
- "start": 12060,
- "end": 12077,
- "loc": {
- "start": {
- "line": 342,
- "column": 21
- },
- "end": {
- "line": 342,
- "column": 38
- },
- "identifierName": "swapArrayElements"
+ "line": 336,
+ "column": 28
},
- "name": "swapArrayElements"
+ "identifierName": "currentFrame"
},
- "computed": false,
- "leadingComments": null
+ "name": "currentFrame"
},
- "arguments": [
- {
- "type": "MemberExpression",
- "start": 12078,
- "end": 12089,
- "loc": {
- "start": {
- "line": 342,
- "column": 39
- },
- "end": {
- "line": 342,
- "column": 50
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 12078,
- "end": 12082,
- "loc": {
- "start": {
- "line": 342,
- "column": 39
- },
- "end": {
- "line": 342,
- "column": 43
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 12083,
- "end": 12089,
- "loc": {
- "start": {
- "line": 342,
- "column": 44
- },
- "end": {
- "line": 342,
- "column": 50
- },
- "identifierName": "frames"
- },
- "name": "frames"
- },
- "computed": false
- },
- {
- "type": "Identifier",
- "start": 12091,
- "end": 12104,
- "loc": {
- "start": {
- "line": 342,
- "column": 52
- },
- "end": {
- "line": 342,
- "column": 65
- },
- "identifierName": "pCurrentIndex"
- },
- "name": "pCurrentIndex"
- },
- {
- "type": "Identifier",
- "start": 12106,
- "end": 12112,
- "loc": {
- "start": {
- "line": 342,
- "column": 67
- },
- "end": {
- "line": 342,
- "column": 73
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- }
- ],
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Swaps the frames",
- "start": 12018,
- "end": 12037,
+ "right": {
+ "type": "ThisExpression",
+ "start": 11913,
+ "end": 11917,
"loc": {
"start": {
- "line": 341,
- "column": 16
+ "line": 336,
+ "column": 31
},
"end": {
- "line": 341,
+ "line": 336,
"column": 35
}
}
}
- ],
+ },
"trailingComments": [
{
"type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 12132,
- "end": 12165,
+ "value": " Otherwise if the index passed can be found in the frames array, then we use that frame.",
+ "start": 11932,
+ "end": 12022,
"loc": {
"start": {
- "line": 343,
- "column": 16
+ "line": 337,
+ "column": 12
},
"end": {
- "line": 343,
- "column": 49
+ "line": 337,
+ "column": 102
}
}
}
]
+ }
+ ],
+ "directives": []
+ },
+ "alternate": {
+ "type": "IfStatement",
+ "start": 12043,
+ "end": 12151,
+ "loc": {
+ "start": {
+ "line": 338,
+ "column": 19
},
- {
- "type": "ExpressionStatement",
- "start": 12183,
- "end": 12202,
+ "end": {
+ "line": 340,
+ "column": 13
+ }
+ },
+ "test": {
+ "type": "MemberExpression",
+ "start": 12047,
+ "end": 12073,
+ "loc": {
+ "start": {
+ "line": 338,
+ "column": 23
+ },
+ "end": {
+ "line": 338,
+ "column": 49
+ }
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 12047,
+ "end": 12058,
"loc": {
"start": {
- "line": 344,
- "column": 16
+ "line": 338,
+ "column": 23
},
"end": {
- "line": 344,
- "column": 35
+ "line": 338,
+ "column": 34
}
},
- "expression": {
- "type": "CallExpression",
- "start": 12183,
- "end": 12201,
+ "object": {
+ "type": "ThisExpression",
+ "start": 12047,
+ "end": 12051,
"loc": {
"start": {
- "line": 344,
- "column": 16
+ "line": 338,
+ "column": 23
},
"end": {
- "line": 344,
- "column": 34
+ "line": 338,
+ "column": 27
}
- },
- "callee": {
- "type": "MemberExpression",
- "start": 12183,
- "end": 12199,
- "loc": {
- "start": {
- "line": 344,
- "column": 16
- },
- "end": {
- "line": 344,
- "column": 32
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 12183,
- "end": 12187,
- "loc": {
- "start": {
- "line": 344,
- "column": 16
- },
- "end": {
- "line": 344,
- "column": 20
- }
- },
- "leadingComments": null
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12052,
+ "end": 12058,
+ "loc": {
+ "start": {
+ "line": 338,
+ "column": 28
},
- "property": {
- "type": "Identifier",
- "start": 12188,
- "end": 12199,
- "loc": {
- "start": {
- "line": 344,
- "column": 21
- },
- "end": {
- "line": 344,
- "column": 32
- },
- "identifierName": "indexFrames"
- },
- "name": "indexFrames"
+ "end": {
+ "line": 338,
+ "column": 34
},
- "computed": false,
- "leadingComments": null
+ "identifierName": "frames"
},
- "arguments": [],
- "leadingComments": null
+ "name": "frames"
},
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 12132,
- "end": 12165,
- "loc": {
- "start": {
- "line": 343,
- "column": 16
- },
- "end": {
- "line": 343,
- "column": 49
- }
- }
- }
- ]
- }
- ],
- "directives": []
- },
- "alternate": {
- "type": "BlockStatement",
- "start": 12223,
- "end": 12380,
- "loc": {
- "start": {
- "line": 345,
- "column": 19
+ "computed": false
},
- "end": {
- "line": 347,
- "column": 13
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 12242,
- "end": 12365,
+ "property": {
+ "type": "Identifier",
+ "start": 12059,
+ "end": 12072,
"loc": {
"start": {
- "line": 346,
- "column": 16
+ "line": 338,
+ "column": 35
},
"end": {
- "line": 346,
- "column": 139
- }
+ "line": 338,
+ "column": 48
+ },
+ "identifierName": "pCurrentIndex"
},
- "expression": {
- "type": "CallExpression",
- "start": 12242,
- "end": 12364,
+ "name": "pCurrentIndex"
+ },
+ "computed": true
+ },
+ "consequent": {
+ "type": "BlockStatement",
+ "start": 12075,
+ "end": 12151,
+ "loc": {
+ "start": {
+ "line": 338,
+ "column": 51
+ },
+ "end": {
+ "line": 340,
+ "column": 13
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 12094,
+ "end": 12136,
"loc": {
"start": {
- "line": 346,
+ "line": 339,
"column": 16
},
"end": {
- "line": 346,
- "column": 138
+ "line": 339,
+ "column": 58
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 12242,
- "end": 12279,
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 12094,
+ "end": 12135,
"loc": {
"start": {
- "line": 346,
+ "line": 339,
"column": 16
},
"end": {
- "line": 346,
- "column": 53
+ "line": 339,
+ "column": 57
}
},
- "object": {
- "type": "CallExpression",
- "start": 12242,
- "end": 12273,
+ "operator": "=",
+ "left": {
+ "type": "Identifier",
+ "start": 12094,
+ "end": 12106,
"loc": {
"start": {
- "line": 346,
+ "line": 339,
"column": 16
},
"end": {
- "line": 346,
- "column": 47
+ "line": 339,
+ "column": 28
+ },
+ "identifierName": "currentFrame"
+ },
+ "name": "currentFrame"
+ },
+ "right": {
+ "type": "MemberExpression",
+ "start": 12109,
+ "end": 12135,
+ "loc": {
+ "start": {
+ "line": 339,
+ "column": 31
+ },
+ "end": {
+ "line": 339,
+ "column": 57
}
},
- "callee": {
+ "object": {
"type": "MemberExpression",
- "start": 12242,
- "end": 12259,
+ "start": 12109,
+ "end": 12120,
"loc": {
"start": {
- "line": 346,
- "column": 16
+ "line": 339,
+ "column": 31
},
"end": {
- "line": 346,
- "column": 33
+ "line": 339,
+ "column": 42
}
},
"object": {
- "type": "MemberExpression",
- "start": 12242,
- "end": 12252,
+ "type": "ThisExpression",
+ "start": 12109,
+ "end": 12113,
"loc": {
"start": {
- "line": 346,
- "column": 16
+ "line": 339,
+ "column": 31
},
"end": {
- "line": 346,
- "column": 26
+ "line": 339,
+ "column": 35
}
- },
- "object": {
- "type": "Identifier",
- "start": 12242,
- "end": 12245,
- "loc": {
- "start": {
- "line": 346,
- "column": 16
- },
- "end": {
- "line": 346,
- "column": 19
- },
- "identifierName": "VYI"
- },
- "name": "VYI"
- },
- "property": {
- "type": "Identifier",
- "start": 12246,
- "end": 12252,
- "loc": {
- "start": {
- "line": 346,
- "column": 20
- },
- "end": {
- "line": 346,
- "column": 26
- },
- "identifierName": "logger"
- },
- "name": "logger"
- },
- "computed": false
+ }
},
"property": {
"type": "Identifier",
- "start": 12253,
- "end": 12259,
+ "start": 12114,
+ "end": 12120,
"loc": {
"start": {
- "line": 346,
- "column": 27
+ "line": 339,
+ "column": 36
},
"end": {
- "line": 346,
- "column": 33
+ "line": 339,
+ "column": 42
},
- "identifierName": "prefix"
+ "identifierName": "frames"
},
- "name": "prefix"
+ "name": "frames"
},
"computed": false
},
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 12260,
- "end": 12272,
- "loc": {
- "start": {
- "line": 346,
- "column": 34
- },
- "end": {
- "line": 346,
- "column": 46
- }
+ "property": {
+ "type": "Identifier",
+ "start": 12121,
+ "end": 12134,
+ "loc": {
+ "start": {
+ "line": 339,
+ "column": 43
},
- "extra": {
- "rawValue": "VYI-Module",
- "raw": "'VYI-Module'"
+ "end": {
+ "line": 339,
+ "column": 56
},
- "value": "VYI-Module"
- }
- ]
- },
- "property": {
- "type": "Identifier",
- "start": 12274,
- "end": 12279,
- "loc": {
- "start": {
- "line": 346,
- "column": 48
- },
- "end": {
- "line": 346,
- "column": 53
- },
- "identifierName": "error"
- },
- "name": "error"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 12280,
- "end": 12363,
- "loc": {
- "start": {
- "line": 346,
- "column": 54
+ "identifierName": "pCurrentIndex"
},
- "end": {
- "line": 346,
- "column": 137
- }
- },
- "extra": {
- "rawValue": "There was no frame found at pCurrentIndex, or there was no frame found at pIndex!",
- "raw": "'There was no frame found at pCurrentIndex, or there was no frame found at pIndex!'"
+ "name": "pCurrentIndex"
},
- "value": "There was no frame found at pCurrentIndex, or there was no frame found at pIndex!"
+ "computed": true
}
- ]
+ }
}
- }
- ],
- "directives": []
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "alternate": null,
+ "trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
- "value": " We check if there is a valid frame at the current index and at the index we want to swap with.",
- "start": 11833,
- "end": 11930,
+ "value": " We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves",
+ "start": 11659,
+ "end": 11807,
+ "loc": {
+ "start": {
+ "line": 333,
+ "column": 12
+ },
+ "end": {
+ "line": 333,
+ "column": 160
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " as the frame 0.",
+ "start": 11821,
+ "end": 11839,
+ "loc": {
+ "start": {
+ "line": 334,
+ "column": 12
+ },
+ "end": {
+ "line": 334,
+ "column": 30
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " We get the frame at the specified index.",
+ "start": 12167,
+ "end": 12210,
"loc": {
"start": {
- "line": 339,
+ "line": 342,
"column": 12
},
"end": {
- "line": 339,
- "column": 109
+ "line": 342,
+ "column": 55
}
}
}
]
- }
- ],
- "directives": []
- },
- "alternate": {
- "type": "BlockStatement",
- "start": 12397,
- "end": 12483,
- "loc": {
- "start": {
- "line": 348,
- "column": 15
},
- "end": {
- "line": 350,
- "column": 9
- }
- },
- "body": [
{
- "type": "ExpressionStatement",
- "start": 12412,
- "end": 12472,
+ "type": "IfStatement",
+ "start": 12224,
+ "end": 12318,
"loc": {
"start": {
- "line": 349,
+ "line": 343,
"column": 12
},
"end": {
- "line": 349,
- "column": 72
+ "line": 345,
+ "column": 13
}
},
- "expression": {
- "type": "CallExpression",
- "start": 12412,
- "end": 12471,
+ "test": {
+ "type": "MemberExpression",
+ "start": 12228,
+ "end": 12247,
"loc": {
"start": {
- "line": 349,
- "column": 12
+ "line": 343,
+ "column": 16
},
"end": {
- "line": 349,
- "column": 71
+ "line": 343,
+ "column": 35
}
},
- "callee": {
+ "object": {
"type": "MemberExpression",
- "start": 12412,
- "end": 12449,
+ "start": 12228,
+ "end": 12239,
"loc": {
"start": {
- "line": 349,
- "column": 12
+ "line": 343,
+ "column": 16
},
"end": {
- "line": 349,
- "column": 49
+ "line": 343,
+ "column": 27
}
},
"object": {
- "type": "CallExpression",
- "start": 12412,
- "end": 12443,
+ "type": "ThisExpression",
+ "start": 12228,
+ "end": 12232,
"loc": {
"start": {
- "line": 349,
- "column": 12
+ "line": 343,
+ "column": 16
},
"end": {
- "line": 349,
- "column": 43
+ "line": 343,
+ "column": 20
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 12412,
- "end": 12429,
- "loc": {
- "start": {
- "line": 349,
- "column": 12
- },
- "end": {
- "line": 349,
- "column": 29
- }
- },
- "object": {
- "type": "MemberExpression",
- "start": 12412,
- "end": 12422,
- "loc": {
- "start": {
- "line": 349,
- "column": 12
- },
- "end": {
- "line": 349,
- "column": 22
- }
- },
- "object": {
- "type": "Identifier",
- "start": 12412,
- "end": 12415,
- "loc": {
- "start": {
- "line": 349,
- "column": 12
- },
- "end": {
- "line": 349,
- "column": 15
- },
- "identifierName": "VYI"
- },
- "name": "VYI"
- },
- "property": {
- "type": "Identifier",
- "start": 12416,
- "end": 12422,
- "loc": {
- "start": {
- "line": 349,
- "column": 16
- },
- "end": {
- "line": 349,
- "column": 22
- },
- "identifierName": "logger"
- },
- "name": "logger"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "start": 12423,
- "end": 12429,
- "loc": {
- "start": {
- "line": 349,
- "column": 23
- },
- "end": {
- "line": 349,
- "column": 29
- },
- "identifierName": "prefix"
- },
- "name": "prefix"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 12430,
- "end": 12442,
- "loc": {
- "start": {
- "line": 349,
- "column": 30
- },
- "end": {
- "line": 349,
- "column": 42
- }
- },
- "extra": {
- "rawValue": "VYI-Module",
- "raw": "'VYI-Module'"
- },
- "value": "VYI-Module"
- }
- ]
- },
- "property": {
- "type": "Identifier",
- "start": 12444,
- "end": 12449,
- "loc": {
- "start": {
- "line": 349,
- "column": 44
- },
- "end": {
- "line": 349,
- "column": 49
- },
- "identifierName": "error"
- },
- "name": "error"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 12450,
- "end": 12470,
- "loc": {
- "start": {
- "line": 349,
- "column": 50
- },
- "end": {
- "line": 349,
- "column": 70
- }
- },
- "extra": {
- "rawValue": "Invalid type used!",
- "raw": "'Invalid type used!'"
- },
- "value": "Invalid type used!"
- }
- ]
- }
- }
- ],
- "directives": []
- }
- },
- {
- "type": "ReturnStatement",
- "start": 12493,
- "end": 12505,
- "loc": {
- "start": {
- "line": 351,
- "column": 8
- },
- "end": {
- "line": 351,
- "column": 20
- }
- },
- "argument": {
- "type": "ThisExpression",
- "start": 12500,
- "end": 12504,
- "loc": {
- "start": {
- "line": 351,
- "column": 15
- },
- "end": {
- "line": 351,
- "column": 19
- }
- }
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 11377,
- "end": 11694,
- "loc": {
- "start": {
- "line": 331,
- "column": 4
- },
- "end": {
- "line": 336,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the frame existing at pIndex.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
- "start": 12518,
- "end": 12699,
- "loc": {
- "start": {
- "line": 353,
- "column": 4
- },
- "end": {
- "line": 357,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 12705,
- "end": 13022,
- "loc": {
- "start": {
- "line": 358,
- "column": 4
- },
- "end": {
- "line": 365,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 12705,
- "end": 12713,
- "loc": {
- "start": {
- "line": 358,
- "column": 4
- },
- "end": {
- "line": 358,
- "column": 12
- },
- "identifierName": "getFrame"
- },
- "name": "getFrame",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [
- {
- "type": "Identifier",
- "start": 12714,
- "end": 12720,
- "loc": {
- "start": {
- "line": 358,
- "column": 13
- },
- "end": {
- "line": 358,
- "column": 19
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex"
- }
- ],
- "body": {
- "type": "BlockStatement",
- "start": 12722,
- "end": 13022,
- "loc": {
- "start": {
- "line": 358,
- "column": 21
- },
- "end": {
- "line": 365,
- "column": 5
- }
- },
- "body": [
- {
- "type": "IfStatement",
- "start": 12837,
- "end": 13015,
- "loc": {
- "start": {
- "line": 360,
- "column": 8
- },
- "end": {
- "line": 364,
- "column": 9
- }
- },
- "test": {
- "type": "BinaryExpression",
- "start": 12841,
- "end": 12868,
- "loc": {
- "start": {
- "line": 360,
- "column": 12
- },
- "end": {
- "line": 360,
- "column": 39
- }
- },
- "left": {
- "type": "UnaryExpression",
- "start": 12841,
- "end": 12855,
- "loc": {
- "start": {
- "line": 360,
- "column": 12
- },
- "end": {
- "line": 360,
- "column": 26
- }
- },
- "operator": "typeof",
- "prefix": true,
- "argument": {
- "type": "Identifier",
- "start": 12848,
- "end": 12854,
- "loc": {
- "start": {
- "line": 360,
- "column": 19
- },
- "end": {
- "line": 360,
- "column": 25
- },
- "identifierName": "pIndex"
- },
- "name": "pIndex",
- "leadingComments": null,
- "extra": {
- "parenthesized": true,
- "parenStart": 12847
- }
- },
- "extra": {
- "parenthesizedArgument": false
- },
- "leadingComments": null
- },
- "operator": "===",
- "right": {
- "type": "StringLiteral",
- "start": 12860,
- "end": 12868,
- "loc": {
- "start": {
- "line": 360,
- "column": 31
- },
- "end": {
- "line": 360,
- "column": 39
- }
- },
- "extra": {
- "rawValue": "number",
- "raw": "'number'"
- },
- "value": "number"
- },
- "leadingComments": null
- },
- "consequent": {
- "type": "BlockStatement",
- "start": 12870,
- "end": 12923,
- "loc": {
- "start": {
- "line": 360,
- "column": 41
- },
- "end": {
- "line": 362,
- "column": 9
- }
- },
- "body": [
- {
- "type": "ReturnStatement",
- "start": 12885,
- "end": 12912,
- "loc": {
- "start": {
- "line": 361,
- "column": 12
- },
- "end": {
- "line": 361,
- "column": 39
- }
- },
- "argument": {
- "type": "MemberExpression",
- "start": 12892,
- "end": 12911,
- "loc": {
- "start": {
- "line": 361,
- "column": 19
- },
- "end": {
- "line": 361,
- "column": 38
- }
- },
- "object": {
- "type": "MemberExpression",
- "start": 12892,
- "end": 12903,
- "loc": {
- "start": {
- "line": 361,
- "column": 19
- },
- "end": {
- "line": 361,
- "column": 30
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 12892,
- "end": 12896,
- "loc": {
- "start": {
- "line": 361,
- "column": 19
- },
- "end": {
- "line": 361,
- "column": 23
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 12897,
- "end": 12903,
- "loc": {
- "start": {
- "line": 361,
- "column": 24
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12233,
+ "end": 12239,
+ "loc": {
+ "start": {
+ "line": 343,
+ "column": 21
},
"end": {
- "line": 361,
- "column": 30
+ "line": 343,
+ "column": 27
},
"identifierName": "frames"
},
"name": "frames"
},
- "computed": false
+ "computed": false,
+ "leadingComments": null
},
"property": {
"type": "Identifier",
- "start": 12904,
- "end": 12910,
+ "start": 12240,
+ "end": 12246,
"loc": {
"start": {
- "line": 361,
- "column": 31
+ "line": 343,
+ "column": 28
},
"end": {
- "line": 361,
- "column": 37
+ "line": 343,
+ "column": 34
},
"identifierName": "pIndex"
},
"name": "pIndex"
},
- "computed": true
- }
- }
- ],
- "directives": []
- },
- "alternate": {
- "type": "BlockStatement",
- "start": 12929,
- "end": 13015,
- "loc": {
- "start": {
- "line": 362,
- "column": 15
- },
- "end": {
- "line": 364,
- "column": 9
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 12944,
- "end": 13004,
- "loc": {
- "start": {
- "line": 363,
- "column": 12
- },
- "end": {
- "line": 363,
- "column": 72
- }
+ "computed": true,
+ "leadingComments": null
},
- "expression": {
- "type": "CallExpression",
- "start": 12944,
- "end": 13003,
+ "consequent": {
+ "type": "BlockStatement",
+ "start": 12249,
+ "end": 12318,
"loc": {
"start": {
- "line": 363,
- "column": 12
+ "line": 343,
+ "column": 37
},
"end": {
- "line": 363,
- "column": 71
+ "line": 345,
+ "column": 13
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 12944,
- "end": 12981,
- "loc": {
- "start": {
- "line": 363,
- "column": 12
- },
- "end": {
- "line": 363,
- "column": 49
- }
- },
- "object": {
- "type": "CallExpression",
- "start": 12944,
- "end": 12975,
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 12268,
+ "end": 12303,
"loc": {
"start": {
- "line": 363,
- "column": 12
+ "line": 344,
+ "column": 16
},
"end": {
- "line": 363,
- "column": 43
+ "line": 344,
+ "column": 51
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 12944,
- "end": 12961,
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 12268,
+ "end": 12302,
"loc": {
"start": {
- "line": 363,
- "column": 12
+ "line": 344,
+ "column": 16
},
"end": {
- "line": 363,
- "column": 29
+ "line": 344,
+ "column": 50
}
},
- "object": {
+ "operator": "=",
+ "left": {
+ "type": "Identifier",
+ "start": 12268,
+ "end": 12280,
+ "loc": {
+ "start": {
+ "line": 344,
+ "column": 16
+ },
+ "end": {
+ "line": 344,
+ "column": 28
+ },
+ "identifierName": "frameAtIndex"
+ },
+ "name": "frameAtIndex"
+ },
+ "right": {
"type": "MemberExpression",
- "start": 12944,
- "end": 12954,
+ "start": 12283,
+ "end": 12302,
"loc": {
"start": {
- "line": 363,
- "column": 12
+ "line": 344,
+ "column": 31
},
"end": {
- "line": 363,
- "column": 22
+ "line": 344,
+ "column": 50
}
},
"object": {
- "type": "Identifier",
- "start": 12944,
- "end": 12947,
+ "type": "MemberExpression",
+ "start": 12283,
+ "end": 12294,
"loc": {
"start": {
- "line": 363,
- "column": 12
+ "line": 344,
+ "column": 31
},
"end": {
- "line": 363,
- "column": 15
+ "line": 344,
+ "column": 42
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 12283,
+ "end": 12287,
+ "loc": {
+ "start": {
+ "line": 344,
+ "column": 31
+ },
+ "end": {
+ "line": 344,
+ "column": 35
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12288,
+ "end": 12294,
+ "loc": {
+ "start": {
+ "line": 344,
+ "column": 36
+ },
+ "end": {
+ "line": 344,
+ "column": 42
+ },
+ "identifierName": "frames"
},
- "identifierName": "VYI"
+ "name": "frames"
},
- "name": "VYI"
+ "computed": false
},
"property": {
"type": "Identifier",
- "start": 12948,
- "end": 12954,
+ "start": 12295,
+ "end": 12301,
"loc": {
"start": {
- "line": 363,
- "column": 16
+ "line": 344,
+ "column": 43
},
"end": {
- "line": 363,
- "column": 22
+ "line": 344,
+ "column": 49
},
- "identifierName": "logger"
- },
- "name": "logger"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "start": 12955,
- "end": 12961,
- "loc": {
- "start": {
- "line": 363,
- "column": 23
- },
- "end": {
- "line": 363,
- "column": 29
+ "identifierName": "pIndex"
},
- "identifierName": "prefix"
+ "name": "pIndex"
},
- "name": "prefix"
- },
- "computed": false
+ "computed": true
+ }
+ }
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "alternate": null,
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " We get the frame at the specified index.",
+ "start": 12167,
+ "end": 12210,
+ "loc": {
+ "start": {
+ "line": 342,
+ "column": 12
},
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 12962,
- "end": 12974,
- "loc": {
- "start": {
- "line": 363,
- "column": 30
- },
- "end": {
- "line": 363,
- "column": 42
- }
- },
- "extra": {
- "rawValue": "VYI-Module",
- "raw": "'VYI-Module'"
- },
- "value": "VYI-Module"
- }
- ]
- },
- "property": {
- "type": "Identifier",
- "start": 12976,
- "end": 12981,
- "loc": {
- "start": {
- "line": 363,
- "column": 44
- },
- "end": {
- "line": 363,
- "column": 49
- },
- "identifierName": "error"
- },
- "name": "error"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "StringLiteral",
- "start": 12982,
- "end": 13002,
- "loc": {
- "start": {
- "line": 363,
- "column": 50
- },
- "end": {
- "line": 363,
- "column": 70
- }
- },
- "extra": {
- "rawValue": "Invalid type used!",
- "raw": "'Invalid type used!'"
+ "end": {
+ "line": 342,
+ "column": 55
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " If both frames can be found, we can swap their data.",
+ "start": 12334,
+ "end": 12389,
+ "loc": {
+ "start": {
+ "line": 347,
+ "column": 12
},
- "value": "Invalid type used!"
+ "end": {
+ "line": 347,
+ "column": 67
+ }
}
- ]
- }
- }
- ],
- "directives": []
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.",
- "start": 12733,
- "end": 12827,
- "loc": {
- "start": {
- "line": 359,
- "column": 8
- },
- "end": {
- "line": 359,
- "column": 102
- }
- }
- }
- ]
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the frame existing at pIndex.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
- "start": 12518,
- "end": 12699,
- "loc": {
- "start": {
- "line": 353,
- "column": 4
- },
- "end": {
- "line": 357,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
- "start": 13028,
- "end": 13158,
- "loc": {
- "start": {
- "line": 366,
- "column": 4
- },
- "end": {
- "line": 369,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 13164,
- "end": 13220,
- "loc": {
- "start": {
- "line": 370,
- "column": 4
- },
- "end": {
- "line": 372,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 13164,
- "end": 13173,
- "loc": {
- "start": {
- "line": 370,
- "column": 4
- },
- "end": {
- "line": 370,
- "column": 13
- },
- "identifierName": "getFrames"
- },
- "name": "getFrames",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 13176,
- "end": 13220,
- "loc": {
- "start": {
- "line": 370,
- "column": 16
- },
- "end": {
- "line": 372,
- "column": 5
- }
- },
- "body": [
- {
- "type": "ReturnStatement",
- "start": 13187,
- "end": 13213,
- "loc": {
- "start": {
- "line": 371,
- "column": 8
- },
- "end": {
- "line": 371,
- "column": 34
- }
- },
- "argument": {
- "type": "ArrayExpression",
- "start": 13194,
- "end": 13212,
- "loc": {
- "start": {
- "line": 371,
- "column": 15
+ }
+ ]
},
- "end": {
- "line": 371,
- "column": 33
- }
- },
- "elements": [
{
- "type": "SpreadElement",
- "start": 13196,
- "end": 13210,
+ "type": "IfStatement",
+ "start": 12403,
+ "end": 13261,
"loc": {
"start": {
- "line": 371,
- "column": 17
+ "line": 348,
+ "column": 12
},
"end": {
- "line": 371,
- "column": 31
+ "line": 364,
+ "column": 13
}
},
- "argument": {
- "type": "MemberExpression",
- "start": 13199,
- "end": 13210,
+ "test": {
+ "type": "LogicalExpression",
+ "start": 12407,
+ "end": 12435,
"loc": {
"start": {
- "line": 371,
- "column": 20
+ "line": 348,
+ "column": 16
},
"end": {
- "line": 371,
- "column": 31
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 13199,
- "end": 13203,
- "loc": {
- "start": {
- "line": 371,
- "column": 20
- },
- "end": {
- "line": 371,
- "column": 24
- }
+ "line": 348,
+ "column": 44
}
},
- "property": {
+ "left": {
"type": "Identifier",
- "start": 13204,
- "end": 13210,
+ "start": 12407,
+ "end": 12419,
"loc": {
"start": {
- "line": 371,
- "column": 25
+ "line": 348,
+ "column": 16
},
"end": {
- "line": 371,
- "column": 31
+ "line": 348,
+ "column": 28
},
- "identifierName": "frames"
- },
- "name": "frames"
- },
- "computed": false
- }
- }
- ]
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
- "start": 13028,
- "end": 13158,
- "loc": {
- "start": {
- "line": 366,
- "column": 4
- },
- "end": {
- "line": 369,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
- "start": 13226,
- "end": 13382,
- "loc": {
- "start": {
- "line": 373,
- "column": 4
- },
- "end": {
- "line": 377,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 13388,
- "end": 13587,
- "loc": {
- "start": {
- "line": 378,
- "column": 4
- },
- "end": {
- "line": 384,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 13388,
- "end": 13401,
- "loc": {
- "start": {
- "line": 378,
- "column": 4
- },
- "end": {
- "line": 378,
- "column": 17
- },
- "identifierName": "getFramesData"
- },
- "name": "getFramesData",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 13404,
- "end": 13587,
- "loc": {
- "start": {
- "line": 378,
- "column": 20
- },
- "end": {
- "line": 384,
- "column": 5
- }
- },
- "body": [
- {
- "type": "VariableDeclaration",
- "start": 13415,
- "end": 13441,
- "loc": {
- "start": {
- "line": 379,
- "column": 8
- },
- "end": {
- "line": 379,
- "column": 34
- }
- },
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 13421,
- "end": 13440,
- "loc": {
- "start": {
- "line": 379,
- "column": 14
- },
- "end": {
- "line": 379,
- "column": 33
- }
- },
- "id": {
- "type": "Identifier",
- "start": 13421,
- "end": 13435,
- "loc": {
- "start": {
- "line": 379,
- "column": 14
- },
- "end": {
- "line": 379,
- "column": 28
- },
- "identifierName": "frameDataArray"
- },
- "name": "frameDataArray"
- },
- "init": {
- "type": "ArrayExpression",
- "start": 13438,
- "end": 13440,
- "loc": {
- "start": {
- "line": 379,
- "column": 31
- },
- "end": {
- "line": 379,
- "column": 33
- }
- },
- "elements": []
- }
- }
- ],
- "kind": "const"
- },
- {
- "type": "ExpressionStatement",
- "start": 13451,
- "end": 13548,
- "loc": {
- "start": {
- "line": 380,
- "column": 8
- },
- "end": {
- "line": 382,
- "column": 11
- }
- },
- "expression": {
- "type": "CallExpression",
- "start": 13451,
- "end": 13547,
- "loc": {
- "start": {
- "line": 380,
- "column": 8
- },
- "end": {
- "line": 382,
- "column": 10
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 13451,
- "end": 13470,
- "loc": {
- "start": {
- "line": 380,
- "column": 8
- },
- "end": {
- "line": 380,
- "column": 27
- }
- },
- "object": {
- "type": "MemberExpression",
- "start": 13451,
- "end": 13462,
- "loc": {
- "start": {
- "line": 380,
- "column": 8
- },
- "end": {
- "line": 380,
- "column": 19
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 13451,
- "end": 13455,
- "loc": {
- "start": {
- "line": 380,
- "column": 8
+ "identifierName": "currentFrame"
},
- "end": {
- "line": 380,
- "column": 12
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 13456,
- "end": 13462,
- "loc": {
- "start": {
- "line": 380,
- "column": 13
- },
- "end": {
- "line": 380,
- "column": 19
- },
- "identifierName": "frames"
- },
- "name": "frames"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "start": 13463,
- "end": 13470,
- "loc": {
- "start": {
- "line": 380,
- "column": 20
- },
- "end": {
- "line": 380,
- "column": 27
- },
- "identifierName": "forEach"
- },
- "name": "forEach"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "ArrowFunctionExpression",
- "start": 13471,
- "end": 13546,
- "loc": {
- "start": {
- "line": 380,
- "column": 28
+ "name": "currentFrame",
+ "leadingComments": null
},
- "end": {
- "line": 382,
- "column": 9
- }
- },
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [
- {
+ "operator": "&&",
+ "right": {
"type": "Identifier",
- "start": 13472,
- "end": 13478,
+ "start": 12423,
+ "end": 12435,
"loc": {
"start": {
- "line": 380,
- "column": 29
+ "line": 348,
+ "column": 32
},
"end": {
- "line": 380,
- "column": 35
+ "line": 348,
+ "column": 44
},
- "identifierName": "pFrame"
+ "identifierName": "frameAtIndex"
},
- "name": "pFrame"
- }
- ],
- "body": {
+ "name": "frameAtIndex"
+ },
+ "leadingComments": null
+ },
+ "consequent": {
"type": "BlockStatement",
- "start": 13483,
- "end": 13546,
+ "start": 12437,
+ "end": 13098,
"loc": {
"start": {
- "line": 380,
- "column": 40
+ "line": 348,
+ "column": 46
},
"end": {
- "line": 382,
- "column": 9
+ "line": 362,
+ "column": 13
}
},
"body": [
{
- "type": "ExpressionStatement",
- "start": 13498,
- "end": 13535,
+ "type": "VariableDeclaration",
+ "start": 12493,
+ "end": 12547,
"loc": {
"start": {
- "line": 381,
- "column": 12
+ "line": 350,
+ "column": 16
},
"end": {
- "line": 381,
- "column": 49
+ "line": 350,
+ "column": 70
}
},
- "expression": {
- "type": "CallExpression",
- "start": 13498,
- "end": 13534,
- "loc": {
- "start": {
- "line": 381,
- "column": 12
- },
- "end": {
- "line": 381,
- "column": 48
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 13498,
- "end": 13517,
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 12499,
+ "end": 12546,
"loc": {
"start": {
- "line": 381,
- "column": 12
+ "line": 350,
+ "column": 22
},
"end": {
- "line": 381,
- "column": 31
+ "line": 350,
+ "column": 69
}
},
- "object": {
+ "id": {
"type": "Identifier",
- "start": 13498,
- "end": 13512,
+ "start": 12499,
+ "end": 12518,
"loc": {
"start": {
- "line": 381,
- "column": 12
+ "line": 350,
+ "column": 22
},
"end": {
- "line": 381,
- "column": 26
+ "line": 350,
+ "column": 41
},
- "identifierName": "frameDataArray"
+ "identifierName": "currentFrameDataURL"
},
- "name": "frameDataArray"
+ "name": "currentFrameDataURL",
+ "leadingComments": null
},
- "property": {
- "type": "Identifier",
- "start": 13513,
- "end": 13517,
+ "init": {
+ "type": "CallExpression",
+ "start": 12521,
+ "end": 12546,
"loc": {
"start": {
- "line": 381,
- "column": 27
+ "line": 350,
+ "column": 44
},
"end": {
- "line": 381,
- "column": 31
+ "line": 350,
+ "column": 69
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 12521,
+ "end": 12544,
+ "loc": {
+ "start": {
+ "line": 350,
+ "column": 44
+ },
+ "end": {
+ "line": 350,
+ "column": 67
+ }
},
- "identifierName": "push"
+ "object": {
+ "type": "Identifier",
+ "start": 12521,
+ "end": 12533,
+ "loc": {
+ "start": {
+ "line": 350,
+ "column": 44
+ },
+ "end": {
+ "line": 350,
+ "column": 56
+ },
+ "identifierName": "currentFrame"
+ },
+ "name": "currentFrame"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12534,
+ "end": 12544,
+ "loc": {
+ "start": {
+ "line": 350,
+ "column": 57
+ },
+ "end": {
+ "line": 350,
+ "column": 67
+ },
+ "identifierName": "getDataURL"
+ },
+ "name": "getDataURL"
+ },
+ "computed": false
},
- "name": "push"
+ "arguments": []
},
- "computed": false
+ "leadingComments": null
+ }
+ ],
+ "kind": "const",
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Store frame data",
+ "start": 12456,
+ "end": 12475,
+ "loc": {
+ "start": {
+ "line": 349,
+ "column": 16
+ },
+ "end": {
+ "line": 349,
+ "column": 35
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "VariableDeclaration",
+ "start": 12565,
+ "end": 12615,
+ "loc": {
+ "start": {
+ "line": 351,
+ "column": 16
},
- "arguments": [
- {
+ "end": {
+ "line": 351,
+ "column": 66
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 12571,
+ "end": 12614,
+ "loc": {
+ "start": {
+ "line": 351,
+ "column": 22
+ },
+ "end": {
+ "line": 351,
+ "column": 65
+ }
+ },
+ "id": {
+ "type": "Identifier",
+ "start": 12571,
+ "end": 12588,
+ "loc": {
+ "start": {
+ "line": 351,
+ "column": 22
+ },
+ "end": {
+ "line": 351,
+ "column": 39
+ },
+ "identifierName": "currentFrameDelay"
+ },
+ "name": "currentFrameDelay"
+ },
+ "init": {
"type": "CallExpression",
- "start": 13518,
- "end": 13533,
+ "start": 12591,
+ "end": 12614,
"loc": {
"start": {
- "line": 381,
- "column": 32
+ "line": 351,
+ "column": 42
},
"end": {
- "line": 381,
- "column": 47
+ "line": 351,
+ "column": 65
}
},
"callee": {
"type": "MemberExpression",
- "start": 13518,
- "end": 13531,
+ "start": 12591,
+ "end": 12612,
"loc": {
"start": {
- "line": 381,
- "column": 32
+ "line": 351,
+ "column": 42
},
"end": {
- "line": 381,
- "column": 45
+ "line": 351,
+ "column": 63
}
},
"object": {
"type": "Identifier",
- "start": 13518,
- "end": 13524,
+ "start": 12591,
+ "end": 12603,
"loc": {
"start": {
- "line": 381,
- "column": 32
+ "line": 351,
+ "column": 42
},
"end": {
- "line": 381,
- "column": 38
+ "line": 351,
+ "column": 54
},
- "identifierName": "pFrame"
+ "identifierName": "currentFrame"
},
- "name": "pFrame"
+ "name": "currentFrame"
},
"property": {
"type": "Identifier",
- "start": 13525,
- "end": 13531,
+ "start": 12604,
+ "end": 12612,
"loc": {
"start": {
- "line": 381,
- "column": 39
+ "line": 351,
+ "column": 55
},
"end": {
- "line": 381,
- "column": 45
+ "line": 351,
+ "column": 63
},
- "identifierName": "export"
+ "identifierName": "getDelay"
},
- "name": "export"
+ "name": "getDelay"
},
"computed": false
},
"arguments": []
}
- ]
- }
- }
- ],
- "directives": []
- }
- }
- ]
- }
- },
- {
- "type": "ReturnStatement",
- "start": 13558,
- "end": 13580,
- "loc": {
- "start": {
- "line": 383,
- "column": 8
- },
- "end": {
- "line": 383,
- "column": 30
- }
- },
- "argument": {
- "type": "Identifier",
- "start": 13565,
- "end": 13579,
- "loc": {
- "start": {
- "line": 383,
- "column": 15
- },
- "end": {
- "line": 383,
- "column": 29
- },
- "identifierName": "frameDataArray"
- },
- "name": "frameDataArray"
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
- "start": 13226,
- "end": 13382,
- "loc": {
- "start": {
- "line": 373,
- "column": 4
- },
- "end": {
- "line": 377,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
- "start": 13593,
- "end": 13777,
- "loc": {
- "start": {
- "line": 385,
- "column": 4
- },
- "end": {
- "line": 389,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 13783,
- "end": 14018,
- "loc": {
- "start": {
- "line": 390,
- "column": 4
- },
- "end": {
- "line": 397,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 13783,
- "end": 13791,
- "loc": {
- "start": {
- "line": 390,
- "column": 4
- },
- "end": {
- "line": 390,
- "column": 12
- },
- "identifierName": "getState"
- },
- "name": "getState",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [
- {
- "type": "Identifier",
- "start": 13792,
- "end": 13797,
- "loc": {
- "start": {
- "line": 390,
- "column": 13
- },
- "end": {
- "line": 390,
- "column": 18
- },
- "identifierName": "pName"
- },
- "name": "pName"
- }
- ],
- "body": {
- "type": "BlockStatement",
- "start": 13799,
- "end": 14018,
- "loc": {
- "start": {
- "line": 390,
- "column": 20
- },
- "end": {
- "line": 397,
- "column": 5
- }
- },
- "body": [
- {
- "type": "ForOfStatement",
- "start": 13810,
- "end": 14010,
- "loc": {
- "start": {
- "line": 391,
- "column": 8
- },
- "end": {
- "line": 396,
- "column": 9
- }
- },
- "left": {
- "type": "VariableDeclaration",
- "start": 13815,
- "end": 13825,
- "loc": {
- "start": {
- "line": 391,
- "column": 13
- },
- "end": {
- "line": 391,
- "column": 23
- }
- },
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 13821,
- "end": 13825,
- "loc": {
- "start": {
- "line": 391,
- "column": 19
- },
- "end": {
- "line": 391,
- "column": 23
- }
- },
- "id": {
- "type": "Identifier",
- "start": 13821,
- "end": 13825,
- "loc": {
- "start": {
- "line": 391,
- "column": 19
- },
- "end": {
- "line": 391,
- "column": 23
- },
- "identifierName": "icon"
- },
- "name": "icon"
- },
- "init": null
- }
- ],
- "kind": "const"
- },
- "right": {
- "type": "MemberExpression",
- "start": 13829,
- "end": 13840,
- "loc": {
- "start": {
- "line": 391,
- "column": 27
- },
- "end": {
- "line": 391,
- "column": 38
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 13829,
- "end": 13833,
- "loc": {
- "start": {
- "line": 391,
- "column": 27
- },
- "end": {
- "line": 391,
- "column": 31
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 13834,
- "end": 13840,
- "loc": {
- "start": {
- "line": 391,
- "column": 32
- },
- "end": {
- "line": 391,
- "column": 38
- },
- "identifierName": "states"
- },
- "name": "states"
- },
- "computed": false
- },
- "body": {
- "type": "BlockStatement",
- "start": 13842,
- "end": 14010,
- "loc": {
- "start": {
- "line": 391,
- "column": 40
- },
- "end": {
- "line": 396,
- "column": 9
- }
- },
- "body": [
- {
- "type": "IfStatement",
- "start": 13923,
- "end": 13999,
- "loc": {
- "start": {
- "line": 393,
- "column": 12
- },
- "end": {
- "line": 395,
- "column": 13
- }
- },
- "test": {
- "type": "BinaryExpression",
- "start": 13927,
- "end": 13951,
- "loc": {
- "start": {
- "line": 393,
- "column": 16
- },
- "end": {
- "line": 393,
- "column": 40
- }
- },
- "left": {
- "type": "CallExpression",
- "start": 13927,
- "end": 13941,
- "loc": {
- "start": {
- "line": 393,
- "column": 16
- },
- "end": {
- "line": 393,
- "column": 30
- }
+ }
+ ],
+ "kind": "const"
},
- "callee": {
- "type": "MemberExpression",
- "start": 13927,
- "end": 13939,
+ {
+ "type": "VariableDeclaration",
+ "start": 12635,
+ "end": 12689,
"loc": {
"start": {
- "line": 393,
+ "line": 353,
"column": 16
},
"end": {
- "line": 393,
- "column": 28
+ "line": 353,
+ "column": 70
}
},
- "object": {
- "type": "Identifier",
- "start": 13927,
- "end": 13931,
- "loc": {
- "start": {
- "line": 393,
- "column": 16
- },
- "end": {
- "line": 393,
- "column": 20
- },
- "identifierName": "icon"
- },
- "name": "icon",
- "leadingComments": null
- },
- "property": {
- "type": "Identifier",
- "start": 13932,
- "end": 13939,
- "loc": {
- "start": {
- "line": 393,
- "column": 21
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 12641,
+ "end": 12688,
+ "loc": {
+ "start": {
+ "line": 353,
+ "column": 22
+ },
+ "end": {
+ "line": 353,
+ "column": 69
+ }
},
- "end": {
- "line": 393,
- "column": 28
+ "id": {
+ "type": "Identifier",
+ "start": 12641,
+ "end": 12660,
+ "loc": {
+ "start": {
+ "line": 353,
+ "column": 22
+ },
+ "end": {
+ "line": 353,
+ "column": 41
+ },
+ "identifierName": "frameAtIndexDataURL"
+ },
+ "name": "frameAtIndexDataURL"
},
- "identifierName": "getName"
- },
- "name": "getName"
- },
- "computed": false,
- "leadingComments": null
- },
- "arguments": [],
- "leadingComments": null
- },
- "operator": "===",
- "right": {
- "type": "Identifier",
- "start": 13946,
- "end": 13951,
- "loc": {
- "start": {
- "line": 393,
- "column": 35
- },
- "end": {
- "line": 393,
- "column": 40
- },
- "identifierName": "pName"
- },
- "name": "pName"
- },
- "leadingComments": null
- },
- "consequent": {
- "type": "BlockStatement",
- "start": 13953,
- "end": 13999,
- "loc": {
- "start": {
- "line": 393,
- "column": 42
+ "init": {
+ "type": "CallExpression",
+ "start": 12663,
+ "end": 12688,
+ "loc": {
+ "start": {
+ "line": 353,
+ "column": 44
+ },
+ "end": {
+ "line": 353,
+ "column": 69
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 12663,
+ "end": 12686,
+ "loc": {
+ "start": {
+ "line": 353,
+ "column": 44
+ },
+ "end": {
+ "line": 353,
+ "column": 67
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 12663,
+ "end": 12675,
+ "loc": {
+ "start": {
+ "line": 353,
+ "column": 44
+ },
+ "end": {
+ "line": 353,
+ "column": 56
+ },
+ "identifierName": "frameAtIndex"
+ },
+ "name": "frameAtIndex"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12676,
+ "end": 12686,
+ "loc": {
+ "start": {
+ "line": 353,
+ "column": 57
+ },
+ "end": {
+ "line": 353,
+ "column": 67
+ },
+ "identifierName": "getDataURL"
+ },
+ "name": "getDataURL"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ }
+ ],
+ "kind": "const"
},
- "end": {
- "line": 395,
- "column": 13
- }
- },
- "body": [
{
- "type": "ReturnStatement",
- "start": 13972,
- "end": 13984,
+ "type": "VariableDeclaration",
+ "start": 12707,
+ "end": 12757,
"loc": {
"start": {
- "line": 394,
+ "line": 354,
"column": 16
},
"end": {
- "line": 394,
- "column": 28
+ "line": 354,
+ "column": 66
}
},
- "argument": {
- "type": "Identifier",
- "start": 13979,
- "end": 13983,
- "loc": {
- "start": {
- "line": 394,
- "column": 23
- },
- "end": {
- "line": 394,
- "column": 27
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 12713,
+ "end": 12756,
+ "loc": {
+ "start": {
+ "line": 354,
+ "column": 22
+ },
+ "end": {
+ "line": 354,
+ "column": 65
+ }
},
- "identifierName": "icon"
- },
- "name": "icon"
- }
- }
- ],
- "directives": []
- },
- "alternate": null,
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " If the state has the same name, return that state",
- "start": 13857,
- "end": 13909,
- "loc": {
- "start": {
- "line": 392,
- "column": 12
- },
- "end": {
- "line": 392,
- "column": 64
- }
- }
- }
- ]
- }
- ],
- "directives": []
- }
- },
- {
- "type": "EmptyStatement",
- "start": 14010,
- "end": 14011,
- "loc": {
- "start": {
- "line": 396,
- "column": 9
- },
- "end": {
- "line": 396,
- "column": 10
- }
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
- "start": 13593,
- "end": 13777,
- "loc": {
- "start": {
- "line": 385,
- "column": 4
- },
- "end": {
- "line": 389,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
- "start": 14024,
- "end": 14154,
- "loc": {
- "start": {
- "line": 398,
- "column": 4
- },
- "end": {
- "line": 401,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 14160,
- "end": 14216,
- "loc": {
- "start": {
- "line": 402,
- "column": 4
- },
- "end": {
- "line": 404,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 14160,
- "end": 14169,
- "loc": {
- "start": {
- "line": 402,
- "column": 4
- },
- "end": {
- "line": 402,
- "column": 13
- },
- "identifierName": "getStates"
- },
- "name": "getStates",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 14172,
- "end": 14216,
- "loc": {
- "start": {
- "line": 402,
- "column": 16
- },
- "end": {
- "line": 404,
- "column": 5
- }
- },
- "body": [
- {
- "type": "ReturnStatement",
- "start": 14183,
- "end": 14209,
- "loc": {
- "start": {
- "line": 403,
- "column": 8
- },
- "end": {
- "line": 403,
- "column": 34
- }
- },
- "argument": {
- "type": "ArrayExpression",
- "start": 14190,
- "end": 14208,
- "loc": {
- "start": {
- "line": 403,
- "column": 15
- },
- "end": {
- "line": 403,
- "column": 33
- }
- },
- "elements": [
- {
- "type": "SpreadElement",
- "start": 14192,
- "end": 14206,
- "loc": {
- "start": {
- "line": 403,
- "column": 17
- },
- "end": {
- "line": 403,
- "column": 31
- }
- },
- "argument": {
- "type": "MemberExpression",
- "start": 14195,
- "end": 14206,
- "loc": {
- "start": {
- "line": 403,
- "column": 20
- },
- "end": {
- "line": 403,
- "column": 31
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 14195,
- "end": 14199,
- "loc": {
- "start": {
- "line": 403,
- "column": 20
- },
- "end": {
- "line": 403,
- "column": 24
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 14200,
- "end": 14206,
- "loc": {
- "start": {
- "line": 403,
- "column": 25
- },
- "end": {
- "line": 403,
- "column": 31
- },
- "identifierName": "states"
- },
- "name": "states"
- },
- "computed": false
- }
- }
- ]
- }
- }
- ],
- "directives": [],
- "trailingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
- "start": 14024,
- "end": 14154,
- "loc": {
- "start": {
- "line": 398,
- "column": 4
- },
- "end": {
- "line": 401,
- "column": 7
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
- "start": 14222,
- "end": 14378,
- "loc": {
- "start": {
- "line": 405,
- "column": 4
- },
- "end": {
- "line": 409,
- "column": 7
- }
- }
- }
- ]
- },
- {
- "type": "ClassMethod",
- "start": 14384,
- "end": 14659,
- "loc": {
- "start": {
- "line": 410,
- "column": 4
- },
- "end": {
- "line": 417,
- "column": 5
- }
- },
- "static": false,
- "computed": false,
- "key": {
- "type": "Identifier",
- "start": 14384,
- "end": 14397,
- "loc": {
- "start": {
- "line": 410,
- "column": 4
- },
- "end": {
- "line": 410,
- "column": 17
- },
- "identifierName": "getStatesData"
- },
- "name": "getStatesData",
- "leadingComments": null
- },
- "kind": "method",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "start": 14400,
- "end": 14659,
- "loc": {
- "start": {
- "line": 410,
- "column": 20
- },
- "end": {
- "line": 417,
- "column": 5
- }
- },
- "body": [
- {
- "type": "VariableDeclaration",
- "start": 14411,
- "end": 14437,
- "loc": {
- "start": {
- "line": 411,
- "column": 8
- },
- "end": {
- "line": 411,
- "column": 34
- }
- },
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 14417,
- "end": 14436,
- "loc": {
- "start": {
- "line": 411,
- "column": 14
- },
- "end": {
- "line": 411,
- "column": 33
- }
- },
- "id": {
- "type": "Identifier",
- "start": 14417,
- "end": 14431,
- "loc": {
- "start": {
- "line": 411,
- "column": 14
- },
- "end": {
- "line": 411,
- "column": 28
- },
- "identifierName": "stateDataArray"
- },
- "name": "stateDataArray"
- },
- "init": {
- "type": "ArrayExpression",
- "start": 14434,
- "end": 14436,
- "loc": {
- "start": {
- "line": 411,
- "column": 31
- },
- "end": {
- "line": 411,
- "column": 33
- }
- },
- "elements": []
- }
- }
- ],
- "kind": "const",
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " Loop state array to export relevant information.",
- "start": 14447,
- "end": 14498,
- "loc": {
- "start": {
- "line": 412,
- "column": 8
- },
- "end": {
- "line": 412,
- "column": 59
- }
- }
- }
- ]
- },
- {
- "type": "ExpressionStatement",
- "start": 14508,
- "end": 14612,
- "loc": {
- "start": {
- "line": 413,
- "column": 8
- },
- "end": {
- "line": 415,
- "column": 11
- }
- },
- "expression": {
- "type": "CallExpression",
- "start": 14508,
- "end": 14611,
- "loc": {
- "start": {
- "line": 413,
- "column": 8
- },
- "end": {
- "line": 415,
- "column": 10
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 14508,
- "end": 14527,
- "loc": {
- "start": {
- "line": 413,
- "column": 8
- },
- "end": {
- "line": 413,
- "column": 27
- }
- },
- "object": {
- "type": "MemberExpression",
- "start": 14508,
- "end": 14519,
- "loc": {
- "start": {
- "line": 413,
- "column": 8
- },
- "end": {
- "line": 413,
- "column": 19
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 14508,
- "end": 14512,
- "loc": {
- "start": {
- "line": 413,
- "column": 8
- },
- "end": {
- "line": 413,
- "column": 12
- }
- },
- "leadingComments": null
- },
- "property": {
- "type": "Identifier",
- "start": 14513,
- "end": 14519,
- "loc": {
- "start": {
- "line": 413,
- "column": 13
- },
- "end": {
- "line": 413,
- "column": 19
- },
- "identifierName": "states"
- },
- "name": "states"
- },
- "computed": false,
- "leadingComments": null
- },
- "property": {
- "type": "Identifier",
- "start": 14520,
- "end": 14527,
- "loc": {
- "start": {
- "line": 413,
- "column": 20
- },
- "end": {
- "line": 413,
- "column": 27
- },
- "identifierName": "forEach"
- },
- "name": "forEach"
- },
- "computed": false,
- "leadingComments": null
- },
- "arguments": [
- {
- "type": "ArrowFunctionExpression",
- "start": 14528,
- "end": 14610,
- "loc": {
- "start": {
- "line": 413,
- "column": 28
- },
- "end": {
- "line": 415,
- "column": 9
- }
- },
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "params": [
- {
- "type": "Identifier",
- "start": 14529,
- "end": 14535,
- "loc": {
- "start": {
- "line": 413,
- "column": 29
- },
- "end": {
- "line": 413,
- "column": 35
- },
- "identifierName": "pState"
- },
- "name": "pState"
- }
- ],
- "body": {
- "type": "BlockStatement",
- "start": 14540,
- "end": 14610,
- "loc": {
- "start": {
- "line": 413,
- "column": 40
- },
- "end": {
- "line": 415,
- "column": 9
- }
- },
- "body": [
- {
- "type": "ExpressionStatement",
- "start": 14555,
- "end": 14599,
- "loc": {
- "start": {
- "line": 414,
- "column": 12
- },
- "end": {
- "line": 414,
- "column": 56
- }
- },
- "expression": {
- "type": "CallExpression",
- "start": 14555,
- "end": 14598,
- "loc": {
- "start": {
- "line": 414,
- "column": 12
- },
- "end": {
- "line": 414,
- "column": 55
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 14555,
- "end": 14574,
- "loc": {
- "start": {
- "line": 414,
- "column": 12
- },
- "end": {
- "line": 414,
- "column": 31
- }
- },
- "object": {
+ "id": {
"type": "Identifier",
- "start": 14555,
- "end": 14569,
+ "start": 12713,
+ "end": 12730,
"loc": {
"start": {
- "line": 414,
- "column": 12
+ "line": 354,
+ "column": 22
},
"end": {
- "line": 414,
- "column": 26
+ "line": 354,
+ "column": 39
},
- "identifierName": "stateDataArray"
+ "identifierName": "frameAtIndexDelay"
},
- "name": "stateDataArray"
+ "name": "frameAtIndexDelay"
},
- "property": {
- "type": "Identifier",
- "start": 14570,
- "end": 14574,
+ "init": {
+ "type": "CallExpression",
+ "start": 12733,
+ "end": 12756,
"loc": {
"start": {
- "line": 414,
- "column": 27
+ "line": 354,
+ "column": 42
},
"end": {
- "line": 414,
- "column": 31
- },
- "identifierName": "push"
+ "line": 354,
+ "column": 65
+ }
},
- "name": "push"
+ "callee": {
+ "type": "MemberExpression",
+ "start": 12733,
+ "end": 12754,
+ "loc": {
+ "start": {
+ "line": 354,
+ "column": 42
+ },
+ "end": {
+ "line": 354,
+ "column": 63
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 12733,
+ "end": 12745,
+ "loc": {
+ "start": {
+ "line": 354,
+ "column": 42
+ },
+ "end": {
+ "line": 354,
+ "column": 54
+ },
+ "identifierName": "frameAtIndex"
+ },
+ "name": "frameAtIndex"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12746,
+ "end": 12754,
+ "loc": {
+ "start": {
+ "line": 354,
+ "column": 55
+ },
+ "end": {
+ "line": 354,
+ "column": 63
+ },
+ "identifierName": "getDelay"
+ },
+ "name": "getDelay"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ }
+ ],
+ "kind": "const",
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Swap data from frame",
+ "start": 12777,
+ "end": 12800,
+ "loc": {
+ "start": {
+ "line": 356,
+ "column": 16
+ },
+ "end": {
+ "line": 356,
+ "column": 39
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 12818,
+ "end": 12863,
+ "loc": {
+ "start": {
+ "line": 357,
+ "column": 16
+ },
+ "end": {
+ "line": 357,
+ "column": 61
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 12818,
+ "end": 12862,
+ "loc": {
+ "start": {
+ "line": 357,
+ "column": 16
+ },
+ "end": {
+ "line": 357,
+ "column": 60
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 12818,
+ "end": 12841,
+ "loc": {
+ "start": {
+ "line": 357,
+ "column": 16
+ },
+ "end": {
+ "line": 357,
+ "column": 39
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 12818,
+ "end": 12830,
+ "loc": {
+ "start": {
+ "line": 357,
+ "column": 16
+ },
+ "end": {
+ "line": 357,
+ "column": 28
+ },
+ "identifierName": "currentFrame"
+ },
+ "name": "currentFrame",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12831,
+ "end": 12841,
+ "loc": {
+ "start": {
+ "line": 357,
+ "column": 29
+ },
+ "end": {
+ "line": 357,
+ "column": 39
+ },
+ "identifierName": "setDataURL"
+ },
+ "name": "setDataURL"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "start": 12842,
+ "end": 12861,
+ "loc": {
+ "start": {
+ "line": 357,
+ "column": 40
+ },
+ "end": {
+ "line": 357,
+ "column": 59
+ },
+ "identifierName": "frameAtIndexDataURL"
+ },
+ "name": "frameAtIndexDataURL"
+ }
+ ],
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Swap data from frame",
+ "start": 12777,
+ "end": 12800,
+ "loc": {
+ "start": {
+ "line": 356,
+ "column": 16
+ },
+ "end": {
+ "line": 356,
+ "column": 39
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 12881,
+ "end": 12922,
+ "loc": {
+ "start": {
+ "line": 358,
+ "column": 16
+ },
+ "end": {
+ "line": 358,
+ "column": 57
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 12881,
+ "end": 12921,
+ "loc": {
+ "start": {
+ "line": 358,
+ "column": 16
+ },
+ "end": {
+ "line": 358,
+ "column": 56
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 12881,
+ "end": 12902,
+ "loc": {
+ "start": {
+ "line": 358,
+ "column": 16
+ },
+ "end": {
+ "line": 358,
+ "column": 37
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 12881,
+ "end": 12893,
+ "loc": {
+ "start": {
+ "line": 358,
+ "column": 16
+ },
+ "end": {
+ "line": 358,
+ "column": 28
+ },
+ "identifierName": "currentFrame"
+ },
+ "name": "currentFrame"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12894,
+ "end": 12902,
+ "loc": {
+ "start": {
+ "line": 358,
+ "column": 29
+ },
+ "end": {
+ "line": 358,
+ "column": 37
+ },
+ "identifierName": "setDelay"
+ },
+ "name": "setDelay"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "start": 12903,
+ "end": 12920,
+ "loc": {
+ "start": {
+ "line": 358,
+ "column": 38
+ },
+ "end": {
+ "line": 358,
+ "column": 55
+ },
+ "identifierName": "frameAtIndexDelay"
+ },
+ "name": "frameAtIndexDelay"
+ }
+ ]
+ },
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Swap data to frame",
+ "start": 12940,
+ "end": 12961,
+ "loc": {
+ "start": {
+ "line": 359,
+ "column": 16
+ },
+ "end": {
+ "line": 359,
+ "column": 37
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 12979,
+ "end": 13024,
+ "loc": {
+ "start": {
+ "line": 360,
+ "column": 16
+ },
+ "end": {
+ "line": 360,
+ "column": 61
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 12979,
+ "end": 13023,
+ "loc": {
+ "start": {
+ "line": 360,
+ "column": 16
+ },
+ "end": {
+ "line": 360,
+ "column": 60
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 12979,
+ "end": 13002,
+ "loc": {
+ "start": {
+ "line": 360,
+ "column": 16
+ },
+ "end": {
+ "line": 360,
+ "column": 39
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 12979,
+ "end": 12991,
+ "loc": {
+ "start": {
+ "line": 360,
+ "column": 16
+ },
+ "end": {
+ "line": 360,
+ "column": 28
+ },
+ "identifierName": "frameAtIndex"
+ },
+ "name": "frameAtIndex",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 12992,
+ "end": 13002,
+ "loc": {
+ "start": {
+ "line": 360,
+ "column": 29
+ },
+ "end": {
+ "line": 360,
+ "column": 39
+ },
+ "identifierName": "setDataURL"
+ },
+ "name": "setDataURL"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "start": 13003,
+ "end": 13022,
+ "loc": {
+ "start": {
+ "line": 360,
+ "column": 40
+ },
+ "end": {
+ "line": 360,
+ "column": 59
+ },
+ "identifierName": "currentFrameDataURL"
+ },
+ "name": "currentFrameDataURL"
+ }
+ ],
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Swap data to frame",
+ "start": 12940,
+ "end": 12961,
+ "loc": {
+ "start": {
+ "line": 359,
+ "column": 16
+ },
+ "end": {
+ "line": 359,
+ "column": 37
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 13042,
+ "end": 13083,
+ "loc": {
+ "start": {
+ "line": 361,
+ "column": 16
+ },
+ "end": {
+ "line": 361,
+ "column": 57
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 13042,
+ "end": 13082,
+ "loc": {
+ "start": {
+ "line": 361,
+ "column": 16
+ },
+ "end": {
+ "line": 361,
+ "column": 56
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 13042,
+ "end": 13063,
+ "loc": {
+ "start": {
+ "line": 361,
+ "column": 16
+ },
+ "end": {
+ "line": 361,
+ "column": 37
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 13042,
+ "end": 13054,
+ "loc": {
+ "start": {
+ "line": 361,
+ "column": 16
+ },
+ "end": {
+ "line": 361,
+ "column": 28
+ },
+ "identifierName": "frameAtIndex"
+ },
+ "name": "frameAtIndex"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13055,
+ "end": 13063,
+ "loc": {
+ "start": {
+ "line": 361,
+ "column": 29
+ },
+ "end": {
+ "line": 361,
+ "column": 37
+ },
+ "identifierName": "setDelay"
+ },
+ "name": "setDelay"
},
"computed": false
},
"arguments": [
{
+ "type": "Identifier",
+ "start": 13064,
+ "end": 13081,
+ "loc": {
+ "start": {
+ "line": 361,
+ "column": 38
+ },
+ "end": {
+ "line": 361,
+ "column": 55
+ },
+ "identifierName": "currentFrameDelay"
+ },
+ "name": "currentFrameDelay"
+ }
+ ]
+ }
+ }
+ ],
+ "directives": []
+ },
+ "alternate": {
+ "type": "BlockStatement",
+ "start": 13104,
+ "end": 13261,
+ "loc": {
+ "start": {
+ "line": 362,
+ "column": 19
+ },
+ "end": {
+ "line": 364,
+ "column": 13
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 13123,
+ "end": 13246,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 16
+ },
+ "end": {
+ "line": 363,
+ "column": 139
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 13123,
+ "end": 13245,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 16
+ },
+ "end": {
+ "line": 363,
+ "column": 138
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 13123,
+ "end": 13160,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 16
+ },
+ "end": {
+ "line": 363,
+ "column": 53
+ }
+ },
+ "object": {
"type": "CallExpression",
- "start": 14575,
- "end": 14597,
+ "start": 13123,
+ "end": 13154,
"loc": {
"start": {
- "line": 414,
- "column": 32
+ "line": 363,
+ "column": 16
},
"end": {
- "line": 414,
- "column": 54
+ "line": 363,
+ "column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 14575,
- "end": 14595,
+ "start": 13123,
+ "end": 13140,
"loc": {
"start": {
- "line": 414,
- "column": 32
+ "line": 363,
+ "column": 16
},
"end": {
- "line": 414,
- "column": 52
+ "line": 363,
+ "column": 33
}
},
"object": {
- "type": "Identifier",
- "start": 14575,
- "end": 14581,
+ "type": "MemberExpression",
+ "start": 13123,
+ "end": 13133,
"loc": {
"start": {
- "line": 414,
- "column": 32
+ "line": 363,
+ "column": 16
},
"end": {
- "line": 414,
- "column": 38
+ "line": 363,
+ "column": 26
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 13123,
+ "end": 13126,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 16
+ },
+ "end": {
+ "line": 363,
+ "column": 19
+ },
+ "identifierName": "VYI"
},
- "identifierName": "pState"
+ "name": "VYI"
},
- "name": "pState"
+ "property": {
+ "type": "Identifier",
+ "start": 13127,
+ "end": 13133,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 20
+ },
+ "end": {
+ "line": 363,
+ "column": 26
+ },
+ "identifierName": "logger"
+ },
+ "name": "logger"
+ },
+ "computed": false
},
"property": {
"type": "Identifier",
- "start": 14582,
- "end": 14595,
+ "start": 13134,
+ "end": 13140,
"loc": {
"start": {
- "line": 414,
- "column": 39
+ "line": 363,
+ "column": 27
},
"end": {
- "line": 414,
- "column": 52
+ "line": 363,
+ "column": 33
},
- "identifierName": "exportAsState"
+ "identifierName": "prefix"
},
- "name": "exportAsState"
+ "name": "prefix"
},
"computed": false
},
- "arguments": []
- }
- ]
- }
- }
- ],
- "directives": []
- }
- }
- ],
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Loop state array to export relevant information.",
- "start": 14447,
- "end": 14498,
- "loc": {
- "start": {
- "line": 412,
- "column": 8
- },
- "end": {
- "line": 412,
- "column": 59
- }
- }
- }
- ]
- },
- {
- "type": "ReturnStatement",
- "start": 14622,
- "end": 14644,
- "loc": {
- "start": {
- "line": 416,
- "column": 8
- },
- "end": {
- "line": 416,
- "column": 30
- }
- },
- "argument": {
- "type": "Identifier",
- "start": 14629,
- "end": 14643,
- "loc": {
- "start": {
- "line": 416,
- "column": 15
- },
- "end": {
- "line": 416,
- "column": 29
- },
- "identifierName": "stateDataArray"
- },
- "name": "stateDataArray"
- }
- }
- ],
+ "arguments": [
+ {
+ "type": "StringLiteral",
+ "start": 13141,
+ "end": 13153,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 34
+ },
+ "end": {
+ "line": 363,
+ "column": 46
+ }
+ },
+ "extra": {
+ "rawValue": "VYI-Module",
+ "raw": "'VYI-Module'"
+ },
+ "value": "VYI-Module"
+ }
+ ]
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13155,
+ "end": 13160,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 48
+ },
+ "end": {
+ "line": 363,
+ "column": 53
+ },
+ "identifierName": "error"
+ },
+ "name": "error"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "StringLiteral",
+ "start": 13161,
+ "end": 13244,
+ "loc": {
+ "start": {
+ "line": 363,
+ "column": 54
+ },
+ "end": {
+ "line": 363,
+ "column": 137
+ }
+ },
+ "extra": {
+ "rawValue": "There was no frame found at pCurrentIndex, or there was no frame found at pIndex!",
+ "raw": "'There was no frame found at pCurrentIndex, or there was no frame found at pIndex!'"
+ },
+ "value": "There was no frame found at pCurrentIndex, or there was no frame found at pIndex!"
+ }
+ ]
+ }
+ }
+ ],
+ "directives": []
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " If both frames can be found, we can swap their data.",
+ "start": 12334,
+ "end": 12389,
+ "loc": {
+ "start": {
+ "line": 347,
+ "column": 12
+ },
+ "end": {
+ "line": 347,
+ "column": 67
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "directives": []
+ },
+ "alternate": {
+ "type": "BlockStatement",
+ "start": 13278,
+ "end": 13364,
+ "loc": {
+ "start": {
+ "line": 365,
+ "column": 15
+ },
+ "end": {
+ "line": 367,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 13293,
+ "end": 13353,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 72
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 13293,
+ "end": 13352,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 71
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 13293,
+ "end": 13330,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 49
+ }
+ },
+ "object": {
+ "type": "CallExpression",
+ "start": 13293,
+ "end": 13324,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 43
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 13293,
+ "end": 13310,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 29
+ }
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 13293,
+ "end": 13303,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 22
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 13293,
+ "end": 13296,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 12
+ },
+ "end": {
+ "line": 366,
+ "column": 15
+ },
+ "identifierName": "VYI"
+ },
+ "name": "VYI"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13297,
+ "end": 13303,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 16
+ },
+ "end": {
+ "line": 366,
+ "column": 22
+ },
+ "identifierName": "logger"
+ },
+ "name": "logger"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13304,
+ "end": 13310,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 23
+ },
+ "end": {
+ "line": 366,
+ "column": 29
+ },
+ "identifierName": "prefix"
+ },
+ "name": "prefix"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "StringLiteral",
+ "start": 13311,
+ "end": 13323,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 30
+ },
+ "end": {
+ "line": 366,
+ "column": 42
+ }
+ },
+ "extra": {
+ "rawValue": "VYI-Module",
+ "raw": "'VYI-Module'"
+ },
+ "value": "VYI-Module"
+ }
+ ]
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13325,
+ "end": 13330,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 44
+ },
+ "end": {
+ "line": 366,
+ "column": 49
+ },
+ "identifierName": "error"
+ },
+ "name": "error"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "StringLiteral",
+ "start": 13331,
+ "end": 13351,
+ "loc": {
+ "start": {
+ "line": 366,
+ "column": 50
+ },
+ "end": {
+ "line": 366,
+ "column": 70
+ }
+ },
+ "extra": {
+ "rawValue": "Invalid type used!",
+ "raw": "'Invalid type used!'"
+ },
+ "value": "Invalid type used!"
+ }
+ ]
+ }
+ }
+ ],
+ "directives": []
+ }
+ },
+ {
+ "type": "ReturnStatement",
+ "start": 13374,
+ "end": 13386,
+ "loc": {
+ "start": {
+ "line": 368,
+ "column": 8
+ },
+ "end": {
+ "line": 368,
+ "column": 20
+ }
+ },
+ "argument": {
+ "type": "ThisExpression",
+ "start": 13381,
+ "end": 13385,
+ "loc": {
+ "start": {
+ "line": 368,
+ "column": 15
+ },
+ "end": {
+ "line": 368,
+ "column": 19
+ }
+ }
+ }
+ }
+ ],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
- "start": 14222,
- "end": 14378,
+ "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * The \"first\" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.\r\n * pCurrentIndex must be set to -1 to match this icon.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 10919,
+ "end": 11458,
"loc": {
"start": {
- "line": 405,
+ "line": 321,
"column": 4
},
"end": {
- "line": 409,
+ "line": 328,
"column": 7
}
}
@@ -18277,16 +16856,16 @@
"trailingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
- "start": 14665,
- "end": 14853,
+ "value": "*\r\n * Gets the frame existing at pIndex.\r\n * Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\r\n * If you are trying to get \"frame\" 1. Then you will need to use the icon's delay and data url. As that is frame 0.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
+ "start": 13399,
+ "end": 13801,
"loc": {
"start": {
- "line": 418,
+ "line": 370,
"column": 4
},
"end": {
- "line": 422,
+ "line": 376,
"column": 7
}
}
@@ -18295,15 +16874,15 @@
},
{
"type": "ClassMethod",
- "start": 14859,
- "end": 15370,
+ "start": 13807,
+ "end": 14020,
"loc": {
"start": {
- "line": 423,
+ "line": 377,
"column": 4
},
"end": {
- "line": 439,
+ "line": 383,
"column": 5
}
},
@@ -18311,20 +16890,20 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 14859,
- "end": 14872,
+ "start": 13807,
+ "end": 13815,
"loc": {
"start": {
- "line": 423,
+ "line": 377,
"column": 4
},
"end": {
- "line": 423,
- "column": 17
+ "line": 377,
+ "column": 12
},
- "identifierName": "exportAsState"
+ "identifierName": "getFrame"
},
- "name": "exportAsState",
+ "name": "getFrame",
"leadingComments": null
},
"kind": "method",
@@ -18332,930 +16911,943 @@
"generator": false,
"expression": false,
"async": false,
- "params": [],
+ "params": [
+ {
+ "type": "Identifier",
+ "start": 13816,
+ "end": 13822,
+ "loc": {
+ "start": {
+ "line": 377,
+ "column": 13
+ },
+ "end": {
+ "line": 377,
+ "column": 19
+ },
+ "identifierName": "pIndex"
+ },
+ "name": "pIndex"
+ }
+ ],
"body": {
"type": "BlockStatement",
- "start": 14875,
- "end": 15370,
+ "start": 13824,
+ "end": 14020,
"loc": {
"start": {
- "line": 423,
- "column": 20
+ "line": 377,
+ "column": 21
},
"end": {
- "line": 439,
+ "line": 383,
"column": 5
}
},
"body": [
{
- "type": "VariableDeclaration",
- "start": 14886,
- "end": 14907,
- "loc": {
- "start": {
- "line": 424,
- "column": 8
- },
- "end": {
- "line": 424,
- "column": 29
- }
- },
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 14892,
- "end": 14906,
- "loc": {
- "start": {
- "line": 424,
- "column": 14
- },
- "end": {
- "line": 424,
- "column": 28
- }
- },
- "id": {
- "type": "Identifier",
- "start": 14892,
- "end": 14901,
- "loc": {
- "start": {
- "line": 424,
- "column": 14
- },
- "end": {
- "line": 424,
- "column": 23
- },
- "identifierName": "stateData"
- },
- "name": "stateData"
- },
- "init": {
- "type": "ArrayExpression",
- "start": 14904,
- "end": 14906,
- "loc": {
- "start": {
- "line": 424,
- "column": 26
- },
- "end": {
- "line": 424,
- "column": 28
- }
- },
- "elements": []
- }
- }
- ],
- "kind": "const",
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " state name",
- "start": 14917,
- "end": 14930,
- "loc": {
- "start": {
- "line": 425,
- "column": 8
- },
- "end": {
- "line": 425,
- "column": 21
- }
- }
- }
- ]
- },
- {
- "type": "ExpressionStatement",
- "start": 14940,
- "end": 14970,
+ "type": "IfStatement",
+ "start": 13835,
+ "end": 14013,
"loc": {
"start": {
- "line": 426,
+ "line": 378,
"column": 8
},
"end": {
- "line": 426,
- "column": 38
+ "line": 382,
+ "column": 9
}
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 14940,
- "end": 14969,
+ "test": {
+ "type": "BinaryExpression",
+ "start": 13839,
+ "end": 13866,
"loc": {
"start": {
- "line": 426,
- "column": 8
+ "line": 378,
+ "column": 12
},
"end": {
- "line": 426,
- "column": 37
+ "line": 378,
+ "column": 39
}
},
- "operator": "=",
"left": {
- "type": "MemberExpression",
- "start": 14940,
- "end": 14952,
+ "type": "UnaryExpression",
+ "start": 13839,
+ "end": 13853,
"loc": {
"start": {
- "line": 426,
- "column": 8
+ "line": 378,
+ "column": 12
},
"end": {
- "line": 426,
- "column": 20
+ "line": 378,
+ "column": 26
}
},
- "object": {
+ "operator": "typeof",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
- "start": 14940,
- "end": 14949,
+ "start": 13846,
+ "end": 13852,
"loc": {
"start": {
- "line": 426,
- "column": 8
+ "line": 378,
+ "column": 19
},
"end": {
- "line": 426,
- "column": 17
- },
- "identifierName": "stateData"
- },
- "name": "stateData",
- "leadingComments": null
- },
- "property": {
- "type": "NumericLiteral",
- "start": 14950,
- "end": 14951,
- "loc": {
- "start": {
- "line": 426,
- "column": 18
+ "line": 378,
+ "column": 25
},
- "end": {
- "line": 426,
- "column": 19
- }
+ "identifierName": "pIndex"
},
+ "name": "pIndex",
"extra": {
- "rawValue": 0,
- "raw": "0"
- },
- "value": 0
+ "parenthesized": true,
+ "parenStart": 13845
+ }
},
- "computed": true,
- "leadingComments": null
+ "extra": {
+ "parenthesizedArgument": false
+ }
},
+ "operator": "===",
"right": {
- "type": "CallExpression",
- "start": 14955,
- "end": 14969,
+ "type": "StringLiteral",
+ "start": 13858,
+ "end": 13866,
"loc": {
"start": {
- "line": 426,
- "column": 23
+ "line": 378,
+ "column": 31
},
"end": {
- "line": 426,
- "column": 37
+ "line": 378,
+ "column": 39
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 14955,
- "end": 14967,
+ "extra": {
+ "rawValue": "number",
+ "raw": "'number'"
+ },
+ "value": "number"
+ }
+ },
+ "consequent": {
+ "type": "BlockStatement",
+ "start": 13868,
+ "end": 13921,
+ "loc": {
+ "start": {
+ "line": 378,
+ "column": 41
+ },
+ "end": {
+ "line": 380,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "ReturnStatement",
+ "start": 13883,
+ "end": 13910,
"loc": {
"start": {
- "line": 426,
- "column": 23
+ "line": 379,
+ "column": 12
},
"end": {
- "line": 426,
- "column": 35
+ "line": 379,
+ "column": 39
}
},
- "object": {
- "type": "ThisExpression",
- "start": 14955,
- "end": 14959,
+ "argument": {
+ "type": "MemberExpression",
+ "start": 13890,
+ "end": 13909,
"loc": {
"start": {
- "line": 426,
- "column": 23
+ "line": 379,
+ "column": 19
},
"end": {
- "line": 426,
- "column": 27
+ "line": 379,
+ "column": 38
}
- }
- },
- "property": {
- "type": "Identifier",
- "start": 14960,
- "end": 14967,
- "loc": {
- "start": {
- "line": 426,
- "column": 28
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 13890,
+ "end": 13901,
+ "loc": {
+ "start": {
+ "line": 379,
+ "column": 19
+ },
+ "end": {
+ "line": 379,
+ "column": 30
+ }
},
- "end": {
- "line": 426,
- "column": 35
+ "object": {
+ "type": "ThisExpression",
+ "start": 13890,
+ "end": 13894,
+ "loc": {
+ "start": {
+ "line": 379,
+ "column": 19
+ },
+ "end": {
+ "line": 379,
+ "column": 23
+ }
+ }
},
- "identifierName": "getName"
+ "property": {
+ "type": "Identifier",
+ "start": 13895,
+ "end": 13901,
+ "loc": {
+ "start": {
+ "line": 379,
+ "column": 24
+ },
+ "end": {
+ "line": 379,
+ "column": 30
+ },
+ "identifierName": "frames"
+ },
+ "name": "frames"
+ },
+ "computed": false
},
- "name": "getName"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " state name",
- "start": 14917,
- "end": 14930,
- "loc": {
- "start": {
- "line": 425,
- "column": 8
- },
- "end": {
- "line": 425,
- "column": 21
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " state dataURL",
- "start": 14980,
- "end": 14996,
- "loc": {
- "start": {
- "line": 427,
- "column": 8
- },
- "end": {
- "line": 427,
- "column": 24
+ "property": {
+ "type": "Identifier",
+ "start": 13902,
+ "end": 13908,
+ "loc": {
+ "start": {
+ "line": 379,
+ "column": 31
+ },
+ "end": {
+ "line": 379,
+ "column": 37
+ },
+ "identifierName": "pIndex"
+ },
+ "name": "pIndex"
+ },
+ "computed": true
}
}
- }
- ]
- },
- {
- "type": "ExpressionStatement",
- "start": 15006,
- "end": 15039,
- "loc": {
- "start": {
- "line": 428,
- "column": 8
- },
- "end": {
- "line": 428,
- "column": 41
- }
+ ],
+ "directives": []
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 15006,
- "end": 15038,
+ "alternate": {
+ "type": "BlockStatement",
+ "start": 13927,
+ "end": 14013,
"loc": {
"start": {
- "line": 428,
- "column": 8
+ "line": 380,
+ "column": 15
},
"end": {
- "line": 428,
- "column": 40
+ "line": 382,
+ "column": 9
}
},
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 15006,
- "end": 15018,
- "loc": {
- "start": {
- "line": 428,
- "column": 8
- },
- "end": {
- "line": 428,
- "column": 20
- }
- },
- "object": {
- "type": "Identifier",
- "start": 15006,
- "end": 15015,
- "loc": {
- "start": {
- "line": 428,
- "column": 8
- },
- "end": {
- "line": 428,
- "column": 17
- },
- "identifierName": "stateData"
- },
- "name": "stateData",
- "leadingComments": null
- },
- "property": {
- "type": "NumericLiteral",
- "start": 15016,
- "end": 15017,
- "loc": {
- "start": {
- "line": 428,
- "column": 18
- },
- "end": {
- "line": 428,
- "column": 19
- }
- },
- "extra": {
- "rawValue": 1,
- "raw": "1"
- },
- "value": 1
- },
- "computed": true,
- "leadingComments": null
- },
- "right": {
- "type": "CallExpression",
- "start": 15021,
- "end": 15038,
- "loc": {
- "start": {
- "line": 428,
- "column": 23
- },
- "end": {
- "line": 428,
- "column": 40
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 15021,
- "end": 15036,
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 13942,
+ "end": 14002,
"loc": {
"start": {
- "line": 428,
- "column": 23
+ "line": 381,
+ "column": 12
},
"end": {
- "line": 428,
- "column": 38
+ "line": 381,
+ "column": 72
}
},
- "object": {
- "type": "ThisExpression",
- "start": 15021,
- "end": 15025,
+ "expression": {
+ "type": "CallExpression",
+ "start": 13942,
+ "end": 14001,
"loc": {
"start": {
- "line": 428,
- "column": 23
+ "line": 381,
+ "column": 12
},
"end": {
- "line": 428,
- "column": 27
+ "line": 381,
+ "column": 71
}
- }
- },
- "property": {
- "type": "Identifier",
- "start": 15026,
- "end": 15036,
- "loc": {
- "start": {
- "line": 428,
- "column": 28
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 13942,
+ "end": 13979,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 12
+ },
+ "end": {
+ "line": 381,
+ "column": 49
+ }
},
- "end": {
- "line": 428,
- "column": 38
+ "object": {
+ "type": "CallExpression",
+ "start": 13942,
+ "end": 13973,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 12
+ },
+ "end": {
+ "line": 381,
+ "column": 43
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 13942,
+ "end": 13959,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 12
+ },
+ "end": {
+ "line": 381,
+ "column": 29
+ }
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 13942,
+ "end": 13952,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 12
+ },
+ "end": {
+ "line": 381,
+ "column": 22
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 13942,
+ "end": 13945,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 12
+ },
+ "end": {
+ "line": 381,
+ "column": 15
+ },
+ "identifierName": "VYI"
+ },
+ "name": "VYI"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13946,
+ "end": 13952,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 16
+ },
+ "end": {
+ "line": 381,
+ "column": 22
+ },
+ "identifierName": "logger"
+ },
+ "name": "logger"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 13953,
+ "end": 13959,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 23
+ },
+ "end": {
+ "line": 381,
+ "column": 29
+ },
+ "identifierName": "prefix"
+ },
+ "name": "prefix"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "StringLiteral",
+ "start": 13960,
+ "end": 13972,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 30
+ },
+ "end": {
+ "line": 381,
+ "column": 42
+ }
+ },
+ "extra": {
+ "rawValue": "VYI-Module",
+ "raw": "'VYI-Module'"
+ },
+ "value": "VYI-Module"
+ }
+ ]
},
- "identifierName": "getDataURL"
+ "property": {
+ "type": "Identifier",
+ "start": 13974,
+ "end": 13979,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 44
+ },
+ "end": {
+ "line": 381,
+ "column": 49
+ },
+ "identifierName": "error"
+ },
+ "name": "error"
+ },
+ "computed": false
},
- "name": "getDataURL"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " state dataURL",
- "start": 14980,
- "end": 14996,
- "loc": {
- "start": {
- "line": 427,
- "column": 8
- },
- "end": {
- "line": 427,
- "column": 24
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " state frame delay",
- "start": 15049,
- "end": 15069,
- "loc": {
- "start": {
- "line": 429,
- "column": 8
- },
- "end": {
- "line": 429,
- "column": 28
+ "arguments": [
+ {
+ "type": "StringLiteral",
+ "start": 13980,
+ "end": 14000,
+ "loc": {
+ "start": {
+ "line": 381,
+ "column": 50
+ },
+ "end": {
+ "line": 381,
+ "column": 70
+ }
+ },
+ "extra": {
+ "rawValue": "Invalid type used!",
+ "raw": "'Invalid type used!'"
+ },
+ "value": "Invalid type used!"
+ }
+ ]
}
}
- }
- ]
+ ],
+ "directives": []
+ }
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the frame existing at pIndex.\r\n * Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\r\n * If you are trying to get \"frame\" 1. Then you will need to use the icon's delay and data url. As that is frame 0.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
+ "start": 13399,
+ "end": 13801,
+ "loc": {
+ "start": {
+ "line": 370,
+ "column": 4
+ },
+ "end": {
+ "line": 376,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
+ "start": 14026,
+ "end": 14156,
+ "loc": {
+ "start": {
+ "line": 384,
+ "column": 4
+ },
+ "end": {
+ "line": 387,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassMethod",
+ "start": 14162,
+ "end": 14218,
+ "loc": {
+ "start": {
+ "line": 388,
+ "column": 4
+ },
+ "end": {
+ "line": 390,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 14162,
+ "end": 14171,
+ "loc": {
+ "start": {
+ "line": 388,
+ "column": 4
+ },
+ "end": {
+ "line": 388,
+ "column": 13
+ },
+ "identifierName": "getFrames"
+ },
+ "name": "getFrames",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 14174,
+ "end": 14218,
+ "loc": {
+ "start": {
+ "line": 388,
+ "column": 16
},
+ "end": {
+ "line": 390,
+ "column": 5
+ }
+ },
+ "body": [
{
- "type": "ExpressionStatement",
- "start": 15079,
- "end": 15110,
+ "type": "ReturnStatement",
+ "start": 14185,
+ "end": 14211,
"loc": {
"start": {
- "line": 430,
+ "line": 389,
"column": 8
},
"end": {
- "line": 430,
- "column": 39
+ "line": 389,
+ "column": 34
}
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 15079,
- "end": 15109,
+ "argument": {
+ "type": "ArrayExpression",
+ "start": 14192,
+ "end": 14210,
"loc": {
"start": {
- "line": 430,
- "column": 8
+ "line": 389,
+ "column": 15
},
"end": {
- "line": 430,
- "column": 38
+ "line": 389,
+ "column": 33
}
},
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 15079,
- "end": 15091,
- "loc": {
- "start": {
- "line": 430,
- "column": 8
- },
- "end": {
- "line": 430,
- "column": 20
- }
- },
- "object": {
- "type": "Identifier",
- "start": 15079,
- "end": 15088,
+ "elements": [
+ {
+ "type": "SpreadElement",
+ "start": 14194,
+ "end": 14208,
"loc": {
"start": {
- "line": 430,
- "column": 8
- },
- "end": {
- "line": 430,
+ "line": 389,
"column": 17
},
- "identifierName": "stateData"
- },
- "name": "stateData",
- "leadingComments": null
- },
- "property": {
- "type": "NumericLiteral",
- "start": 15089,
- "end": 15090,
- "loc": {
- "start": {
- "line": 430,
- "column": 18
- },
- "end": {
- "line": 430,
- "column": 19
- }
- },
- "extra": {
- "rawValue": 2,
- "raw": "2"
- },
- "value": 2
- },
- "computed": true,
- "leadingComments": null
- },
- "right": {
- "type": "CallExpression",
- "start": 15094,
- "end": 15109,
- "loc": {
- "start": {
- "line": 430,
- "column": 23
- },
- "end": {
- "line": 430,
- "column": 38
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 15094,
- "end": 15107,
- "loc": {
- "start": {
- "line": 430,
- "column": 23
- },
"end": {
- "line": 430,
- "column": 36
+ "line": 389,
+ "column": 31
}
},
- "object": {
- "type": "ThisExpression",
- "start": 15094,
- "end": 15098,
+ "argument": {
+ "type": "MemberExpression",
+ "start": 14197,
+ "end": 14208,
"loc": {
"start": {
- "line": 430,
- "column": 23
+ "line": 389,
+ "column": 20
},
"end": {
- "line": 430,
- "column": 27
+ "line": 389,
+ "column": 31
}
- }
- },
- "property": {
- "type": "Identifier",
- "start": 15099,
- "end": 15107,
- "loc": {
- "start": {
- "line": 430,
- "column": 28
- },
- "end": {
- "line": 430,
- "column": 36
- },
- "identifierName": "getDelay"
},
- "name": "getDelay"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " state frame delay",
- "start": 15049,
- "end": 15069,
- "loc": {
- "start": {
- "line": 429,
- "column": 8
- },
- "end": {
- "line": 429,
- "column": 28
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " state frame array",
- "start": 15120,
- "end": 15140,
- "loc": {
- "start": {
- "line": 431,
- "column": 8
- },
- "end": {
- "line": 431,
- "column": 28
+ "object": {
+ "type": "ThisExpression",
+ "start": 14197,
+ "end": 14201,
+ "loc": {
+ "start": {
+ "line": 389,
+ "column": 20
+ },
+ "end": {
+ "line": 389,
+ "column": 24
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 14202,
+ "end": 14208,
+ "loc": {
+ "start": {
+ "line": 389,
+ "column": 25
+ },
+ "end": {
+ "line": 389,
+ "column": 31
+ },
+ "identifierName": "frames"
+ },
+ "name": "frames"
+ },
+ "computed": false
}
}
- }
- ]
+ ]
+ }
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
+ "start": 14026,
+ "end": 14156,
+ "loc": {
+ "start": {
+ "line": 384,
+ "column": 4
+ },
+ "end": {
+ "line": 387,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
+ "start": 14224,
+ "end": 14380,
+ "loc": {
+ "start": {
+ "line": 391,
+ "column": 4
+ },
+ "end": {
+ "line": 395,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassMethod",
+ "start": 14386,
+ "end": 14585,
+ "loc": {
+ "start": {
+ "line": 396,
+ "column": 4
+ },
+ "end": {
+ "line": 402,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 14386,
+ "end": 14399,
+ "loc": {
+ "start": {
+ "line": 396,
+ "column": 4
+ },
+ "end": {
+ "line": 396,
+ "column": 17
+ },
+ "identifierName": "getFramesData"
+ },
+ "name": "getFramesData",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 14402,
+ "end": 14585,
+ "loc": {
+ "start": {
+ "line": 396,
+ "column": 20
},
+ "end": {
+ "line": 402,
+ "column": 5
+ }
+ },
+ "body": [
{
- "type": "ExpressionStatement",
- "start": 15150,
- "end": 15168,
+ "type": "VariableDeclaration",
+ "start": 14413,
+ "end": 14439,
"loc": {
"start": {
- "line": 432,
+ "line": 397,
"column": 8
},
"end": {
- "line": 432,
- "column": 26
+ "line": 397,
+ "column": 34
}
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 15150,
- "end": 15167,
- "loc": {
- "start": {
- "line": 432,
- "column": 8
- },
- "end": {
- "line": 432,
- "column": 25
- }
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 15150,
- "end": 15162,
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 14419,
+ "end": 14438,
"loc": {
"start": {
- "line": 432,
- "column": 8
+ "line": 397,
+ "column": 14
},
"end": {
- "line": 432,
- "column": 20
+ "line": 397,
+ "column": 33
}
},
- "object": {
+ "id": {
"type": "Identifier",
- "start": 15150,
- "end": 15159,
+ "start": 14419,
+ "end": 14433,
"loc": {
"start": {
- "line": 432,
- "column": 8
+ "line": 397,
+ "column": 14
},
"end": {
- "line": 432,
- "column": 17
+ "line": 397,
+ "column": 28
},
- "identifierName": "stateData"
+ "identifierName": "frameDataArray"
},
- "name": "stateData",
- "leadingComments": null
+ "name": "frameDataArray"
},
- "property": {
- "type": "NumericLiteral",
- "start": 15160,
- "end": 15161,
+ "init": {
+ "type": "ArrayExpression",
+ "start": 14436,
+ "end": 14438,
"loc": {
"start": {
- "line": 432,
- "column": 18
+ "line": 397,
+ "column": 31
},
"end": {
- "line": 432,
- "column": 19
+ "line": 397,
+ "column": 33
}
},
- "extra": {
- "rawValue": 3,
- "raw": "3"
- },
- "value": 3
- },
- "computed": true,
- "leadingComments": null
- },
- "right": {
- "type": "ArrayExpression",
- "start": 15165,
- "end": 15167,
- "loc": {
- "start": {
- "line": 432,
- "column": 23
- },
- "end": {
- "line": 432,
- "column": 25
- }
- },
- "elements": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " state frame array",
- "start": 15120,
- "end": 15140,
- "loc": {
- "start": {
- "line": 431,
- "column": 8
- },
- "end": {
- "line": 431,
- "column": 28
- }
+ "elements": []
}
}
],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " Loop frame array to export relevant information.",
- "start": 15180,
- "end": 15231,
- "loc": {
- "start": {
- "line": 434,
- "column": 8
- },
- "end": {
- "line": 434,
- "column": 59
- }
- }
- }
- ]
+ "kind": "const"
},
{
"type": "ExpressionStatement",
- "start": 15241,
- "end": 15336,
+ "start": 14449,
+ "end": 14546,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 8
},
"end": {
- "line": 437,
+ "line": 400,
"column": 11
}
},
"expression": {
"type": "CallExpression",
- "start": 15241,
- "end": 15335,
+ "start": 14449,
+ "end": 14545,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 8
},
"end": {
- "line": 437,
+ "line": 400,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
- "start": 15241,
- "end": 15260,
+ "start": 14449,
+ "end": 14468,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 8
},
"end": {
- "line": 435,
+ "line": 398,
"column": 27
}
},
"object": {
"type": "MemberExpression",
- "start": 15241,
- "end": 15252,
+ "start": 14449,
+ "end": 14460,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 8
},
"end": {
- "line": 435,
+ "line": 398,
"column": 19
}
},
"object": {
"type": "ThisExpression",
- "start": 15241,
- "end": 15245,
+ "start": 14449,
+ "end": 14453,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 8
},
"end": {
- "line": 435,
+ "line": 398,
"column": 12
}
- },
- "leadingComments": null
+ }
},
"property": {
"type": "Identifier",
- "start": 15246,
- "end": 15252,
+ "start": 14454,
+ "end": 14460,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 13
},
"end": {
- "line": 435,
+ "line": 398,
"column": 19
},
"identifierName": "frames"
},
"name": "frames"
},
- "computed": false,
- "leadingComments": null
+ "computed": false
},
"property": {
"type": "Identifier",
- "start": 15253,
- "end": 15260,
+ "start": 14461,
+ "end": 14468,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 20
},
"end": {
- "line": 435,
+ "line": 398,
"column": 27
},
"identifierName": "forEach"
},
"name": "forEach"
},
- "computed": false,
- "leadingComments": null
+ "computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
- "start": 15261,
- "end": 15334,
+ "start": 14469,
+ "end": 14544,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 28
},
"end": {
- "line": 437,
+ "line": 400,
"column": 9
}
},
@@ -19266,15 +17858,15 @@
"params": [
{
"type": "Identifier",
- "start": 15262,
- "end": 15268,
+ "start": 14470,
+ "end": 14476,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 29
},
"end": {
- "line": 435,
+ "line": 398,
"column": 35
},
"identifierName": "pFrame"
@@ -19284,126 +17876,90 @@
],
"body": {
"type": "BlockStatement",
- "start": 15273,
- "end": 15334,
+ "start": 14481,
+ "end": 14544,
"loc": {
"start": {
- "line": 435,
+ "line": 398,
"column": 40
},
"end": {
- "line": 437,
+ "line": 400,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
- "start": 15288,
- "end": 15323,
+ "start": 14496,
+ "end": 14533,
"loc": {
"start": {
- "line": 436,
+ "line": 399,
"column": 12
},
"end": {
- "line": 436,
- "column": 47
+ "line": 399,
+ "column": 49
}
},
"expression": {
"type": "CallExpression",
- "start": 15288,
- "end": 15322,
+ "start": 14496,
+ "end": 14532,
"loc": {
"start": {
- "line": 436,
+ "line": 399,
"column": 12
},
"end": {
- "line": 436,
- "column": 46
+ "line": 399,
+ "column": 48
}
},
"callee": {
"type": "MemberExpression",
- "start": 15288,
- "end": 15305,
+ "start": 14496,
+ "end": 14515,
"loc": {
"start": {
- "line": 436,
+ "line": 399,
"column": 12
},
"end": {
- "line": 436,
- "column": 29
+ "line": 399,
+ "column": 31
}
},
"object": {
- "type": "MemberExpression",
- "start": 15288,
- "end": 15300,
+ "type": "Identifier",
+ "start": 14496,
+ "end": 14510,
"loc": {
"start": {
- "line": 436,
+ "line": 399,
"column": 12
},
"end": {
- "line": 436,
- "column": 24
- }
- },
- "object": {
- "type": "Identifier",
- "start": 15288,
- "end": 15297,
- "loc": {
- "start": {
- "line": 436,
- "column": 12
- },
- "end": {
- "line": 436,
- "column": 21
- },
- "identifierName": "stateData"
- },
- "name": "stateData"
- },
- "property": {
- "type": "NumericLiteral",
- "start": 15298,
- "end": 15299,
- "loc": {
- "start": {
- "line": 436,
- "column": 22
- },
- "end": {
- "line": 436,
- "column": 23
- }
- },
- "extra": {
- "rawValue": 3,
- "raw": "3"
+ "line": 399,
+ "column": 26
},
- "value": 3
+ "identifierName": "frameDataArray"
},
- "computed": true
+ "name": "frameDataArray"
},
"property": {
"type": "Identifier",
- "start": 15301,
- "end": 15305,
+ "start": 14511,
+ "end": 14515,
"loc": {
"start": {
- "line": 436,
- "column": 25
+ "line": 399,
+ "column": 27
},
"end": {
- "line": 436,
- "column": 29
+ "line": 399,
+ "column": 31
},
"identifierName": "push"
},
@@ -19414,44 +17970,44 @@
"arguments": [
{
"type": "CallExpression",
- "start": 15306,
- "end": 15321,
+ "start": 14516,
+ "end": 14531,
"loc": {
"start": {
- "line": 436,
- "column": 30
+ "line": 399,
+ "column": 32
},
"end": {
- "line": 436,
- "column": 45
+ "line": 399,
+ "column": 47
}
},
"callee": {
"type": "MemberExpression",
- "start": 15306,
- "end": 15319,
+ "start": 14516,
+ "end": 14529,
"loc": {
"start": {
- "line": 436,
- "column": 30
+ "line": 399,
+ "column": 32
},
"end": {
- "line": 436,
- "column": 43
+ "line": 399,
+ "column": 45
}
},
"object": {
"type": "Identifier",
- "start": 15306,
- "end": 15312,
+ "start": 14516,
+ "end": 14522,
"loc": {
"start": {
- "line": 436,
- "column": 30
+ "line": 399,
+ "column": 32
},
"end": {
- "line": 436,
- "column": 36
+ "line": 399,
+ "column": 38
},
"identifierName": "pFrame"
},
@@ -19459,16 +18015,16 @@
},
"property": {
"type": "Identifier",
- "start": 15313,
- "end": 15319,
+ "start": 14523,
+ "end": 14529,
"loc": {
"start": {
- "line": 436,
- "column": 37
+ "line": 399,
+ "column": 39
},
"end": {
- "line": 436,
- "column": 43
+ "line": 399,
+ "column": 45
},
"identifierName": "export"
},
@@ -19485,58 +18041,39 @@
"directives": []
}
}
- ],
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Loop frame array to export relevant information.",
- "start": 15180,
- "end": 15231,
- "loc": {
- "start": {
- "line": 434,
- "column": 8
- },
- "end": {
- "line": 434,
- "column": 59
- }
- }
- }
- ]
+ ]
+ }
},
{
"type": "ReturnStatement",
- "start": 15346,
- "end": 15363,
+ "start": 14556,
+ "end": 14578,
"loc": {
"start": {
- "line": 438,
+ "line": 401,
"column": 8
},
"end": {
- "line": 438,
- "column": 25
+ "line": 401,
+ "column": 30
}
},
"argument": {
"type": "Identifier",
- "start": 15353,
- "end": 15362,
+ "start": 14563,
+ "end": 14577,
"loc": {
"start": {
- "line": 438,
+ "line": 401,
"column": 15
},
"end": {
- "line": 438,
- "column": 24
+ "line": 401,
+ "column": 29
},
- "identifierName": "stateData"
+ "identifierName": "frameDataArray"
},
- "name": "stateData"
+ "name": "frameDataArray"
}
}
],
@@ -19546,16 +18083,16 @@
"leadingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
- "start": 14665,
- "end": 14853,
+ "value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
+ "start": 14224,
+ "end": 14380,
"loc": {
"start": {
- "line": 418,
+ "line": 391,
"column": 4
},
"end": {
- "line": 422,
+ "line": 395,
"column": 7
}
}
@@ -19564,16 +18101,16 @@
"trailingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
- "start": 15376,
- "end": 15551,
+ "value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
+ "start": 14591,
+ "end": 14775,
"loc": {
"start": {
- "line": 440,
+ "line": 403,
"column": 4
},
"end": {
- "line": 444,
+ "line": 407,
"column": 7
}
}
@@ -19582,15 +18119,15 @@
},
{
"type": "ClassMethod",
- "start": 15557,
- "end": 16359,
+ "start": 14781,
+ "end": 15016,
"loc": {
"start": {
- "line": 445,
+ "line": 408,
"column": 4
},
"end": {
- "line": 469,
+ "line": 415,
"column": 5
}
},
@@ -19598,20 +18135,20 @@
"computed": false,
"key": {
"type": "Identifier",
- "start": 15557,
- "end": 15563,
+ "start": 14781,
+ "end": 14789,
"loc": {
"start": {
- "line": 445,
+ "line": 408,
"column": 4
},
"end": {
- "line": 445,
- "column": 10
+ "line": 408,
+ "column": 12
},
- "identifierName": "export"
+ "identifierName": "getState"
},
- "name": "export",
+ "name": "getState",
"leadingComments": null
},
"kind": "method",
@@ -19619,613 +18156,1291 @@
"generator": false,
"expression": false,
"async": false,
- "params": [],
+ "params": [
+ {
+ "type": "Identifier",
+ "start": 14790,
+ "end": 14795,
+ "loc": {
+ "start": {
+ "line": 408,
+ "column": 13
+ },
+ "end": {
+ "line": 408,
+ "column": 18
+ },
+ "identifierName": "pName"
+ },
+ "name": "pName"
+ }
+ ],
"body": {
"type": "BlockStatement",
- "start": 15566,
- "end": 16359,
+ "start": 14797,
+ "end": 15016,
"loc": {
"start": {
- "line": 445,
- "column": 13
+ "line": 408,
+ "column": 20
},
"end": {
- "line": 469,
+ "line": 415,
"column": 5
}
},
"body": [
{
- "type": "VariableDeclaration",
- "start": 15577,
- "end": 15597,
+ "type": "ForOfStatement",
+ "start": 14808,
+ "end": 15008,
"loc": {
"start": {
- "line": 446,
+ "line": 409,
"column": 8
},
"end": {
- "line": 446,
- "column": 28
+ "line": 414,
+ "column": 9
}
},
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 15583,
- "end": 15596,
- "loc": {
- "start": {
- "line": 446,
- "column": 14
- },
- "end": {
- "line": 446,
- "column": 27
- }
- },
- "id": {
- "type": "Identifier",
- "start": 15583,
- "end": 15591,
- "loc": {
- "start": {
- "line": 446,
- "column": 14
- },
- "end": {
- "line": 446,
- "column": 22
- },
- "identifierName": "iconData"
- },
- "name": "iconData"
+ "left": {
+ "type": "VariableDeclaration",
+ "start": 14813,
+ "end": 14823,
+ "loc": {
+ "start": {
+ "line": 409,
+ "column": 13
},
- "init": {
- "type": "ArrayExpression",
- "start": 15594,
- "end": 15596,
+ "end": {
+ "line": 409,
+ "column": 23
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 14819,
+ "end": 14823,
"loc": {
"start": {
- "line": 446,
- "column": 25
+ "line": 409,
+ "column": 19
},
"end": {
- "line": 446,
- "column": 27
+ "line": 409,
+ "column": 23
}
},
- "elements": []
- }
- }
- ],
- "kind": "const",
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " icon name",
- "start": 15607,
- "end": 15619,
- "loc": {
- "start": {
- "line": 447,
- "column": 8
+ "id": {
+ "type": "Identifier",
+ "start": 14819,
+ "end": 14823,
+ "loc": {
+ "start": {
+ "line": 409,
+ "column": 19
+ },
+ "end": {
+ "line": 409,
+ "column": 23
+ },
+ "identifierName": "icon"
+ },
+ "name": "icon"
},
- "end": {
- "line": 447,
- "column": 20
- }
+ "init": null
}
- }
- ]
- },
- {
- "type": "ExpressionStatement",
- "start": 15629,
- "end": 15658,
- "loc": {
- "start": {
- "line": 448,
- "column": 8
- },
- "end": {
- "line": 448,
- "column": 37
- }
+ ],
+ "kind": "const"
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 15629,
- "end": 15657,
+ "right": {
+ "type": "MemberExpression",
+ "start": 14827,
+ "end": 14838,
"loc": {
"start": {
- "line": 448,
- "column": 8
+ "line": 409,
+ "column": 27
},
"end": {
- "line": 448,
- "column": 36
+ "line": 409,
+ "column": 38
}
},
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 15629,
- "end": 15640,
+ "object": {
+ "type": "ThisExpression",
+ "start": 14827,
+ "end": 14831,
"loc": {
"start": {
- "line": 448,
- "column": 8
+ "line": 409,
+ "column": 27
},
"end": {
- "line": 448,
- "column": 19
+ "line": 409,
+ "column": 31
}
- },
- "object": {
- "type": "Identifier",
- "start": 15629,
- "end": 15637,
- "loc": {
- "start": {
- "line": 448,
- "column": 8
- },
- "end": {
- "line": 448,
- "column": 16
- },
- "identifierName": "iconData"
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 14832,
+ "end": 14838,
+ "loc": {
+ "start": {
+ "line": 409,
+ "column": 32
},
- "name": "iconData",
- "leadingComments": null
+ "end": {
+ "line": 409,
+ "column": 38
+ },
+ "identifierName": "states"
},
- "property": {
- "type": "NumericLiteral",
- "start": 15638,
- "end": 15639,
- "loc": {
- "start": {
- "line": 448,
- "column": 17
- },
- "end": {
- "line": 448,
- "column": 18
- }
- },
- "extra": {
- "rawValue": 0,
- "raw": "0"
- },
- "value": 0
- },
- "computed": true,
- "leadingComments": null
+ "name": "states"
},
- "right": {
- "type": "CallExpression",
- "start": 15643,
- "end": 15657,
- "loc": {
- "start": {
- "line": 448,
- "column": 22
- },
- "end": {
- "line": 448,
- "column": 36
- }
+ "computed": false
+ },
+ "body": {
+ "type": "BlockStatement",
+ "start": 14840,
+ "end": 15008,
+ "loc": {
+ "start": {
+ "line": 409,
+ "column": 40
},
- "callee": {
- "type": "MemberExpression",
- "start": 15643,
- "end": 15655,
+ "end": {
+ "line": 414,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "IfStatement",
+ "start": 14921,
+ "end": 14997,
"loc": {
"start": {
- "line": 448,
- "column": 22
+ "line": 411,
+ "column": 12
},
"end": {
- "line": 448,
- "column": 34
+ "line": 413,
+ "column": 13
}
},
- "object": {
- "type": "ThisExpression",
- "start": 15643,
- "end": 15647,
+ "test": {
+ "type": "BinaryExpression",
+ "start": 14925,
+ "end": 14949,
"loc": {
"start": {
- "line": 448,
- "column": 22
+ "line": 411,
+ "column": 16
},
"end": {
- "line": 448,
- "column": 26
+ "line": 411,
+ "column": 40
}
- }
+ },
+ "left": {
+ "type": "CallExpression",
+ "start": 14925,
+ "end": 14939,
+ "loc": {
+ "start": {
+ "line": 411,
+ "column": 16
+ },
+ "end": {
+ "line": 411,
+ "column": 30
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 14925,
+ "end": 14937,
+ "loc": {
+ "start": {
+ "line": 411,
+ "column": 16
+ },
+ "end": {
+ "line": 411,
+ "column": 28
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 14925,
+ "end": 14929,
+ "loc": {
+ "start": {
+ "line": 411,
+ "column": 16
+ },
+ "end": {
+ "line": 411,
+ "column": 20
+ },
+ "identifierName": "icon"
+ },
+ "name": "icon",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 14930,
+ "end": 14937,
+ "loc": {
+ "start": {
+ "line": 411,
+ "column": 21
+ },
+ "end": {
+ "line": 411,
+ "column": 28
+ },
+ "identifierName": "getName"
+ },
+ "name": "getName"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "arguments": [],
+ "leadingComments": null
+ },
+ "operator": "===",
+ "right": {
+ "type": "Identifier",
+ "start": 14944,
+ "end": 14949,
+ "loc": {
+ "start": {
+ "line": 411,
+ "column": 35
+ },
+ "end": {
+ "line": 411,
+ "column": 40
+ },
+ "identifierName": "pName"
+ },
+ "name": "pName"
+ },
+ "leadingComments": null
},
- "property": {
- "type": "Identifier",
- "start": 15648,
- "end": 15655,
+ "consequent": {
+ "type": "BlockStatement",
+ "start": 14951,
+ "end": 14997,
"loc": {
"start": {
- "line": 448,
- "column": 27
+ "line": 411,
+ "column": 42
},
"end": {
- "line": 448,
- "column": 34
- },
- "identifierName": "getName"
+ "line": 413,
+ "column": 13
+ }
},
- "name": "getName"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " icon name",
- "start": 15607,
- "end": 15619,
- "loc": {
- "start": {
- "line": 447,
- "column": 8
- },
- "end": {
- "line": 447,
- "column": 20
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " Get the size of this icon.",
- "start": 15668,
- "end": 15697,
- "loc": {
- "start": {
- "line": 449,
- "column": 8
+ "body": [
+ {
+ "type": "ReturnStatement",
+ "start": 14970,
+ "end": 14982,
+ "loc": {
+ "start": {
+ "line": 412,
+ "column": 16
+ },
+ "end": {
+ "line": 412,
+ "column": 28
+ }
+ },
+ "argument": {
+ "type": "Identifier",
+ "start": 14977,
+ "end": 14981,
+ "loc": {
+ "start": {
+ "line": 412,
+ "column": 23
+ },
+ "end": {
+ "line": 412,
+ "column": 27
+ },
+ "identifierName": "icon"
+ },
+ "name": "icon"
+ }
+ }
+ ],
+ "directives": []
},
- "end": {
- "line": 449,
- "column": 37
- }
+ "alternate": null,
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " If the state has the same name, return that state",
+ "start": 14855,
+ "end": 14907,
+ "loc": {
+ "start": {
+ "line": 410,
+ "column": 12
+ },
+ "end": {
+ "line": 410,
+ "column": 64
+ }
+ }
+ }
+ ]
}
+ ],
+ "directives": []
+ }
+ },
+ {
+ "type": "EmptyStatement",
+ "start": 15008,
+ "end": 15009,
+ "loc": {
+ "start": {
+ "line": 414,
+ "column": 9
+ },
+ "end": {
+ "line": 414,
+ "column": 10
}
- ]
+ }
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
+ "start": 14591,
+ "end": 14775,
+ "loc": {
+ "start": {
+ "line": 403,
+ "column": 4
+ },
+ "end": {
+ "line": 407,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
+ "start": 15022,
+ "end": 15152,
+ "loc": {
+ "start": {
+ "line": 416,
+ "column": 4
+ },
+ "end": {
+ "line": 419,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassMethod",
+ "start": 15158,
+ "end": 15214,
+ "loc": {
+ "start": {
+ "line": 420,
+ "column": 4
+ },
+ "end": {
+ "line": 422,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 15158,
+ "end": 15167,
+ "loc": {
+ "start": {
+ "line": 420,
+ "column": 4
+ },
+ "end": {
+ "line": 420,
+ "column": 13
+ },
+ "identifierName": "getStates"
+ },
+ "name": "getStates",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 15170,
+ "end": 15214,
+ "loc": {
+ "start": {
+ "line": 420,
+ "column": 16
},
+ "end": {
+ "line": 422,
+ "column": 5
+ }
+ },
+ "body": [
{
- "type": "VariableDeclaration",
- "start": 15707,
- "end": 15735,
+ "type": "ReturnStatement",
+ "start": 15181,
+ "end": 15207,
"loc": {
"start": {
- "line": 450,
+ "line": 421,
"column": 8
},
"end": {
- "line": 450,
- "column": 36
+ "line": 421,
+ "column": 34
}
},
- "declarations": [
- {
- "type": "VariableDeclarator",
- "start": 15713,
- "end": 15734,
- "loc": {
- "start": {
- "line": 450,
- "column": 14
- },
- "end": {
- "line": 450,
- "column": 35
- }
- },
- "id": {
- "type": "Identifier",
- "start": 15713,
- "end": 15717,
- "loc": {
- "start": {
- "line": 450,
- "column": 14
- },
- "end": {
- "line": 450,
- "column": 18
- },
- "identifierName": "size"
- },
- "name": "size",
- "leadingComments": null
+ "argument": {
+ "type": "ArrayExpression",
+ "start": 15188,
+ "end": 15206,
+ "loc": {
+ "start": {
+ "line": 421,
+ "column": 15
},
- "init": {
- "type": "CallExpression",
- "start": 15720,
- "end": 15734,
+ "end": {
+ "line": 421,
+ "column": 33
+ }
+ },
+ "elements": [
+ {
+ "type": "SpreadElement",
+ "start": 15190,
+ "end": 15204,
"loc": {
"start": {
- "line": 450,
- "column": 21
+ "line": 421,
+ "column": 17
},
"end": {
- "line": 450,
- "column": 35
+ "line": 421,
+ "column": 31
}
},
- "callee": {
+ "argument": {
"type": "MemberExpression",
- "start": 15720,
- "end": 15732,
+ "start": 15193,
+ "end": 15204,
"loc": {
"start": {
- "line": 450,
- "column": 21
+ "line": 421,
+ "column": 20
},
"end": {
- "line": 450,
- "column": 33
+ "line": 421,
+ "column": 31
}
},
"object": {
"type": "ThisExpression",
- "start": 15720,
- "end": 15724,
+ "start": 15193,
+ "end": 15197,
"loc": {
"start": {
- "line": 450,
- "column": 21
+ "line": 421,
+ "column": 20
},
"end": {
- "line": 450,
- "column": 25
+ "line": 421,
+ "column": 24
}
}
},
"property": {
"type": "Identifier",
- "start": 15725,
- "end": 15732,
+ "start": 15198,
+ "end": 15204,
"loc": {
"start": {
- "line": 450,
- "column": 26
+ "line": 421,
+ "column": 25
},
"end": {
- "line": 450,
- "column": 33
+ "line": 421,
+ "column": 31
},
- "identifierName": "getSize"
+ "identifierName": "states"
},
- "name": "getSize"
+ "name": "states"
},
"computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- }
- ],
- "kind": "const",
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " Get the size of this icon.",
- "start": 15668,
- "end": 15697,
- "loc": {
- "start": {
- "line": 449,
- "column": 8
- },
- "end": {
- "line": 449,
- "column": 37
- }
- }
- }
- ],
- "trailingComments": [
- {
- "type": "CommentLine",
- "value": " icon width",
- "start": 15745,
- "end": 15758,
- "loc": {
- "start": {
- "line": 451,
- "column": 8
- },
- "end": {
- "line": 451,
- "column": 21
}
}
- }
- ]
+ ]
+ }
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
+ "start": 15022,
+ "end": 15152,
+ "loc": {
+ "start": {
+ "line": 416,
+ "column": 4
+ },
+ "end": {
+ "line": 419,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
+ "start": 15220,
+ "end": 15376,
+ "loc": {
+ "start": {
+ "line": 423,
+ "column": 4
+ },
+ "end": {
+ "line": 427,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassMethod",
+ "start": 15382,
+ "end": 15657,
+ "loc": {
+ "start": {
+ "line": 428,
+ "column": 4
+ },
+ "end": {
+ "line": 435,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 15382,
+ "end": 15395,
+ "loc": {
+ "start": {
+ "line": 428,
+ "column": 4
+ },
+ "end": {
+ "line": 428,
+ "column": 17
+ },
+ "identifierName": "getStatesData"
+ },
+ "name": "getStatesData",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 15398,
+ "end": 15657,
+ "loc": {
+ "start": {
+ "line": 428,
+ "column": 20
},
+ "end": {
+ "line": 435,
+ "column": 5
+ }
+ },
+ "body": [
{
- "type": "ExpressionStatement",
- "start": 15768,
- "end": 15793,
+ "type": "VariableDeclaration",
+ "start": 15409,
+ "end": 15435,
"loc": {
"start": {
- "line": 452,
+ "line": 429,
"column": 8
},
"end": {
- "line": 452,
- "column": 33
+ "line": 429,
+ "column": 34
}
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 15768,
- "end": 15792,
- "loc": {
- "start": {
- "line": 452,
- "column": 8
- },
- "end": {
- "line": 452,
- "column": 32
- }
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 15768,
- "end": 15779,
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 15415,
+ "end": 15434,
"loc": {
"start": {
- "line": 452,
- "column": 8
+ "line": 429,
+ "column": 14
},
"end": {
- "line": 452,
- "column": 19
+ "line": 429,
+ "column": 33
}
},
- "object": {
+ "id": {
"type": "Identifier",
- "start": 15768,
- "end": 15776,
+ "start": 15415,
+ "end": 15429,
"loc": {
"start": {
- "line": 452,
- "column": 8
+ "line": 429,
+ "column": 14
},
"end": {
- "line": 452,
- "column": 16
+ "line": 429,
+ "column": 28
},
- "identifierName": "iconData"
+ "identifierName": "stateDataArray"
},
- "name": "iconData",
- "leadingComments": null
+ "name": "stateDataArray"
},
- "property": {
- "type": "NumericLiteral",
- "start": 15777,
- "end": 15778,
+ "init": {
+ "type": "ArrayExpression",
+ "start": 15432,
+ "end": 15434,
"loc": {
"start": {
- "line": 452,
- "column": 17
+ "line": 429,
+ "column": 31
},
"end": {
- "line": 452,
- "column": 18
+ "line": 429,
+ "column": 33
}
},
- "extra": {
- "rawValue": 1,
- "raw": "1"
+ "elements": []
+ }
+ }
+ ],
+ "kind": "const",
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Loop state array to export relevant information.",
+ "start": 15445,
+ "end": 15496,
+ "loc": {
+ "start": {
+ "line": 430,
+ "column": 8
},
- "value": 1
+ "end": {
+ "line": 430,
+ "column": 59
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 15506,
+ "end": 15610,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 8
+ },
+ "end": {
+ "line": 433,
+ "column": 11
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 15506,
+ "end": 15609,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 8
},
- "computed": true,
- "leadingComments": null
+ "end": {
+ "line": 433,
+ "column": 10
+ }
},
- "right": {
+ "callee": {
"type": "MemberExpression",
- "start": 15782,
- "end": 15792,
+ "start": 15506,
+ "end": 15525,
"loc": {
"start": {
- "line": 452,
- "column": 22
+ "line": 431,
+ "column": 8
},
"end": {
- "line": 452,
- "column": 32
+ "line": 431,
+ "column": 27
}
},
"object": {
- "type": "Identifier",
- "start": 15782,
- "end": 15786,
+ "type": "MemberExpression",
+ "start": 15506,
+ "end": 15517,
"loc": {
"start": {
- "line": 452,
- "column": 22
+ "line": 431,
+ "column": 8
},
"end": {
- "line": 452,
- "column": 26
+ "line": 431,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 15506,
+ "end": 15510,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 8
+ },
+ "end": {
+ "line": 431,
+ "column": 12
+ }
},
- "identifierName": "size"
+ "leadingComments": null
},
- "name": "size"
+ "property": {
+ "type": "Identifier",
+ "start": 15511,
+ "end": 15517,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 13
+ },
+ "end": {
+ "line": 431,
+ "column": 19
+ },
+ "identifierName": "states"
+ },
+ "name": "states"
+ },
+ "computed": false,
+ "leadingComments": null
},
"property": {
"type": "Identifier",
- "start": 15787,
- "end": 15792,
+ "start": 15518,
+ "end": 15525,
"loc": {
"start": {
- "line": 452,
- "column": 27
+ "line": 431,
+ "column": 20
},
"end": {
- "line": 452,
- "column": 32
+ "line": 431,
+ "column": 27
},
- "identifierName": "width"
+ "identifierName": "forEach"
},
- "name": "width"
+ "name": "forEach"
},
- "computed": false
+ "computed": false,
+ "leadingComments": null
},
+ "arguments": [
+ {
+ "type": "ArrowFunctionExpression",
+ "start": 15526,
+ "end": 15608,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 28
+ },
+ "end": {
+ "line": 433,
+ "column": 9
+ }
+ },
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [
+ {
+ "type": "Identifier",
+ "start": 15527,
+ "end": 15533,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 29
+ },
+ "end": {
+ "line": 431,
+ "column": 35
+ },
+ "identifierName": "pState"
+ },
+ "name": "pState"
+ }
+ ],
+ "body": {
+ "type": "BlockStatement",
+ "start": 15538,
+ "end": 15608,
+ "loc": {
+ "start": {
+ "line": 431,
+ "column": 40
+ },
+ "end": {
+ "line": 433,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 15553,
+ "end": 15597,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 12
+ },
+ "end": {
+ "line": 432,
+ "column": 56
+ }
+ },
+ "expression": {
+ "type": "CallExpression",
+ "start": 15553,
+ "end": 15596,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 12
+ },
+ "end": {
+ "line": 432,
+ "column": 55
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 15553,
+ "end": 15572,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 12
+ },
+ "end": {
+ "line": 432,
+ "column": 31
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 15553,
+ "end": 15567,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 12
+ },
+ "end": {
+ "line": 432,
+ "column": 26
+ },
+ "identifierName": "stateDataArray"
+ },
+ "name": "stateDataArray"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 15568,
+ "end": 15572,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 27
+ },
+ "end": {
+ "line": 432,
+ "column": 31
+ },
+ "identifierName": "push"
+ },
+ "name": "push"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "CallExpression",
+ "start": 15573,
+ "end": 15595,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 32
+ },
+ "end": {
+ "line": 432,
+ "column": 54
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 15573,
+ "end": 15593,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 32
+ },
+ "end": {
+ "line": 432,
+ "column": 52
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 15573,
+ "end": 15579,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 32
+ },
+ "end": {
+ "line": 432,
+ "column": 38
+ },
+ "identifierName": "pState"
+ },
+ "name": "pState"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 15580,
+ "end": 15593,
+ "loc": {
+ "start": {
+ "line": 432,
+ "column": 39
+ },
+ "end": {
+ "line": 432,
+ "column": 52
+ },
+ "identifierName": "exportAsState"
+ },
+ "name": "exportAsState"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ ]
+ }
+ }
+ ],
+ "directives": []
+ }
+ }
+ ],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
- "value": " icon width",
- "start": 15745,
- "end": 15758,
+ "value": " Loop state array to export relevant information.",
+ "start": 15445,
+ "end": 15496,
"loc": {
"start": {
- "line": 451,
+ "line": 430,
"column": 8
},
"end": {
- "line": 451,
- "column": 21
+ "line": 430,
+ "column": 59
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ReturnStatement",
+ "start": 15620,
+ "end": 15642,
+ "loc": {
+ "start": {
+ "line": 434,
+ "column": 8
+ },
+ "end": {
+ "line": 434,
+ "column": 30
+ }
+ },
+ "argument": {
+ "type": "Identifier",
+ "start": 15627,
+ "end": 15641,
+ "loc": {
+ "start": {
+ "line": 434,
+ "column": 15
+ },
+ "end": {
+ "line": 434,
+ "column": 29
+ },
+ "identifierName": "stateDataArray"
+ },
+ "name": "stateDataArray"
+ }
+ }
+ ],
+ "directives": [],
+ "trailingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
+ "start": 15220,
+ "end": 15376,
+ "loc": {
+ "start": {
+ "line": 423,
+ "column": 4
+ },
+ "end": {
+ "line": 427,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
+ "start": 15663,
+ "end": 15851,
+ "loc": {
+ "start": {
+ "line": 436,
+ "column": 4
+ },
+ "end": {
+ "line": 440,
+ "column": 7
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ClassMethod",
+ "start": 15857,
+ "end": 16368,
+ "loc": {
+ "start": {
+ "line": 441,
+ "column": 4
+ },
+ "end": {
+ "line": 457,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 15857,
+ "end": 15870,
+ "loc": {
+ "start": {
+ "line": 441,
+ "column": 4
+ },
+ "end": {
+ "line": 441,
+ "column": 17
+ },
+ "identifierName": "exportAsState"
+ },
+ "name": "exportAsState",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 15873,
+ "end": 16368,
+ "loc": {
+ "start": {
+ "line": 441,
+ "column": 20
+ },
+ "end": {
+ "line": 457,
+ "column": 5
+ }
+ },
+ "body": [
+ {
+ "type": "VariableDeclaration",
+ "start": 15884,
+ "end": 15905,
+ "loc": {
+ "start": {
+ "line": 442,
+ "column": 8
+ },
+ "end": {
+ "line": 442,
+ "column": 29
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 15890,
+ "end": 15904,
+ "loc": {
+ "start": {
+ "line": 442,
+ "column": 14
+ },
+ "end": {
+ "line": 442,
+ "column": 28
}
+ },
+ "id": {
+ "type": "Identifier",
+ "start": 15890,
+ "end": 15899,
+ "loc": {
+ "start": {
+ "line": 442,
+ "column": 14
+ },
+ "end": {
+ "line": 442,
+ "column": 23
+ },
+ "identifierName": "stateData"
+ },
+ "name": "stateData"
+ },
+ "init": {
+ "type": "ArrayExpression",
+ "start": 15902,
+ "end": 15904,
+ "loc": {
+ "start": {
+ "line": 442,
+ "column": 26
+ },
+ "end": {
+ "line": 442,
+ "column": 28
+ }
+ },
+ "elements": []
}
}
],
+ "kind": "const",
"trailingComments": [
{
"type": "CommentLine",
- "value": " icon height",
- "start": 15803,
- "end": 15817,
+ "value": " state name",
+ "start": 15915,
+ "end": 15928,
"loc": {
"start": {
- "line": 453,
+ "line": 443,
"column": 8
},
"end": {
- "line": 453,
- "column": 22
+ "line": 443,
+ "column": 21
}
}
}
@@ -20233,154 +19448,168 @@
},
{
"type": "ExpressionStatement",
- "start": 15827,
- "end": 15853,
+ "start": 15938,
+ "end": 15968,
"loc": {
"start": {
- "line": 454,
+ "line": 444,
"column": 8
},
"end": {
- "line": 454,
- "column": 34
+ "line": 444,
+ "column": 38
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 15827,
- "end": 15852,
+ "start": 15938,
+ "end": 15967,
"loc": {
"start": {
- "line": 454,
+ "line": 444,
"column": 8
},
"end": {
- "line": 454,
- "column": 33
+ "line": 444,
+ "column": 37
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 15827,
- "end": 15838,
+ "start": 15938,
+ "end": 15950,
"loc": {
"start": {
- "line": 454,
+ "line": 444,
"column": 8
},
"end": {
- "line": 454,
- "column": 19
+ "line": 444,
+ "column": 20
}
},
"object": {
"type": "Identifier",
- "start": 15827,
- "end": 15835,
+ "start": 15938,
+ "end": 15947,
"loc": {
"start": {
- "line": 454,
+ "line": 444,
"column": 8
},
"end": {
- "line": 454,
- "column": 16
+ "line": 444,
+ "column": 17
},
- "identifierName": "iconData"
+ "identifierName": "stateData"
},
- "name": "iconData",
+ "name": "stateData",
"leadingComments": null
},
"property": {
"type": "NumericLiteral",
- "start": 15836,
- "end": 15837,
+ "start": 15948,
+ "end": 15949,
"loc": {
"start": {
- "line": 454,
- "column": 17
+ "line": 444,
+ "column": 18
},
"end": {
- "line": 454,
- "column": 18
+ "line": 444,
+ "column": 19
}
},
"extra": {
- "rawValue": 2,
- "raw": "2"
+ "rawValue": 0,
+ "raw": "0"
},
- "value": 2
+ "value": 0
},
"computed": true,
"leadingComments": null
},
"right": {
- "type": "MemberExpression",
- "start": 15841,
- "end": 15852,
+ "type": "CallExpression",
+ "start": 15953,
+ "end": 15967,
"loc": {
"start": {
- "line": 454,
- "column": 22
+ "line": 444,
+ "column": 23
},
"end": {
- "line": 454,
- "column": 33
+ "line": 444,
+ "column": 37
}
},
- "object": {
- "type": "Identifier",
- "start": 15841,
- "end": 15845,
- "loc": {
- "start": {
- "line": 454,
- "column": 22
- },
- "end": {
- "line": 454,
- "column": 26
- },
- "identifierName": "size"
- },
- "name": "size"
- },
- "property": {
- "type": "Identifier",
- "start": 15846,
- "end": 15852,
+ "callee": {
+ "type": "MemberExpression",
+ "start": 15953,
+ "end": 15965,
"loc": {
"start": {
- "line": 454,
- "column": 27
+ "line": 444,
+ "column": 23
},
"end": {
- "line": 454,
- "column": 33
- },
- "identifierName": "height"
+ "line": 444,
+ "column": 35
+ }
},
- "name": "height"
- },
- "computed": false
+ "object": {
+ "type": "ThisExpression",
+ "start": 15953,
+ "end": 15957,
+ "loc": {
+ "start": {
+ "line": 444,
+ "column": 23
+ },
+ "end": {
+ "line": 444,
+ "column": 27
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 15958,
+ "end": 15965,
+ "loc": {
+ "start": {
+ "line": 444,
+ "column": 28
+ },
+ "end": {
+ "line": 444,
+ "column": 35
+ },
+ "identifierName": "getName"
+ },
+ "name": "getName"
+ },
+ "computed": false
+ },
+ "arguments": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
- "value": " icon height",
- "start": 15803,
- "end": 15817,
+ "value": " state name",
+ "start": 15915,
+ "end": 15928,
"loc": {
"start": {
- "line": 453,
+ "line": 443,
"column": 8
},
"end": {
- "line": 453,
- "column": 22
+ "line": 443,
+ "column": 21
}
}
}
@@ -20388,17 +19617,17 @@
"trailingComments": [
{
"type": "CommentLine",
- "value": " frame delay",
- "start": 15863,
- "end": 15877,
+ "value": " state dataURL",
+ "start": 15978,
+ "end": 15994,
"loc": {
"start": {
- "line": 455,
+ "line": 445,
"column": 8
},
"end": {
- "line": 455,
- "column": 22
+ "line": 445,
+ "column": 24
}
}
}
@@ -20406,147 +19635,147 @@
},
{
"type": "ExpressionStatement",
- "start": 15887,
- "end": 15917,
+ "start": 16004,
+ "end": 16037,
"loc": {
"start": {
- "line": 456,
+ "line": 446,
"column": 8
},
"end": {
- "line": 456,
- "column": 38
+ "line": 446,
+ "column": 41
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 15887,
- "end": 15916,
+ "start": 16004,
+ "end": 16036,
"loc": {
"start": {
- "line": 456,
+ "line": 446,
"column": 8
},
"end": {
- "line": 456,
- "column": 37
+ "line": 446,
+ "column": 40
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 15887,
- "end": 15898,
+ "start": 16004,
+ "end": 16016,
"loc": {
"start": {
- "line": 456,
+ "line": 446,
"column": 8
},
"end": {
- "line": 456,
- "column": 19
+ "line": 446,
+ "column": 20
}
},
"object": {
"type": "Identifier",
- "start": 15887,
- "end": 15895,
+ "start": 16004,
+ "end": 16013,
"loc": {
"start": {
- "line": 456,
+ "line": 446,
"column": 8
},
"end": {
- "line": 456,
- "column": 16
+ "line": 446,
+ "column": 17
},
- "identifierName": "iconData"
+ "identifierName": "stateData"
},
- "name": "iconData",
+ "name": "stateData",
"leadingComments": null
},
"property": {
"type": "NumericLiteral",
- "start": 15896,
- "end": 15897,
+ "start": 16014,
+ "end": 16015,
"loc": {
"start": {
- "line": 456,
- "column": 17
+ "line": 446,
+ "column": 18
},
"end": {
- "line": 456,
- "column": 18
+ "line": 446,
+ "column": 19
}
},
"extra": {
- "rawValue": 3,
- "raw": "3"
+ "rawValue": 1,
+ "raw": "1"
},
- "value": 3
+ "value": 1
},
"computed": true,
"leadingComments": null
},
"right": {
"type": "CallExpression",
- "start": 15901,
- "end": 15916,
+ "start": 16019,
+ "end": 16036,
"loc": {
"start": {
- "line": 456,
- "column": 22
+ "line": 446,
+ "column": 23
},
"end": {
- "line": 456,
- "column": 37
+ "line": 446,
+ "column": 40
}
},
"callee": {
"type": "MemberExpression",
- "start": 15901,
- "end": 15914,
+ "start": 16019,
+ "end": 16034,
"loc": {
"start": {
- "line": 456,
- "column": 22
+ "line": 446,
+ "column": 23
},
"end": {
- "line": 456,
- "column": 35
+ "line": 446,
+ "column": 38
}
},
"object": {
"type": "ThisExpression",
- "start": 15901,
- "end": 15905,
+ "start": 16019,
+ "end": 16023,
"loc": {
"start": {
- "line": 456,
- "column": 22
+ "line": 446,
+ "column": 23
},
"end": {
- "line": 456,
- "column": 26
+ "line": 446,
+ "column": 27
}
}
},
"property": {
"type": "Identifier",
- "start": 15906,
- "end": 15914,
+ "start": 16024,
+ "end": 16034,
"loc": {
"start": {
- "line": 456,
- "column": 27
+ "line": 446,
+ "column": 28
},
"end": {
- "line": 456,
- "column": 35
+ "line": 446,
+ "column": 38
},
- "identifierName": "getDelay"
+ "identifierName": "getDataURL"
},
- "name": "getDelay"
+ "name": "getDataURL"
},
"computed": false
},
@@ -20557,17 +19786,17 @@
"leadingComments": [
{
"type": "CommentLine",
- "value": " frame delay",
- "start": 15863,
- "end": 15877,
+ "value": " state dataURL",
+ "start": 15978,
+ "end": 15994,
"loc": {
"start": {
- "line": 455,
+ "line": 445,
"column": 8
},
"end": {
- "line": 455,
- "column": 22
+ "line": 445,
+ "column": 24
}
}
}
@@ -20575,17 +19804,17 @@
"trailingComments": [
{
"type": "CommentLine",
- "value": " icon DataURL",
- "start": 15927,
- "end": 15942,
+ "value": " state frame delay",
+ "start": 16047,
+ "end": 16067,
"loc": {
"start": {
- "line": 457,
+ "line": 447,
"column": 8
},
"end": {
- "line": 457,
- "column": 23
+ "line": 447,
+ "column": 28
}
}
}
@@ -20593,147 +19822,147 @@
},
{
"type": "ExpressionStatement",
- "start": 15952,
- "end": 15984,
+ "start": 16077,
+ "end": 16108,
"loc": {
"start": {
- "line": 458,
+ "line": 448,
"column": 8
},
"end": {
- "line": 458,
- "column": 40
+ "line": 448,
+ "column": 39
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 15952,
- "end": 15983,
+ "start": 16077,
+ "end": 16107,
"loc": {
"start": {
- "line": 458,
+ "line": 448,
"column": 8
},
"end": {
- "line": 458,
- "column": 39
+ "line": 448,
+ "column": 38
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 15952,
- "end": 15963,
+ "start": 16077,
+ "end": 16089,
"loc": {
"start": {
- "line": 458,
+ "line": 448,
"column": 8
},
"end": {
- "line": 458,
- "column": 19
+ "line": 448,
+ "column": 20
}
},
"object": {
"type": "Identifier",
- "start": 15952,
- "end": 15960,
+ "start": 16077,
+ "end": 16086,
"loc": {
"start": {
- "line": 458,
+ "line": 448,
"column": 8
},
"end": {
- "line": 458,
- "column": 16
+ "line": 448,
+ "column": 17
},
- "identifierName": "iconData"
+ "identifierName": "stateData"
},
- "name": "iconData",
+ "name": "stateData",
"leadingComments": null
},
"property": {
"type": "NumericLiteral",
- "start": 15961,
- "end": 15962,
+ "start": 16087,
+ "end": 16088,
"loc": {
"start": {
- "line": 458,
- "column": 17
+ "line": 448,
+ "column": 18
},
"end": {
- "line": 458,
- "column": 18
+ "line": 448,
+ "column": 19
}
},
"extra": {
- "rawValue": 4,
- "raw": "4"
+ "rawValue": 2,
+ "raw": "2"
},
- "value": 4
+ "value": 2
},
"computed": true,
"leadingComments": null
},
"right": {
"type": "CallExpression",
- "start": 15966,
- "end": 15983,
+ "start": 16092,
+ "end": 16107,
"loc": {
"start": {
- "line": 458,
- "column": 22
+ "line": 448,
+ "column": 23
},
"end": {
- "line": 458,
- "column": 39
+ "line": 448,
+ "column": 38
}
},
"callee": {
"type": "MemberExpression",
- "start": 15966,
- "end": 15981,
+ "start": 16092,
+ "end": 16105,
"loc": {
"start": {
- "line": 458,
- "column": 22
+ "line": 448,
+ "column": 23
},
"end": {
- "line": 458,
- "column": 37
+ "line": 448,
+ "column": 36
}
},
"object": {
"type": "ThisExpression",
- "start": 15966,
- "end": 15970,
+ "start": 16092,
+ "end": 16096,
"loc": {
"start": {
- "line": 458,
- "column": 22
+ "line": 448,
+ "column": 23
},
"end": {
- "line": 458,
- "column": 26
+ "line": 448,
+ "column": 27
}
}
},
"property": {
"type": "Identifier",
- "start": 15971,
- "end": 15981,
+ "start": 16097,
+ "end": 16105,
"loc": {
"start": {
- "line": 458,
- "column": 27
+ "line": 448,
+ "column": 28
},
"end": {
- "line": 458,
- "column": 37
+ "line": 448,
+ "column": 36
},
- "identifierName": "getDataURL"
+ "identifierName": "getDelay"
},
- "name": "getDataURL"
+ "name": "getDelay"
},
"computed": false
},
@@ -20744,17 +19973,17 @@
"leadingComments": [
{
"type": "CommentLine",
- "value": " icon DataURL",
- "start": 15927,
- "end": 15942,
+ "value": " state frame delay",
+ "start": 16047,
+ "end": 16067,
"loc": {
"start": {
- "line": 457,
+ "line": 447,
"column": 8
},
"end": {
- "line": 457,
- "column": 23
+ "line": 447,
+ "column": 28
}
}
}
@@ -20762,17 +19991,17 @@
"trailingComments": [
{
"type": "CommentLine",
- "value": " frame array",
- "start": 15994,
- "end": 16008,
+ "value": " state frame array",
+ "start": 16118,
+ "end": 16138,
"loc": {
"start": {
- "line": 459,
+ "line": 449,
"column": 8
},
"end": {
- "line": 459,
- "column": 22
+ "line": 449,
+ "column": 28
}
}
}
@@ -20780,168 +20009,120 @@
},
{
"type": "ExpressionStatement",
- "start": 16018,
- "end": 16053,
+ "start": 16148,
+ "end": 16166,
"loc": {
"start": {
- "line": 460,
+ "line": 450,
"column": 8
},
"end": {
- "line": 460,
- "column": 43
+ "line": 450,
+ "column": 26
}
},
"expression": {
"type": "AssignmentExpression",
- "start": 16018,
- "end": 16052,
+ "start": 16148,
+ "end": 16165,
"loc": {
"start": {
- "line": 460,
+ "line": 450,
"column": 8
},
"end": {
- "line": 460,
- "column": 42
+ "line": 450,
+ "column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
- "start": 16018,
- "end": 16029,
+ "start": 16148,
+ "end": 16160,
"loc": {
"start": {
- "line": 460,
+ "line": 450,
"column": 8
},
"end": {
- "line": 460,
- "column": 19
+ "line": 450,
+ "column": 20
}
},
"object": {
"type": "Identifier",
- "start": 16018,
- "end": 16026,
+ "start": 16148,
+ "end": 16157,
"loc": {
"start": {
- "line": 460,
+ "line": 450,
"column": 8
},
"end": {
- "line": 460,
- "column": 16
+ "line": 450,
+ "column": 17
},
- "identifierName": "iconData"
+ "identifierName": "stateData"
},
- "name": "iconData",
+ "name": "stateData",
"leadingComments": null
},
"property": {
"type": "NumericLiteral",
- "start": 16027,
- "end": 16028,
+ "start": 16158,
+ "end": 16159,
"loc": {
"start": {
- "line": 460,
- "column": 17
+ "line": 450,
+ "column": 18
},
"end": {
- "line": 460,
- "column": 18
+ "line": 450,
+ "column": 19
}
},
"extra": {
- "rawValue": 5,
- "raw": "5"
+ "rawValue": 3,
+ "raw": "3"
},
- "value": 5
+ "value": 3
},
"computed": true,
"leadingComments": null
},
"right": {
- "type": "CallExpression",
- "start": 16032,
- "end": 16052,
+ "type": "ArrayExpression",
+ "start": 16163,
+ "end": 16165,
"loc": {
"start": {
- "line": 460,
- "column": 22
+ "line": 450,
+ "column": 23
},
"end": {
- "line": 460,
- "column": 42
+ "line": 450,
+ "column": 25
}
},
- "callee": {
- "type": "MemberExpression",
- "start": 16032,
- "end": 16050,
- "loc": {
- "start": {
- "line": 460,
- "column": 22
- },
- "end": {
- "line": 460,
- "column": 40
- }
- },
- "object": {
- "type": "ThisExpression",
- "start": 16032,
- "end": 16036,
- "loc": {
- "start": {
- "line": 460,
- "column": 22
- },
- "end": {
- "line": 460,
- "column": 26
- }
- }
- },
- "property": {
- "type": "Identifier",
- "start": 16037,
- "end": 16050,
- "loc": {
- "start": {
- "line": 460,
- "column": 27
- },
- "end": {
- "line": 460,
- "column": 40
- },
- "identifierName": "getFramesData"
- },
- "name": "getFramesData"
- },
- "computed": false
- },
- "arguments": []
+ "elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
- "value": " frame array",
- "start": 15994,
- "end": 16008,
+ "value": " state frame array",
+ "start": 16118,
+ "end": 16138,
"loc": {
"start": {
- "line": 459,
+ "line": 449,
"column": 8
},
"end": {
- "line": 459,
- "column": 22
+ "line": 449,
+ "column": 28
}
}
}
@@ -20949,354 +20130,392 @@
"trailingComments": [
{
"type": "CommentLine",
- "value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
- "start": 16065,
- "end": 16170,
- "loc": {
- "start": {
- "line": 462,
- "column": 8
- },
- "end": {
- "line": 462,
- "column": 113
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " this will save data",
- "start": 16180,
- "end": 16202,
+ "value": " Loop frame array to export relevant information.",
+ "start": 16178,
+ "end": 16229,
"loc": {
"start": {
- "line": 463,
+ "line": 452,
"column": 8
},
"end": {
- "line": 463,
- "column": 30
+ "line": 452,
+ "column": 59
}
}
}
]
},
{
- "type": "IfStatement",
- "start": 16212,
- "end": 16326,
+ "type": "ExpressionStatement",
+ "start": 16239,
+ "end": 16334,
"loc": {
"start": {
- "line": 464,
+ "line": 453,
"column": 8
},
"end": {
- "line": 467,
- "column": 9
+ "line": 455,
+ "column": 11
}
},
- "test": {
- "type": "MemberExpression",
- "start": 16216,
- "end": 16234,
+ "expression": {
+ "type": "CallExpression",
+ "start": 16239,
+ "end": 16333,
"loc": {
"start": {
- "line": 464,
- "column": 12
+ "line": 453,
+ "column": 8
},
"end": {
- "line": 464,
- "column": 30
+ "line": 455,
+ "column": 10
}
},
- "object": {
+ "callee": {
"type": "MemberExpression",
- "start": 16216,
- "end": 16227,
+ "start": 16239,
+ "end": 16258,
"loc": {
"start": {
- "line": 464,
- "column": 12
+ "line": 453,
+ "column": 8
},
"end": {
- "line": 464,
- "column": 23
+ "line": 453,
+ "column": 27
}
},
"object": {
- "type": "ThisExpression",
- "start": 16216,
- "end": 16220,
+ "type": "MemberExpression",
+ "start": 16239,
+ "end": 16250,
"loc": {
"start": {
- "line": 464,
- "column": 12
+ "line": 453,
+ "column": 8
},
"end": {
- "line": 464,
- "column": 16
+ "line": 453,
+ "column": 19
}
},
+ "object": {
+ "type": "ThisExpression",
+ "start": 16239,
+ "end": 16243,
+ "loc": {
+ "start": {
+ "line": 453,
+ "column": 8
+ },
+ "end": {
+ "line": 453,
+ "column": 12
+ }
+ },
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16244,
+ "end": 16250,
+ "loc": {
+ "start": {
+ "line": 453,
+ "column": 13
+ },
+ "end": {
+ "line": 453,
+ "column": 19
+ },
+ "identifierName": "frames"
+ },
+ "name": "frames"
+ },
+ "computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
- "start": 16221,
- "end": 16227,
+ "start": 16251,
+ "end": 16258,
"loc": {
"start": {
- "line": 464,
- "column": 17
+ "line": 453,
+ "column": 20
},
"end": {
- "line": 464,
- "column": 23
+ "line": 453,
+ "column": 27
},
- "identifierName": "states"
+ "identifierName": "forEach"
},
- "name": "states"
+ "name": "forEach"
},
"computed": false,
"leadingComments": null
},
- "property": {
- "type": "Identifier",
- "start": 16228,
- "end": 16234,
- "loc": {
- "start": {
- "line": 464,
- "column": 24
- },
- "end": {
- "line": 464,
- "column": 30
- },
- "identifierName": "length"
- },
- "name": "length"
- },
- "computed": false,
- "leadingComments": null
- },
- "consequent": {
- "type": "BlockStatement",
- "start": 16236,
- "end": 16326,
- "loc": {
- "start": {
- "line": 464,
- "column": 32
- },
- "end": {
- "line": 467,
- "column": 9
- }
- },
- "body": [
+ "arguments": [
{
- "type": "ExpressionStatement",
- "start": 16280,
- "end": 16315,
+ "type": "ArrowFunctionExpression",
+ "start": 16259,
+ "end": 16332,
"loc": {
"start": {
- "line": 466,
- "column": 12
+ "line": 453,
+ "column": 28
},
"end": {
- "line": 466,
- "column": 47
+ "line": 455,
+ "column": 9
}
},
- "expression": {
- "type": "AssignmentExpression",
- "start": 16280,
- "end": 16314,
- "loc": {
- "start": {
- "line": 466,
- "column": 12
- },
- "end": {
- "line": 466,
- "column": 46
- }
- },
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "start": 16280,
- "end": 16291,
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [
+ {
+ "type": "Identifier",
+ "start": 16260,
+ "end": 16266,
"loc": {
"start": {
- "line": 466,
- "column": 12
+ "line": 453,
+ "column": 29
},
"end": {
- "line": 466,
- "column": 23
- }
- },
- "object": {
- "type": "Identifier",
- "start": 16280,
- "end": 16288,
- "loc": {
- "start": {
- "line": 466,
- "column": 12
- },
- "end": {
- "line": 466,
- "column": 20
- },
- "identifierName": "iconData"
+ "line": 453,
+ "column": 35
},
- "name": "iconData",
- "leadingComments": null
+ "identifierName": "pFrame"
},
- "property": {
- "type": "NumericLiteral",
- "start": 16289,
- "end": 16290,
- "loc": {
- "start": {
- "line": 466,
- "column": 21
- },
- "end": {
- "line": 466,
- "column": 22
- }
- },
- "extra": {
- "rawValue": 6,
- "raw": "6"
- },
- "value": 6
+ "name": "pFrame"
+ }
+ ],
+ "body": {
+ "type": "BlockStatement",
+ "start": 16271,
+ "end": 16332,
+ "loc": {
+ "start": {
+ "line": 453,
+ "column": 40
},
- "computed": true,
- "leadingComments": null
+ "end": {
+ "line": 455,
+ "column": 9
+ }
},
- "right": {
- "type": "CallExpression",
- "start": 16294,
- "end": 16314,
- "loc": {
- "start": {
- "line": 466,
- "column": 26
- },
- "end": {
- "line": 466,
- "column": 46
- }
- },
- "callee": {
- "type": "MemberExpression",
- "start": 16294,
- "end": 16312,
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 16286,
+ "end": 16321,
"loc": {
"start": {
- "line": 466,
- "column": 26
+ "line": 454,
+ "column": 12
},
"end": {
- "line": 466,
- "column": 44
+ "line": 454,
+ "column": 47
}
},
- "object": {
- "type": "ThisExpression",
- "start": 16294,
- "end": 16298,
+ "expression": {
+ "type": "CallExpression",
+ "start": 16286,
+ "end": 16320,
"loc": {
"start": {
- "line": 466,
- "column": 26
+ "line": 454,
+ "column": 12
},
"end": {
- "line": 466,
- "column": 30
+ "line": 454,
+ "column": 46
}
- }
- },
- "property": {
- "type": "Identifier",
- "start": 16299,
- "end": 16312,
- "loc": {
- "start": {
- "line": 466,
- "column": 31
- },
- "end": {
- "line": 466,
- "column": 44
- },
- "identifierName": "getStatesData"
},
- "name": "getStatesData"
- },
- "computed": false
- },
- "arguments": []
- },
- "leadingComments": null
- },
- "leadingComments": [
- {
- "type": "CommentLine",
- "value": " states array",
- "start": 16251,
- "end": 16266,
- "loc": {
- "start": {
- "line": 465,
- "column": 12
- },
- "end": {
- "line": 465,
- "column": 27
- }
+ "callee": {
+ "type": "MemberExpression",
+ "start": 16286,
+ "end": 16303,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 12
+ },
+ "end": {
+ "line": 454,
+ "column": 29
+ }
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 16286,
+ "end": 16298,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 12
+ },
+ "end": {
+ "line": 454,
+ "column": 24
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16286,
+ "end": 16295,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 12
+ },
+ "end": {
+ "line": 454,
+ "column": 21
+ },
+ "identifierName": "stateData"
+ },
+ "name": "stateData"
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 16296,
+ "end": 16297,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 22
+ },
+ "end": {
+ "line": 454,
+ "column": 23
+ }
+ },
+ "extra": {
+ "rawValue": 3,
+ "raw": "3"
+ },
+ "value": 3
+ },
+ "computed": true
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16299,
+ "end": 16303,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 25
+ },
+ "end": {
+ "line": 454,
+ "column": 29
+ },
+ "identifierName": "push"
+ },
+ "name": "push"
+ },
+ "computed": false
+ },
+ "arguments": [
+ {
+ "type": "CallExpression",
+ "start": 16304,
+ "end": 16319,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 30
+ },
+ "end": {
+ "line": 454,
+ "column": 45
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 16304,
+ "end": 16317,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 30
+ },
+ "end": {
+ "line": 454,
+ "column": 43
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16304,
+ "end": 16310,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 30
+ },
+ "end": {
+ "line": 454,
+ "column": 36
+ },
+ "identifierName": "pFrame"
+ },
+ "name": "pFrame"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16311,
+ "end": 16317,
+ "loc": {
+ "start": {
+ "line": 454,
+ "column": 37
+ },
+ "end": {
+ "line": 454,
+ "column": 43
+ },
+ "identifierName": "export"
+ },
+ "name": "export"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ ]
+ }
}
- }
- ]
+ ],
+ "directives": []
+ }
}
],
- "directives": []
+ "leadingComments": null
},
- "alternate": null,
"leadingComments": [
{
"type": "CommentLine",
- "value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
- "start": 16065,
- "end": 16170,
- "loc": {
- "start": {
- "line": 462,
- "column": 8
- },
- "end": {
- "line": 462,
- "column": 113
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " this will save data",
- "start": 16180,
- "end": 16202,
+ "value": " Loop frame array to export relevant information.",
+ "start": 16178,
+ "end": 16229,
"loc": {
"start": {
- "line": 463,
+ "line": 452,
"column": 8
},
"end": {
- "line": 463,
- "column": 30
+ "line": 452,
+ "column": 59
}
}
}
@@ -21304,1418 +20523,4727 @@
},
{
"type": "ReturnStatement",
- "start": 16336,
- "end": 16352,
+ "start": 16344,
+ "end": 16361,
"loc": {
"start": {
- "line": 468,
+ "line": 456,
"column": 8
},
"end": {
- "line": 468,
- "column": 24
+ "line": 456,
+ "column": 25
}
},
"argument": {
"type": "Identifier",
- "start": 16343,
- "end": 16351,
+ "start": 16351,
+ "end": 16360,
"loc": {
"start": {
- "line": 468,
+ "line": 456,
"column": 15
},
"end": {
- "line": 468,
- "column": 23
+ "line": 456,
+ "column": 24
},
- "identifierName": "iconData"
+ "identifierName": "stateData"
},
- "name": "iconData"
+ "name": "stateData"
}
}
],
- "directives": []
+ "directives": [],
+ "trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
- "start": 15376,
- "end": 15551,
+ "value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
+ "start": 15663,
+ "end": 15851,
"loc": {
"start": {
+ "line": 436,
+ "column": 4
+ },
+ "end": {
"line": 440,
+ "column": 7
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
+ "start": 16374,
+ "end": 16549,
+ "loc": {
+ "start": {
+ "line": 458,
"column": 4
},
"end": {
- "line": 444,
+ "line": 462,
"column": 7
}
}
}
]
- }
- ]
- },
- "leadingComments": [],
- "trailingComments": []
+ },
+ {
+ "type": "ClassMethod",
+ "start": 16555,
+ "end": 17357,
+ "loc": {
+ "start": {
+ "line": 463,
+ "column": 4
+ },
+ "end": {
+ "line": 487,
+ "column": 5
+ }
+ },
+ "static": false,
+ "computed": false,
+ "key": {
+ "type": "Identifier",
+ "start": 16555,
+ "end": 16561,
+ "loc": {
+ "start": {
+ "line": 463,
+ "column": 4
+ },
+ "end": {
+ "line": 463,
+ "column": 10
+ },
+ "identifierName": "export"
+ },
+ "name": "export",
+ "leadingComments": null
+ },
+ "kind": "method",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "start": 16564,
+ "end": 17357,
+ "loc": {
+ "start": {
+ "line": 463,
+ "column": 13
+ },
+ "end": {
+ "line": 487,
+ "column": 5
+ }
+ },
+ "body": [
+ {
+ "type": "VariableDeclaration",
+ "start": 16575,
+ "end": 16595,
+ "loc": {
+ "start": {
+ "line": 464,
+ "column": 8
+ },
+ "end": {
+ "line": 464,
+ "column": 28
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 16581,
+ "end": 16594,
+ "loc": {
+ "start": {
+ "line": 464,
+ "column": 14
+ },
+ "end": {
+ "line": 464,
+ "column": 27
+ }
+ },
+ "id": {
+ "type": "Identifier",
+ "start": 16581,
+ "end": 16589,
+ "loc": {
+ "start": {
+ "line": 464,
+ "column": 14
+ },
+ "end": {
+ "line": 464,
+ "column": 22
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData"
+ },
+ "init": {
+ "type": "ArrayExpression",
+ "start": 16592,
+ "end": 16594,
+ "loc": {
+ "start": {
+ "line": 464,
+ "column": 25
+ },
+ "end": {
+ "line": 464,
+ "column": 27
+ }
+ },
+ "elements": []
+ }
+ }
+ ],
+ "kind": "const",
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon name",
+ "start": 16605,
+ "end": 16617,
+ "loc": {
+ "start": {
+ "line": 465,
+ "column": 8
+ },
+ "end": {
+ "line": 465,
+ "column": 20
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 16627,
+ "end": 16656,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 8
+ },
+ "end": {
+ "line": 466,
+ "column": 37
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 16627,
+ "end": 16655,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 8
+ },
+ "end": {
+ "line": 466,
+ "column": 36
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 16627,
+ "end": 16638,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 8
+ },
+ "end": {
+ "line": 466,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16627,
+ "end": 16635,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 8
+ },
+ "end": {
+ "line": 466,
+ "column": 16
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 16636,
+ "end": 16637,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 17
+ },
+ "end": {
+ "line": 466,
+ "column": 18
+ }
+ },
+ "extra": {
+ "rawValue": 0,
+ "raw": "0"
+ },
+ "value": 0
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 16641,
+ "end": 16655,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 22
+ },
+ "end": {
+ "line": 466,
+ "column": 36
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 16641,
+ "end": 16653,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 22
+ },
+ "end": {
+ "line": 466,
+ "column": 34
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 16641,
+ "end": 16645,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 22
+ },
+ "end": {
+ "line": 466,
+ "column": 26
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16646,
+ "end": 16653,
+ "loc": {
+ "start": {
+ "line": 466,
+ "column": 27
+ },
+ "end": {
+ "line": 466,
+ "column": 34
+ },
+ "identifierName": "getName"
+ },
+ "name": "getName"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon name",
+ "start": 16605,
+ "end": 16617,
+ "loc": {
+ "start": {
+ "line": 465,
+ "column": 8
+ },
+ "end": {
+ "line": 465,
+ "column": 20
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Get the size of this icon.",
+ "start": 16666,
+ "end": 16695,
+ "loc": {
+ "start": {
+ "line": 467,
+ "column": 8
+ },
+ "end": {
+ "line": 467,
+ "column": 37
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "VariableDeclaration",
+ "start": 16705,
+ "end": 16733,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 8
+ },
+ "end": {
+ "line": 468,
+ "column": 36
+ }
+ },
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "start": 16711,
+ "end": 16732,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 14
+ },
+ "end": {
+ "line": 468,
+ "column": 35
+ }
+ },
+ "id": {
+ "type": "Identifier",
+ "start": 16711,
+ "end": 16715,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 14
+ },
+ "end": {
+ "line": 468,
+ "column": 18
+ },
+ "identifierName": "size"
+ },
+ "name": "size",
+ "leadingComments": null
+ },
+ "init": {
+ "type": "CallExpression",
+ "start": 16718,
+ "end": 16732,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 21
+ },
+ "end": {
+ "line": 468,
+ "column": 35
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 16718,
+ "end": 16730,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 21
+ },
+ "end": {
+ "line": 468,
+ "column": 33
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 16718,
+ "end": 16722,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 21
+ },
+ "end": {
+ "line": 468,
+ "column": 25
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16723,
+ "end": 16730,
+ "loc": {
+ "start": {
+ "line": 468,
+ "column": 26
+ },
+ "end": {
+ "line": 468,
+ "column": 33
+ },
+ "identifierName": "getSize"
+ },
+ "name": "getSize"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ }
+ ],
+ "kind": "const",
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " Get the size of this icon.",
+ "start": 16666,
+ "end": 16695,
+ "loc": {
+ "start": {
+ "line": 467,
+ "column": 8
+ },
+ "end": {
+ "line": 467,
+ "column": 37
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon width",
+ "start": 16743,
+ "end": 16756,
+ "loc": {
+ "start": {
+ "line": 469,
+ "column": 8
+ },
+ "end": {
+ "line": 469,
+ "column": 21
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 16766,
+ "end": 16791,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 8
+ },
+ "end": {
+ "line": 470,
+ "column": 33
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 16766,
+ "end": 16790,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 8
+ },
+ "end": {
+ "line": 470,
+ "column": 32
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 16766,
+ "end": 16777,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 8
+ },
+ "end": {
+ "line": 470,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16766,
+ "end": 16774,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 8
+ },
+ "end": {
+ "line": 470,
+ "column": 16
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 16775,
+ "end": 16776,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 17
+ },
+ "end": {
+ "line": 470,
+ "column": 18
+ }
+ },
+ "extra": {
+ "rawValue": 1,
+ "raw": "1"
+ },
+ "value": 1
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "MemberExpression",
+ "start": 16780,
+ "end": 16790,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 22
+ },
+ "end": {
+ "line": 470,
+ "column": 32
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16780,
+ "end": 16784,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 22
+ },
+ "end": {
+ "line": 470,
+ "column": 26
+ },
+ "identifierName": "size"
+ },
+ "name": "size"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16785,
+ "end": 16790,
+ "loc": {
+ "start": {
+ "line": 470,
+ "column": 27
+ },
+ "end": {
+ "line": 470,
+ "column": 32
+ },
+ "identifierName": "width"
+ },
+ "name": "width"
+ },
+ "computed": false
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon width",
+ "start": 16743,
+ "end": 16756,
+ "loc": {
+ "start": {
+ "line": 469,
+ "column": 8
+ },
+ "end": {
+ "line": 469,
+ "column": 21
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon height",
+ "start": 16801,
+ "end": 16815,
+ "loc": {
+ "start": {
+ "line": 471,
+ "column": 8
+ },
+ "end": {
+ "line": 471,
+ "column": 22
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 16825,
+ "end": 16851,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 8
+ },
+ "end": {
+ "line": 472,
+ "column": 34
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 16825,
+ "end": 16850,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 8
+ },
+ "end": {
+ "line": 472,
+ "column": 33
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 16825,
+ "end": 16836,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 8
+ },
+ "end": {
+ "line": 472,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16825,
+ "end": 16833,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 8
+ },
+ "end": {
+ "line": 472,
+ "column": 16
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 16834,
+ "end": 16835,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 17
+ },
+ "end": {
+ "line": 472,
+ "column": 18
+ }
+ },
+ "extra": {
+ "rawValue": 2,
+ "raw": "2"
+ },
+ "value": 2
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "MemberExpression",
+ "start": 16839,
+ "end": 16850,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 22
+ },
+ "end": {
+ "line": 472,
+ "column": 33
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16839,
+ "end": 16843,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 22
+ },
+ "end": {
+ "line": 472,
+ "column": 26
+ },
+ "identifierName": "size"
+ },
+ "name": "size"
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16844,
+ "end": 16850,
+ "loc": {
+ "start": {
+ "line": 472,
+ "column": 27
+ },
+ "end": {
+ "line": 472,
+ "column": 33
+ },
+ "identifierName": "height"
+ },
+ "name": "height"
+ },
+ "computed": false
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon height",
+ "start": 16801,
+ "end": 16815,
+ "loc": {
+ "start": {
+ "line": 471,
+ "column": 8
+ },
+ "end": {
+ "line": 471,
+ "column": 22
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 16861,
+ "end": 16875,
+ "loc": {
+ "start": {
+ "line": 473,
+ "column": 8
+ },
+ "end": {
+ "line": 473,
+ "column": 22
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 16885,
+ "end": 16915,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 8
+ },
+ "end": {
+ "line": 474,
+ "column": 38
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 16885,
+ "end": 16914,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 8
+ },
+ "end": {
+ "line": 474,
+ "column": 37
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 16885,
+ "end": 16896,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 8
+ },
+ "end": {
+ "line": 474,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16885,
+ "end": 16893,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 8
+ },
+ "end": {
+ "line": 474,
+ "column": 16
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 16894,
+ "end": 16895,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 17
+ },
+ "end": {
+ "line": 474,
+ "column": 18
+ }
+ },
+ "extra": {
+ "rawValue": 3,
+ "raw": "3"
+ },
+ "value": 3
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 16899,
+ "end": 16914,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 22
+ },
+ "end": {
+ "line": 474,
+ "column": 37
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 16899,
+ "end": 16912,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 22
+ },
+ "end": {
+ "line": 474,
+ "column": 35
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 16899,
+ "end": 16903,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 22
+ },
+ "end": {
+ "line": 474,
+ "column": 26
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16904,
+ "end": 16912,
+ "loc": {
+ "start": {
+ "line": 474,
+ "column": 27
+ },
+ "end": {
+ "line": 474,
+ "column": 35
+ },
+ "identifierName": "getDelay"
+ },
+ "name": "getDelay"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 16861,
+ "end": 16875,
+ "loc": {
+ "start": {
+ "line": 473,
+ "column": 8
+ },
+ "end": {
+ "line": 473,
+ "column": 22
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon DataURL",
+ "start": 16925,
+ "end": 16940,
+ "loc": {
+ "start": {
+ "line": 475,
+ "column": 8
+ },
+ "end": {
+ "line": 475,
+ "column": 23
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 16950,
+ "end": 16982,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 8
+ },
+ "end": {
+ "line": 476,
+ "column": 40
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 16950,
+ "end": 16981,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 8
+ },
+ "end": {
+ "line": 476,
+ "column": 39
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 16950,
+ "end": 16961,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 8
+ },
+ "end": {
+ "line": 476,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 16950,
+ "end": 16958,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 8
+ },
+ "end": {
+ "line": 476,
+ "column": 16
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 16959,
+ "end": 16960,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 17
+ },
+ "end": {
+ "line": 476,
+ "column": 18
+ }
+ },
+ "extra": {
+ "rawValue": 4,
+ "raw": "4"
+ },
+ "value": 4
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 16964,
+ "end": 16981,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 22
+ },
+ "end": {
+ "line": 476,
+ "column": 39
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 16964,
+ "end": 16979,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 22
+ },
+ "end": {
+ "line": 476,
+ "column": 37
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 16964,
+ "end": 16968,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 22
+ },
+ "end": {
+ "line": 476,
+ "column": 26
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 16969,
+ "end": 16979,
+ "loc": {
+ "start": {
+ "line": 476,
+ "column": 27
+ },
+ "end": {
+ "line": 476,
+ "column": 37
+ },
+ "identifierName": "getDataURL"
+ },
+ "name": "getDataURL"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " icon DataURL",
+ "start": 16925,
+ "end": 16940,
+ "loc": {
+ "start": {
+ "line": 475,
+ "column": 8
+ },
+ "end": {
+ "line": 475,
+ "column": 23
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame array",
+ "start": 16992,
+ "end": 17006,
+ "loc": {
+ "start": {
+ "line": 477,
+ "column": 8
+ },
+ "end": {
+ "line": 477,
+ "column": 22
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ExpressionStatement",
+ "start": 17016,
+ "end": 17051,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 8
+ },
+ "end": {
+ "line": 478,
+ "column": 43
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 17016,
+ "end": 17050,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 8
+ },
+ "end": {
+ "line": 478,
+ "column": 42
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 17016,
+ "end": 17027,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 8
+ },
+ "end": {
+ "line": 478,
+ "column": 19
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 17016,
+ "end": 17024,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 8
+ },
+ "end": {
+ "line": 478,
+ "column": 16
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 17025,
+ "end": 17026,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 17
+ },
+ "end": {
+ "line": 478,
+ "column": 18
+ }
+ },
+ "extra": {
+ "rawValue": 5,
+ "raw": "5"
+ },
+ "value": 5
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 17030,
+ "end": 17050,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 22
+ },
+ "end": {
+ "line": 478,
+ "column": 42
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 17030,
+ "end": 17048,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 22
+ },
+ "end": {
+ "line": 478,
+ "column": 40
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 17030,
+ "end": 17034,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 22
+ },
+ "end": {
+ "line": 478,
+ "column": 26
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 17035,
+ "end": 17048,
+ "loc": {
+ "start": {
+ "line": 478,
+ "column": 27
+ },
+ "end": {
+ "line": 478,
+ "column": 40
+ },
+ "identifierName": "getFramesData"
+ },
+ "name": "getFramesData"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " frame array",
+ "start": 16992,
+ "end": 17006,
+ "loc": {
+ "start": {
+ "line": 477,
+ "column": 8
+ },
+ "end": {
+ "line": 477,
+ "column": 22
+ }
+ }
+ }
+ ],
+ "trailingComments": [
+ {
+ "type": "CommentLine",
+ "value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
+ "start": 17063,
+ "end": 17168,
+ "loc": {
+ "start": {
+ "line": 480,
+ "column": 8
+ },
+ "end": {
+ "line": 480,
+ "column": 113
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " this will save data",
+ "start": 17178,
+ "end": 17200,
+ "loc": {
+ "start": {
+ "line": 481,
+ "column": 8
+ },
+ "end": {
+ "line": 481,
+ "column": 30
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "IfStatement",
+ "start": 17210,
+ "end": 17324,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 8
+ },
+ "end": {
+ "line": 485,
+ "column": 9
+ }
+ },
+ "test": {
+ "type": "MemberExpression",
+ "start": 17214,
+ "end": 17232,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 12
+ },
+ "end": {
+ "line": 482,
+ "column": 30
+ }
+ },
+ "object": {
+ "type": "MemberExpression",
+ "start": 17214,
+ "end": 17225,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 12
+ },
+ "end": {
+ "line": 482,
+ "column": 23
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 17214,
+ "end": 17218,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 12
+ },
+ "end": {
+ "line": 482,
+ "column": 16
+ }
+ },
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 17219,
+ "end": 17225,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 17
+ },
+ "end": {
+ "line": 482,
+ "column": 23
+ },
+ "identifierName": "states"
+ },
+ "name": "states"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 17226,
+ "end": 17232,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 24
+ },
+ "end": {
+ "line": 482,
+ "column": 30
+ },
+ "identifierName": "length"
+ },
+ "name": "length"
+ },
+ "computed": false,
+ "leadingComments": null
+ },
+ "consequent": {
+ "type": "BlockStatement",
+ "start": 17234,
+ "end": 17324,
+ "loc": {
+ "start": {
+ "line": 482,
+ "column": 32
+ },
+ "end": {
+ "line": 485,
+ "column": 9
+ }
+ },
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "start": 17278,
+ "end": 17313,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 12
+ },
+ "end": {
+ "line": 484,
+ "column": 47
+ }
+ },
+ "expression": {
+ "type": "AssignmentExpression",
+ "start": 17278,
+ "end": 17312,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 12
+ },
+ "end": {
+ "line": 484,
+ "column": 46
+ }
+ },
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "start": 17278,
+ "end": 17289,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 12
+ },
+ "end": {
+ "line": 484,
+ "column": 23
+ }
+ },
+ "object": {
+ "type": "Identifier",
+ "start": 17278,
+ "end": 17286,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 12
+ },
+ "end": {
+ "line": 484,
+ "column": 20
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData",
+ "leadingComments": null
+ },
+ "property": {
+ "type": "NumericLiteral",
+ "start": 17287,
+ "end": 17288,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 21
+ },
+ "end": {
+ "line": 484,
+ "column": 22
+ }
+ },
+ "extra": {
+ "rawValue": 6,
+ "raw": "6"
+ },
+ "value": 6
+ },
+ "computed": true,
+ "leadingComments": null
+ },
+ "right": {
+ "type": "CallExpression",
+ "start": 17292,
+ "end": 17312,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 26
+ },
+ "end": {
+ "line": 484,
+ "column": 46
+ }
+ },
+ "callee": {
+ "type": "MemberExpression",
+ "start": 17292,
+ "end": 17310,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 26
+ },
+ "end": {
+ "line": 484,
+ "column": 44
+ }
+ },
+ "object": {
+ "type": "ThisExpression",
+ "start": 17292,
+ "end": 17296,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 26
+ },
+ "end": {
+ "line": 484,
+ "column": 30
+ }
+ }
+ },
+ "property": {
+ "type": "Identifier",
+ "start": 17297,
+ "end": 17310,
+ "loc": {
+ "start": {
+ "line": 484,
+ "column": 31
+ },
+ "end": {
+ "line": 484,
+ "column": 44
+ },
+ "identifierName": "getStatesData"
+ },
+ "name": "getStatesData"
+ },
+ "computed": false
+ },
+ "arguments": []
+ },
+ "leadingComments": null
+ },
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " states array",
+ "start": 17249,
+ "end": 17264,
+ "loc": {
+ "start": {
+ "line": 483,
+ "column": 12
+ },
+ "end": {
+ "line": 483,
+ "column": 27
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "directives": []
+ },
+ "alternate": null,
+ "leadingComments": [
+ {
+ "type": "CommentLine",
+ "value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
+ "start": 17063,
+ "end": 17168,
+ "loc": {
+ "start": {
+ "line": 480,
+ "column": 8
+ },
+ "end": {
+ "line": 480,
+ "column": 113
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " this will save data",
+ "start": 17178,
+ "end": 17200,
+ "loc": {
+ "start": {
+ "line": 481,
+ "column": 8
+ },
+ "end": {
+ "line": 481,
+ "column": 30
+ }
+ }
+ }
+ ]
+ },
+ {
+ "type": "ReturnStatement",
+ "start": 17334,
+ "end": 17350,
+ "loc": {
+ "start": {
+ "line": 486,
+ "column": 8
+ },
+ "end": {
+ "line": 486,
+ "column": 24
+ }
+ },
+ "argument": {
+ "type": "Identifier",
+ "start": 17341,
+ "end": 17349,
+ "loc": {
+ "start": {
+ "line": 486,
+ "column": 15
+ },
+ "end": {
+ "line": 486,
+ "column": 23
+ },
+ "identifierName": "iconData"
+ },
+ "name": "iconData"
+ }
+ }
+ ],
+ "directives": []
+ },
+ "leadingComments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
+ "start": 16374,
+ "end": 16549,
+ "loc": {
+ "start": {
+ "line": 458,
+ "column": 4
+ },
+ "end": {
+ "line": 462,
+ "column": 7
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "leadingComments": [],
+ "trailingComments": []
+ }
+ }
+ ],
+ "directives": []
+ },
+ "comments": [
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * An array of Icon's that are state of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
+ "start": 99,
+ "end": 206,
+ "loc": {
+ "start": {
+ "line": 5,
+ "column": 4
+ },
+ "end": {
+ "line": 9,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * An arary of Frame's that are the frames of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
+ "start": 230,
+ "end": 343,
+ "loc": {
+ "start": {
+ "line": 11,
+ "column": 4
+ },
+ "end": {
+ "line": 15,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The width of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 367,
+ "end": 508,
+ "loc": {
+ "start": {
+ "line": 17,
+ "column": 4
+ },
+ "end": {
+ "line": 21,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The height of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 531,
+ "end": 673,
+ "loc": {
+ "start": {
+ "line": 23,
+ "column": 4
+ },
+ "end": {
+ "line": 27,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
+ "start": 697,
+ "end": 799,
+ "loc": {
+ "start": {
+ "line": 29,
+ "column": 4
+ },
+ "end": {
+ "line": 33,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 819,
+ "end": 904,
+ "loc": {
+ "start": {
+ "line": 35,
+ "column": 4
+ },
+ "end": {
+ "line": 39,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * The name of this icon.\r\n * @private\r\n * @type {string}\r\n ",
+ "start": 928,
+ "end": 1011,
+ "loc": {
+ "start": {
+ "line": 41,
+ "column": 4
+ },
+ "end": {
+ "line": 45,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Creates this icon instance.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
+ "start": 1049,
+ "end": 1197,
+ "loc": {
+ "start": {
+ "line": 47,
+ "column": 4
+ },
+ "end": {
+ "line": 51,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
+ "start": 1272,
+ "end": 1449,
+ "loc": {
+ "start": {
+ "line": 55,
+ "column": 4
+ },
+ "end": {
+ "line": 59,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Loop through pIconData and create this icon",
+ "start": 1483,
+ "end": 1529,
+ "loc": {
+ "start": {
+ "line": 61,
+ "column": 8
+ },
+ "end": {
+ "line": 61,
+ "column": 54
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set name",
+ "start": 1832,
+ "end": 1843,
+ "loc": {
+ "start": {
+ "line": 70,
+ "column": 8
+ },
+ "end": {
+ "line": 70,
+ "column": 19
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set size",
+ "start": 1885,
+ "end": 1896,
+ "loc": {
+ "start": {
+ "line": 72,
+ "column": 8
+ },
+ "end": {
+ "line": 72,
+ "column": 19
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set icon delay",
+ "start": 1952,
+ "end": 1969,
+ "loc": {
+ "start": {
+ "line": 74,
+ "column": 8
+ },
+ "end": {
+ "line": 74,
+ "column": 25
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set dataURL",
+ "start": 2014,
+ "end": 2028,
+ "loc": {
+ "start": {
+ "line": 76,
+ "column": 8
+ },
+ "end": {
+ "line": 76,
+ "column": 22
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Check if the frame data is an array",
+ "start": 2077,
+ "end": 2115,
+ "loc": {
+ "start": {
+ "line": 78,
+ "column": 8
+ },
+ "end": {
+ "line": 78,
+ "column": 46
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " If the frame array has data then we need to store it.",
+ "start": 2171,
+ "end": 2227,
+ "loc": {
+ "start": {
+ "line": 80,
+ "column": 12
+ },
+ "end": {
+ "line": 80,
+ "column": 68
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " pFrame is an array holding the datalURL and frameDelay of the frame",
+ "start": 2337,
+ "end": 2407,
+ "loc": {
+ "start": {
+ "line": 83,
+ "column": 20
+ },
+ "end": {
+ "line": 83,
+ "column": 90
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Check if the states data is an array",
+ "start": 2508,
+ "end": 2547,
+ "loc": {
+ "start": {
+ "line": 88,
+ "column": 8
+ },
+ "end": {
+ "line": 88,
+ "column": 47
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " If the state array has data then we need to store it.",
+ "start": 2603,
+ "end": 2659,
+ "loc": {
+ "start": {
+ "line": 90,
+ "column": 12
+ },
+ "end": {
+ "line": 90,
+ "column": 68
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Here we create a icon with aggregated data because the state data is not enough to make it an icon.",
+ "start": 2769,
+ "end": 2871,
+ "loc": {
+ "start": {
+ "line": 93,
+ "column": 20
+ },
+ "end": {
+ "line": 93,
+ "column": 122
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.",
+ "start": 2893,
+ "end": 3058,
+ "loc": {
+ "start": {
+ "line": 94,
+ "column": 20
+ },
+ "end": {
+ "line": 94,
+ "column": 185
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " iconName",
+ "start": 3132,
+ "end": 3143,
+ "loc": {
+ "start": {
+ "line": 96,
+ "column": 20
+ },
+ "end": {
+ "line": 96,
+ "column": 31
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " iconWidth",
+ "start": 3221,
+ "end": 3233,
+ "loc": {
+ "start": {
+ "line": 98,
+ "column": 20
+ },
+ "end": {
+ "line": 98,
+ "column": 32
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " iconHeight",
+ "start": 3311,
+ "end": 3324,
+ "loc": {
+ "start": {
+ "line": 100,
+ "column": 20
+ },
+ "end": {
+ "line": 100,
+ "column": 33
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 3403,
+ "end": 3417,
+ "loc": {
+ "start": {
+ "line": 102,
+ "column": 20
+ },
+ "end": {
+ "line": 102,
+ "column": 34
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " iconDataURL",
+ "start": 3495,
+ "end": 3509,
+ "loc": {
+ "start": {
+ "line": 104,
+ "column": 20
+ },
+ "end": {
+ "line": 104,
+ "column": 34
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " frame array",
+ "start": 3587,
+ "end": 3601,
+ "loc": {
+ "start": {
+ "line": 106,
+ "column": 20
+ },
+ "end": {
+ "line": 106,
+ "column": 34
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 3773,
+ "end": 3981,
+ "loc": {
+ "start": {
+ "line": 113,
+ "column": 4
+ },
+ "end": {
+ "line": 118,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n ",
+ "start": 4207,
+ "end": 4358,
+ "loc": {
+ "start": {
+ "line": 127,
+ "column": 4
+ },
+ "end": {
+ "line": 130,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 4448,
+ "end": 4611,
+ "loc": {
+ "start": {
+ "line": 134,
+ "column": 4
+ },
+ "end": {
+ "line": 138,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
+ "start": 4921,
+ "end": 5033,
+ "loc": {
+ "start": {
+ "line": 149,
+ "column": 4
+ },
+ "end": {
+ "line": 152,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 5096,
+ "end": 5260,
+ "loc": {
+ "start": {
+ "line": 156,
+ "column": 4
+ },
+ "end": {
+ "line": 160,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n ",
+ "start": 5555,
+ "end": 5654,
+ "loc": {
+ "start": {
+ "line": 171,
+ "column": 4
+ },
+ "end": {
+ "line": 174,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 5713,
+ "end": 5866,
+ "loc": {
+ "start": {
+ "line": 178,
+ "column": 4
+ },
+ "end": {
+ "line": 182,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n ",
+ "start": 6158,
+ "end": 6258,
+ "loc": {
+ "start": {
+ "line": 193,
+ "column": 4
+ },
+ "end": {
+ "line": 196,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 6315,
+ "end": 6506,
+ "loc": {
+ "start": {
+ "line": 200,
+ "column": 4
+ },
+ "end": {
+ "line": 204,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n ",
+ "start": 6895,
+ "end": 7122,
+ "loc": {
+ "start": {
+ "line": 217,
+ "column": 4
+ },
+ "end": {
+ "line": 221,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 7330,
+ "end": 7691,
+ "loc": {
+ "start": {
+ "line": 229,
+ "column": 4
+ },
+ "end": {
+ "line": 234,
+ "column": 7
}
}
- ],
- "directives": []
- },
- "comments": [
+ },
+ {
+ "type": "CommentLine",
+ "value": " The index used to remove this frame.",
+ "start": 7735,
+ "end": 7774,
+ "loc": {
+ "start": {
+ "line": 236,
+ "column": 8
+ },
+ "end": {
+ "line": 236,
+ "column": 47
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove via reference to state.",
+ "start": 7804,
+ "end": 7837,
+ "loc": {
+ "start": {
+ "line": 238,
+ "column": 8
+ },
+ "end": {
+ "line": 238,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove via reference to name",
+ "start": 7942,
+ "end": 7973,
+ "loc": {
+ "start": {
+ "line": 241,
+ "column": 8
+ },
+ "end": {
+ "line": 241,
+ "column": 39
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove the state",
+ "start": 8357,
+ "end": 8376,
+ "loc": {
+ "start": {
+ "line": 252,
+ "column": 12
+ },
+ "end": {
+ "line": 252,
+ "column": 31
+ }
+ }
+ },
{
"type": "CommentBlock",
- "value": "*\r\n * An array of Icon's that are state of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
- "start": 99,
- "end": 206,
+ "value": "*\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n ",
+ "start": 8465,
+ "end": 8662,
"loc": {
"start": {
- "line": 5,
+ "line": 257,
"column": 4
},
"end": {
- "line": 9,
+ "line": 261,
"column": 7
}
}
},
+ {
+ "type": "CommentLine",
+ "value": " Add the frame to the frames array.",
+ "start": 8844,
+ "end": 8881,
+ "loc": {
+ "start": {
+ "line": 266,
+ "column": 16
+ },
+ "end": {
+ "line": 266,
+ "column": 53
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Re-index frames after a change",
+ "start": 8941,
+ "end": 8974,
+ "loc": {
+ "start": {
+ "line": 268,
+ "column": 16
+ },
+ "end": {
+ "line": 268,
+ "column": 49
+ }
+ }
+ },
{
"type": "CommentBlock",
- "value": "*\r\n * An arary of Frame's that are the frames of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
- "start": 230,
- "end": 343,
+ "value": "*\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 9284,
+ "end": 9691,
"loc": {
"start": {
- "line": 11,
+ "line": 278,
"column": 4
},
"end": {
- "line": 15,
+ "line": 283,
"column": 7
}
}
},
+ {
+ "type": "CommentLine",
+ "value": " The index used to remove this frame.",
+ "start": 9736,
+ "end": 9775,
+ "loc": {
+ "start": {
+ "line": 285,
+ "column": 8
+ },
+ "end": {
+ "line": 285,
+ "column": 47
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove via reference to frame.",
+ "start": 9805,
+ "end": 9838,
+ "loc": {
+ "start": {
+ "line": 287,
+ "column": 8
+ },
+ "end": {
+ "line": 287,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove via index passed.",
+ "start": 9943,
+ "end": 9970,
+ "loc": {
+ "start": {
+ "line": 290,
+ "column": 8
+ },
+ "end": {
+ "line": 290,
+ "column": 35
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove the frame",
+ "start": 10486,
+ "end": 10505,
+ "loc": {
+ "start": {
+ "line": 304,
+ "column": 12
+ },
+ "end": {
+ "line": 304,
+ "column": 31
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Re-index frames after a change",
+ "start": 10562,
+ "end": 10595,
+ "loc": {
+ "start": {
+ "line": 306,
+ "column": 12
+ },
+ "end": {
+ "line": 306,
+ "column": 45
+ }
+ }
+ },
{
"type": "CommentBlock",
- "value": "*\r\n * The width of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 367,
- "end": 508,
+ "value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
+ "start": 10674,
+ "end": 10738,
"loc": {
"start": {
- "line": 17,
+ "line": 311,
"column": 4
},
"end": {
- "line": 21,
+ "line": 314,
"column": 7
}
}
},
+ {
+ "type": "CommentLine",
+ "value": " Reorder the frames after removing.",
+ "start": 10769,
+ "end": 10806,
+ "loc": {
+ "start": {
+ "line": 316,
+ "column": 8
+ },
+ "end": {
+ "line": 316,
+ "column": 45
+ }
+ }
+ },
{
"type": "CommentBlock",
- "value": "*\r\n * The height of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 531,
- "end": 673,
+ "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * The \"first\" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.\r\n * pCurrentIndex must be set to -1 to match this icon.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 10919,
+ "end": 11458,
"loc": {
"start": {
- "line": 23,
+ "line": 321,
"column": 4
},
"end": {
- "line": 27,
+ "line": 328,
+ "column": 7
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves",
+ "start": 11659,
+ "end": 11807,
+ "loc": {
+ "start": {
+ "line": 333,
+ "column": 12
+ },
+ "end": {
+ "line": 333,
+ "column": 160
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " as the frame 0.",
+ "start": 11821,
+ "end": 11839,
+ "loc": {
+ "start": {
+ "line": 334,
+ "column": 12
+ },
+ "end": {
+ "line": 334,
+ "column": 30
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Otherwise if the index passed can be found in the frames array, then we use that frame.",
+ "start": 11932,
+ "end": 12022,
+ "loc": {
+ "start": {
+ "line": 337,
+ "column": 12
+ },
+ "end": {
+ "line": 337,
+ "column": 102
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " We get the frame at the specified index.",
+ "start": 12167,
+ "end": 12210,
+ "loc": {
+ "start": {
+ "line": 342,
+ "column": 12
+ },
+ "end": {
+ "line": 342,
+ "column": 55
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " If both frames can be found, we can swap their data.",
+ "start": 12334,
+ "end": 12389,
+ "loc": {
+ "start": {
+ "line": 347,
+ "column": 12
+ },
+ "end": {
+ "line": 347,
+ "column": 67
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Store frame data",
+ "start": 12456,
+ "end": 12475,
+ "loc": {
+ "start": {
+ "line": 349,
+ "column": 16
+ },
+ "end": {
+ "line": 349,
+ "column": 35
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Swap data from frame",
+ "start": 12777,
+ "end": 12800,
+ "loc": {
+ "start": {
+ "line": 356,
+ "column": 16
+ },
+ "end": {
+ "line": 356,
+ "column": 39
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Swap data to frame",
+ "start": 12940,
+ "end": 12961,
+ "loc": {
+ "start": {
+ "line": 359,
+ "column": 16
+ },
+ "end": {
+ "line": 359,
+ "column": 37
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the frame existing at pIndex.\r\n * Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\r\n * If you are trying to get \"frame\" 1. Then you will need to use the icon's delay and data url. As that is frame 0.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
+ "start": 13399,
+ "end": 13801,
+ "loc": {
+ "start": {
+ "line": 370,
+ "column": 4
+ },
+ "end": {
+ "line": 376,
"column": 7
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
- "start": 697,
- "end": 799,
+ "value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
+ "start": 14026,
+ "end": 14156,
"loc": {
"start": {
- "line": 29,
+ "line": 384,
"column": 4
},
"end": {
- "line": 33,
+ "line": 387,
"column": 7
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 819,
- "end": 904,
+ "value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
+ "start": 14224,
+ "end": 14380,
"loc": {
"start": {
- "line": 35,
+ "line": 391,
"column": 4
},
"end": {
- "line": 39,
+ "line": 395,
"column": 7
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * The name of this icon.\r\n * @private\r\n * @type {string}\r\n ",
- "start": 928,
- "end": 1011,
+ "value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
+ "start": 14591,
+ "end": 14775,
"loc": {
"start": {
- "line": 41,
+ "line": 403,
"column": 4
},
"end": {
- "line": 45,
+ "line": 407,
"column": 7
}
}
},
+ {
+ "type": "CommentLine",
+ "value": " If the state has the same name, return that state",
+ "start": 14855,
+ "end": 14907,
+ "loc": {
+ "start": {
+ "line": 410,
+ "column": 12
+ },
+ "end": {
+ "line": 410,
+ "column": 64
+ }
+ }
+ },
{
"type": "CommentBlock",
- "value": "*\r\n * Creates this icon instance.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
- "start": 1049,
- "end": 1197,
+ "value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
+ "start": 15022,
+ "end": 15152,
"loc": {
"start": {
- "line": 47,
+ "line": 416,
"column": 4
},
"end": {
- "line": 51,
+ "line": 419,
"column": 7
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Swaps the positions of two elements in an array.\r\n * @param {Array} pArray - The array in which to swap elements.\r\n * @param {number} pIndex1 - The index of the first element to swap.\r\n * @param {number} pIndex2 - The index of the second element to swap.\r\n * @returns {void}\r\n ",
- "start": 1272,
- "end": 1583,
+ "value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
+ "start": 15220,
+ "end": 15376,
"loc": {
"start": {
- "line": 55,
+ "line": 423,
"column": 4
},
"end": {
- "line": 61,
+ "line": 427,
"column": 7
}
}
},
+ {
+ "type": "CommentLine",
+ "value": " Loop state array to export relevant information.",
+ "start": 15445,
+ "end": 15496,
+ "loc": {
+ "start": {
+ "line": 430,
+ "column": 8
+ },
+ "end": {
+ "line": 430,
+ "column": 59
+ }
+ }
+ },
{
"type": "CommentBlock",
- "value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
- "start": 1736,
- "end": 1913,
+ "value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
+ "start": 15663,
+ "end": 15851,
"loc": {
"start": {
- "line": 65,
+ "line": 436,
"column": 4
},
"end": {
- "line": 69,
+ "line": 440,
"column": 7
}
}
},
{
"type": "CommentLine",
- "value": " Loop through pIconData and create this icon",
- "start": 1947,
- "end": 1993,
+ "value": " state name",
+ "start": 15915,
+ "end": 15928,
"loc": {
"start": {
- "line": 71,
+ "line": 443,
"column": 8
},
"end": {
- "line": 71,
- "column": 54
+ "line": 443,
+ "column": 21
}
}
},
{
"type": "CommentLine",
- "value": " Set name",
- "start": 2296,
- "end": 2307,
+ "value": " state dataURL",
+ "start": 15978,
+ "end": 15994,
"loc": {
"start": {
- "line": 80,
+ "line": 445,
"column": 8
},
"end": {
- "line": 80,
- "column": 19
+ "line": 445,
+ "column": 24
}
}
},
{
"type": "CommentLine",
- "value": " Set size",
- "start": 2349,
- "end": 2360,
+ "value": " state frame delay",
+ "start": 16047,
+ "end": 16067,
"loc": {
"start": {
- "line": 82,
+ "line": 447,
"column": 8
},
"end": {
- "line": 82,
- "column": 19
+ "line": 447,
+ "column": 28
}
}
},
{
"type": "CommentLine",
- "value": " Set icon delay",
- "start": 2416,
- "end": 2433,
+ "value": " state frame array",
+ "start": 16118,
+ "end": 16138,
"loc": {
"start": {
- "line": 84,
+ "line": 449,
"column": 8
},
"end": {
- "line": 84,
- "column": 25
+ "line": 449,
+ "column": 28
}
}
},
{
"type": "CommentLine",
- "value": " Set dataURL",
- "start": 2478,
- "end": 2492,
+ "value": " Loop frame array to export relevant information.",
+ "start": 16178,
+ "end": 16229,
"loc": {
"start": {
- "line": 86,
+ "line": 452,
"column": 8
},
"end": {
- "line": 86,
- "column": 22
+ "line": 452,
+ "column": 59
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
+ "start": 16374,
+ "end": 16549,
+ "loc": {
+ "start": {
+ "line": 458,
+ "column": 4
+ },
+ "end": {
+ "line": 462,
+ "column": 7
}
}
},
{
"type": "CommentLine",
- "value": " Check if the frame data is an array",
- "start": 2541,
- "end": 2579,
+ "value": " icon name",
+ "start": 16605,
+ "end": 16617,
"loc": {
"start": {
- "line": 88,
+ "line": 465,
"column": 8
},
"end": {
- "line": 88,
- "column": 46
+ "line": 465,
+ "column": 20
}
}
},
{
"type": "CommentLine",
- "value": " If the frame array has data then we need to store it.",
- "start": 2635,
- "end": 2691,
+ "value": " Get the size of this icon.",
+ "start": 16666,
+ "end": 16695,
"loc": {
"start": {
- "line": 90,
- "column": 12
+ "line": 467,
+ "column": 8
},
"end": {
- "line": 90,
- "column": 68
+ "line": 467,
+ "column": 37
}
}
},
{
"type": "CommentLine",
- "value": " pFrame is an array holding the datalURL and frameDelay of the frame",
- "start": 2801,
- "end": 2871,
+ "value": " icon width",
+ "start": 16743,
+ "end": 16756,
"loc": {
"start": {
- "line": 93,
- "column": 20
+ "line": 469,
+ "column": 8
},
"end": {
- "line": 93,
- "column": 90
+ "line": 469,
+ "column": 21
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " icon height",
+ "start": 16801,
+ "end": 16815,
+ "loc": {
+ "start": {
+ "line": 471,
+ "column": 8
+ },
+ "end": {
+ "line": 471,
+ "column": 22
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 16861,
+ "end": 16875,
+ "loc": {
+ "start": {
+ "line": 473,
+ "column": 8
+ },
+ "end": {
+ "line": 473,
+ "column": 22
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " icon DataURL",
+ "start": 16925,
+ "end": 16940,
+ "loc": {
+ "start": {
+ "line": 475,
+ "column": 8
+ },
+ "end": {
+ "line": 475,
+ "column": 23
}
}
},
{
"type": "CommentLine",
- "value": " Check if the states data is an array",
- "start": 2972,
- "end": 3011,
+ "value": " frame array",
+ "start": 16992,
+ "end": 17006,
"loc": {
"start": {
- "line": 98,
+ "line": 477,
"column": 8
},
"end": {
- "line": 98,
- "column": 47
+ "line": 477,
+ "column": 22
}
}
},
{
"type": "CommentLine",
- "value": " If the state array has data then we need to store it.",
- "start": 3067,
- "end": 3123,
+ "value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
+ "start": 17063,
+ "end": 17168,
"loc": {
"start": {
- "line": 100,
- "column": 12
+ "line": 480,
+ "column": 8
},
"end": {
- "line": 100,
- "column": 68
+ "line": 480,
+ "column": 113
}
}
},
{
"type": "CommentLine",
- "value": " Here we create a icon with aggregated data because the state data is not enough to make it an icon.",
- "start": 3233,
- "end": 3335,
+ "value": " this will save data",
+ "start": 17178,
+ "end": 17200,
"loc": {
"start": {
- "line": 103,
- "column": 20
+ "line": 481,
+ "column": 8
},
"end": {
- "line": 103,
- "column": 122
+ "line": 481,
+ "column": 30
}
}
},
{
"type": "CommentLine",
- "value": " We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.",
- "start": 3357,
- "end": 3522,
+ "value": " states array",
+ "start": 17249,
+ "end": 17264,
"loc": {
"start": {
- "line": 104,
- "column": 20
+ "line": 483,
+ "column": 12
},
"end": {
- "line": 104,
- "column": 185
+ "line": 483,
+ "column": 27
}
}
- },
+ }
+ ],
+ "tokens": [
{
- "type": "CommentLine",
- "value": " iconName",
- "start": 3596,
- "end": 3607,
+ "type": {
+ "label": "import",
+ "keyword": "import",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "import",
+ "start": 0,
+ "end": 6,
"loc": {
"start": {
- "line": 106,
- "column": 20
+ "line": 1,
+ "column": 0
},
"end": {
- "line": 106,
- "column": 31
+ "line": 1,
+ "column": 6
}
}
},
{
- "type": "CommentLine",
- "value": " iconWidth",
- "start": 3685,
- "end": 3697,
+ "type": {
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 7,
+ "end": 8,
"loc": {
"start": {
- "line": 108,
- "column": 20
+ "line": 1,
+ "column": 7
},
"end": {
- "line": 108,
- "column": 32
+ "line": 1,
+ "column": 8
}
}
},
{
- "type": "CommentLine",
- "value": " iconHeight",
- "start": 3775,
- "end": 3788,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "VYI",
+ "start": 9,
+ "end": 12,
"loc": {
"start": {
- "line": 110,
- "column": 20
+ "line": 1,
+ "column": 9
},
"end": {
- "line": 110,
- "column": 33
+ "line": 1,
+ "column": 12
}
}
},
{
- "type": "CommentLine",
- "value": " frame delay",
- "start": 3867,
- "end": 3881,
+ "type": {
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 13,
+ "end": 14,
"loc": {
"start": {
- "line": 112,
- "column": 20
+ "line": 1,
+ "column": 13
},
"end": {
- "line": 112,
- "column": 34
+ "line": 1,
+ "column": 14
}
}
},
{
- "type": "CommentLine",
- "value": " iconDataURL",
- "start": 3959,
- "end": 3973,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "from",
+ "start": 15,
+ "end": 19,
"loc": {
"start": {
- "line": 114,
- "column": 20
+ "line": 1,
+ "column": 15
},
"end": {
- "line": 114,
- "column": 34
+ "line": 1,
+ "column": 19
}
}
},
{
- "type": "CommentLine",
- "value": " frame array",
- "start": 4051,
- "end": 4065,
+ "type": {
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "./vyi.mjs",
+ "start": 20,
+ "end": 31,
"loc": {
"start": {
- "line": 116,
+ "line": 1,
"column": 20
},
"end": {
- "line": 116,
- "column": 34
+ "line": 1,
+ "column": 31
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4237,
- "end": 4445,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 31,
+ "end": 32,
"loc": {
"start": {
- "line": 123,
- "column": 4
+ "line": 1,
+ "column": 31
},
"end": {
- "line": 128,
- "column": 7
+ "line": 1,
+ "column": 32
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n ",
- "start": 4671,
- "end": 4822,
+ "type": {
+ "label": "import",
+ "keyword": "import",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "import",
+ "start": 34,
+ "end": 40,
"loc": {
"start": {
- "line": 137,
- "column": 4
+ "line": 2,
+ "column": 0
},
"end": {
- "line": 140,
- "column": 7
+ "line": 2,
+ "column": 6
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4912,
- "end": 5075,
+ "type": {
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 41,
+ "end": 42,
"loc": {
"start": {
- "line": 144,
- "column": 4
+ "line": 2,
+ "column": 7
},
"end": {
- "line": 148,
- "column": 7
+ "line": 2,
+ "column": 8
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 5385,
- "end": 5497,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "Frame",
+ "start": 43,
+ "end": 48,
"loc": {
"start": {
- "line": 159,
- "column": 4
+ "line": 2,
+ "column": 9
},
"end": {
- "line": 162,
- "column": 7
+ "line": 2,
+ "column": 14
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 5560,
- "end": 5724,
+ "type": {
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 49,
+ "end": 50,
"loc": {
"start": {
- "line": 166,
- "column": 4
+ "line": 2,
+ "column": 15
},
"end": {
- "line": 170,
- "column": 7
+ "line": 2,
+ "column": 16
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n ",
- "start": 6019,
- "end": 6118,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "from",
+ "start": 51,
+ "end": 55,
"loc": {
"start": {
- "line": 181,
- "column": 4
+ "line": 2,
+ "column": 17
},
"end": {
- "line": 184,
- "column": 7
+ "line": 2,
+ "column": 21
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6177,
- "end": 6330,
+ "type": {
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "./frame.mjs",
+ "start": 56,
+ "end": 69,
"loc": {
"start": {
- "line": 188,
- "column": 4
+ "line": 2,
+ "column": 22
},
"end": {
- "line": 192,
- "column": 7
+ "line": 2,
+ "column": 35
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n ",
- "start": 6622,
- "end": 6722,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 69,
+ "end": 70,
"loc": {
"start": {
- "line": 203,
- "column": 4
+ "line": 2,
+ "column": 35
},
"end": {
- "line": 206,
- "column": 7
+ "line": 2,
+ "column": 36
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6779,
- "end": 6970,
+ "type": {
+ "label": "export",
+ "keyword": "export",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "export",
+ "start": 74,
+ "end": 80,
"loc": {
"start": {
- "line": 210,
- "column": 4
+ "line": 4,
+ "column": 0
},
"end": {
- "line": 214,
- "column": 7
+ "line": 4,
+ "column": 6
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n ",
- "start": 7359,
- "end": 7586,
+ "type": {
+ "label": "class",
+ "keyword": "class",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "class",
+ "start": 81,
+ "end": 86,
"loc": {
"start": {
- "line": 227,
- "column": 4
+ "line": 4,
+ "column": 7
},
"end": {
- "line": 231,
- "column": 7
+ "line": 4,
+ "column": 12
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 7794,
- "end": 8155,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "Icon",
+ "start": 87,
+ "end": 91,
"loc": {
"start": {
- "line": 239,
- "column": 4
+ "line": 4,
+ "column": 13
},
"end": {
- "line": 244,
- "column": 7
+ "line": 4,
+ "column": 17
}
}
},
{
- "type": "CommentLine",
- "value": " The index used to remove this frame.",
- "start": 8199,
- "end": 8238,
+ "type": {
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 92,
+ "end": 93,
"loc": {
"start": {
- "line": 246,
- "column": 8
+ "line": 4,
+ "column": 18
},
"end": {
- "line": 246,
- "column": 47
+ "line": 4,
+ "column": 19
}
}
},
{
- "type": "CommentLine",
- "value": " Remove via reference to state.",
- "start": 8268,
- "end": 8301,
+ "type": "CommentBlock",
+ "value": "*\r\n * An array of Icon's that are state of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
+ "start": 99,
+ "end": 206,
"loc": {
"start": {
- "line": 248,
- "column": 8
+ "line": 5,
+ "column": 4
},
"end": {
- "line": 248,
- "column": 41
+ "line": 9,
+ "column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " Remove via reference to name",
- "start": 8406,
- "end": 8437,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "states",
+ "start": 212,
+ "end": 218,
"loc": {
"start": {
- "line": 251,
- "column": 8
+ "line": 10,
+ "column": 4
},
"end": {
- "line": 251,
- "column": 39
+ "line": 10,
+ "column": 10
}
}
},
{
- "type": "CommentLine",
- "value": " Remove the state",
- "start": 8821,
- "end": 8840,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 219,
+ "end": 220,
"loc": {
"start": {
- "line": 262,
- "column": 12
+ "line": 10,
+ "column": 11
},
"end": {
- "line": 262,
- "column": 31
+ "line": 10,
+ "column": 12
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n ",
- "start": 8929,
- "end": 9126,
+ "type": {
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 221,
+ "end": 222,
"loc": {
"start": {
- "line": 267,
- "column": 4
+ "line": 10,
+ "column": 13
},
"end": {
- "line": 271,
- "column": 7
+ "line": 10,
+ "column": 14
}
}
},
{
- "type": "CommentLine",
- "value": " Add the frame to the frames array.",
- "start": 9302,
- "end": 9339,
+ "type": {
+ "label": "]",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 222,
+ "end": 223,
"loc": {
"start": {
- "line": 276,
- "column": 16
+ "line": 10,
+ "column": 14
},
"end": {
- "line": 276,
- "column": 53
+ "line": 10,
+ "column": 15
}
}
},
{
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 9399,
- "end": 9432,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 223,
+ "end": 224,
"loc": {
"start": {
- "line": 278,
- "column": 16
+ "line": 10,
+ "column": 15
},
"end": {
- "line": 278,
- "column": 49
+ "line": 10,
+ "column": 16
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 9742,
- "end": 10149,
+ "value": "*\r\n * An arary of Frame's that are the frames of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
+ "start": 230,
+ "end": 343,
"loc": {
"start": {
- "line": 288,
+ "line": 11,
"column": 4
},
"end": {
- "line": 293,
+ "line": 15,
"column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " The index used to remove this frame.",
- "start": 10194,
- "end": 10233,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "frames",
+ "start": 349,
+ "end": 355,
"loc": {
"start": {
- "line": 295,
- "column": 8
+ "line": 16,
+ "column": 4
},
"end": {
- "line": 295,
- "column": 47
+ "line": 16,
+ "column": 10
}
}
},
{
- "type": "CommentLine",
- "value": " Remove via reference to frame.",
- "start": 10263,
- "end": 10296,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 356,
+ "end": 357,
"loc": {
"start": {
- "line": 297,
- "column": 8
+ "line": 16,
+ "column": 11
},
"end": {
- "line": 297,
- "column": 41
+ "line": 16,
+ "column": 12
}
}
},
{
- "type": "CommentLine",
- "value": " Remove via index passed.",
- "start": 10401,
- "end": 10428,
+ "type": {
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 358,
+ "end": 359,
"loc": {
"start": {
- "line": 300,
- "column": 8
+ "line": 16,
+ "column": 13
},
"end": {
- "line": 300,
- "column": 35
+ "line": 16,
+ "column": 14
}
}
},
{
- "type": "CommentLine",
- "value": " Remove the frame",
- "start": 10944,
- "end": 10963,
+ "type": {
+ "label": "]",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 359,
+ "end": 360,
"loc": {
"start": {
- "line": 314,
- "column": 12
+ "line": 16,
+ "column": 14
},
"end": {
- "line": 314,
- "column": 31
+ "line": 16,
+ "column": 15
}
}
},
{
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 11020,
- "end": 11053,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 360,
+ "end": 361,
"loc": {
"start": {
- "line": 316,
- "column": 12
+ "line": 16,
+ "column": 15
},
"end": {
- "line": 316,
- "column": 45
+ "line": 16,
+ "column": 16
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
- "start": 11132,
- "end": 11196,
+ "value": "*\r\n * The width of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 367,
+ "end": 508,
"loc": {
"start": {
- "line": 321,
+ "line": 17,
"column": 4
},
"end": {
- "line": 324,
+ "line": 21,
"column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " Reorder the frames after removing.",
- "start": 11227,
- "end": 11264,
- "loc": {
- "start": {
- "line": 326,
- "column": 8
- },
- "end": {
- "line": 326,
- "column": 45
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 11377,
- "end": 11694,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "width",
+ "start": 514,
+ "end": 519,
"loc": {
"start": {
- "line": 331,
+ "line": 22,
"column": 4
},
"end": {
- "line": 336,
- "column": 7
+ "line": 22,
+ "column": 9
}
}
},
{
- "type": "CommentLine",
- "value": " We check if there is a valid frame at the current index and at the index we want to swap with.",
- "start": 11833,
- "end": 11930,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 520,
+ "end": 521,
"loc": {
"start": {
- "line": 339,
- "column": 12
+ "line": 22,
+ "column": 10
},
"end": {
- "line": 339,
- "column": 109
+ "line": 22,
+ "column": 11
}
}
},
{
- "type": "CommentLine",
- "value": " Swaps the frames",
- "start": 12018,
- "end": 12037,
+ "type": {
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": 32,
+ "start": 522,
+ "end": 524,
"loc": {
"start": {
- "line": 341,
- "column": 16
+ "line": 22,
+ "column": 12
},
"end": {
- "line": 341,
- "column": 35
+ "line": 22,
+ "column": 14
}
}
},
{
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 12132,
- "end": 12165,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 524,
+ "end": 525,
"loc": {
"start": {
- "line": 343,
- "column": 16
+ "line": 22,
+ "column": 14
},
"end": {
- "line": 343,
- "column": 49
+ "line": 22,
+ "column": 15
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Gets the frame existing at pIndex.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
- "start": 12518,
- "end": 12699,
+ "value": "*\r\n * The height of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 531,
+ "end": 673,
"loc": {
"start": {
- "line": 353,
+ "line": 23,
"column": 4
},
"end": {
- "line": 357,
+ "line": 27,
"column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.",
- "start": 12733,
- "end": 12827,
- "loc": {
- "start": {
- "line": 359,
- "column": 8
- },
- "end": {
- "line": 359,
- "column": 102
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
- "start": 13028,
- "end": 13158,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "height",
+ "start": 679,
+ "end": 685,
"loc": {
"start": {
- "line": 366,
+ "line": 28,
"column": 4
},
"end": {
- "line": 369,
- "column": 7
+ "line": 28,
+ "column": 10
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
- "start": 13226,
- "end": 13382,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 686,
+ "end": 687,
"loc": {
"start": {
- "line": 373,
- "column": 4
+ "line": 28,
+ "column": 11
},
"end": {
- "line": 377,
- "column": 7
+ "line": 28,
+ "column": 12
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
- "start": 13593,
- "end": 13777,
+ "type": {
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": 32,
+ "start": 688,
+ "end": 690,
"loc": {
"start": {
- "line": 385,
- "column": 4
+ "line": 28,
+ "column": 13
},
"end": {
- "line": 389,
- "column": 7
+ "line": 28,
+ "column": 15
}
}
},
{
- "type": "CommentLine",
- "value": " If the state has the same name, return that state",
- "start": 13857,
- "end": 13909,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 690,
+ "end": 691,
"loc": {
"start": {
- "line": 392,
- "column": 12
+ "line": 28,
+ "column": 15
},
"end": {
- "line": 392,
- "column": 64
+ "line": 28,
+ "column": 16
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
- "start": 14024,
- "end": 14154,
+ "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
+ "start": 697,
+ "end": 799,
"loc": {
"start": {
- "line": 398,
+ "line": 29,
"column": 4
},
"end": {
- "line": 401,
+ "line": 33,
"column": 7
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
- "start": 14222,
- "end": 14378,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "dataURL",
+ "start": 805,
+ "end": 812,
"loc": {
"start": {
- "line": 405,
+ "line": 34,
"column": 4
},
"end": {
- "line": 409,
- "column": 7
+ "line": 34,
+ "column": 11
}
}
},
{
- "type": "CommentLine",
- "value": " Loop state array to export relevant information.",
- "start": 14447,
- "end": 14498,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 812,
+ "end": 813,
"loc": {
"start": {
- "line": 412,
- "column": 8
+ "line": 34,
+ "column": 11
},
"end": {
- "line": 412,
- "column": 59
+ "line": 34,
+ "column": 12
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
- "start": 14665,
- "end": 14853,
+ "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
+ "start": 819,
+ "end": 904,
"loc": {
"start": {
- "line": 418,
+ "line": 35,
"column": 4
},
"end": {
- "line": 422,
+ "line": 39,
"column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " state name",
- "start": 14917,
- "end": 14930,
- "loc": {
- "start": {
- "line": 425,
- "column": 8
- },
- "end": {
- "line": 425,
- "column": 21
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " state dataURL",
- "start": 14980,
- "end": 14996,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "delay",
+ "start": 910,
+ "end": 915,
"loc": {
"start": {
- "line": 427,
- "column": 8
+ "line": 40,
+ "column": 4
},
"end": {
- "line": 427,
- "column": 24
+ "line": 40,
+ "column": 9
}
}
},
{
- "type": "CommentLine",
- "value": " state frame delay",
- "start": 15049,
- "end": 15069,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 916,
+ "end": 917,
"loc": {
"start": {
- "line": 429,
- "column": 8
+ "line": 40,
+ "column": 10
},
"end": {
- "line": 429,
- "column": 28
+ "line": 40,
+ "column": 11
}
}
},
{
- "type": "CommentLine",
- "value": " state frame array",
- "start": 15120,
- "end": 15140,
+ "type": {
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": 100,
+ "start": 918,
+ "end": 921,
"loc": {
"start": {
- "line": 431,
- "column": 8
+ "line": 40,
+ "column": 12
},
"end": {
- "line": 431,
- "column": 28
+ "line": 40,
+ "column": 15
}
}
},
{
- "type": "CommentLine",
- "value": " Loop frame array to export relevant information.",
- "start": 15180,
- "end": 15231,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 921,
+ "end": 922,
"loc": {
"start": {
- "line": 434,
- "column": 8
+ "line": 40,
+ "column": 15
},
"end": {
- "line": 434,
- "column": 59
+ "line": 40,
+ "column": 16
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
- "start": 15376,
- "end": 15551,
+ "value": "*\r\n * The name of this icon.\r\n * @private\r\n * @type {string}\r\n ",
+ "start": 928,
+ "end": 1011,
"loc": {
"start": {
- "line": 440,
+ "line": 41,
"column": 4
},
"end": {
- "line": 444,
+ "line": 45,
"column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " icon name",
- "start": 15607,
- "end": 15619,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "name",
+ "start": 1017,
+ "end": 1021,
"loc": {
"start": {
- "line": 447,
- "column": 8
+ "line": 46,
+ "column": 4
},
"end": {
- "line": 447,
- "column": 20
+ "line": 46,
+ "column": 8
}
}
},
{
- "type": "CommentLine",
- "value": " Get the size of this icon.",
- "start": 15668,
- "end": 15697,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 1022,
+ "end": 1023,
"loc": {
"start": {
- "line": 449,
- "column": 8
+ "line": 46,
+ "column": 9
},
"end": {
- "line": 449,
- "column": 37
+ "line": 46,
+ "column": 10
}
}
},
{
- "type": "CommentLine",
- "value": " icon width",
- "start": 15745,
- "end": 15758,
+ "type": {
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "rename-this-icon",
+ "start": 1024,
+ "end": 1042,
"loc": {
"start": {
- "line": 451,
- "column": 8
+ "line": 46,
+ "column": 11
},
"end": {
- "line": 451,
- "column": 21
+ "line": 46,
+ "column": 29
}
}
},
{
- "type": "CommentLine",
- "value": " icon height",
- "start": 15803,
- "end": 15817,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 1042,
+ "end": 1043,
"loc": {
"start": {
- "line": 453,
- "column": 8
+ "line": 46,
+ "column": 29
},
"end": {
- "line": 453,
- "column": 22
+ "line": 46,
+ "column": 30
}
}
},
{
- "type": "CommentLine",
- "value": " frame delay",
- "start": 15863,
- "end": 15877,
+ "type": "CommentBlock",
+ "value": "*\r\n * Creates this icon instance.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
+ "start": 1049,
+ "end": 1197,
"loc": {
"start": {
- "line": 455,
- "column": 8
+ "line": 47,
+ "column": 4
},
"end": {
- "line": 455,
- "column": 22
+ "line": 51,
+ "column": 7
}
}
},
{
- "type": "CommentLine",
- "value": " icon DataURL",
- "start": 15927,
- "end": 15942,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "constructor",
+ "start": 1203,
+ "end": 1214,
"loc": {
"start": {
- "line": 457,
- "column": 8
+ "line": 52,
+ "column": 4
},
"end": {
- "line": 457,
- "column": 23
+ "line": 52,
+ "column": 15
}
}
},
{
- "type": "CommentLine",
- "value": " frame array",
- "start": 15994,
- "end": 16008,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 1214,
+ "end": 1215,
"loc": {
"start": {
- "line": 459,
- "column": 8
+ "line": 52,
+ "column": 15
},
"end": {
- "line": 459,
- "column": 22
+ "line": 52,
+ "column": 16
}
}
},
{
- "type": "CommentLine",
- "value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
- "start": 16065,
- "end": 16170,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "pIconData",
+ "start": 1215,
+ "end": 1224,
"loc": {
"start": {
- "line": 462,
- "column": 8
+ "line": 52,
+ "column": 16
},
"end": {
- "line": 462,
- "column": 113
+ "line": 52,
+ "column": 25
}
}
},
{
- "type": "CommentLine",
- "value": " this will save data",
- "start": 16180,
- "end": 16202,
+ "type": {
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 1224,
+ "end": 1225,
"loc": {
"start": {
- "line": 463,
- "column": 8
+ "line": 52,
+ "column": 25
},
"end": {
- "line": 463,
- "column": 30
+ "line": 52,
+ "column": 26
}
}
},
{
- "type": "CommentLine",
- "value": " states array",
- "start": 16251,
- "end": 16266,
+ "type": {
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 1226,
+ "end": 1227,
"loc": {
"start": {
- "line": 465,
- "column": 12
+ "line": 52,
+ "column": 27
},
"end": {
- "line": 465,
- "column": 27
+ "line": 52,
+ "column": 28
}
}
- }
- ],
- "tokens": [
+ },
{
"type": {
- "label": "import",
- "keyword": "import",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -22726,42 +25254,43 @@
"binop": null,
"updateContext": null
},
- "value": "import",
- "start": 0,
- "end": 6,
+ "value": "this",
+ "start": 1237,
+ "end": 1241,
"loc": {
"start": {
- "line": 1,
- "column": 0
+ "line": 53,
+ "column": 8
},
"end": {
- "line": 1,
- "column": 6
+ "line": 53,
+ "column": 12
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7,
- "end": 8,
+ "start": 1241,
+ "end": 1242,
"loc": {
"start": {
- "line": 1,
- "column": 7
+ "line": 53,
+ "column": 12
},
"end": {
- "line": 1,
- "column": 8
+ "line": 53,
+ "column": 13
}
}
},
@@ -22777,25 +25306,25 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 9,
- "end": 12,
+ "value": "parse",
+ "start": 1242,
+ "end": 1247,
"loc": {
"start": {
- "line": 1,
- "column": 9
+ "line": 53,
+ "column": 13
},
"end": {
- "line": 1,
- "column": 12
+ "line": 53,
+ "column": 18
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -22803,16 +25332,16 @@
"postfix": false,
"binop": null
},
- "start": 13,
- "end": 14,
+ "start": 1247,
+ "end": 1248,
"loc": {
"start": {
- "line": 1,
- "column": 13
+ "line": 53,
+ "column": 18
},
"end": {
- "line": 1,
- "column": 14
+ "line": 53,
+ "column": 19
}
}
},
@@ -22828,44 +25357,42 @@
"postfix": false,
"binop": null
},
- "value": "from",
- "start": 15,
- "end": 19,
+ "value": "pIconData",
+ "start": 1248,
+ "end": 1257,
"loc": {
"start": {
- "line": 1,
- "column": 15
+ "line": 53,
+ "column": 19
},
"end": {
- "line": 1,
- "column": 19
+ "line": 53,
+ "column": 28
}
}
},
{
"type": {
- "label": "string",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "./vyi.mjs",
- "start": 20,
- "end": 31,
+ "start": 1257,
+ "end": 1258,
"loc": {
"start": {
- "line": 1,
- "column": 20
+ "line": 53,
+ "column": 28
},
"end": {
- "line": 1,
- "column": 31
+ "line": 53,
+ "column": 29
}
}
},
@@ -22882,69 +25409,57 @@
"binop": null,
"updateContext": null
},
- "start": 31,
- "end": 32,
+ "start": 1258,
+ "end": 1259,
"loc": {
"start": {
- "line": 1,
- "column": 31
+ "line": 53,
+ "column": 29
},
"end": {
- "line": 1,
- "column": 32
+ "line": 53,
+ "column": 30
}
}
},
{
"type": {
- "label": "import",
- "keyword": "import",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "import",
- "start": 34,
- "end": 40,
+ "start": 1265,
+ "end": 1266,
"loc": {
"start": {
- "line": 2,
- "column": 0
+ "line": 54,
+ "column": 4
},
"end": {
- "line": 2,
- "column": 6
+ "line": 54,
+ "column": 5
}
}
},
{
- "type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 41,
- "end": 42,
+ "type": "CommentBlock",
+ "value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
+ "start": 1272,
+ "end": 1449,
"loc": {
"start": {
- "line": 2,
- "column": 7
+ "line": 55,
+ "column": 4
},
"end": {
- "line": 2,
- "column": 8
+ "line": 59,
+ "column": 7
}
}
},
@@ -22960,25 +25475,25 @@
"postfix": false,
"binop": null
},
- "value": "Frame",
- "start": 43,
- "end": 48,
+ "value": "parse",
+ "start": 1455,
+ "end": 1460,
"loc": {
"start": {
- "line": 2,
- "column": 9
+ "line": 60,
+ "column": 4
},
"end": {
- "line": 2,
- "column": 14
+ "line": 60,
+ "column": 9
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -22986,16 +25501,16 @@
"postfix": false,
"binop": null
},
- "start": 49,
- "end": 50,
+ "start": 1460,
+ "end": 1461,
"loc": {
"start": {
- "line": 2,
- "column": 15
+ "line": 60,
+ "column": 9
},
"end": {
- "line": 2,
- "column": 16
+ "line": 60,
+ "column": 10
}
}
},
@@ -23011,105 +25526,90 @@
"postfix": false,
"binop": null
},
- "value": "from",
- "start": 51,
- "end": 55,
+ "value": "pIconData",
+ "start": 1461,
+ "end": 1470,
"loc": {
"start": {
- "line": 2,
- "column": 17
+ "line": 60,
+ "column": 10
},
"end": {
- "line": 2,
- "column": 21
+ "line": 60,
+ "column": 19
}
}
},
{
"type": {
- "label": "string",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "./frame.mjs",
- "start": 56,
- "end": 69,
+ "start": 1470,
+ "end": 1471,
"loc": {
"start": {
- "line": 2,
- "column": 22
+ "line": 60,
+ "column": 19
},
"end": {
- "line": 2,
- "column": 35
+ "line": 60,
+ "column": 20
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 69,
- "end": 70,
+ "start": 1472,
+ "end": 1473,
"loc": {
"start": {
- "line": 2,
- "column": 35
+ "line": 60,
+ "column": 21
},
"end": {
- "line": 2,
- "column": 36
+ "line": 60,
+ "column": 22
}
}
},
{
- "type": {
- "label": "export",
- "keyword": "export",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "export",
- "start": 74,
- "end": 80,
+ "type": "CommentLine",
+ "value": " Loop through pIconData and create this icon",
+ "start": 1483,
+ "end": 1529,
"loc": {
"start": {
- "line": 4,
- "column": 0
+ "line": 61,
+ "column": 8
},
"end": {
- "line": 4,
- "column": 6
+ "line": 61,
+ "column": 54
}
}
},
{
"type": {
- "label": "class",
- "keyword": "class",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -23120,17 +25620,17 @@
"binop": null,
"updateContext": null
},
- "value": "class",
- "start": 81,
- "end": 86,
+ "value": "const",
+ "start": 1539,
+ "end": 1544,
"loc": {
"start": {
- "line": 4,
- "column": 7
+ "line": 62,
+ "column": 8
},
"end": {
- "line": 4,
- "column": 12
+ "line": 62,
+ "column": 13
}
}
},
@@ -23146,58 +25646,44 @@
"postfix": false,
"binop": null
},
- "value": "Icon",
- "start": 87,
- "end": 91,
+ "value": "iconName",
+ "start": 1545,
+ "end": 1553,
"loc": {
"start": {
- "line": 4,
- "column": 13
+ "line": 62,
+ "column": 14
},
"end": {
- "line": 4,
- "column": 17
+ "line": 62,
+ "column": 22
}
}
},
{
"type": {
- "label": "{",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 92,
- "end": 93,
- "loc": {
- "start": {
- "line": 4,
- "column": 18
- },
- "end": {
- "line": 4,
- "column": 19
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * An array of Icon's that are state of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
- "start": 99,
- "end": 206,
+ "value": "=",
+ "start": 1554,
+ "end": 1555,
"loc": {
"start": {
- "line": 5,
- "column": 4
+ "line": 62,
+ "column": 23
},
"end": {
- "line": 9,
- "column": 7
+ "line": 62,
+ "column": 24
}
}
},
@@ -23213,51 +25699,50 @@
"postfix": false,
"binop": null
},
- "value": "states",
- "start": 212,
- "end": 218,
+ "value": "pIconData",
+ "start": 1556,
+ "end": 1565,
"loc": {
"start": {
- "line": 10,
- "column": 4
+ "line": 62,
+ "column": 25
},
"end": {
- "line": 10,
- "column": 10
+ "line": 62,
+ "column": 34
}
}
},
{
"type": {
- "label": "=",
+ "label": "[",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 219,
- "end": 220,
+ "start": 1565,
+ "end": 1566,
"loc": {
"start": {
- "line": 10,
- "column": 11
+ "line": 62,
+ "column": 34
},
"end": {
- "line": 10,
- "column": 12
+ "line": 62,
+ "column": 35
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "num",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -23267,16 +25752,17 @@
"binop": null,
"updateContext": null
},
- "start": 221,
- "end": 222,
+ "value": 0,
+ "start": 1566,
+ "end": 1567,
"loc": {
"start": {
- "line": 10,
- "column": 13
+ "line": 62,
+ "column": 35
},
"end": {
- "line": 10,
- "column": 14
+ "line": 62,
+ "column": 36
}
}
},
@@ -23293,16 +25779,16 @@
"binop": null,
"updateContext": null
},
- "start": 222,
- "end": 223,
+ "start": 1567,
+ "end": 1568,
"loc": {
"start": {
- "line": 10,
- "column": 14
+ "line": 62,
+ "column": 36
},
"end": {
- "line": 10,
- "column": 15
+ "line": 62,
+ "column": 37
}
}
},
@@ -23319,32 +25805,44 @@
"binop": null,
"updateContext": null
},
- "start": 223,
- "end": 224,
+ "start": 1568,
+ "end": 1569,
"loc": {
"start": {
- "line": 10,
- "column": 15
+ "line": 62,
+ "column": 37
},
"end": {
- "line": 10,
- "column": 16
+ "line": 62,
+ "column": 38
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * An arary of Frame's that are the frames of this icon.\r\n * @private\r\n * @type {Array}\r\n ",
- "start": 230,
- "end": 343,
+ "type": {
+ "label": "const",
+ "keyword": "const",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "const",
+ "start": 1579,
+ "end": 1584,
"loc": {
"start": {
- "line": 11,
- "column": 4
+ "line": 63,
+ "column": 8
},
"end": {
- "line": 15,
- "column": 7
+ "line": 63,
+ "column": 13
}
}
},
@@ -23360,17 +25858,17 @@
"postfix": false,
"binop": null
},
- "value": "frames",
- "start": 349,
- "end": 355,
+ "value": "iconWidth",
+ "start": 1585,
+ "end": 1594,
"loc": {
"start": {
- "line": 16,
- "column": 4
+ "line": 63,
+ "column": 14
},
"end": {
- "line": 16,
- "column": 10
+ "line": 63,
+ "column": 23
}
}
},
@@ -23388,50 +25886,50 @@
"updateContext": null
},
"value": "=",
- "start": 356,
- "end": 357,
+ "start": 1595,
+ "end": 1596,
"loc": {
"start": {
- "line": 16,
- "column": 11
+ "line": 63,
+ "column": 24
},
"end": {
- "line": 16,
- "column": 12
+ "line": 63,
+ "column": 25
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 358,
- "end": 359,
+ "value": "pIconData",
+ "start": 1597,
+ "end": 1606,
"loc": {
"start": {
- "line": 16,
- "column": 13
+ "line": 63,
+ "column": 26
},
"end": {
- "line": 16,
- "column": 14
+ "line": 63,
+ "column": 35
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -23440,24 +25938,24 @@
"binop": null,
"updateContext": null
},
- "start": 359,
- "end": 360,
+ "start": 1606,
+ "end": 1607,
"loc": {
"start": {
- "line": 16,
- "column": 14
+ "line": 63,
+ "column": 35
},
"end": {
- "line": 16,
- "column": 15
+ "line": 63,
+ "column": 36
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -23466,93 +25964,78 @@
"binop": null,
"updateContext": null
},
- "start": 360,
- "end": 361,
- "loc": {
- "start": {
- "line": 16,
- "column": 15
- },
- "end": {
- "line": 16,
- "column": 16
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The width of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 367,
- "end": 508,
+ "value": 1,
+ "start": 1607,
+ "end": 1608,
"loc": {
"start": {
- "line": 17,
- "column": 4
+ "line": 63,
+ "column": 36
},
"end": {
- "line": 21,
- "column": 7
+ "line": 63,
+ "column": 37
}
}
},
{
"type": {
- "label": "name",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "width",
- "start": 514,
- "end": 519,
+ "start": 1608,
+ "end": 1609,
"loc": {
"start": {
- "line": 22,
- "column": 4
+ "line": 63,
+ "column": 37
},
"end": {
- "line": 22,
- "column": 9
+ "line": 63,
+ "column": 38
}
}
},
{
"type": {
- "label": "=",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 520,
- "end": 521,
+ "start": 1609,
+ "end": 1610,
"loc": {
"start": {
- "line": 22,
- "column": 10
+ "line": 63,
+ "column": 38
},
"end": {
- "line": 22,
- "column": 11
+ "line": 63,
+ "column": 39
}
}
},
{
"type": {
- "label": "num",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -23561,59 +26044,70 @@
"binop": null,
"updateContext": null
},
- "value": 32,
- "start": 522,
- "end": 524,
+ "value": "const",
+ "start": 1620,
+ "end": 1625,
"loc": {
"start": {
- "line": 22,
- "column": 12
+ "line": 64,
+ "column": 8
},
"end": {
- "line": 22,
- "column": 14
+ "line": 64,
+ "column": 13
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 524,
- "end": 525,
+ "value": "iconHeight",
+ "start": 1626,
+ "end": 1636,
"loc": {
"start": {
- "line": 22,
+ "line": 64,
"column": 14
},
"end": {
- "line": 22,
- "column": 15
+ "line": 64,
+ "column": 24
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * The height of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 531,
- "end": 673,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 1637,
+ "end": 1638,
"loc": {
"start": {
- "line": 23,
- "column": 4
+ "line": 64,
+ "column": 25
},
"end": {
- "line": 27,
- "column": 7
+ "line": 64,
+ "column": 26
}
}
},
@@ -23629,44 +26123,43 @@
"postfix": false,
"binop": null
},
- "value": "height",
- "start": 679,
- "end": 685,
+ "value": "pIconData",
+ "start": 1639,
+ "end": 1648,
"loc": {
"start": {
- "line": 28,
- "column": 4
+ "line": 64,
+ "column": 27
},
"end": {
- "line": 28,
- "column": 10
+ "line": 64,
+ "column": 36
}
}
},
{
"type": {
- "label": "=",
+ "label": "[",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 686,
- "end": 687,
+ "start": 1648,
+ "end": 1649,
"loc": {
"start": {
- "line": 28,
- "column": 11
+ "line": 64,
+ "column": 36
},
"end": {
- "line": 28,
- "column": 12
+ "line": 64,
+ "column": 37
}
}
},
@@ -23683,24 +26176,24 @@
"binop": null,
"updateContext": null
},
- "value": 32,
- "start": 688,
- "end": 690,
+ "value": 2,
+ "start": 1649,
+ "end": 1650,
"loc": {
"start": {
- "line": 28,
- "column": 13
+ "line": 64,
+ "column": 37
},
"end": {
- "line": 28,
- "column": 15
+ "line": 64,
+ "column": 38
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": "]",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -23710,65 +26203,50 @@
"binop": null,
"updateContext": null
},
- "start": 690,
- "end": 691,
- "loc": {
- "start": {
- "line": 28,
- "column": 15
- },
- "end": {
- "line": 28,
- "column": 16
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n ",
- "start": 697,
- "end": 799,
+ "start": 1650,
+ "end": 1651,
"loc": {
"start": {
- "line": 29,
- "column": 4
+ "line": 64,
+ "column": 38
},
"end": {
- "line": 33,
- "column": 7
+ "line": 64,
+ "column": 39
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "dataURL",
- "start": 805,
- "end": 812,
+ "start": 1651,
+ "end": 1652,
"loc": {
"start": {
- "line": 34,
- "column": 4
+ "line": 64,
+ "column": 39
},
"end": {
- "line": 34,
- "column": 11
+ "line": 64,
+ "column": 40
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": "const",
+ "keyword": "const",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -23778,32 +26256,17 @@
"binop": null,
"updateContext": null
},
- "start": 812,
- "end": 813,
- "loc": {
- "start": {
- "line": 34,
- "column": 11
- },
- "end": {
- "line": 34,
- "column": 12
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n ",
- "start": 819,
- "end": 904,
+ "value": "const",
+ "start": 1662,
+ "end": 1667,
"loc": {
"start": {
- "line": 35,
- "column": 4
+ "line": 65,
+ "column": 8
},
"end": {
- "line": 39,
- "column": 7
+ "line": 65,
+ "column": 13
}
}
},
@@ -23819,17 +26282,17 @@
"postfix": false,
"binop": null
},
- "value": "delay",
- "start": 910,
- "end": 915,
+ "value": "iconDelay",
+ "start": 1668,
+ "end": 1677,
"loc": {
"start": {
- "line": 40,
- "column": 4
+ "line": 65,
+ "column": 14
},
"end": {
- "line": 40,
- "column": 9
+ "line": 65,
+ "column": 23
}
}
},
@@ -23847,22 +26310,22 @@
"updateContext": null
},
"value": "=",
- "start": 916,
- "end": 917,
+ "start": 1678,
+ "end": 1679,
"loc": {
"start": {
- "line": 40,
- "column": 10
+ "line": 65,
+ "column": 24
},
"end": {
- "line": 40,
- "column": 11
+ "line": 65,
+ "column": 25
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -23870,28 +26333,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 100,
- "start": 918,
- "end": 921,
+ "value": "pIconData",
+ "start": 1680,
+ "end": 1689,
"loc": {
"start": {
- "line": 40,
- "column": 12
+ "line": 65,
+ "column": 26
},
"end": {
- "line": 40,
- "column": 15
+ "line": 65,
+ "column": 35
}
}
},
{
"type": {
- "label": ";",
+ "label": "[",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -23900,38 +26362,22 @@
"binop": null,
"updateContext": null
},
- "start": 921,
- "end": 922,
- "loc": {
- "start": {
- "line": 40,
- "column": 15
- },
- "end": {
- "line": 40,
- "column": 16
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * The name of this icon.\r\n * @private\r\n * @type {string}\r\n ",
- "start": 928,
- "end": 1011,
+ "start": 1689,
+ "end": 1690,
"loc": {
"start": {
- "line": 41,
- "column": 4
+ "line": 65,
+ "column": 35
},
"end": {
- "line": 45,
- "column": 7
+ "line": 65,
+ "column": 36
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -23939,54 +26385,54 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "name",
- "start": 1017,
- "end": 1021,
+ "value": 3,
+ "start": 1690,
+ "end": 1691,
"loc": {
"start": {
- "line": 46,
- "column": 4
+ "line": 65,
+ "column": 36
},
"end": {
- "line": 46,
- "column": 8
+ "line": 65,
+ "column": 37
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": "]",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 1022,
- "end": 1023,
+ "start": 1691,
+ "end": 1692,
"loc": {
"start": {
- "line": 46,
- "column": 9
+ "line": 65,
+ "column": 37
},
"end": {
- "line": 46,
- "column": 10
+ "line": 65,
+ "column": 38
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -23995,24 +26441,24 @@
"binop": null,
"updateContext": null
},
- "value": "rename-this-icon",
- "start": 1024,
- "end": 1042,
+ "start": 1692,
+ "end": 1693,
"loc": {
"start": {
- "line": 46,
- "column": 11
+ "line": 65,
+ "column": 38
},
"end": {
- "line": 46,
- "column": 29
+ "line": 65,
+ "column": 39
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": "const",
+ "keyword": "const",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -24022,32 +26468,17 @@
"binop": null,
"updateContext": null
},
- "start": 1042,
- "end": 1043,
- "loc": {
- "start": {
- "line": 46,
- "column": 29
- },
- "end": {
- "line": 46,
- "column": 30
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Creates this icon instance.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
- "start": 1049,
- "end": 1197,
+ "value": "const",
+ "start": 1703,
+ "end": 1708,
"loc": {
"start": {
- "line": 47,
- "column": 4
+ "line": 66,
+ "column": 8
},
"end": {
- "line": 51,
- "column": 7
+ "line": 66,
+ "column": 13
}
}
},
@@ -24063,42 +26494,44 @@
"postfix": false,
"binop": null
},
- "value": "constructor",
- "start": 1203,
- "end": 1214,
+ "value": "iconDataURL",
+ "start": 1709,
+ "end": 1720,
"loc": {
"start": {
- "line": 52,
- "column": 4
+ "line": 66,
+ "column": 14
},
"end": {
- "line": 52,
- "column": 15
+ "line": 66,
+ "column": 25
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1214,
- "end": 1215,
+ "value": "=",
+ "start": 1721,
+ "end": 1722,
"loc": {
"start": {
- "line": 52,
- "column": 15
+ "line": 66,
+ "column": 26
},
"end": {
- "line": 52,
- "column": 16
+ "line": 66,
+ "column": 27
}
}
},
@@ -24115,75 +26548,77 @@
"binop": null
},
"value": "pIconData",
- "start": 1215,
- "end": 1224,
+ "start": 1723,
+ "end": 1732,
"loc": {
"start": {
- "line": 52,
- "column": 16
+ "line": 66,
+ "column": 28
},
"end": {
- "line": 52,
- "column": 25
+ "line": 66,
+ "column": 37
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1224,
- "end": 1225,
+ "start": 1732,
+ "end": 1733,
"loc": {
"start": {
- "line": 52,
- "column": 25
+ "line": 66,
+ "column": 37
},
"end": {
- "line": 52,
- "column": 26
+ "line": 66,
+ "column": 38
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "num",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1226,
- "end": 1227,
+ "value": 4,
+ "start": 1733,
+ "end": 1734,
"loc": {
"start": {
- "line": 52,
- "column": 27
+ "line": 66,
+ "column": 38
},
"end": {
- "line": 52,
- "column": 28
+ "line": 66,
+ "column": 39
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -24192,23 +26627,49 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 1237,
- "end": 1241,
+ "start": 1734,
+ "end": 1735,
"loc": {
"start": {
- "line": 53,
- "column": 8
+ "line": 66,
+ "column": 39
},
"end": {
- "line": 53,
- "column": 12
+ "line": 66,
+ "column": 40
}
}
},
{
"type": {
- "label": ".",
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 1735,
+ "end": 1736,
+ "loc": {
+ "start": {
+ "line": 66,
+ "column": 40
+ },
+ "end": {
+ "line": 66,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -24219,15 +26680,16 @@
"binop": null,
"updateContext": null
},
- "start": 1241,
- "end": 1242,
+ "value": "const",
+ "start": 1746,
+ "end": 1751,
"loc": {
"start": {
- "line": 53,
- "column": 12
+ "line": 67,
+ "column": 8
},
"end": {
- "line": 53,
+ "line": 67,
"column": 13
}
}
@@ -24244,42 +26706,44 @@
"postfix": false,
"binop": null
},
- "value": "parse",
- "start": 1242,
- "end": 1247,
+ "value": "frameArray",
+ "start": 1752,
+ "end": 1762,
"loc": {
"start": {
- "line": 53,
- "column": 13
+ "line": 67,
+ "column": 14
},
"end": {
- "line": 53,
- "column": 18
+ "line": 67,
+ "column": 24
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1247,
- "end": 1248,
+ "value": "=",
+ "start": 1763,
+ "end": 1764,
"loc": {
"start": {
- "line": 53,
- "column": 18
+ "line": 67,
+ "column": 25
},
"end": {
- "line": 53,
- "column": 19
+ "line": 67,
+ "column": 26
}
}
},
@@ -24296,49 +26760,50 @@
"binop": null
},
"value": "pIconData",
- "start": 1248,
- "end": 1257,
+ "start": 1765,
+ "end": 1774,
"loc": {
"start": {
- "line": 53,
- "column": 19
+ "line": 67,
+ "column": 27
},
"end": {
- "line": 53,
- "column": 28
+ "line": 67,
+ "column": 36
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1257,
- "end": 1258,
+ "start": 1774,
+ "end": 1775,
"loc": {
"start": {
- "line": 53,
- "column": 28
+ "line": 67,
+ "column": 36
},
"end": {
- "line": 53,
- "column": 29
+ "line": 67,
+ "column": 37
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -24347,22 +26812,23 @@
"binop": null,
"updateContext": null
},
- "start": 1258,
- "end": 1259,
+ "value": 5,
+ "start": 1775,
+ "end": 1776,
"loc": {
"start": {
- "line": 53,
- "column": 29
+ "line": 67,
+ "column": 37
},
"end": {
- "line": 53,
- "column": 30
+ "line": 67,
+ "column": 38
}
}
},
{
"type": {
- "label": "}",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -24370,60 +26836,73 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1265,
- "end": 1266,
+ "start": 1776,
+ "end": 1777,
"loc": {
"start": {
- "line": 54,
- "column": 4
+ "line": 67,
+ "column": 38
},
"end": {
- "line": 54,
- "column": 5
+ "line": 67,
+ "column": 39
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Swaps the positions of two elements in an array.\r\n * @param {Array} pArray - The array in which to swap elements.\r\n * @param {number} pIndex1 - The index of the first element to swap.\r\n * @param {number} pIndex2 - The index of the second element to swap.\r\n * @returns {void}\r\n ",
- "start": 1272,
- "end": 1583,
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 1777,
+ "end": 1778,
"loc": {
"start": {
- "line": 55,
- "column": 4
+ "line": 67,
+ "column": 39
},
"end": {
- "line": 61,
- "column": 7
+ "line": 67,
+ "column": 40
}
}
},
{
"type": {
- "label": "name",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "static",
- "start": 1589,
- "end": 1595,
+ "value": "const",
+ "start": 1788,
+ "end": 1793,
"loc": {
"start": {
- "line": 62,
- "column": 4
+ "line": 68,
+ "column": 8
},
"end": {
- "line": 62,
- "column": 10
+ "line": 68,
+ "column": 13
}
}
},
@@ -24439,42 +26918,44 @@
"postfix": false,
"binop": null
},
- "value": "swapArrayElements",
- "start": 1596,
- "end": 1613,
+ "value": "stateArray",
+ "start": 1794,
+ "end": 1804,
"loc": {
"start": {
- "line": 62,
- "column": 11
+ "line": 68,
+ "column": 14
},
"end": {
- "line": 62,
- "column": 28
+ "line": 68,
+ "column": 24
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1613,
- "end": 1614,
+ "value": "=",
+ "start": 1805,
+ "end": 1806,
"loc": {
"start": {
- "line": 62,
- "column": 28
+ "line": 68,
+ "column": 25
},
"end": {
- "line": 62,
- "column": 29
+ "line": 68,
+ "column": 26
}
}
},
@@ -24490,25 +26971,25 @@
"postfix": false,
"binop": null
},
- "value": "pArray",
- "start": 1614,
- "end": 1620,
+ "value": "pIconData",
+ "start": 1807,
+ "end": 1816,
"loc": {
"start": {
- "line": 62,
- "column": 29
+ "line": 68,
+ "column": 27
},
"end": {
- "line": 62,
- "column": 35
+ "line": 68,
+ "column": 36
}
}
},
{
"type": {
- "label": ",",
+ "label": "[",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -24517,22 +26998,22 @@
"binop": null,
"updateContext": null
},
- "start": 1620,
- "end": 1621,
+ "start": 1816,
+ "end": 1817,
"loc": {
"start": {
- "line": 62,
- "column": 35
+ "line": 68,
+ "column": 36
},
"end": {
- "line": 62,
- "column": 36
+ "line": 68,
+ "column": 37
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -24540,26 +27021,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pIndex1",
- "start": 1622,
- "end": 1629,
+ "value": 6,
+ "start": 1817,
+ "end": 1818,
"loc": {
"start": {
- "line": 62,
+ "line": 68,
"column": 37
},
"end": {
- "line": 62,
- "column": 44
+ "line": 68,
+ "column": 38
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": "]",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -24569,100 +27051,94 @@
"binop": null,
"updateContext": null
},
- "start": 1629,
- "end": 1630,
+ "start": 1818,
+ "end": 1819,
"loc": {
"start": {
- "line": 62,
- "column": 44
+ "line": 68,
+ "column": 38
},
"end": {
- "line": 62,
- "column": 45
+ "line": 68,
+ "column": 39
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pIndex2",
- "start": 1631,
- "end": 1638,
+ "start": 1819,
+ "end": 1820,
"loc": {
"start": {
- "line": 62,
- "column": 46
+ "line": 68,
+ "column": 39
},
"end": {
- "line": 62,
- "column": 53
+ "line": 68,
+ "column": 40
}
}
},
{
- "type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 1638,
- "end": 1639,
+ "type": "CommentLine",
+ "value": " Set name",
+ "start": 1832,
+ "end": 1843,
"loc": {
"start": {
- "line": 62,
- "column": 53
+ "line": 70,
+ "column": 8
},
- "end": {
- "line": 62,
- "column": 54
+ "end": {
+ "line": 70,
+ "column": 19
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1640,
- "end": 1641,
+ "value": "this",
+ "start": 1853,
+ "end": 1857,
"loc": {
"start": {
- "line": 62,
- "column": 55
+ "line": 71,
+ "column": 8
},
"end": {
- "line": 62,
- "column": 56
+ "line": 71,
+ "column": 12
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -24671,16 +27147,16 @@
"binop": null,
"updateContext": null
},
- "start": 1651,
- "end": 1652,
+ "start": 1857,
+ "end": 1858,
"loc": {
"start": {
- "line": 63,
- "column": 8
+ "line": 71,
+ "column": 12
},
"end": {
- "line": 63,
- "column": 9
+ "line": 71,
+ "column": 13
}
}
},
@@ -24696,23 +27172,23 @@
"postfix": false,
"binop": null
},
- "value": "pArray",
- "start": 1652,
- "end": 1658,
+ "value": "rename",
+ "start": 1858,
+ "end": 1864,
"loc": {
"start": {
- "line": 63,
- "column": 9
+ "line": 71,
+ "column": 13
},
"end": {
- "line": 63,
- "column": 15
+ "line": 71,
+ "column": 19
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -24720,19 +27196,18 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1658,
- "end": 1659,
+ "start": 1864,
+ "end": 1865,
"loc": {
"start": {
- "line": 63,
- "column": 15
+ "line": 71,
+ "column": 19
},
"end": {
- "line": 63,
- "column": 16
+ "line": 71,
+ "column": 20
}
}
},
@@ -24748,23 +27223,23 @@
"postfix": false,
"binop": null
},
- "value": "pIndex1",
- "start": 1659,
- "end": 1666,
+ "value": "iconName",
+ "start": 1865,
+ "end": 1873,
"loc": {
"start": {
- "line": 63,
- "column": 16
+ "line": 71,
+ "column": 20
},
"end": {
- "line": 63,
- "column": 23
+ "line": 71,
+ "column": 28
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -24772,25 +27247,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1666,
- "end": 1667,
+ "start": 1873,
+ "end": 1874,
"loc": {
"start": {
- "line": 63,
- "column": 23
+ "line": 71,
+ "column": 28
},
"end": {
- "line": 63,
- "column": 24
+ "line": 71,
+ "column": 29
}
}
},
{
"type": {
- "label": ",",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -24801,22 +27275,39 @@
"binop": null,
"updateContext": null
},
- "start": 1667,
- "end": 1668,
+ "start": 1874,
+ "end": 1875,
"loc": {
"start": {
- "line": 63,
- "column": 24
+ "line": 71,
+ "column": 29
},
"end": {
- "line": 63,
- "column": 25
+ "line": 71,
+ "column": 30
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set size",
+ "start": 1885,
+ "end": 1896,
+ "loc": {
+ "start": {
+ "line": 72,
+ "column": 8
+ },
+ "end": {
+ "line": 72,
+ "column": 19
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -24824,27 +27315,28 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pArray",
- "start": 1669,
- "end": 1675,
+ "value": "this",
+ "start": 1906,
+ "end": 1910,
"loc": {
"start": {
- "line": 63,
- "column": 26
+ "line": 73,
+ "column": 8
},
"end": {
- "line": 63,
- "column": 32
+ "line": 73,
+ "column": 12
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -24853,16 +27345,16 @@
"binop": null,
"updateContext": null
},
- "start": 1675,
- "end": 1676,
+ "start": 1910,
+ "end": 1911,
"loc": {
"start": {
- "line": 63,
- "column": 32
+ "line": 73,
+ "column": 12
},
"end": {
- "line": 63,
- "column": 33
+ "line": 73,
+ "column": 13
}
}
},
@@ -24878,130 +27370,128 @@
"postfix": false,
"binop": null
},
- "value": "pIndex2",
- "start": 1676,
- "end": 1683,
+ "value": "setSize",
+ "start": 1911,
+ "end": 1918,
"loc": {
"start": {
- "line": 63,
- "column": 33
+ "line": 73,
+ "column": 13
},
"end": {
- "line": 63,
- "column": 40
+ "line": 73,
+ "column": 20
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1683,
- "end": 1684,
+ "start": 1918,
+ "end": 1919,
"loc": {
"start": {
- "line": 63,
- "column": 40
+ "line": 73,
+ "column": 20
},
"end": {
- "line": 63,
- "column": 41
+ "line": 73,
+ "column": 21
}
}
},
{
"type": {
- "label": "]",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1684,
- "end": 1685,
+ "value": "iconWidth",
+ "start": 1919,
+ "end": 1928,
"loc": {
"start": {
- "line": 63,
- "column": 41
+ "line": 73,
+ "column": 21
},
"end": {
- "line": 63,
- "column": 42
+ "line": 73,
+ "column": 30
}
}
},
{
"type": {
- "label": "=",
+ "label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 1686,
- "end": 1687,
+ "start": 1928,
+ "end": 1929,
"loc": {
"start": {
- "line": 63,
- "column": 43
+ "line": 73,
+ "column": 30
},
"end": {
- "line": 63,
- "column": 44
+ "line": 73,
+ "column": 31
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1688,
- "end": 1689,
+ "value": "iconHeight",
+ "start": 1930,
+ "end": 1940,
"loc": {
"start": {
- "line": 63,
- "column": 45
+ "line": 73,
+ "column": 32
},
"end": {
- "line": 63,
- "column": 46
+ "line": 73,
+ "column": 42
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -25009,25 +27499,24 @@
"postfix": false,
"binop": null
},
- "value": "pArray",
- "start": 1689,
- "end": 1695,
+ "start": 1940,
+ "end": 1941,
"loc": {
"start": {
- "line": 63,
- "column": 46
+ "line": 73,
+ "column": 42
},
"end": {
- "line": 63,
- "column": 52
+ "line": 73,
+ "column": 43
}
}
},
{
"type": {
- "label": "[",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -25036,50 +27525,41 @@
"binop": null,
"updateContext": null
},
- "start": 1695,
- "end": 1696,
+ "start": 1941,
+ "end": 1942,
"loc": {
"start": {
- "line": 63,
- "column": 52
+ "line": 73,
+ "column": 43
},
"end": {
- "line": 63,
- "column": 53
+ "line": 73,
+ "column": 44
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "pIndex2",
- "start": 1696,
- "end": 1703,
+ "type": "CommentLine",
+ "value": " Set icon delay",
+ "start": 1952,
+ "end": 1969,
"loc": {
"start": {
- "line": 63,
- "column": 53
+ "line": 74,
+ "column": 8
},
"end": {
- "line": 63,
- "column": 60
+ "line": 74,
+ "column": 25
}
}
},
{
"type": {
- "label": "]",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -25088,23 +27568,24 @@
"binop": null,
"updateContext": null
},
- "start": 1703,
- "end": 1704,
+ "value": "this",
+ "start": 1979,
+ "end": 1983,
"loc": {
"start": {
- "line": 63,
- "column": 60
+ "line": 75,
+ "column": 8
},
"end": {
- "line": 63,
- "column": 61
+ "line": 75,
+ "column": 12
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -25114,16 +27595,16 @@
"binop": null,
"updateContext": null
},
- "start": 1704,
- "end": 1705,
+ "start": 1983,
+ "end": 1984,
"loc": {
"start": {
- "line": 63,
- "column": 61
+ "line": 75,
+ "column": 12
},
"end": {
- "line": 63,
- "column": 62
+ "line": 75,
+ "column": 13
}
}
},
@@ -25139,23 +27620,23 @@
"postfix": false,
"binop": null
},
- "value": "pArray",
- "start": 1706,
- "end": 1712,
+ "value": "setDelay",
+ "start": 1984,
+ "end": 1992,
"loc": {
"start": {
- "line": 63,
- "column": 63
+ "line": 75,
+ "column": 13
},
"end": {
- "line": 63,
- "column": 69
+ "line": 75,
+ "column": 21
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -25163,19 +27644,18 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1712,
- "end": 1713,
+ "start": 1992,
+ "end": 1993,
"loc": {
"start": {
- "line": 63,
- "column": 69
+ "line": 75,
+ "column": 21
},
"end": {
- "line": 63,
- "column": 70
+ "line": 75,
+ "column": 22
}
}
},
@@ -25191,23 +27671,23 @@
"postfix": false,
"binop": null
},
- "value": "pIndex1",
- "start": 1713,
- "end": 1720,
+ "value": "iconDelay",
+ "start": 1993,
+ "end": 2002,
"loc": {
"start": {
- "line": 63,
- "column": 70
+ "line": 75,
+ "column": 22
},
"end": {
- "line": 63,
- "column": 77
+ "line": 75,
+ "column": 31
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -25215,26 +27695,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 1720,
- "end": 1721,
+ "start": 2002,
+ "end": 2003,
"loc": {
"start": {
- "line": 63,
- "column": 77
+ "line": 75,
+ "column": 31
},
"end": {
- "line": 63,
- "column": 78
+ "line": 75,
+ "column": 32
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -25244,24 +27723,41 @@
"binop": null,
"updateContext": null
},
- "start": 1721,
- "end": 1722,
+ "start": 2003,
+ "end": 2004,
"loc": {
"start": {
- "line": 63,
- "column": 78
+ "line": 75,
+ "column": 32
},
"end": {
- "line": 63,
- "column": 79
+ "line": 75,
+ "column": 33
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Set dataURL",
+ "start": 2014,
+ "end": 2028,
+ "loc": {
+ "start": {
+ "line": 76,
+ "column": 8
+ },
+ "end": {
+ "line": 76,
+ "column": 22
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -25270,22 +27766,23 @@
"binop": null,
"updateContext": null
},
- "start": 1722,
- "end": 1723,
+ "value": "this",
+ "start": 2038,
+ "end": 2042,
"loc": {
"start": {
- "line": 63,
- "column": 79
+ "line": 77,
+ "column": 8
},
"end": {
- "line": 63,
- "column": 80
+ "line": 77,
+ "column": 12
}
}
},
{
"type": {
- "label": "}",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -25293,34 +27790,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1729,
- "end": 1730,
- "loc": {
- "start": {
- "line": 64,
- "column": 4
- },
- "end": {
- "line": 64,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n ",
- "start": 1736,
- "end": 1913,
+ "start": 2042,
+ "end": 2043,
"loc": {
"start": {
- "line": 65,
- "column": 4
+ "line": 77,
+ "column": 12
},
"end": {
- "line": 69,
- "column": 7
+ "line": 77,
+ "column": 13
}
}
},
@@ -25336,17 +27818,17 @@
"postfix": false,
"binop": null
},
- "value": "parse",
- "start": 1919,
- "end": 1924,
+ "value": "setDataURL",
+ "start": 2043,
+ "end": 2053,
"loc": {
"start": {
- "line": 70,
- "column": 4
+ "line": 77,
+ "column": 13
},
"end": {
- "line": 70,
- "column": 9
+ "line": 77,
+ "column": 23
}
}
},
@@ -25362,16 +27844,16 @@
"postfix": false,
"binop": null
},
- "start": 1924,
- "end": 1925,
+ "start": 2053,
+ "end": 2054,
"loc": {
"start": {
- "line": 70,
- "column": 9
+ "line": 77,
+ "column": 23
},
"end": {
- "line": 70,
- "column": 10
+ "line": 77,
+ "column": 24
}
}
},
@@ -25387,17 +27869,17 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 1925,
- "end": 1934,
+ "value": "iconDataURL",
+ "start": 2054,
+ "end": 2065,
"loc": {
"start": {
- "line": 70,
- "column": 10
+ "line": 77,
+ "column": 24
},
"end": {
- "line": 70,
- "column": 19
+ "line": 77,
+ "column": 35
}
}
},
@@ -25413,64 +27895,65 @@
"postfix": false,
"binop": null
},
- "start": 1934,
- "end": 1935,
+ "start": 2065,
+ "end": 2066,
"loc": {
"start": {
- "line": 70,
- "column": 19
+ "line": 77,
+ "column": 35
},
"end": {
- "line": 70,
- "column": 20
+ "line": 77,
+ "column": 36
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 1936,
- "end": 1937,
+ "start": 2066,
+ "end": 2067,
"loc": {
"start": {
- "line": 70,
- "column": 21
+ "line": 77,
+ "column": 36
},
"end": {
- "line": 70,
- "column": 22
+ "line": 77,
+ "column": 37
}
}
},
{
"type": "CommentLine",
- "value": " Loop through pIconData and create this icon",
- "start": 1947,
- "end": 1993,
+ "value": " Check if the frame data is an array",
+ "start": 2077,
+ "end": 2115,
"loc": {
"start": {
- "line": 71,
+ "line": 78,
"column": 8
},
"end": {
- "line": 71,
- "column": 54
+ "line": 78,
+ "column": 46
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -25481,17 +27964,42 @@
"binop": null,
"updateContext": null
},
- "value": "const",
- "start": 2003,
- "end": 2008,
+ "value": "if",
+ "start": 2125,
+ "end": 2127,
"loc": {
"start": {
- "line": 72,
+ "line": 79,
"column": 8
},
"end": {
- "line": 72,
- "column": 13
+ "line": 79,
+ "column": 10
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 2128,
+ "end": 2129,
+ "loc": {
+ "start": {
+ "line": 79,
+ "column": 11
+ },
+ "end": {
+ "line": 79,
+ "column": 12
}
}
},
@@ -25507,44 +28015,43 @@
"postfix": false,
"binop": null
},
- "value": "iconName",
- "start": 2009,
- "end": 2017,
+ "value": "Array",
+ "start": 2129,
+ "end": 2134,
"loc": {
"start": {
- "line": 72,
- "column": 14
+ "line": 79,
+ "column": 12
},
"end": {
- "line": 72,
- "column": 22
+ "line": 79,
+ "column": 17
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 2018,
- "end": 2019,
+ "start": 2134,
+ "end": 2135,
"loc": {
"start": {
- "line": 72,
- "column": 23
+ "line": 79,
+ "column": 17
},
- "end": {
- "line": 72,
- "column": 24
+ "end": {
+ "line": 79,
+ "column": 18
}
}
},
@@ -25560,23 +28067,23 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2020,
- "end": 2029,
+ "value": "isArray",
+ "start": 2135,
+ "end": 2142,
"loc": {
"start": {
- "line": 72,
- "column": 25
+ "line": 79,
+ "column": 18
},
"end": {
- "line": 72,
- "column": 34
+ "line": 79,
+ "column": 25
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -25584,25 +28091,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2029,
- "end": 2030,
+ "start": 2142,
+ "end": 2143,
"loc": {
"start": {
- "line": 72,
- "column": 34
+ "line": 79,
+ "column": 25
},
"end": {
- "line": 72,
- "column": 35
+ "line": 79,
+ "column": 26
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -25610,26 +28116,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 0,
- "start": 2030,
- "end": 2031,
+ "value": "frameArray",
+ "start": 2143,
+ "end": 2153,
"loc": {
"start": {
- "line": 72,
- "column": 35
+ "line": 79,
+ "column": 26
},
"end": {
- "line": 72,
+ "line": 79,
"column": 36
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -25637,126 +28142,137 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2031,
- "end": 2032,
+ "start": 2153,
+ "end": 2154,
"loc": {
"start": {
- "line": 72,
+ "line": 79,
"column": 36
},
"end": {
- "line": 72,
+ "line": 79,
"column": 37
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2032,
- "end": 2033,
+ "start": 2154,
+ "end": 2155,
"loc": {
"start": {
- "line": 72,
+ "line": 79,
"column": 37
},
"end": {
- "line": 72,
+ "line": 79,
"column": 38
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 2043,
- "end": 2048,
+ "start": 2156,
+ "end": 2157,
"loc": {
"start": {
- "line": 73,
- "column": 8
+ "line": 79,
+ "column": 39
},
"end": {
- "line": 73,
- "column": 13
+ "line": 79,
+ "column": 40
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " If the frame array has data then we need to store it.",
+ "start": 2171,
+ "end": 2227,
+ "loc": {
+ "start": {
+ "line": 80,
+ "column": 12
+ },
+ "end": {
+ "line": 80,
+ "column": 68
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "iconWidth",
- "start": 2049,
- "end": 2058,
+ "value": "if",
+ "start": 2241,
+ "end": 2243,
"loc": {
"start": {
- "line": 73,
- "column": 14
+ "line": 81,
+ "column": 12
},
"end": {
- "line": 73,
- "column": 23
+ "line": 81,
+ "column": 14
}
}
},
{
"type": {
- "label": "=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 2059,
- "end": 2060,
+ "start": 2244,
+ "end": 2245,
"loc": {
"start": {
- "line": 73,
- "column": 24
+ "line": 81,
+ "column": 15
},
"end": {
- "line": 73,
- "column": 25
+ "line": 81,
+ "column": 16
}
}
},
@@ -25772,25 +28288,25 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2061,
- "end": 2070,
+ "value": "frameArray",
+ "start": 2245,
+ "end": 2255,
"loc": {
"start": {
- "line": 73,
- "column": 26
+ "line": 81,
+ "column": 16
},
"end": {
- "line": 73,
- "column": 35
+ "line": 81,
+ "column": 26
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -25799,22 +28315,22 @@
"binop": null,
"updateContext": null
},
- "start": 2070,
- "end": 2071,
+ "start": 2255,
+ "end": 2256,
"loc": {
"start": {
- "line": 73,
- "column": 35
+ "line": 81,
+ "column": 26
},
"end": {
- "line": 73,
- "column": 36
+ "line": 81,
+ "column": 27
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -25822,26 +28338,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 1,
- "start": 2071,
- "end": 2072,
+ "value": "length",
+ "start": 2256,
+ "end": 2262,
"loc": {
"start": {
- "line": 73,
- "column": 36
+ "line": 81,
+ "column": 27
},
"end": {
- "line": 73,
- "column": 37
+ "line": 81,
+ "column": 33
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -25849,133 +28364,128 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2072,
- "end": 2073,
+ "start": 2262,
+ "end": 2263,
"loc": {
"start": {
- "line": 73,
- "column": 37
+ "line": 81,
+ "column": 33
},
"end": {
- "line": 73,
- "column": 38
+ "line": 81,
+ "column": 34
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2073,
- "end": 2074,
+ "start": 2264,
+ "end": 2265,
"loc": {
"start": {
- "line": 73,
- "column": 38
+ "line": 81,
+ "column": 35
},
"end": {
- "line": 73,
- "column": 39
+ "line": 81,
+ "column": 36
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 2084,
- "end": 2089,
+ "value": "frameArray",
+ "start": 2283,
+ "end": 2293,
"loc": {
"start": {
- "line": 74,
- "column": 8
+ "line": 82,
+ "column": 16
},
"end": {
- "line": 74,
- "column": 13
+ "line": 82,
+ "column": 26
}
}
},
{
"type": {
- "label": "name",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "iconHeight",
- "start": 2090,
- "end": 2100,
+ "start": 2293,
+ "end": 2294,
"loc": {
"start": {
- "line": 74,
- "column": 14
+ "line": 82,
+ "column": 26
},
"end": {
- "line": 74,
- "column": 24
+ "line": 82,
+ "column": 27
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 2101,
- "end": 2102,
+ "value": "forEach",
+ "start": 2294,
+ "end": 2301,
"loc": {
"start": {
- "line": 74,
- "column": 25
+ "line": 82,
+ "column": 27
},
"end": {
- "line": 74,
- "column": 26
+ "line": 82,
+ "column": 34
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -25984,23 +28494,22 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2103,
- "end": 2112,
+ "start": 2301,
+ "end": 2302,
"loc": {
"start": {
- "line": 74,
- "column": 27
+ "line": 82,
+ "column": 34
},
"end": {
- "line": 74,
- "column": 36
+ "line": 82,
+ "column": 35
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -26008,25 +28517,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2112,
- "end": 2113,
+ "start": 2302,
+ "end": 2303,
"loc": {
"start": {
- "line": 74,
- "column": 36
+ "line": 82,
+ "column": 35
},
"end": {
- "line": 74,
- "column": 37
+ "line": 82,
+ "column": 36
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -26034,26 +28542,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 2,
- "start": 2113,
- "end": 2114,
+ "value": "pFrame",
+ "start": 2303,
+ "end": 2309,
"loc": {
"start": {
- "line": 74,
- "column": 37
+ "line": 82,
+ "column": 36
},
"end": {
- "line": 74,
- "column": 38
+ "line": 82,
+ "column": 42
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -26061,25 +28568,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2114,
- "end": 2115,
+ "start": 2309,
+ "end": 2310,
"loc": {
"start": {
- "line": 74,
- "column": 38
+ "line": 82,
+ "column": 42
},
"end": {
- "line": 74,
- "column": 39
+ "line": 82,
+ "column": 43
}
}
},
{
"type": {
- "label": ";",
+ "label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -26090,50 +28596,64 @@
"binop": null,
"updateContext": null
},
- "start": 2115,
- "end": 2116,
+ "start": 2311,
+ "end": 2313,
"loc": {
"start": {
- "line": 74,
- "column": 39
+ "line": 82,
+ "column": 44
},
"end": {
- "line": 74,
- "column": 40
+ "line": 82,
+ "column": 46
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 2126,
- "end": 2131,
+ "start": 2314,
+ "end": 2315,
"loc": {
"start": {
- "line": 75,
- "column": 8
+ "line": 82,
+ "column": 47
},
"end": {
- "line": 75,
- "column": 13
+ "line": 82,
+ "column": 48
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " pFrame is an array holding the datalURL and frameDelay of the frame",
+ "start": 2337,
+ "end": 2407,
+ "loc": {
+ "start": {
+ "line": 83,
+ "column": 20
+ },
+ "end": {
+ "line": 83,
+ "column": 90
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -26141,45 +28661,45 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "iconDelay",
- "start": 2132,
- "end": 2141,
+ "value": "this",
+ "start": 2429,
+ "end": 2433,
"loc": {
"start": {
- "line": 75,
- "column": 14
+ "line": 84,
+ "column": 20
},
"end": {
- "line": 75,
- "column": 23
+ "line": 84,
+ "column": 24
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 2142,
- "end": 2143,
+ "start": 2433,
+ "end": 2434,
"loc": {
"start": {
- "line": 75,
+ "line": 84,
"column": 24
},
"end": {
- "line": 75,
+ "line": 84,
"column": 25
}
}
@@ -26196,23 +28716,23 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2144,
- "end": 2153,
+ "value": "addFrame",
+ "start": 2434,
+ "end": 2442,
"loc": {
"start": {
- "line": 75,
- "column": 26
+ "line": 84,
+ "column": 25
},
"end": {
- "line": 75,
- "column": 35
+ "line": 84,
+ "column": 33
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -26220,25 +28740,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2153,
- "end": 2154,
+ "start": 2442,
+ "end": 2443,
"loc": {
"start": {
- "line": 75,
- "column": 35
+ "line": 84,
+ "column": 33
},
"end": {
- "line": 75,
- "column": 36
+ "line": 84,
+ "column": 34
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -26246,26 +28765,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 3,
- "start": 2154,
- "end": 2155,
+ "value": "pFrame",
+ "start": 2443,
+ "end": 2449,
"loc": {
"start": {
- "line": 75,
- "column": 36
+ "line": 84,
+ "column": 34
},
"end": {
- "line": 75,
- "column": 37
+ "line": 84,
+ "column": 40
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -26273,19 +28791,18 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2155,
- "end": 2156,
+ "start": 2449,
+ "end": 2450,
"loc": {
"start": {
- "line": 75,
- "column": 37
+ "line": 84,
+ "column": 40
},
"end": {
- "line": 75,
- "column": 38
+ "line": 84,
+ "column": 41
}
}
},
@@ -26302,23 +28819,22 @@
"binop": null,
"updateContext": null
},
- "start": 2156,
- "end": 2157,
+ "start": 2450,
+ "end": 2451,
"loc": {
"start": {
- "line": 75,
- "column": 38
+ "line": 84,
+ "column": 41
},
"end": {
- "line": 75,
- "column": 39
+ "line": 84,
+ "column": 42
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -26326,28 +28842,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 2167,
- "end": 2172,
+ "start": 2469,
+ "end": 2470,
"loc": {
"start": {
- "line": 76,
- "column": 8
+ "line": 85,
+ "column": 16
},
"end": {
- "line": 76,
- "column": 13
+ "line": 85,
+ "column": 17
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -26355,52 +28869,75 @@
"postfix": false,
"binop": null
},
- "value": "iconDataURL",
- "start": 2173,
- "end": 2184,
+ "start": 2470,
+ "end": 2471,
"loc": {
"start": {
- "line": 76,
- "column": 14
+ "line": 85,
+ "column": 17
},
"end": {
- "line": 76,
- "column": 25
+ "line": 85,
+ "column": 18
}
}
},
{
"type": {
- "label": "=",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 2185,
- "end": 2186,
+ "start": 2471,
+ "end": 2472,
"loc": {
"start": {
- "line": 76,
- "column": 26
+ "line": 85,
+ "column": 18
},
"end": {
- "line": 76,
- "column": 27
+ "line": 85,
+ "column": 19
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 2486,
+ "end": 2487,
+ "loc": {
+ "start": {
+ "line": 86,
+ "column": 12
+ },
+ "end": {
+ "line": 86,
+ "column": 13
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -26408,51 +28945,41 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2187,
- "end": 2196,
+ "start": 2497,
+ "end": 2498,
"loc": {
"start": {
- "line": 76,
- "column": 28
+ "line": 87,
+ "column": 8
},
"end": {
- "line": 76,
- "column": 37
+ "line": 87,
+ "column": 9
}
}
},
{
- "type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 2196,
- "end": 2197,
+ "type": "CommentLine",
+ "value": " Check if the states data is an array",
+ "start": 2508,
+ "end": 2547,
"loc": {
"start": {
- "line": 76,
- "column": 37
+ "line": 88,
+ "column": 8
},
"end": {
- "line": 76,
- "column": 38
+ "line": 88,
+ "column": 47
}
}
},
{
"type": {
- "label": "num",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -26461,76 +28988,74 @@
"binop": null,
"updateContext": null
},
- "value": 4,
- "start": 2197,
- "end": 2198,
+ "value": "if",
+ "start": 2557,
+ "end": 2559,
"loc": {
"start": {
- "line": 76,
- "column": 38
+ "line": 89,
+ "column": 8
},
"end": {
- "line": 76,
- "column": 39
+ "line": 89,
+ "column": 10
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2198,
- "end": 2199,
+ "start": 2560,
+ "end": 2561,
"loc": {
"start": {
- "line": 76,
- "column": 39
+ "line": 89,
+ "column": 11
},
"end": {
- "line": 76,
- "column": 40
+ "line": 89,
+ "column": 12
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2199,
- "end": 2200,
+ "value": "Array",
+ "start": 2561,
+ "end": 2566,
"loc": {
"start": {
- "line": 76,
- "column": 40
+ "line": 89,
+ "column": 12
},
"end": {
- "line": 76,
- "column": 41
+ "line": 89,
+ "column": 17
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -26541,17 +29066,16 @@
"binop": null,
"updateContext": null
},
- "value": "const",
- "start": 2210,
- "end": 2215,
+ "start": 2566,
+ "end": 2567,
"loc": {
"start": {
- "line": 77,
- "column": 8
+ "line": 89,
+ "column": 17
},
"end": {
- "line": 77,
- "column": 13
+ "line": 89,
+ "column": 18
}
}
},
@@ -26567,43 +29091,41 @@
"postfix": false,
"binop": null
},
- "value": "frameArray",
- "start": 2216,
- "end": 2226,
+ "value": "isArray",
+ "start": 2567,
+ "end": 2574,
"loc": {
"start": {
- "line": 77,
- "column": 14
+ "line": 89,
+ "column": 18
},
"end": {
- "line": 77,
- "column": 24
+ "line": 89,
+ "column": 25
}
}
},
{
"type": {
- "label": "=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 2227,
- "end": 2228,
+ "start": 2574,
+ "end": 2575,
"loc": {
"start": {
- "line": 77,
+ "line": 89,
"column": 25
},
"end": {
- "line": 77,
+ "line": 89,
"column": 26
}
}
@@ -26620,103 +29142,116 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2229,
- "end": 2238,
+ "value": "stateArray",
+ "start": 2575,
+ "end": 2585,
"loc": {
"start": {
- "line": 77,
- "column": 27
+ "line": 89,
+ "column": 26
},
"end": {
- "line": 77,
+ "line": 89,
"column": 36
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2238,
- "end": 2239,
+ "start": 2585,
+ "end": 2586,
"loc": {
"start": {
- "line": 77,
+ "line": 89,
"column": 36
},
"end": {
- "line": 77,
+ "line": 89,
"column": 37
}
}
},
{
"type": {
- "label": "num",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 5,
- "start": 2239,
- "end": 2240,
+ "start": 2586,
+ "end": 2587,
"loc": {
"start": {
- "line": 77,
+ "line": 89,
"column": 37
},
"end": {
- "line": 77,
+ "line": 89,
"column": 38
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2240,
- "end": 2241,
+ "start": 2588,
+ "end": 2589,
"loc": {
"start": {
- "line": 77,
- "column": 38
+ "line": 89,
+ "column": 39
},
"end": {
- "line": 77,
- "column": 39
+ "line": 89,
+ "column": 40
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " If the state array has data then we need to store it.",
+ "start": 2603,
+ "end": 2659,
+ "loc": {
+ "start": {
+ "line": 90,
+ "column": 12
+ },
+ "end": {
+ "line": 90,
+ "column": 68
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -26726,44 +29261,42 @@
"binop": null,
"updateContext": null
},
- "start": 2241,
- "end": 2242,
+ "value": "if",
+ "start": 2673,
+ "end": 2675,
"loc": {
"start": {
- "line": 77,
- "column": 39
+ "line": 91,
+ "column": 12
},
"end": {
- "line": 77,
- "column": 40
+ "line": 91,
+ "column": 14
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 2252,
- "end": 2257,
+ "start": 2676,
+ "end": 2677,
"loc": {
"start": {
- "line": 78,
- "column": 8
+ "line": 91,
+ "column": 15
},
"end": {
- "line": 78,
- "column": 13
+ "line": 91,
+ "column": 16
}
}
},
@@ -26780,43 +29313,42 @@
"binop": null
},
"value": "stateArray",
- "start": 2258,
- "end": 2268,
+ "start": 2677,
+ "end": 2687,
"loc": {
"start": {
- "line": 78,
- "column": 14
+ "line": 91,
+ "column": 16
},
"end": {
- "line": 78,
- "column": 24
+ "line": 91,
+ "column": 26
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 2269,
- "end": 2270,
+ "start": 2687,
+ "end": 2688,
"loc": {
"start": {
- "line": 78,
- "column": 25
+ "line": 91,
+ "column": 26
},
"end": {
- "line": 78,
- "column": 26
+ "line": 91,
+ "column": 27
}
}
},
@@ -26832,103 +29364,100 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 2271,
- "end": 2280,
+ "value": "length",
+ "start": 2688,
+ "end": 2694,
"loc": {
"start": {
- "line": 78,
+ "line": 91,
"column": 27
},
"end": {
- "line": 78,
- "column": 36
+ "line": 91,
+ "column": 33
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2280,
- "end": 2281,
+ "start": 2694,
+ "end": 2695,
"loc": {
"start": {
- "line": 78,
- "column": 36
+ "line": 91,
+ "column": 33
},
"end": {
- "line": 78,
- "column": 37
+ "line": 91,
+ "column": 34
}
}
},
{
"type": {
- "label": "num",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 6,
- "start": 2281,
- "end": 2282,
+ "start": 2696,
+ "end": 2697,
"loc": {
"start": {
- "line": 78,
- "column": 37
+ "line": 91,
+ "column": 35
},
"end": {
- "line": 78,
- "column": 38
+ "line": 91,
+ "column": 36
}
}
},
{
"type": {
- "label": "]",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2282,
- "end": 2283,
+ "value": "stateArray",
+ "start": 2715,
+ "end": 2725,
"loc": {
"start": {
- "line": 78,
- "column": 38
+ "line": 92,
+ "column": 16
},
"end": {
- "line": 78,
- "column": 39
+ "line": 92,
+ "column": 26
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -26938,39 +29467,22 @@
"binop": null,
"updateContext": null
},
- "start": 2283,
- "end": 2284,
- "loc": {
- "start": {
- "line": 78,
- "column": 39
- },
- "end": {
- "line": 78,
- "column": 40
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Set name",
- "start": 2296,
- "end": 2307,
+ "start": 2725,
+ "end": 2726,
"loc": {
"start": {
- "line": 80,
- "column": 8
+ "line": 92,
+ "column": 26
},
"end": {
- "line": 80,
- "column": 19
+ "line": 92,
+ "column": 27
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -26978,53 +29490,51 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 2317,
- "end": 2321,
+ "value": "forEach",
+ "start": 2726,
+ "end": 2733,
"loc": {
"start": {
- "line": 81,
- "column": 8
+ "line": 92,
+ "column": 27
},
"end": {
- "line": 81,
- "column": 12
+ "line": 92,
+ "column": 34
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2321,
- "end": 2322,
+ "start": 2733,
+ "end": 2734,
"loc": {
"start": {
- "line": 81,
- "column": 12
+ "line": 92,
+ "column": 34
},
"end": {
- "line": 81,
- "column": 13
+ "line": 92,
+ "column": 35
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -27033,24 +29543,23 @@
"postfix": false,
"binop": null
},
- "value": "rename",
- "start": 2322,
- "end": 2328,
+ "start": 2734,
+ "end": 2735,
"loc": {
"start": {
- "line": 81,
- "column": 13
+ "line": 92,
+ "column": 35
},
"end": {
- "line": 81,
- "column": 19
+ "line": 92,
+ "column": 36
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -27059,24 +29568,25 @@
"postfix": false,
"binop": null
},
- "start": 2328,
- "end": 2329,
+ "value": "pState",
+ "start": 2735,
+ "end": 2741,
"loc": {
"start": {
- "line": 81,
- "column": 19
+ "line": 92,
+ "column": 36
},
"end": {
- "line": 81,
- "column": 20
+ "line": 92,
+ "column": 42
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -27084,93 +29594,108 @@
"postfix": false,
"binop": null
},
- "value": "iconName",
- "start": 2329,
- "end": 2337,
+ "start": 2741,
+ "end": 2742,
"loc": {
"start": {
- "line": 81,
- "column": 20
+ "line": 92,
+ "column": 42
},
"end": {
- "line": 81,
- "column": 28
+ "line": 92,
+ "column": 43
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": "=>",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2337,
- "end": 2338,
+ "start": 2743,
+ "end": 2745,
"loc": {
"start": {
- "line": 81,
- "column": 28
+ "line": 92,
+ "column": 44
},
"end": {
- "line": 81,
- "column": 29
+ "line": 92,
+ "column": 46
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2338,
- "end": 2339,
+ "start": 2746,
+ "end": 2747,
"loc": {
"start": {
- "line": 81,
- "column": 29
+ "line": 92,
+ "column": 47
},
"end": {
- "line": 81,
- "column": 30
+ "line": 92,
+ "column": 48
}
}
},
{
"type": "CommentLine",
- "value": " Set size",
- "start": 2349,
- "end": 2360,
+ "value": " Here we create a icon with aggregated data because the state data is not enough to make it an icon.",
+ "start": 2769,
+ "end": 2871,
"loc": {
"start": {
- "line": 82,
- "column": 8
+ "line": 93,
+ "column": 20
},
"end": {
- "line": 82,
- "column": 19
+ "line": 93,
+ "column": 122
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.",
+ "start": 2893,
+ "end": 3058,
+ "loc": {
+ "start": {
+ "line": 94,
+ "column": 20
+ },
+ "end": {
+ "line": 94,
+ "column": 185
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -27179,75 +29704,76 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 2370,
- "end": 2374,
+ "value": "const",
+ "start": 3080,
+ "end": 3085,
"loc": {
"start": {
- "line": 83,
- "column": 8
+ "line": 95,
+ "column": 20
},
"end": {
- "line": 83,
- "column": 12
+ "line": 95,
+ "column": 25
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 2374,
- "end": 2375,
+ "value": "aggregatedIconData",
+ "start": 3086,
+ "end": 3104,
"loc": {
"start": {
- "line": 83,
- "column": 12
+ "line": 95,
+ "column": 26
},
"end": {
- "line": 83,
- "column": 13
+ "line": 95,
+ "column": 44
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "setSize",
- "start": 2375,
- "end": 2382,
+ "value": "=",
+ "start": 3105,
+ "end": 3106,
"loc": {
"start": {
- "line": 83,
- "column": 13
+ "line": 95,
+ "column": 45
},
"end": {
- "line": 83,
- "column": 20
+ "line": 95,
+ "column": 46
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -27255,50 +29781,51 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2382,
- "end": 2383,
+ "start": 3107,
+ "end": 3108,
"loc": {
"start": {
- "line": 83,
- "column": 20
+ "line": 95,
+ "column": 47
},
"end": {
- "line": 83,
- "column": 21
+ "line": 95,
+ "column": 48
}
}
},
{
"type": {
- "label": "name",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "iconWidth",
- "start": 2383,
- "end": 2392,
+ "start": 3108,
+ "end": 3109,
"loc": {
"start": {
- "line": 83,
- "column": 21
+ "line": 95,
+ "column": 48
},
"end": {
- "line": 83,
- "column": 30
+ "line": 95,
+ "column": 49
}
}
},
{
"type": {
- "label": ",",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -27309,15 +29836,31 @@
"binop": null,
"updateContext": null
},
- "start": 2392,
- "end": 2393,
+ "start": 3109,
+ "end": 3110,
"loc": {
"start": {
- "line": 83,
- "column": 30
+ "line": 95,
+ "column": 49
},
"end": {
- "line": 83,
+ "line": 95,
+ "column": 50
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " iconName",
+ "start": 3132,
+ "end": 3143,
+ "loc": {
+ "start": {
+ "line": 96,
+ "column": 20
+ },
+ "end": {
+ "line": 96,
"column": 31
}
}
@@ -27334,50 +29877,51 @@
"postfix": false,
"binop": null
},
- "value": "iconHeight",
- "start": 2394,
- "end": 2404,
+ "value": "aggregatedIconData",
+ "start": 3165,
+ "end": 3183,
"loc": {
"start": {
- "line": 83,
- "column": 32
+ "line": 97,
+ "column": 20
},
"end": {
- "line": 83,
- "column": 42
+ "line": 97,
+ "column": 38
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2404,
- "end": 2405,
+ "start": 3183,
+ "end": 3184,
"loc": {
"start": {
- "line": 83,
- "column": 42
+ "line": 97,
+ "column": 38
},
"end": {
- "line": 83,
- "column": 43
+ "line": 97,
+ "column": 39
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -27386,41 +29930,25 @@
"binop": null,
"updateContext": null
},
- "start": 2405,
- "end": 2406,
- "loc": {
- "start": {
- "line": 83,
- "column": 43
- },
- "end": {
- "line": 83,
- "column": 44
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Set icon delay",
- "start": 2416,
- "end": 2433,
+ "value": 0,
+ "start": 3184,
+ "end": 3185,
"loc": {
"start": {
- "line": 84,
- "column": 8
+ "line": 97,
+ "column": 39
},
"end": {
- "line": 84,
- "column": 25
+ "line": 97,
+ "column": 40
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -27429,43 +29957,43 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 2443,
- "end": 2447,
+ "start": 3185,
+ "end": 3186,
"loc": {
"start": {
- "line": 85,
- "column": 8
+ "line": 97,
+ "column": 40
},
"end": {
- "line": 85,
- "column": 12
+ "line": 97,
+ "column": 41
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 2447,
- "end": 2448,
+ "value": "=",
+ "start": 3187,
+ "end": 3188,
"loc": {
"start": {
- "line": 85,
- "column": 12
+ "line": 97,
+ "column": 42
},
"end": {
- "line": 85,
- "column": 13
+ "line": 97,
+ "column": 43
}
}
},
@@ -27481,23 +30009,23 @@
"postfix": false,
"binop": null
},
- "value": "setDelay",
- "start": 2448,
- "end": 2456,
+ "value": "pState",
+ "start": 3189,
+ "end": 3195,
"loc": {
"start": {
- "line": 85,
- "column": 13
+ "line": 97,
+ "column": 44
},
"end": {
- "line": 85,
- "column": 21
+ "line": 97,
+ "column": 50
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -27505,24 +30033,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2456,
- "end": 2457,
+ "start": 3195,
+ "end": 3196,
"loc": {
"start": {
- "line": 85,
- "column": 21
+ "line": 97,
+ "column": 50
},
"end": {
- "line": 85,
- "column": 22
+ "line": 97,
+ "column": 51
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -27530,25 +30059,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "iconDelay",
- "start": 2457,
- "end": 2466,
+ "value": 0,
+ "start": 3196,
+ "end": 3197,
"loc": {
"start": {
- "line": 85,
- "column": 22
+ "line": 97,
+ "column": 51
},
"end": {
- "line": 85,
- "column": 31
+ "line": 97,
+ "column": 52
}
}
},
{
"type": {
- "label": ")",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -27556,18 +30086,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2466,
- "end": 2467,
+ "start": 3197,
+ "end": 3198,
"loc": {
"start": {
- "line": 85,
- "column": 31
+ "line": 97,
+ "column": 52
},
"end": {
- "line": 85,
- "column": 32
+ "line": 97,
+ "column": 53
}
}
},
@@ -27584,39 +30115,38 @@
"binop": null,
"updateContext": null
},
- "start": 2467,
- "end": 2468,
+ "start": 3198,
+ "end": 3199,
"loc": {
"start": {
- "line": 85,
- "column": 32
+ "line": 97,
+ "column": 53
},
"end": {
- "line": 85,
- "column": 33
+ "line": 97,
+ "column": 54
}
}
},
{
"type": "CommentLine",
- "value": " Set dataURL",
- "start": 2478,
- "end": 2492,
+ "value": " iconWidth",
+ "start": 3221,
+ "end": 3233,
"loc": {
"start": {
- "line": 86,
- "column": 8
+ "line": 98,
+ "column": 20
},
"end": {
- "line": 86,
- "column": 22
+ "line": 98,
+ "column": 32
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -27624,28 +30154,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 2502,
- "end": 2506,
+ "value": "aggregatedIconData",
+ "start": 3255,
+ "end": 3273,
"loc": {
"start": {
- "line": 87,
- "column": 8
+ "line": 99,
+ "column": 20
},
"end": {
- "line": 87,
- "column": 12
+ "line": 99,
+ "column": 38
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -27654,22 +30183,22 @@
"binop": null,
"updateContext": null
},
- "start": 2506,
- "end": 2507,
+ "start": 3273,
+ "end": 3274,
"loc": {
"start": {
- "line": 87,
- "column": 12
+ "line": 99,
+ "column": 38
},
"end": {
- "line": 87,
- "column": 13
+ "line": 99,
+ "column": 39
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -27677,78 +30206,81 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "setDataURL",
- "start": 2507,
- "end": 2517,
+ "value": 1,
+ "start": 3274,
+ "end": 3275,
"loc": {
"start": {
- "line": 87,
- "column": 13
+ "line": 99,
+ "column": 39
},
"end": {
- "line": 87,
- "column": 23
+ "line": 99,
+ "column": 40
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "]",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2517,
- "end": 2518,
+ "start": 3275,
+ "end": 3276,
"loc": {
"start": {
- "line": 87,
- "column": 23
+ "line": 99,
+ "column": 40
},
"end": {
- "line": 87,
- "column": 24
+ "line": 99,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "iconDataURL",
- "start": 2518,
- "end": 2529,
+ "value": "=",
+ "start": 3277,
+ "end": 3278,
"loc": {
"start": {
- "line": 87,
- "column": 24
+ "line": 99,
+ "column": 42
},
"end": {
- "line": 87,
- "column": 35
+ "line": 99,
+ "column": 43
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -27756,16 +30288,17 @@
"postfix": false,
"binop": null
},
- "start": 2529,
- "end": 2530,
+ "value": "iconWidth",
+ "start": 3279,
+ "end": 3288,
"loc": {
"start": {
- "line": 87,
- "column": 35
+ "line": 99,
+ "column": 44
},
"end": {
- "line": 87,
- "column": 36
+ "line": 99,
+ "column": 53
}
}
},
@@ -27782,66 +30315,64 @@
"binop": null,
"updateContext": null
},
- "start": 2530,
- "end": 2531,
+ "start": 3288,
+ "end": 3289,
"loc": {
"start": {
- "line": 87,
- "column": 36
+ "line": 99,
+ "column": 53
},
"end": {
- "line": 87,
- "column": 37
+ "line": 99,
+ "column": 54
}
}
},
{
"type": "CommentLine",
- "value": " Check if the frame data is an array",
- "start": 2541,
- "end": 2579,
+ "value": " iconHeight",
+ "start": 3311,
+ "end": 3324,
"loc": {
"start": {
- "line": 88,
- "column": 8
+ "line": 100,
+ "column": 20
},
"end": {
- "line": 88,
- "column": 46
+ "line": 100,
+ "column": 33
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 2589,
- "end": 2591,
+ "value": "aggregatedIconData",
+ "start": 3346,
+ "end": 3364,
"loc": {
"start": {
- "line": 89,
- "column": 8
+ "line": 101,
+ "column": 20
},
"end": {
- "line": 89,
- "column": 10
+ "line": 101,
+ "column": 38
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -27849,24 +30380,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2592,
- "end": 2593,
+ "start": 3364,
+ "end": 3365,
"loc": {
"start": {
- "line": 89,
- "column": 11
+ "line": 101,
+ "column": 38
},
"end": {
- "line": 89,
- "column": 12
+ "line": 101,
+ "column": 39
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -27874,25 +30406,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "Array",
- "start": 2593,
- "end": 2598,
+ "value": 2,
+ "start": 3365,
+ "end": 3366,
"loc": {
"start": {
- "line": 89,
- "column": 12
+ "line": 101,
+ "column": 39
},
"end": {
- "line": 89,
- "column": 17
+ "line": 101,
+ "column": 40
}
}
},
{
"type": {
- "label": ".",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -27903,49 +30436,50 @@
"binop": null,
"updateContext": null
},
- "start": 2598,
- "end": 2599,
+ "start": 3366,
+ "end": 3367,
"loc": {
"start": {
- "line": 89,
- "column": 17
+ "line": 101,
+ "column": 40
},
"end": {
- "line": 89,
- "column": 18
+ "line": 101,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "isArray",
- "start": 2599,
- "end": 2606,
+ "value": "=",
+ "start": 3368,
+ "end": 3369,
"loc": {
"start": {
- "line": 89,
- "column": 18
+ "line": 101,
+ "column": 42
},
"end": {
- "line": 89,
- "column": 25
+ "line": 101,
+ "column": 43
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -27954,50 +30488,67 @@
"postfix": false,
"binop": null
},
- "start": 2606,
- "end": 2607,
+ "value": "iconHeight",
+ "start": 3370,
+ "end": 3380,
"loc": {
"start": {
- "line": 89,
- "column": 25
+ "line": 101,
+ "column": 44
},
"end": {
- "line": 89,
- "column": 26
+ "line": 101,
+ "column": 54
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frameArray",
- "start": 2607,
- "end": 2617,
+ "start": 3380,
+ "end": 3381,
"loc": {
"start": {
- "line": 89,
- "column": 26
+ "line": 101,
+ "column": 54
},
"end": {
- "line": 89,
- "column": 36
+ "line": 101,
+ "column": 55
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " frame delay",
+ "start": 3403,
+ "end": 3417,
+ "loc": {
+ "start": {
+ "line": 102,
+ "column": 20
+ },
+ "end": {
+ "line": 102,
+ "column": 34
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28005,117 +30556,130 @@
"postfix": false,
"binop": null
},
- "start": 2617,
- "end": 2618,
+ "value": "aggregatedIconData",
+ "start": 3439,
+ "end": 3457,
"loc": {
"start": {
- "line": 89,
- "column": 36
+ "line": 103,
+ "column": 20
},
"end": {
- "line": 89,
- "column": 37
+ "line": 103,
+ "column": 38
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2618,
- "end": 2619,
+ "start": 3457,
+ "end": 3458,
"loc": {
"start": {
- "line": 89,
- "column": 37
+ "line": 103,
+ "column": 38
},
"end": {
- "line": 89,
- "column": 38
+ "line": 103,
+ "column": 39
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "num",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2620,
- "end": 2621,
+ "value": 3,
+ "start": 3458,
+ "end": 3459,
"loc": {
"start": {
- "line": 89,
+ "line": 103,
"column": 39
},
"end": {
- "line": 89,
+ "line": 103,
"column": 40
}
}
},
{
- "type": "CommentLine",
- "value": " If the frame array has data then we need to store it.",
- "start": 2635,
- "end": 2691,
+ "type": {
+ "label": "]",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 3459,
+ "end": 3460,
"loc": {
"start": {
- "line": 90,
- "column": 12
+ "line": 103,
+ "column": 40
},
"end": {
- "line": 90,
- "column": 68
+ "line": 103,
+ "column": 41
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 2705,
- "end": 2707,
+ "value": "=",
+ "start": 3461,
+ "end": 3462,
"loc": {
"start": {
- "line": 91,
- "column": 12
+ "line": 103,
+ "column": 42
},
"end": {
- "line": 91,
- "column": 14
+ "line": 103,
+ "column": 43
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -28124,50 +30688,51 @@
"postfix": false,
"binop": null
},
- "start": 2708,
- "end": 2709,
+ "value": "pState",
+ "start": 3463,
+ "end": 3469,
"loc": {
"start": {
- "line": 91,
- "column": 15
+ "line": 103,
+ "column": 44
},
"end": {
- "line": 91,
- "column": 16
+ "line": 103,
+ "column": 50
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "[",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frameArray",
- "start": 2709,
- "end": 2719,
+ "start": 3469,
+ "end": 3470,
"loc": {
"start": {
- "line": 91,
- "column": 16
+ "line": 103,
+ "column": 50
},
"end": {
- "line": 91,
- "column": 26
+ "line": 103,
+ "column": 51
}
}
},
{
"type": {
- "label": ".",
+ "label": "num",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28176,74 +30741,92 @@
"binop": null,
"updateContext": null
},
- "start": 2719,
- "end": 2720,
+ "value": 2,
+ "start": 3470,
+ "end": 3471,
"loc": {
"start": {
- "line": 91,
- "column": 26
+ "line": 103,
+ "column": 51
},
"end": {
- "line": 91,
- "column": 27
+ "line": 103,
+ "column": 52
}
}
},
{
"type": {
- "label": "name",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "length",
- "start": 2720,
- "end": 2726,
+ "start": 3471,
+ "end": 3472,
"loc": {
"start": {
- "line": 91,
- "column": 27
+ "line": 103,
+ "column": 52
},
"end": {
- "line": 91,
- "column": 33
+ "line": 103,
+ "column": 53
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2726,
- "end": 2727,
+ "start": 3472,
+ "end": 3473,
"loc": {
"start": {
- "line": 91,
- "column": 33
+ "line": 103,
+ "column": 53
},
"end": {
- "line": 91,
+ "line": 103,
+ "column": 54
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " iconDataURL",
+ "start": 3495,
+ "end": 3509,
+ "loc": {
+ "start": {
+ "line": 104,
+ "column": 20
+ },
+ "end": {
+ "line": 104,
"column": 34
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -28252,50 +30835,51 @@
"postfix": false,
"binop": null
},
- "start": 2728,
- "end": 2729,
+ "value": "aggregatedIconData",
+ "start": 3531,
+ "end": 3549,
"loc": {
"start": {
- "line": 91,
- "column": 35
+ "line": 105,
+ "column": 20
},
"end": {
- "line": 91,
- "column": 36
+ "line": 105,
+ "column": 38
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "[",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frameArray",
- "start": 2747,
- "end": 2757,
+ "start": 3549,
+ "end": 3550,
"loc": {
"start": {
- "line": 92,
- "column": 16
+ "line": 105,
+ "column": 38
},
"end": {
- "line": 92,
- "column": 26
+ "line": 105,
+ "column": 39
}
}
},
{
"type": {
- "label": ".",
+ "label": "num",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28304,74 +30888,77 @@
"binop": null,
"updateContext": null
},
- "start": 2757,
- "end": 2758,
+ "value": 4,
+ "start": 3550,
+ "end": 3551,
"loc": {
"start": {
- "line": 92,
- "column": 26
+ "line": 105,
+ "column": 39
},
"end": {
- "line": 92,
- "column": 27
+ "line": 105,
+ "column": 40
}
}
},
{
"type": {
- "label": "name",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "forEach",
- "start": 2758,
- "end": 2765,
+ "start": 3551,
+ "end": 3552,
"loc": {
"start": {
- "line": 92,
- "column": 27
+ "line": 105,
+ "column": 40
},
"end": {
- "line": 92,
- "column": 34
+ "line": 105,
+ "column": 41
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2765,
- "end": 2766,
+ "value": "=",
+ "start": 3553,
+ "end": 3554,
"loc": {
"start": {
- "line": 92,
- "column": 34
+ "line": 105,
+ "column": 42
},
"end": {
- "line": 92,
- "column": 35
+ "line": 105,
+ "column": 43
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -28380,74 +30967,77 @@
"postfix": false,
"binop": null
},
- "start": 2766,
- "end": 2767,
+ "value": "pState",
+ "start": 3555,
+ "end": 3561,
"loc": {
"start": {
- "line": 92,
- "column": 35
+ "line": 105,
+ "column": 44
},
"end": {
- "line": 92,
- "column": 36
+ "line": 105,
+ "column": 50
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "[",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pFrame",
- "start": 2767,
- "end": 2773,
+ "start": 3561,
+ "end": 3562,
"loc": {
"start": {
- "line": 92,
- "column": 36
+ "line": 105,
+ "column": 50
},
"end": {
- "line": 92,
- "column": 42
+ "line": 105,
+ "column": 51
}
}
},
{
"type": {
- "label": ")",
+ "label": "num",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2773,
- "end": 2774,
+ "value": 1,
+ "start": 3562,
+ "end": 3563,
"loc": {
"start": {
- "line": 92,
- "column": 42
+ "line": 105,
+ "column": 51
},
"end": {
- "line": 92,
- "column": 43
+ "line": 105,
+ "column": 52
}
}
},
{
"type": {
- "label": "=>",
- "beforeExpr": true,
+ "label": "]",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -28457,64 +31047,64 @@
"binop": null,
"updateContext": null
},
- "start": 2775,
- "end": 2777,
+ "start": 3563,
+ "end": 3564,
"loc": {
"start": {
- "line": 92,
- "column": 44
+ "line": 105,
+ "column": 52
},
"end": {
- "line": 92,
- "column": 46
+ "line": 105,
+ "column": 53
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2778,
- "end": 2779,
+ "start": 3564,
+ "end": 3565,
"loc": {
"start": {
- "line": 92,
- "column": 47
+ "line": 105,
+ "column": 53
},
"end": {
- "line": 92,
- "column": 48
+ "line": 105,
+ "column": 54
}
}
},
{
"type": "CommentLine",
- "value": " pFrame is an array holding the datalURL and frameDelay of the frame",
- "start": 2801,
- "end": 2871,
+ "value": " frame array",
+ "start": 3587,
+ "end": 3601,
"loc": {
"start": {
- "line": 93,
+ "line": 106,
"column": 20
},
"end": {
- "line": 93,
- "column": 90
+ "line": 106,
+ "column": 34
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -28522,28 +31112,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 2893,
- "end": 2897,
+ "value": "aggregatedIconData",
+ "start": 3623,
+ "end": 3641,
"loc": {
"start": {
- "line": 94,
+ "line": 107,
"column": 20
},
"end": {
- "line": 94,
- "column": 24
+ "line": 107,
+ "column": 38
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28552,22 +31141,22 @@
"binop": null,
"updateContext": null
},
- "start": 2897,
- "end": 2898,
+ "start": 3641,
+ "end": 3642,
"loc": {
"start": {
- "line": 94,
- "column": 24
+ "line": 107,
+ "column": 38
},
"end": {
- "line": 94,
- "column": 25
+ "line": 107,
+ "column": 39
}
}
},
{
"type": {
- "label": "name",
+ "label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -28575,78 +31164,81 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "addFrame",
- "start": 2898,
- "end": 2906,
+ "value": 5,
+ "start": 3642,
+ "end": 3643,
"loc": {
"start": {
- "line": 94,
- "column": 25
+ "line": 107,
+ "column": 39
},
"end": {
- "line": 94,
- "column": 33
+ "line": 107,
+ "column": 40
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "]",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2906,
- "end": 2907,
+ "start": 3643,
+ "end": 3644,
"loc": {
"start": {
- "line": 94,
- "column": 33
+ "line": 107,
+ "column": 40
},
"end": {
- "line": 94,
- "column": 34
+ "line": 107,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pFrame",
- "start": 2907,
- "end": 2913,
+ "value": "=",
+ "start": 3645,
+ "end": 3646,
"loc": {
"start": {
- "line": 94,
- "column": 34
+ "line": 107,
+ "column": 42
},
"end": {
- "line": 94,
- "column": 40
+ "line": 107,
+ "column": 43
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28654,24 +31246,25 @@
"postfix": false,
"binop": null
},
- "start": 2913,
- "end": 2914,
+ "value": "pState",
+ "start": 3647,
+ "end": 3653,
"loc": {
"start": {
- "line": 94,
- "column": 40
+ "line": 107,
+ "column": 44
},
"end": {
- "line": 94,
- "column": 41
+ "line": 107,
+ "column": 50
}
}
},
{
"type": {
- "label": ";",
+ "label": "[",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28680,47 +31273,49 @@
"binop": null,
"updateContext": null
},
- "start": 2914,
- "end": 2915,
+ "start": 3653,
+ "end": 3654,
"loc": {
"start": {
- "line": 94,
- "column": 41
+ "line": 107,
+ "column": 50
},
"end": {
- "line": 94,
- "column": 42
+ "line": 107,
+ "column": 51
}
}
},
{
"type": {
- "label": "}",
+ "label": "num",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2933,
- "end": 2934,
+ "value": 3,
+ "start": 3654,
+ "end": 3655,
"loc": {
"start": {
- "line": 95,
- "column": 16
+ "line": 107,
+ "column": 51
},
"end": {
- "line": 95,
- "column": 17
+ "line": 107,
+ "column": 52
}
}
},
{
"type": {
- "label": ")",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -28728,18 +31323,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2934,
- "end": 2935,
+ "start": 3655,
+ "end": 3656,
"loc": {
"start": {
- "line": 95,
- "column": 17
+ "line": 107,
+ "column": 52
},
"end": {
- "line": 95,
- "column": 18
+ "line": 107,
+ "column": 53
}
}
},
@@ -28756,47 +31352,50 @@
"binop": null,
"updateContext": null
},
- "start": 2935,
- "end": 2936,
+ "start": 3656,
+ "end": 3657,
"loc": {
"start": {
- "line": 95,
- "column": 18
+ "line": 107,
+ "column": 53
},
"end": {
- "line": 95,
- "column": 19
+ "line": 107,
+ "column": 54
}
}
},
{
"type": {
- "label": "}",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2950,
- "end": 2951,
+ "value": "this",
+ "start": 3679,
+ "end": 3683,
"loc": {
"start": {
- "line": 96,
- "column": 12
+ "line": 108,
+ "column": 20
},
"end": {
- "line": 96,
- "column": 13
+ "line": 108,
+ "column": 24
}
}
},
{
"type": {
- "label": "}",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -28804,69 +31403,77 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 2961,
- "end": 2962,
+ "start": 3683,
+ "end": 3684,
"loc": {
"start": {
- "line": 97,
- "column": 8
+ "line": 108,
+ "column": 24
},
"end": {
- "line": 97,
- "column": 9
+ "line": 108,
+ "column": 25
}
}
},
{
- "type": "CommentLine",
- "value": " Check if the states data is an array",
- "start": 2972,
- "end": 3011,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "addState",
+ "start": 3684,
+ "end": 3692,
"loc": {
"start": {
- "line": 98,
- "column": 8
+ "line": 108,
+ "column": 25
},
"end": {
- "line": 98,
- "column": 47
+ "line": 108,
+ "column": 33
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 3021,
- "end": 3023,
+ "start": 3692,
+ "end": 3693,
"loc": {
"start": {
- "line": 99,
- "column": 8
+ "line": 108,
+ "column": 33
},
"end": {
- "line": 99,
- "column": 10
+ "line": 108,
+ "column": 34
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -28875,24 +31482,25 @@
"postfix": false,
"binop": null
},
- "start": 3024,
- "end": 3025,
+ "value": "aggregatedIconData",
+ "start": 3693,
+ "end": 3711,
"loc": {
"start": {
- "line": 99,
- "column": 11
+ "line": 108,
+ "column": 34
},
"end": {
- "line": 99,
- "column": 12
+ "line": 108,
+ "column": 52
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28900,24 +31508,23 @@
"postfix": false,
"binop": null
},
- "value": "Array",
- "start": 3025,
- "end": 3030,
+ "start": 3711,
+ "end": 3712,
"loc": {
"start": {
- "line": 99,
- "column": 12
+ "line": 108,
+ "column": 52
},
"end": {
- "line": 99,
- "column": 17
+ "line": 108,
+ "column": 53
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -28927,24 +31534,24 @@
"binop": null,
"updateContext": null
},
- "start": 3030,
- "end": 3031,
+ "start": 3712,
+ "end": 3713,
"loc": {
"start": {
- "line": 99,
- "column": 17
+ "line": 108,
+ "column": 53
},
"end": {
- "line": 99,
- "column": 18
+ "line": 108,
+ "column": 54
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28952,25 +31559,24 @@
"postfix": false,
"binop": null
},
- "value": "isArray",
- "start": 3031,
- "end": 3038,
+ "start": 3731,
+ "end": 3732,
"loc": {
"start": {
- "line": 99,
- "column": 18
+ "line": 109,
+ "column": 16
},
"end": {
- "line": 99,
- "column": 25
+ "line": 109,
+ "column": 17
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -28978,48 +31584,48 @@
"postfix": false,
"binop": null
},
- "start": 3038,
- "end": 3039,
+ "start": 3732,
+ "end": 3733,
"loc": {
"start": {
- "line": 99,
- "column": 25
+ "line": 109,
+ "column": 17
},
"end": {
- "line": 99,
- "column": 26
+ "line": 109,
+ "column": 18
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "stateArray",
- "start": 3039,
- "end": 3049,
+ "start": 3733,
+ "end": 3734,
"loc": {
"start": {
- "line": 99,
- "column": 26
+ "line": 109,
+ "column": 18
},
"end": {
- "line": 99,
- "column": 36
+ "line": 109,
+ "column": 19
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -29029,22 +31635,22 @@
"postfix": false,
"binop": null
},
- "start": 3049,
- "end": 3050,
+ "start": 3748,
+ "end": 3749,
"loc": {
"start": {
- "line": 99,
- "column": 36
+ "line": 110,
+ "column": 12
},
"end": {
- "line": 99,
- "column": 37
+ "line": 110,
+ "column": 13
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -29054,24 +31660,24 @@
"postfix": false,
"binop": null
},
- "start": 3050,
- "end": 3051,
+ "start": 3759,
+ "end": 3760,
"loc": {
"start": {
- "line": 99,
- "column": 37
+ "line": 111,
+ "column": 8
},
"end": {
- "line": 99,
- "column": 38
+ "line": 111,
+ "column": 9
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -29079,60 +31685,58 @@
"postfix": false,
"binop": null
},
- "start": 3052,
- "end": 3053,
+ "start": 3766,
+ "end": 3767,
"loc": {
"start": {
- "line": 99,
- "column": 39
+ "line": 112,
+ "column": 4
},
"end": {
- "line": 99,
- "column": 40
+ "line": 112,
+ "column": 5
}
}
},
{
- "type": "CommentLine",
- "value": " If the state array has data then we need to store it.",
- "start": 3067,
- "end": 3123,
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 3773,
+ "end": 3981,
"loc": {
"start": {
- "line": 100,
- "column": 12
+ "line": 113,
+ "column": 4
},
"end": {
- "line": 100,
- "column": 68
+ "line": 118,
+ "column": 7
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 3137,
- "end": 3139,
+ "value": "setSize",
+ "start": 3987,
+ "end": 3994,
"loc": {
"start": {
- "line": 101,
- "column": 12
+ "line": 119,
+ "column": 4
},
"end": {
- "line": 101,
- "column": 14
+ "line": 119,
+ "column": 11
}
}
},
@@ -29148,16 +31752,16 @@
"postfix": false,
"binop": null
},
- "start": 3140,
- "end": 3141,
+ "start": 3994,
+ "end": 3995,
"loc": {
"start": {
- "line": 101,
- "column": 15
+ "line": 119,
+ "column": 11
},
"end": {
- "line": 101,
- "column": 16
+ "line": 119,
+ "column": 12
}
}
},
@@ -29173,24 +31777,24 @@
"postfix": false,
"binop": null
},
- "value": "stateArray",
- "start": 3141,
- "end": 3151,
+ "value": "pWidth",
+ "start": 3995,
+ "end": 4001,
"loc": {
"start": {
- "line": 101,
- "column": 16
+ "line": 119,
+ "column": 12
},
"end": {
- "line": 101,
- "column": 26
+ "line": 119,
+ "column": 18
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ",",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -29200,16 +31804,16 @@
"binop": null,
"updateContext": null
},
- "start": 3151,
- "end": 3152,
+ "start": 4001,
+ "end": 4002,
"loc": {
"start": {
- "line": 101,
- "column": 26
+ "line": 119,
+ "column": 18
},
"end": {
- "line": 101,
- "column": 27
+ "line": 119,
+ "column": 19
}
}
},
@@ -29225,17 +31829,17 @@
"postfix": false,
"binop": null
},
- "value": "length",
- "start": 3152,
- "end": 3158,
+ "value": "pHeight",
+ "start": 4003,
+ "end": 4010,
"loc": {
"start": {
- "line": 101,
- "column": 27
+ "line": 119,
+ "column": 20
},
"end": {
- "line": 101,
- "column": 33
+ "line": 119,
+ "column": 27
}
}
},
@@ -29251,16 +31855,16 @@
"postfix": false,
"binop": null
},
- "start": 3158,
- "end": 3159,
+ "start": 4010,
+ "end": 4011,
"loc": {
"start": {
- "line": 101,
- "column": 33
+ "line": 119,
+ "column": 27
},
"end": {
- "line": 101,
- "column": 34
+ "line": 119,
+ "column": 28
}
}
},
@@ -29276,48 +31880,23 @@
"postfix": false,
"binop": null
},
- "start": 3160,
- "end": 3161,
- "loc": {
- "start": {
- "line": 101,
- "column": 35
- },
- "end": {
- "line": 101,
- "column": 36
- }
- }
- },
- {
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "stateArray",
- "start": 3179,
- "end": 3189,
+ "start": 4012,
+ "end": 4013,
"loc": {
"start": {
- "line": 102,
- "column": 16
+ "line": 119,
+ "column": 29
},
"end": {
- "line": 102,
- "column": 26
+ "line": 119,
+ "column": 30
}
}
},
{
"type": {
- "label": ".",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -29328,23 +31907,24 @@
"binop": null,
"updateContext": null
},
- "start": 3189,
- "end": 3190,
+ "value": "if",
+ "start": 4023,
+ "end": 4025,
"loc": {
"start": {
- "line": 102,
- "column": 26
+ "line": 120,
+ "column": 8
},
"end": {
- "line": 102,
- "column": 27
+ "line": 120,
+ "column": 10
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -29353,42 +31933,44 @@
"postfix": false,
"binop": null
},
- "value": "forEach",
- "start": 3190,
- "end": 3197,
+ "start": 4026,
+ "end": 4027,
"loc": {
"start": {
- "line": 102,
- "column": 27
+ "line": 120,
+ "column": 11
},
"end": {
- "line": 102,
- "column": 34
+ "line": 120,
+ "column": 12
}
}
},
{
"type": {
- "label": "(",
+ "label": "typeof",
+ "keyword": "typeof",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 3197,
- "end": 3198,
+ "value": "typeof",
+ "start": 4027,
+ "end": 4033,
"loc": {
"start": {
- "line": 102,
- "column": 34
+ "line": 120,
+ "column": 12
},
"end": {
- "line": 102,
- "column": 35
+ "line": 120,
+ "column": 18
}
}
},
@@ -29404,16 +31986,16 @@
"postfix": false,
"binop": null
},
- "start": 3198,
- "end": 3199,
+ "start": 4033,
+ "end": 4034,
"loc": {
"start": {
- "line": 102,
- "column": 35
+ "line": 120,
+ "column": 18
},
"end": {
- "line": 102,
- "column": 36
+ "line": 120,
+ "column": 19
}
}
},
@@ -29429,17 +32011,17 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 3199,
- "end": 3205,
+ "value": "pWidth",
+ "start": 4034,
+ "end": 4040,
"loc": {
"start": {
- "line": 102,
- "column": 36
+ "line": 120,
+ "column": 19
},
"end": {
- "line": 102,
- "column": 42
+ "line": 120,
+ "column": 25
}
}
},
@@ -29455,22 +32037,22 @@
"postfix": false,
"binop": null
},
- "start": 3205,
- "end": 3206,
+ "start": 4040,
+ "end": 4041,
"loc": {
"start": {
- "line": 102,
- "column": 42
+ "line": 120,
+ "column": 25
},
"end": {
- "line": 102,
- "column": 43
+ "line": 120,
+ "column": 26
}
}
},
{
"type": {
- "label": "=>",
+ "label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -29478,83 +32060,53 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "start": 3207,
- "end": 3209,
+ "value": "===",
+ "start": 4042,
+ "end": 4045,
"loc": {
"start": {
- "line": 102,
- "column": 44
+ "line": 120,
+ "column": 27
},
"end": {
- "line": 102,
- "column": 46
+ "line": 120,
+ "column": 30
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "string",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 3210,
- "end": 3211,
- "loc": {
- "start": {
- "line": 102,
- "column": 47
- },
- "end": {
- "line": 102,
- "column": 48
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Here we create a icon with aggregated data because the state data is not enough to make it an icon.",
- "start": 3233,
- "end": 3335,
- "loc": {
- "start": {
- "line": 103,
- "column": 20
- },
- "end": {
- "line": 103,
- "column": 122
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.",
- "start": 3357,
- "end": 3522,
+ "value": "number",
+ "start": 4046,
+ "end": 4054,
"loc": {
"start": {
- "line": 104,
- "column": 20
+ "line": 120,
+ "column": 31
},
"end": {
- "line": 104,
- "column": 185
+ "line": 120,
+ "column": 39
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -29562,27 +32114,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "const",
- "start": 3544,
- "end": 3549,
+ "start": 4054,
+ "end": 4055,
"loc": {
"start": {
- "line": 105,
- "column": 20
+ "line": 120,
+ "column": 39
},
"end": {
- "line": 105,
- "column": 25
+ "line": 120,
+ "column": 40
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -29591,52 +32141,52 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 3550,
- "end": 3568,
+ "start": 4056,
+ "end": 4057,
"loc": {
"start": {
- "line": 105,
- "column": 26
+ "line": 120,
+ "column": 41
},
"end": {
- "line": 105,
- "column": 44
+ "line": 120,
+ "column": 42
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 3569,
- "end": 3570,
+ "value": "this",
+ "start": 4071,
+ "end": 4075,
"loc": {
"start": {
- "line": 105,
- "column": 45
+ "line": 121,
+ "column": 12
},
"end": {
- "line": 105,
- "column": 46
+ "line": 121,
+ "column": 16
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -29645,84 +32195,69 @@
"binop": null,
"updateContext": null
},
- "start": 3571,
- "end": 3572,
+ "start": 4075,
+ "end": 4076,
"loc": {
"start": {
- "line": 105,
- "column": 47
+ "line": 121,
+ "column": 16
},
"end": {
- "line": 105,
- "column": 48
+ "line": 121,
+ "column": 17
}
}
},
{
"type": {
- "label": "]",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 3572,
- "end": 3573,
+ "value": "width",
+ "start": 4076,
+ "end": 4081,
"loc": {
"start": {
- "line": 105,
- "column": 48
+ "line": 121,
+ "column": 17
},
"end": {
- "line": 105,
- "column": 49
+ "line": 121,
+ "column": 22
}
}
},
{
"type": {
- "label": ";",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 3573,
- "end": 3574,
- "loc": {
- "start": {
- "line": 105,
- "column": 49
- },
- "end": {
- "line": 105,
- "column": 50
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " iconName",
- "start": 3596,
- "end": 3607,
+ "value": "=",
+ "start": 4082,
+ "end": 4083,
"loc": {
"start": {
- "line": 106,
- "column": 20
+ "line": 121,
+ "column": 23
},
"end": {
- "line": 106,
- "column": 31
+ "line": 121,
+ "column": 24
}
}
},
@@ -29738,25 +32273,25 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 3629,
- "end": 3647,
+ "value": "pWidth",
+ "start": 4084,
+ "end": 4090,
"loc": {
"start": {
- "line": 107,
- "column": 20
+ "line": 121,
+ "column": 25
},
"end": {
- "line": 107,
- "column": 38
+ "line": 121,
+ "column": 31
}
}
},
{
"type": {
- "label": "[",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -29765,49 +32300,48 @@
"binop": null,
"updateContext": null
},
- "start": 3647,
- "end": 3648,
+ "start": 4090,
+ "end": 4091,
"loc": {
"start": {
- "line": 107,
- "column": 38
+ "line": 121,
+ "column": 31
},
"end": {
- "line": 107,
- "column": 39
+ "line": 121,
+ "column": 32
}
}
},
{
"type": {
- "label": "num",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 0,
- "start": 3648,
- "end": 3649,
+ "start": 4101,
+ "end": 4102,
"loc": {
"start": {
- "line": 107,
- "column": 39
+ "line": 122,
+ "column": 8
},
"end": {
- "line": 107,
- "column": 40
+ "line": 122,
+ "column": 9
}
}
},
{
"type": {
- "label": "]",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -29818,50 +32352,77 @@
"binop": null,
"updateContext": null
},
- "start": 3649,
- "end": 3650,
+ "value": "if",
+ "start": 4112,
+ "end": 4114,
"loc": {
"start": {
- "line": 107,
- "column": 40
+ "line": 123,
+ "column": 8
},
"end": {
- "line": 107,
- "column": 41
+ "line": 123,
+ "column": 10
}
}
},
{
"type": {
- "label": "=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 4115,
+ "end": 4116,
+ "loc": {
+ "start": {
+ "line": 123,
+ "column": 11
+ },
+ "end": {
+ "line": 123,
+ "column": 12
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "typeof",
+ "keyword": "typeof",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
- "prefix": false,
+ "isAssign": false,
+ "prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 3651,
- "end": 3652,
+ "value": "typeof",
+ "start": 4116,
+ "end": 4122,
"loc": {
"start": {
- "line": 107,
- "column": 42
+ "line": 123,
+ "column": 12
},
"end": {
- "line": 107,
- "column": 43
+ "line": 123,
+ "column": 18
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -29870,104 +32431,102 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 3653,
- "end": 3659,
+ "start": 4122,
+ "end": 4123,
"loc": {
"start": {
- "line": 107,
- "column": 44
+ "line": 123,
+ "column": 18
},
"end": {
- "line": 107,
- "column": 50
+ "line": 123,
+ "column": 19
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 3659,
- "end": 3660,
+ "value": "pHeight",
+ "start": 4123,
+ "end": 4130,
"loc": {
"start": {
- "line": 107,
- "column": 50
+ "line": 123,
+ "column": 19
},
"end": {
- "line": 107,
- "column": 51
+ "line": 123,
+ "column": 26
}
}
},
{
"type": {
- "label": "num",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 0,
- "start": 3660,
- "end": 3661,
+ "start": 4130,
+ "end": 4131,
"loc": {
"start": {
- "line": 107,
- "column": 51
+ "line": 123,
+ "column": 26
},
"end": {
- "line": 107,
- "column": 52
+ "line": 123,
+ "column": 27
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
+ "label": "==/!=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "start": 3661,
- "end": 3662,
+ "value": "===",
+ "start": 4132,
+ "end": 4135,
"loc": {
"start": {
- "line": 107,
- "column": 52
+ "line": 123,
+ "column": 28
},
"end": {
- "line": 107,
- "column": 53
+ "line": 123,
+ "column": 31
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -29976,39 +32535,49 @@
"binop": null,
"updateContext": null
},
- "start": 3662,
- "end": 3663,
+ "value": "number",
+ "start": 4136,
+ "end": 4144,
"loc": {
"start": {
- "line": 107,
- "column": 53
+ "line": 123,
+ "column": 32
},
"end": {
- "line": 107,
- "column": 54
+ "line": 123,
+ "column": 40
}
}
},
{
- "type": "CommentLine",
- "value": " iconWidth",
- "start": 3685,
- "end": 3697,
+ "type": {
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 4144,
+ "end": 4145,
"loc": {
"start": {
- "line": 108,
- "column": 20
+ "line": 123,
+ "column": 40
},
"end": {
- "line": 108,
- "column": 32
+ "line": 123,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -30017,24 +32586,24 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 3719,
- "end": 3737,
+ "start": 4146,
+ "end": 4147,
"loc": {
"start": {
- "line": 109,
- "column": 20
+ "line": 123,
+ "column": 42
},
"end": {
- "line": 109,
- "column": 38
+ "line": 123,
+ "column": 43
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -30044,24 +32613,25 @@
"binop": null,
"updateContext": null
},
- "start": 3737,
- "end": 3738,
+ "value": "this",
+ "start": 4161,
+ "end": 4165,
"loc": {
"start": {
- "line": 109,
- "column": 38
+ "line": 124,
+ "column": 12
},
"end": {
- "line": 109,
- "column": 39
+ "line": 124,
+ "column": 16
}
}
},
{
"type": {
- "label": "num",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30070,43 +32640,42 @@
"binop": null,
"updateContext": null
},
- "value": 1,
- "start": 3738,
- "end": 3739,
+ "start": 4165,
+ "end": 4166,
"loc": {
"start": {
- "line": 109,
- "column": 39
+ "line": 124,
+ "column": 16
},
"end": {
- "line": 109,
- "column": 40
+ "line": 124,
+ "column": 17
}
}
},
{
"type": {
- "label": "]",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 3739,
- "end": 3740,
+ "value": "height",
+ "start": 4166,
+ "end": 4172,
"loc": {
"start": {
- "line": 109,
- "column": 40
+ "line": 124,
+ "column": 17
},
"end": {
- "line": 109,
- "column": 41
+ "line": 124,
+ "column": 23
}
}
},
@@ -30124,16 +32693,16 @@
"updateContext": null
},
"value": "=",
- "start": 3741,
- "end": 3742,
+ "start": 4173,
+ "end": 4174,
"loc": {
"start": {
- "line": 109,
- "column": 42
+ "line": 124,
+ "column": 24
},
"end": {
- "line": 109,
- "column": 43
+ "line": 124,
+ "column": 25
}
}
},
@@ -30149,17 +32718,17 @@
"postfix": false,
"binop": null
},
- "value": "iconWidth",
- "start": 3743,
- "end": 3752,
+ "value": "pHeight",
+ "start": 4175,
+ "end": 4182,
"loc": {
"start": {
- "line": 109,
- "column": 44
+ "line": 124,
+ "column": 26
},
"end": {
- "line": 109,
- "column": 53
+ "line": 124,
+ "column": 33
}
}
},
@@ -30176,40 +32745,49 @@
"binop": null,
"updateContext": null
},
- "start": 3752,
- "end": 3753,
+ "start": 4182,
+ "end": 4183,
"loc": {
"start": {
- "line": 109,
- "column": 53
+ "line": 124,
+ "column": 33
},
"end": {
- "line": 109,
- "column": 54
+ "line": 124,
+ "column": 34
}
}
},
{
- "type": "CommentLine",
- "value": " iconHeight",
- "start": 3775,
- "end": 3788,
+ "type": {
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 4193,
+ "end": 4194,
"loc": {
"start": {
- "line": 110,
- "column": 20
+ "line": 125,
+ "column": 8
},
"end": {
- "line": 110,
- "column": 33
+ "line": 125,
+ "column": 9
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30217,49 +32795,38 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 3810,
- "end": 3828,
+ "start": 4200,
+ "end": 4201,
"loc": {
"start": {
- "line": 111,
- "column": 20
+ "line": 126,
+ "column": 4
},
"end": {
- "line": 111,
- "column": 38
+ "line": 126,
+ "column": 5
}
}
},
{
- "type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 3828,
- "end": 3829,
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n ",
+ "start": 4207,
+ "end": 4358,
"loc": {
"start": {
- "line": 111,
- "column": 38
+ "line": 127,
+ "column": 4
},
"end": {
- "line": 111,
- "column": 39
+ "line": 130,
+ "column": 7
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -30267,80 +32834,76 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 2,
- "start": 3829,
- "end": 3830,
+ "value": "getSize",
+ "start": 4364,
+ "end": 4371,
"loc": {
"start": {
- "line": 111,
- "column": 39
+ "line": 131,
+ "column": 4
},
"end": {
- "line": 111,
- "column": 40
+ "line": 131,
+ "column": 11
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 3830,
- "end": 3831,
+ "start": 4371,
+ "end": 4372,
"loc": {
"start": {
- "line": 111,
- "column": 40
+ "line": 131,
+ "column": 11
},
"end": {
- "line": 111,
- "column": 41
+ "line": 131,
+ "column": 12
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 3832,
- "end": 3833,
+ "start": 4372,
+ "end": 4373,
"loc": {
"start": {
- "line": 111,
- "column": 42
+ "line": 131,
+ "column": 12
},
"end": {
- "line": 111,
- "column": 43
+ "line": 131,
+ "column": 13
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -30349,23 +32912,23 @@
"postfix": false,
"binop": null
},
- "value": "iconHeight",
- "start": 3834,
- "end": 3844,
+ "start": 4374,
+ "end": 4375,
"loc": {
"start": {
- "line": 111,
- "column": 44
+ "line": 131,
+ "column": 14
},
"end": {
- "line": 111,
- "column": 54
+ "line": 131,
+ "column": 15
}
}
},
{
"type": {
- "label": ";",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -30376,39 +32939,24 @@
"binop": null,
"updateContext": null
},
- "start": 3844,
- "end": 3845,
- "loc": {
- "start": {
- "line": 111,
- "column": 54
- },
- "end": {
- "line": 111,
- "column": 55
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " frame delay",
- "start": 3867,
- "end": 3881,
+ "value": "return",
+ "start": 4385,
+ "end": 4391,
"loc": {
"start": {
- "line": 112,
- "column": 20
+ "line": 132,
+ "column": 8
},
"end": {
- "line": 112,
- "column": 34
+ "line": 132,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -30417,51 +32965,50 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 3903,
- "end": 3921,
+ "start": 4392,
+ "end": 4393,
"loc": {
"start": {
- "line": 113,
- "column": 20
+ "line": 132,
+ "column": 15
},
"end": {
- "line": 113,
- "column": 38
+ "line": 132,
+ "column": 16
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 3921,
- "end": 3922,
+ "value": "width",
+ "start": 4394,
+ "end": 4399,
"loc": {
"start": {
- "line": 113,
- "column": 38
+ "line": 132,
+ "column": 17
},
"end": {
- "line": 113,
- "column": 39
+ "line": 132,
+ "column": 22
}
}
},
{
"type": {
- "label": "num",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ":",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30470,25 +33017,25 @@
"binop": null,
"updateContext": null
},
- "value": 3,
- "start": 3922,
- "end": 3923,
+ "start": 4399,
+ "end": 4400,
"loc": {
"start": {
- "line": 113,
- "column": 39
+ "line": 132,
+ "column": 22
},
"end": {
- "line": 113,
- "column": 40
+ "line": 132,
+ "column": 23
}
}
},
{
"type": {
- "label": "]",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30497,43 +33044,43 @@
"binop": null,
"updateContext": null
},
- "start": 3923,
- "end": 3924,
+ "value": "this",
+ "start": 4401,
+ "end": 4405,
"loc": {
"start": {
- "line": 113,
- "column": 40
+ "line": 132,
+ "column": 24
},
"end": {
- "line": 113,
- "column": 41
+ "line": 132,
+ "column": 28
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 3925,
- "end": 3926,
+ "start": 4405,
+ "end": 4406,
"loc": {
"start": {
- "line": 113,
- "column": 42
+ "line": 132,
+ "column": 28
},
"end": {
- "line": 113,
- "column": 43
+ "line": 132,
+ "column": 29
}
}
},
@@ -30549,25 +33096,25 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 3927,
- "end": 3933,
+ "value": "width",
+ "start": 4406,
+ "end": 4411,
"loc": {
"start": {
- "line": 113,
- "column": 44
+ "line": 132,
+ "column": 29
},
"end": {
- "line": 113,
- "column": 50
+ "line": 132,
+ "column": 34
}
}
},
{
"type": {
- "label": "[",
+ "label": ",",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30576,22 +33123,22 @@
"binop": null,
"updateContext": null
},
- "start": 3933,
- "end": 3934,
+ "start": 4411,
+ "end": 4412,
"loc": {
"start": {
- "line": 113,
- "column": 50
+ "line": 132,
+ "column": 34
},
"end": {
- "line": 113,
- "column": 51
+ "line": 132,
+ "column": 35
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -30599,27 +33146,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 2,
- "start": 3934,
- "end": 3935,
+ "value": "height",
+ "start": 4413,
+ "end": 4419,
"loc": {
"start": {
- "line": 113,
- "column": 51
+ "line": 132,
+ "column": 36
},
"end": {
- "line": 113,
- "column": 52
+ "line": 132,
+ "column": 42
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
+ "label": ":",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -30629,24 +33175,25 @@
"binop": null,
"updateContext": null
},
- "start": 3935,
- "end": 3936,
+ "start": 4419,
+ "end": 4420,
"loc": {
"start": {
- "line": 113,
- "column": 52
+ "line": 132,
+ "column": 42
},
"end": {
- "line": 113,
- "column": 53
+ "line": 132,
+ "column": 43
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30655,32 +33202,43 @@
"binop": null,
"updateContext": null
},
- "start": 3936,
- "end": 3937,
+ "value": "this",
+ "start": 4421,
+ "end": 4425,
"loc": {
"start": {
- "line": 113,
- "column": 53
+ "line": 132,
+ "column": 44
},
"end": {
- "line": 113,
- "column": 54
+ "line": 132,
+ "column": 48
}
}
},
{
- "type": "CommentLine",
- "value": " iconDataURL",
- "start": 3959,
- "end": 3973,
+ "type": {
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 4425,
+ "end": 4426,
"loc": {
"start": {
- "line": 114,
- "column": 20
+ "line": 132,
+ "column": 48
},
"end": {
- "line": 114,
- "column": 34
+ "line": 132,
+ "column": 49
}
}
},
@@ -30696,51 +33254,50 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 3995,
- "end": 4013,
+ "value": "height",
+ "start": 4426,
+ "end": 4432,
"loc": {
"start": {
- "line": 115,
- "column": 20
+ "line": 132,
+ "column": 49
},
"end": {
- "line": 115,
- "column": 38
+ "line": 132,
+ "column": 55
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4013,
- "end": 4014,
+ "start": 4433,
+ "end": 4434,
"loc": {
"start": {
- "line": 115,
- "column": 38
+ "line": 132,
+ "column": 56
},
"end": {
- "line": 115,
- "column": 39
+ "line": 132,
+ "column": 57
}
}
},
{
"type": {
- "label": "num",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -30749,23 +33306,22 @@
"binop": null,
"updateContext": null
},
- "value": 4,
- "start": 4014,
- "end": 4015,
+ "start": 4434,
+ "end": 4435,
"loc": {
"start": {
- "line": 115,
- "column": 39
+ "line": 132,
+ "column": 57
},
"end": {
- "line": 115,
- "column": 40
+ "line": 132,
+ "column": 58
}
}
},
{
"type": {
- "label": "]",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -30773,46 +33329,34 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4015,
- "end": 4016,
+ "start": 4441,
+ "end": 4442,
"loc": {
"start": {
- "line": 115,
- "column": 40
+ "line": 133,
+ "column": 4
},
"end": {
- "line": 115,
- "column": 41
+ "line": 133,
+ "column": 5
}
}
},
{
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 4017,
- "end": 4018,
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 4448,
+ "end": 4611,
"loc": {
"start": {
- "line": 115,
- "column": 42
+ "line": 134,
+ "column": 4
},
"end": {
- "line": 115,
- "column": 43
+ "line": 138,
+ "column": 7
}
}
},
@@ -30828,23 +33372,23 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 4019,
- "end": 4025,
+ "value": "setDataURL",
+ "start": 4617,
+ "end": 4627,
"loc": {
"start": {
- "line": 115,
- "column": 44
+ "line": 139,
+ "column": 4
},
"end": {
- "line": 115,
- "column": 50
+ "line": 139,
+ "column": 14
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -30852,25 +33396,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4025,
- "end": 4026,
+ "start": 4627,
+ "end": 4628,
"loc": {
"start": {
- "line": 115,
- "column": 50
+ "line": 139,
+ "column": 14
},
"end": {
- "line": 115,
- "column": 51
+ "line": 139,
+ "column": 15
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -30878,26 +33421,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 1,
- "start": 4026,
- "end": 4027,
+ "value": "pDataURL",
+ "start": 4628,
+ "end": 4636,
"loc": {
"start": {
- "line": 115,
- "column": 51
+ "line": 139,
+ "column": 15
},
"end": {
- "line": 115,
- "column": 52
+ "line": 139,
+ "column": 23
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -30905,68 +33447,78 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4027,
- "end": 4028,
+ "start": 4636,
+ "end": 4637,
"loc": {
"start": {
- "line": 115,
- "column": 52
+ "line": 139,
+ "column": 23
},
"end": {
- "line": 115,
- "column": 53
+ "line": 139,
+ "column": 24
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4028,
- "end": 4029,
+ "start": 4638,
+ "end": 4639,
"loc": {
"start": {
- "line": 115,
- "column": 53
+ "line": 139,
+ "column": 25
},
"end": {
- "line": 115,
- "column": 54
+ "line": 139,
+ "column": 26
}
}
},
{
- "type": "CommentLine",
- "value": " frame array",
- "start": 4051,
- "end": 4065,
+ "type": {
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "if",
+ "start": 4649,
+ "end": 4651,
"loc": {
"start": {
- "line": 116,
- "column": 20
+ "line": 140,
+ "column": 8
},
"end": {
- "line": 116,
- "column": 34
+ "line": 140,
+ "column": 10
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -30975,130 +33527,127 @@
"postfix": false,
"binop": null
},
- "value": "aggregatedIconData",
- "start": 4087,
- "end": 4105,
+ "start": 4652,
+ "end": 4653,
"loc": {
"start": {
- "line": 117,
- "column": 20
+ "line": 140,
+ "column": 11
},
"end": {
- "line": 117,
- "column": 38
+ "line": 140,
+ "column": 12
}
}
},
{
"type": {
- "label": "[",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4105,
- "end": 4106,
+ "value": "pDataURL",
+ "start": 4653,
+ "end": 4661,
"loc": {
"start": {
- "line": 117,
- "column": 38
+ "line": 140,
+ "column": 12
},
"end": {
- "line": 117,
- "column": 39
+ "line": 140,
+ "column": 20
}
}
},
{
"type": {
- "label": "num",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 5,
- "start": 4106,
- "end": 4107,
+ "start": 4661,
+ "end": 4662,
"loc": {
"start": {
- "line": 117,
- "column": 39
+ "line": 140,
+ "column": 20
},
"end": {
- "line": 117,
- "column": 40
+ "line": 140,
+ "column": 21
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4107,
- "end": 4108,
+ "start": 4663,
+ "end": 4664,
"loc": {
"start": {
- "line": 117,
- "column": 40
+ "line": 140,
+ "column": 22
},
"end": {
- "line": 117,
- "column": 41
+ "line": 140,
+ "column": 23
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 4109,
- "end": 4110,
+ "value": "if",
+ "start": 4678,
+ "end": 4680,
"loc": {
"start": {
- "line": 117,
- "column": 42
+ "line": 141,
+ "column": 12
},
"end": {
- "line": 117,
- "column": 43
+ "line": 141,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -31107,158 +33656,155 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 4111,
- "end": 4117,
+ "start": 4681,
+ "end": 4682,
"loc": {
"start": {
- "line": 117,
- "column": 44
+ "line": 141,
+ "column": 15
},
"end": {
- "line": 117,
- "column": 50
+ "line": 141,
+ "column": 16
}
}
},
{
"type": {
- "label": "[",
+ "label": "typeof",
+ "keyword": "typeof",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 4117,
- "end": 4118,
+ "value": "typeof",
+ "start": 4682,
+ "end": 4688,
"loc": {
"start": {
- "line": 117,
- "column": 50
+ "line": 141,
+ "column": 16
},
"end": {
- "line": 117,
- "column": 51
+ "line": 141,
+ "column": 22
}
}
},
{
"type": {
- "label": "num",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 3,
- "start": 4118,
- "end": 4119,
+ "start": 4688,
+ "end": 4689,
"loc": {
"start": {
- "line": 117,
- "column": 51
+ "line": 141,
+ "column": 22
},
"end": {
- "line": 117,
- "column": 52
+ "line": 141,
+ "column": 23
}
}
},
{
"type": {
- "label": "]",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4119,
- "end": 4120,
+ "value": "pDataURL",
+ "start": 4689,
+ "end": 4697,
"loc": {
"start": {
- "line": 117,
- "column": 52
+ "line": 141,
+ "column": 23
},
"end": {
- "line": 117,
- "column": 53
+ "line": 141,
+ "column": 31
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4120,
- "end": 4121,
+ "start": 4697,
+ "end": 4698,
"loc": {
"start": {
- "line": 117,
- "column": 53
+ "line": 141,
+ "column": 31
},
"end": {
- "line": 117,
- "column": 54
+ "line": 141,
+ "column": 32
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "==/!=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "value": "this",
- "start": 4143,
- "end": 4147,
+ "value": "===",
+ "start": 4699,
+ "end": 4702,
"loc": {
"start": {
- "line": 118,
- "column": 20
+ "line": 141,
+ "column": 33
},
"end": {
- "line": 118,
- "column": 24
+ "line": 141,
+ "column": 36
}
}
},
{
"type": {
- "label": ".",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -31267,24 +33813,25 @@
"binop": null,
"updateContext": null
},
- "start": 4147,
- "end": 4148,
+ "value": "string",
+ "start": 4703,
+ "end": 4711,
"loc": {
"start": {
- "line": 118,
- "column": 24
+ "line": 141,
+ "column": 37
},
"end": {
- "line": 118,
- "column": 25
+ "line": 141,
+ "column": 45
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -31292,23 +33839,22 @@
"postfix": false,
"binop": null
},
- "value": "addState",
- "start": 4148,
- "end": 4156,
+ "start": 4711,
+ "end": 4712,
"loc": {
"start": {
- "line": 118,
- "column": 25
+ "line": 141,
+ "column": 45
},
"end": {
- "line": 118,
- "column": 33
+ "line": 141,
+ "column": 46
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -31318,22 +33864,23 @@
"postfix": false,
"binop": null
},
- "start": 4156,
- "end": 4157,
+ "start": 4713,
+ "end": 4714,
"loc": {
"start": {
- "line": 118,
- "column": 33
+ "line": 141,
+ "column": 47
},
"end": {
- "line": 118,
- "column": 34
+ "line": 141,
+ "column": 48
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -31341,25 +33888,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "aggregatedIconData",
- "start": 4157,
- "end": 4175,
+ "value": "this",
+ "start": 4732,
+ "end": 4736,
"loc": {
"start": {
- "line": 118,
- "column": 34
+ "line": 142,
+ "column": 16
},
"end": {
- "line": 118,
- "column": 52
+ "line": 142,
+ "column": 20
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -31367,77 +33915,80 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4175,
- "end": 4176,
+ "start": 4736,
+ "end": 4737,
"loc": {
"start": {
- "line": 118,
- "column": 52
+ "line": 142,
+ "column": 20
},
"end": {
- "line": 118,
- "column": 53
+ "line": 142,
+ "column": 21
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4176,
- "end": 4177,
+ "value": "dataURL",
+ "start": 4737,
+ "end": 4744,
"loc": {
"start": {
- "line": 118,
- "column": 53
+ "line": 142,
+ "column": 21
},
"end": {
- "line": 118,
- "column": 54
+ "line": 142,
+ "column": 28
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4195,
- "end": 4196,
+ "value": "=",
+ "start": 4745,
+ "end": 4746,
"loc": {
"start": {
- "line": 119,
- "column": 16
+ "line": 142,
+ "column": 29
},
"end": {
- "line": 119,
- "column": 17
+ "line": 142,
+ "column": 30
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -31445,16 +33996,17 @@
"postfix": false,
"binop": null
},
- "start": 4196,
- "end": 4197,
+ "value": "pDataURL",
+ "start": 4747,
+ "end": 4755,
"loc": {
"start": {
- "line": 119,
- "column": 17
+ "line": 142,
+ "column": 31
},
"end": {
- "line": 119,
- "column": 18
+ "line": 142,
+ "column": 39
}
}
},
@@ -31471,16 +34023,16 @@
"binop": null,
"updateContext": null
},
- "start": 4197,
- "end": 4198,
+ "start": 4755,
+ "end": 4756,
"loc": {
"start": {
- "line": 119,
- "column": 18
+ "line": 142,
+ "column": 39
},
"end": {
- "line": 119,
- "column": 19
+ "line": 142,
+ "column": 40
}
}
},
@@ -31496,49 +34048,52 @@
"postfix": false,
"binop": null
},
- "start": 4212,
- "end": 4213,
+ "start": 4770,
+ "end": 4771,
"loc": {
"start": {
- "line": 120,
+ "line": 143,
"column": 12
},
"end": {
- "line": 120,
+ "line": 143,
"column": 13
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4223,
- "end": 4224,
+ "value": "else",
+ "start": 4772,
+ "end": 4776,
"loc": {
"start": {
- "line": 121,
- "column": 8
+ "line": 143,
+ "column": 14
},
"end": {
- "line": 121,
- "column": 9
+ "line": 143,
+ "column": 18
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -31546,32 +34101,16 @@
"postfix": false,
"binop": null
},
- "start": 4230,
- "end": 4231,
+ "start": 4777,
+ "end": 4778,
"loc": {
"start": {
- "line": 122,
- "column": 4
- },
- "end": {
- "line": 122,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4237,
- "end": 4445,
- "loc": {
- "start": {
- "line": 123,
- "column": 4
+ "line": 143,
+ "column": 19
},
"end": {
- "line": 128,
- "column": 7
+ "line": 143,
+ "column": 20
}
}
},
@@ -31587,42 +34126,43 @@
"postfix": false,
"binop": null
},
- "value": "setSize",
- "start": 4451,
- "end": 4458,
+ "value": "VYI",
+ "start": 4796,
+ "end": 4799,
"loc": {
"start": {
- "line": 129,
- "column": 4
+ "line": 144,
+ "column": 16
},
"end": {
- "line": 129,
- "column": 11
+ "line": 144,
+ "column": 19
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4458,
- "end": 4459,
+ "start": 4799,
+ "end": 4800,
"loc": {
"start": {
- "line": 129,
- "column": 11
+ "line": 144,
+ "column": 19
},
"end": {
- "line": 129,
- "column": 12
+ "line": 144,
+ "column": 20
}
}
},
@@ -31638,24 +34178,24 @@
"postfix": false,
"binop": null
},
- "value": "pWidth",
- "start": 4459,
- "end": 4465,
+ "value": "logger",
+ "start": 4800,
+ "end": 4806,
"loc": {
"start": {
- "line": 129,
- "column": 12
+ "line": 144,
+ "column": 20
},
"end": {
- "line": 129,
- "column": 18
+ "line": 144,
+ "column": 26
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -31665,16 +34205,16 @@
"binop": null,
"updateContext": null
},
- "start": 4465,
- "end": 4466,
+ "start": 4806,
+ "end": 4807,
"loc": {
"start": {
- "line": 129,
- "column": 18
+ "line": 144,
+ "column": 26
},
"end": {
- "line": 129,
- "column": 19
+ "line": 144,
+ "column": 27
}
}
},
@@ -31690,25 +34230,25 @@
"postfix": false,
"binop": null
},
- "value": "pHeight",
- "start": 4467,
- "end": 4474,
+ "value": "prefix",
+ "start": 4807,
+ "end": 4813,
"loc": {
"start": {
- "line": 129,
- "column": 20
+ "line": 144,
+ "column": 27
},
"end": {
- "line": 129,
- "column": 27
+ "line": 144,
+ "column": 33
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -31716,48 +34256,49 @@
"postfix": false,
"binop": null
},
- "start": 4474,
- "end": 4475,
+ "start": 4813,
+ "end": 4814,
"loc": {
"start": {
- "line": 129,
- "column": 27
+ "line": 144,
+ "column": 33
},
"end": {
- "line": 129,
- "column": 28
+ "line": 144,
+ "column": 34
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "string",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4476,
- "end": 4477,
+ "value": "VYI-module",
+ "start": 4814,
+ "end": 4826,
"loc": {
"start": {
- "line": 129,
- "column": 29
+ "line": 144,
+ "column": 34
},
"end": {
- "line": 129,
- "column": 30
+ "line": 144,
+ "column": 46
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -31765,73 +34306,70 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 4487,
- "end": 4489,
+ "start": 4826,
+ "end": 4827,
"loc": {
"start": {
- "line": 130,
- "column": 8
+ "line": 144,
+ "column": 46
},
"end": {
- "line": 130,
- "column": 10
+ "line": 144,
+ "column": 47
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4490,
- "end": 4491,
+ "start": 4827,
+ "end": 4828,
"loc": {
"start": {
- "line": 130,
- "column": 11
+ "line": 144,
+ "column": 47
},
"end": {
- "line": 130,
- "column": 12
+ "line": 144,
+ "column": 48
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "typeof",
- "start": 4491,
- "end": 4497,
+ "value": "error",
+ "start": 4828,
+ "end": 4833,
"loc": {
"start": {
- "line": 130,
- "column": 12
+ "line": 144,
+ "column": 48
},
"end": {
- "line": 130,
- "column": 18
+ "line": 144,
+ "column": 53
}
}
},
@@ -31847,22 +34385,22 @@
"postfix": false,
"binop": null
},
- "start": 4497,
- "end": 4498,
+ "start": 4833,
+ "end": 4834,
"loc": {
"start": {
- "line": 130,
- "column": 18
+ "line": 144,
+ "column": 53
},
"end": {
- "line": 130,
- "column": 19
+ "line": 144,
+ "column": 54
}
}
},
{
"type": {
- "label": "name",
+ "label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -31870,19 +34408,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pWidth",
- "start": 4498,
- "end": 4504,
+ "value": "Invalid data url type!",
+ "start": 4834,
+ "end": 4858,
"loc": {
"start": {
- "line": 130,
- "column": 19
+ "line": 144,
+ "column": 54
},
"end": {
- "line": 130,
- "column": 25
+ "line": 144,
+ "column": 78
}
}
},
@@ -31898,22 +34437,22 @@
"postfix": false,
"binop": null
},
- "start": 4504,
- "end": 4505,
+ "start": 4858,
+ "end": 4859,
"loc": {
"start": {
- "line": 130,
- "column": 25
+ "line": 144,
+ "column": 78
},
"end": {
- "line": 130,
- "column": 26
+ "line": 144,
+ "column": 79
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -31921,53 +34460,50 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
+ "binop": null,
"updateContext": null
},
- "value": "===",
- "start": 4506,
- "end": 4509,
+ "start": 4859,
+ "end": 4860,
"loc": {
"start": {
- "line": 130,
- "column": 27
+ "line": 144,
+ "column": 79
},
"end": {
- "line": 130,
- "column": 30
+ "line": 144,
+ "column": 80
}
}
},
{
"type": {
- "label": "string",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "number",
- "start": 4510,
- "end": 4518,
+ "start": 4874,
+ "end": 4875,
"loc": {
"start": {
- "line": 130,
- "column": 31
+ "line": 145,
+ "column": 12
},
"end": {
- "line": 130,
- "column": 39
+ "line": 145,
+ "column": 13
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -31977,41 +34513,44 @@
"postfix": false,
"binop": null
},
- "start": 4518,
- "end": 4519,
+ "start": 4885,
+ "end": 4886,
"loc": {
"start": {
- "line": 130,
- "column": 39
+ "line": 146,
+ "column": 8
},
"end": {
- "line": 130,
- "column": 40
+ "line": 146,
+ "column": 9
}
}
},
{
"type": {
- "label": "{",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4520,
- "end": 4521,
+ "value": "return",
+ "start": 4896,
+ "end": 4902,
"loc": {
"start": {
- "line": 130,
- "column": 41
+ "line": 147,
+ "column": 8
},
"end": {
- "line": 130,
- "column": 42
+ "line": 147,
+ "column": 14
}
}
},
@@ -32030,23 +34569,23 @@
"updateContext": null
},
"value": "this",
- "start": 4535,
- "end": 4539,
+ "start": 4903,
+ "end": 4907,
"loc": {
"start": {
- "line": 131,
- "column": 12
+ "line": 147,
+ "column": 15
},
"end": {
- "line": 131,
- "column": 16
+ "line": 147,
+ "column": 19
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -32056,24 +34595,24 @@
"binop": null,
"updateContext": null
},
- "start": 4539,
- "end": 4540,
+ "start": 4907,
+ "end": 4908,
"loc": {
"start": {
- "line": 131,
- "column": 16
+ "line": 147,
+ "column": 19
},
"end": {
- "line": 131,
- "column": 17
+ "line": 147,
+ "column": 20
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -32081,44 +34620,32 @@
"postfix": false,
"binop": null
},
- "value": "width",
- "start": 4540,
- "end": 4545,
+ "start": 4914,
+ "end": 4915,
"loc": {
"start": {
- "line": 131,
- "column": 17
+ "line": 148,
+ "column": 4
},
"end": {
- "line": 131,
- "column": 22
+ "line": 148,
+ "column": 5
}
}
},
{
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 4546,
- "end": 4547,
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
+ "start": 4921,
+ "end": 5033,
"loc": {
"start": {
- "line": 131,
- "column": 23
+ "line": 149,
+ "column": 4
},
"end": {
- "line": 131,
- "column": 24
+ "line": 152,
+ "column": 7
}
}
},
@@ -32134,49 +34661,48 @@
"postfix": false,
"binop": null
},
- "value": "pWidth",
- "start": 4548,
- "end": 4554,
+ "value": "getDataURL",
+ "start": 5039,
+ "end": 5049,
"loc": {
"start": {
- "line": 131,
- "column": 25
+ "line": 153,
+ "column": 4
},
"end": {
- "line": 131,
- "column": 31
+ "line": 153,
+ "column": 14
}
}
},
{
"type": {
- "label": ";",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4554,
- "end": 4555,
+ "start": 5049,
+ "end": 5050,
"loc": {
"start": {
- "line": 131,
- "column": 31
+ "line": 153,
+ "column": 14
},
"end": {
- "line": 131,
- "column": 32
+ "line": 153,
+ "column": 15
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -32186,122 +34712,123 @@
"postfix": false,
"binop": null
},
- "start": 4565,
- "end": 4566,
+ "start": 5050,
+ "end": 5051,
"loc": {
"start": {
- "line": 132,
- "column": 8
+ "line": 153,
+ "column": 15
},
"end": {
- "line": 132,
- "column": 9
+ "line": 153,
+ "column": 16
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 4576,
- "end": 4578,
+ "start": 5052,
+ "end": 5053,
"loc": {
"start": {
- "line": 133,
- "column": 8
+ "line": 153,
+ "column": 17
},
"end": {
- "line": 133,
- "column": 10
+ "line": 153,
+ "column": 18
}
}
},
{
"type": {
- "label": "(",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4579,
- "end": 4580,
+ "value": "return",
+ "start": 5063,
+ "end": 5069,
"loc": {
"start": {
- "line": 133,
- "column": 11
+ "line": 154,
+ "column": 8
},
"end": {
- "line": 133,
- "column": 12
+ "line": 154,
+ "column": 14
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "typeof",
- "start": 4580,
- "end": 4586,
+ "value": "this",
+ "start": 5070,
+ "end": 5074,
"loc": {
"start": {
- "line": 133,
- "column": 12
+ "line": 154,
+ "column": 15
},
"end": {
- "line": 133,
- "column": 18
+ "line": 154,
+ "column": 19
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4586,
- "end": 4587,
+ "start": 5074,
+ "end": 5075,
"loc": {
"start": {
- "line": 133,
- "column": 18
+ "line": 154,
+ "column": 19
},
"end": {
- "line": 133,
- "column": 19
+ "line": 154,
+ "column": 20
}
}
},
@@ -32317,75 +34844,90 @@
"postfix": false,
"binop": null
},
- "value": "pHeight",
- "start": 4587,
- "end": 4594,
+ "value": "dataURL",
+ "start": 5075,
+ "end": 5082,
"loc": {
"start": {
- "line": 133,
- "column": 19
+ "line": 154,
+ "column": 20
},
"end": {
- "line": 133,
- "column": 26
+ "line": 154,
+ "column": 27
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4594,
- "end": 4595,
+ "start": 5082,
+ "end": 5083,
"loc": {
"start": {
- "line": 133,
- "column": 26
+ "line": 154,
+ "column": 27
},
"end": {
- "line": 133,
- "column": 27
+ "line": 154,
+ "column": 28
}
}
},
{
"type": {
- "label": "==/!=",
- "beforeExpr": true,
+ "label": "}",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
- "updateContext": null
+ "binop": null
},
- "value": "===",
- "start": 4596,
- "end": 4599,
+ "start": 5089,
+ "end": 5090,
"loc": {
"start": {
- "line": 133,
- "column": 28
+ "line": 155,
+ "column": 4
},
"end": {
- "line": 133,
- "column": 31
+ "line": 155,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 5096,
+ "end": 5260,
+ "loc": {
+ "start": {
+ "line": 156,
+ "column": 4
+ },
+ "end": {
+ "line": 160,
+ "column": 7
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -32393,28 +34935,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "number",
- "start": 4600,
- "end": 4608,
+ "value": "setDelay",
+ "start": 5266,
+ "end": 5274,
"loc": {
"start": {
- "line": 133,
- "column": 32
+ "line": 161,
+ "column": 4
},
"end": {
- "line": 133,
- "column": 40
+ "line": 161,
+ "column": 12
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -32422,23 +34963,23 @@
"postfix": false,
"binop": null
},
- "start": 4608,
- "end": 4609,
+ "start": 5274,
+ "end": 5275,
"loc": {
"start": {
- "line": 133,
- "column": 40
+ "line": 161,
+ "column": 12
},
"end": {
- "line": 133,
- "column": 41
+ "line": 161,
+ "column": 13
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -32447,123 +34988,120 @@
"postfix": false,
"binop": null
},
- "start": 4610,
- "end": 4611,
+ "value": "pDelay",
+ "start": 5275,
+ "end": 5281,
"loc": {
"start": {
- "line": 133,
- "column": 42
+ "line": 161,
+ "column": 13
},
"end": {
- "line": 133,
- "column": 43
+ "line": 161,
+ "column": 19
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 4625,
- "end": 4629,
+ "start": 5281,
+ "end": 5282,
"loc": {
"start": {
- "line": 134,
- "column": 12
+ "line": 161,
+ "column": 19
},
"end": {
- "line": 134,
- "column": 16
+ "line": 161,
+ "column": 20
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4629,
- "end": 4630,
+ "start": 5283,
+ "end": 5284,
"loc": {
"start": {
- "line": 134,
- "column": 16
+ "line": 161,
+ "column": 21
},
"end": {
- "line": 134,
- "column": 17
+ "line": 161,
+ "column": 22
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "height",
- "start": 4630,
- "end": 4636,
+ "value": "if",
+ "start": 5294,
+ "end": 5296,
"loc": {
"start": {
- "line": 134,
- "column": 17
+ "line": 162,
+ "column": 8
},
"end": {
- "line": 134,
- "column": 23
+ "line": 162,
+ "column": 10
}
}
},
{
"type": {
- "label": "=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 4637,
- "end": 4638,
+ "start": 5297,
+ "end": 5298,
"loc": {
"start": {
- "line": 134,
- "column": 24
+ "line": 162,
+ "column": 11
},
"end": {
- "line": 134,
- "column": 25
+ "line": 162,
+ "column": 12
}
}
},
@@ -32579,51 +35117,50 @@
"postfix": false,
"binop": null
},
- "value": "pHeight",
- "start": 4639,
- "end": 4646,
+ "value": "pDelay",
+ "start": 5298,
+ "end": 5304,
"loc": {
"start": {
- "line": 134,
- "column": 26
+ "line": 162,
+ "column": 12
},
"end": {
- "line": 134,
- "column": 33
+ "line": 162,
+ "column": 18
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4646,
- "end": 4647,
+ "start": 5304,
+ "end": 5305,
"loc": {
"start": {
- "line": 134,
- "column": 33
+ "line": 162,
+ "column": 18
},
"end": {
- "line": 134,
- "column": 34
+ "line": 162,
+ "column": 19
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -32631,22 +35168,23 @@
"postfix": false,
"binop": null
},
- "start": 4657,
- "end": 4658,
+ "start": 5306,
+ "end": 5307,
"loc": {
"start": {
- "line": 135,
- "column": 8
+ "line": 162,
+ "column": 20
},
"end": {
- "line": 135,
- "column": 9
+ "line": 162,
+ "column": 21
}
}
},
{
"type": {
- "label": "}",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -32654,60 +35192,73 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4664,
- "end": 4665,
+ "value": "if",
+ "start": 5321,
+ "end": 5323,
"loc": {
"start": {
- "line": 136,
- "column": 4
+ "line": 163,
+ "column": 12
},
"end": {
- "line": 136,
- "column": 5
+ "line": 163,
+ "column": 14
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n ",
- "start": 4671,
- "end": 4822,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 5324,
+ "end": 5325,
"loc": {
"start": {
- "line": 137,
- "column": 4
+ "line": 163,
+ "column": 15
},
"end": {
- "line": 140,
- "column": 7
+ "line": 163,
+ "column": 16
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "typeof",
+ "keyword": "typeof",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "getSize",
- "start": 4828,
- "end": 4835,
+ "value": "typeof",
+ "start": 5325,
+ "end": 5331,
"loc": {
"start": {
- "line": 141,
- "column": 4
+ "line": 163,
+ "column": 16
},
"end": {
- "line": 141,
- "column": 11
+ "line": 163,
+ "column": 22
}
}
},
@@ -32723,24 +35274,24 @@
"postfix": false,
"binop": null
},
- "start": 4835,
- "end": 4836,
+ "start": 5331,
+ "end": 5332,
"loc": {
"start": {
- "line": 141,
- "column": 11
+ "line": 163,
+ "column": 22
},
"end": {
- "line": 141,
- "column": 12
+ "line": 163,
+ "column": 23
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -32748,24 +35299,25 @@
"postfix": false,
"binop": null
},
- "start": 4836,
- "end": 4837,
+ "value": "pDelay",
+ "start": 5332,
+ "end": 5338,
"loc": {
"start": {
- "line": 141,
- "column": 12
+ "line": 163,
+ "column": 23
},
"end": {
- "line": 141,
- "column": 13
+ "line": 163,
+ "column": 29
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -32773,23 +35325,22 @@
"postfix": false,
"binop": null
},
- "start": 4838,
- "end": 4839,
+ "start": 5338,
+ "end": 5339,
"loc": {
"start": {
- "line": 141,
- "column": 14
+ "line": 163,
+ "column": 29
},
"end": {
- "line": 141,
- "column": 15
+ "line": 163,
+ "column": 30
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
+ "label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -32797,53 +35348,55 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "value": "return",
- "start": 4849,
- "end": 4855,
+ "value": "===",
+ "start": 5340,
+ "end": 5343,
"loc": {
"start": {
- "line": 142,
- "column": 8
+ "line": 163,
+ "column": 31
},
"end": {
- "line": 142,
- "column": 14
+ "line": 163,
+ "column": 34
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "string",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 4856,
- "end": 4857,
+ "value": "number",
+ "start": 5344,
+ "end": 5352,
"loc": {
"start": {
- "line": 142,
- "column": 15
+ "line": 163,
+ "column": 35
},
"end": {
- "line": 142,
- "column": 16
+ "line": 163,
+ "column": 43
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -32851,43 +35404,41 @@
"postfix": false,
"binop": null
},
- "value": "width",
- "start": 4858,
- "end": 4863,
+ "start": 5352,
+ "end": 5353,
"loc": {
"start": {
- "line": 142,
- "column": 17
+ "line": 163,
+ "column": 43
},
"end": {
- "line": 142,
- "column": 22
+ "line": 163,
+ "column": 44
}
}
},
{
"type": {
- "label": ":",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 4863,
- "end": 4864,
+ "start": 5354,
+ "end": 5355,
"loc": {
"start": {
- "line": 142,
- "column": 22
+ "line": 163,
+ "column": 45
},
"end": {
- "line": 142,
- "column": 23
+ "line": 163,
+ "column": 46
}
}
},
@@ -32906,16 +35457,16 @@
"updateContext": null
},
"value": "this",
- "start": 4865,
- "end": 4869,
+ "start": 5373,
+ "end": 5377,
"loc": {
"start": {
- "line": 142,
- "column": 24
+ "line": 164,
+ "column": 16
},
"end": {
- "line": 142,
- "column": 28
+ "line": 164,
+ "column": 20
}
}
},
@@ -32932,16 +35483,16 @@
"binop": null,
"updateContext": null
},
- "start": 4869,
- "end": 4870,
+ "start": 5377,
+ "end": 5378,
"loc": {
"start": {
- "line": 142,
- "column": 28
+ "line": 164,
+ "column": 20
},
"end": {
- "line": 142,
- "column": 29
+ "line": 164,
+ "column": 21
}
}
},
@@ -32957,43 +35508,44 @@
"postfix": false,
"binop": null
},
- "value": "width",
- "start": 4870,
- "end": 4875,
+ "value": "delay",
+ "start": 5378,
+ "end": 5383,
"loc": {
"start": {
- "line": 142,
- "column": 29
+ "line": 164,
+ "column": 21
},
"end": {
- "line": 142,
- "column": 34
+ "line": 164,
+ "column": 26
}
}
},
{
"type": {
- "label": ",",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 4875,
- "end": 4876,
+ "value": "=",
+ "start": 5384,
+ "end": 5385,
"loc": {
"start": {
- "line": 142,
- "column": 34
+ "line": 164,
+ "column": 27
},
"end": {
- "line": 142,
- "column": 35
+ "line": 164,
+ "column": 28
}
}
},
@@ -33009,23 +35561,23 @@
"postfix": false,
"binop": null
},
- "value": "height",
- "start": 4877,
- "end": 4883,
+ "value": "pDelay",
+ "start": 5386,
+ "end": 5392,
"loc": {
"start": {
- "line": 142,
- "column": 36
+ "line": 164,
+ "column": 29
},
"end": {
- "line": 142,
- "column": 42
+ "line": 164,
+ "column": 35
}
}
},
{
"type": {
- "label": ":",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -33036,51 +35588,49 @@
"binop": null,
"updateContext": null
},
- "start": 4883,
- "end": 4884,
+ "start": 5392,
+ "end": 5393,
"loc": {
"start": {
- "line": 142,
- "column": 42
+ "line": 164,
+ "column": 35
},
"end": {
- "line": 142,
- "column": 43
+ "line": 164,
+ "column": 36
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 4885,
- "end": 4889,
+ "start": 5407,
+ "end": 5408,
"loc": {
"start": {
- "line": 142,
- "column": 44
+ "line": 165,
+ "column": 12
},
"end": {
- "line": 142,
- "column": 48
+ "line": 165,
+ "column": 13
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -33090,23 +35640,24 @@
"binop": null,
"updateContext": null
},
- "start": 4889,
- "end": 4890,
+ "value": "else",
+ "start": 5409,
+ "end": 5413,
"loc": {
"start": {
- "line": 142,
- "column": 48
+ "line": 165,
+ "column": 14
},
"end": {
- "line": 142,
- "column": 49
+ "line": 165,
+ "column": 18
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -33115,25 +35666,24 @@
"postfix": false,
"binop": null
},
- "value": "height",
- "start": 4890,
- "end": 4896,
+ "start": 5414,
+ "end": 5415,
"loc": {
"start": {
- "line": 142,
- "column": 49
+ "line": 165,
+ "column": 19
},
"end": {
- "line": 142,
- "column": 55
+ "line": 165,
+ "column": 20
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -33141,23 +35691,24 @@
"postfix": false,
"binop": null
},
- "start": 4897,
- "end": 4898,
+ "value": "VYI",
+ "start": 5433,
+ "end": 5436,
"loc": {
"start": {
- "line": 142,
- "column": 56
+ "line": 166,
+ "column": 16
},
"end": {
- "line": 142,
- "column": 57
+ "line": 166,
+ "column": 19
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -33167,24 +35718,24 @@
"binop": null,
"updateContext": null
},
- "start": 4898,
- "end": 4899,
+ "start": 5436,
+ "end": 5437,
"loc": {
"start": {
- "line": 142,
- "column": 57
+ "line": 166,
+ "column": 19
},
"end": {
- "line": 142,
- "column": 58
+ "line": 166,
+ "column": 20
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -33192,32 +35743,43 @@
"postfix": false,
"binop": null
},
- "start": 4905,
- "end": 4906,
+ "value": "logger",
+ "start": 5437,
+ "end": 5443,
"loc": {
"start": {
- "line": 143,
- "column": 4
+ "line": 166,
+ "column": 20
},
"end": {
- "line": 143,
- "column": 5
+ "line": 166,
+ "column": 26
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 4912,
- "end": 5075,
+ "type": {
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 5443,
+ "end": 5444,
"loc": {
"start": {
- "line": 144,
- "column": 4
+ "line": 166,
+ "column": 26
},
"end": {
- "line": 148,
- "column": 7
+ "line": 166,
+ "column": 27
}
}
},
@@ -33233,17 +35795,17 @@
"postfix": false,
"binop": null
},
- "value": "setDataURL",
- "start": 5081,
- "end": 5091,
+ "value": "prefix",
+ "start": 5444,
+ "end": 5450,
"loc": {
"start": {
- "line": 149,
- "column": 4
+ "line": 166,
+ "column": 27
},
"end": {
- "line": 149,
- "column": 14
+ "line": 166,
+ "column": 33
}
}
},
@@ -33259,22 +35821,22 @@
"postfix": false,
"binop": null
},
- "start": 5091,
- "end": 5092,
+ "start": 5450,
+ "end": 5451,
"loc": {
"start": {
- "line": 149,
- "column": 14
+ "line": 166,
+ "column": 33
},
"end": {
- "line": 149,
- "column": 15
+ "line": 166,
+ "column": 34
}
}
},
{
"type": {
- "label": "name",
+ "label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -33282,19 +35844,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDataURL",
- "start": 5092,
- "end": 5100,
+ "value": "VYI-module",
+ "start": 5451,
+ "end": 5463,
"loc": {
"start": {
- "line": 149,
- "column": 15
+ "line": 166,
+ "column": 34
},
"end": {
- "line": 149,
- "column": 23
+ "line": 166,
+ "column": 46
}
}
},
@@ -33310,69 +35873,68 @@
"postfix": false,
"binop": null
},
- "start": 5100,
- "end": 5101,
+ "start": 5463,
+ "end": 5464,
"loc": {
"start": {
- "line": 149,
- "column": 23
+ "line": 166,
+ "column": 46
},
"end": {
- "line": 149,
- "column": 24
+ "line": 166,
+ "column": 47
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5102,
- "end": 5103,
+ "start": 5464,
+ "end": 5465,
"loc": {
"start": {
- "line": 149,
- "column": 25
+ "line": 166,
+ "column": 47
},
"end": {
- "line": 149,
- "column": 26
+ "line": 166,
+ "column": 48
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 5113,
- "end": 5115,
+ "value": "error",
+ "start": 5465,
+ "end": 5470,
"loc": {
"start": {
- "line": 150,
- "column": 8
+ "line": 166,
+ "column": 48
},
"end": {
- "line": 150,
- "column": 10
+ "line": 166,
+ "column": 53
}
}
},
@@ -33388,22 +35950,22 @@
"postfix": false,
"binop": null
},
- "start": 5116,
- "end": 5117,
+ "start": 5470,
+ "end": 5471,
"loc": {
"start": {
- "line": 150,
- "column": 11
+ "line": 166,
+ "column": 53
},
"end": {
- "line": 150,
- "column": 12
+ "line": 166,
+ "column": 54
}
}
},
{
"type": {
- "label": "name",
+ "label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -33411,19 +35973,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDataURL",
- "start": 5117,
- "end": 5125,
+ "value": "Invalid delay type!",
+ "start": 5471,
+ "end": 5492,
"loc": {
"start": {
- "line": 150,
- "column": 12
+ "line": 166,
+ "column": 54
},
"end": {
- "line": 150,
- "column": 20
+ "line": 166,
+ "column": 75
}
}
},
@@ -33439,48 +36002,48 @@
"postfix": false,
"binop": null
},
- "start": 5125,
- "end": 5126,
+ "start": 5492,
+ "end": 5493,
"loc": {
"start": {
- "line": 150,
- "column": 20
+ "line": 166,
+ "column": 75
},
"end": {
- "line": 150,
- "column": 21
+ "line": 166,
+ "column": 76
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5127,
- "end": 5128,
+ "start": 5493,
+ "end": 5494,
"loc": {
"start": {
- "line": 150,
- "column": 22
+ "line": 166,
+ "column": 76
},
"end": {
- "line": 150,
- "column": 23
+ "line": 166,
+ "column": 77
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -33488,28 +36051,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 5142,
- "end": 5144,
+ "start": 5508,
+ "end": 5509,
"loc": {
"start": {
- "line": 151,
+ "line": 167,
"column": 12
},
"end": {
- "line": 151,
- "column": 14
+ "line": 167,
+ "column": 13
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -33517,101 +36078,104 @@
"postfix": false,
"binop": null
},
- "start": 5145,
- "end": 5146,
+ "start": 5519,
+ "end": 5520,
"loc": {
"start": {
- "line": 151,
- "column": 15
+ "line": 168,
+ "column": 8
},
"end": {
- "line": 151,
- "column": 16
+ "line": 168,
+ "column": 9
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "typeof",
- "start": 5146,
- "end": 5152,
+ "value": "return",
+ "start": 5530,
+ "end": 5536,
"loc": {
"start": {
- "line": 151,
- "column": 16
+ "line": 169,
+ "column": 8
},
"end": {
- "line": 151,
- "column": 22
+ "line": 169,
+ "column": 14
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5152,
- "end": 5153,
+ "value": "this",
+ "start": 5537,
+ "end": 5541,
"loc": {
"start": {
- "line": 151,
- "column": 22
+ "line": 169,
+ "column": 15
},
"end": {
- "line": 151,
- "column": 23
+ "line": 169,
+ "column": 19
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDataURL",
- "start": 5153,
- "end": 5161,
+ "start": 5541,
+ "end": 5542,
"loc": {
"start": {
- "line": 151,
- "column": 23
+ "line": 169,
+ "column": 19
},
"end": {
- "line": 151,
- "column": 31
+ "line": 169,
+ "column": 20
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -33621,70 +36185,83 @@
"postfix": false,
"binop": null
},
- "start": 5161,
- "end": 5162,
+ "start": 5548,
+ "end": 5549,
"loc": {
"start": {
- "line": 151,
- "column": 31
+ "line": 170,
+ "column": 4
},
"end": {
- "line": 151,
- "column": 32
+ "line": 170,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n ",
+ "start": 5555,
+ "end": 5654,
+ "loc": {
+ "start": {
+ "line": 171,
+ "column": 4
+ },
+ "end": {
+ "line": 174,
+ "column": 7
}
}
},
{
"type": {
- "label": "==/!=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
- "updateContext": null
+ "binop": null
},
- "value": "===",
- "start": 5163,
- "end": 5166,
+ "value": "getDelay",
+ "start": 5660,
+ "end": 5668,
"loc": {
"start": {
- "line": 151,
- "column": 33
+ "line": 175,
+ "column": 4
},
"end": {
- "line": 151,
- "column": 36
+ "line": 175,
+ "column": 12
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "string",
- "start": 5167,
- "end": 5175,
+ "start": 5668,
+ "end": 5669,
"loc": {
"start": {
- "line": 151,
- "column": 37
+ "line": 175,
+ "column": 12
},
"end": {
- "line": 151,
- "column": 45
+ "line": 175,
+ "column": 13
}
}
},
@@ -33700,16 +36277,16 @@
"postfix": false,
"binop": null
},
- "start": 5175,
- "end": 5176,
+ "start": 5669,
+ "end": 5670,
"loc": {
"start": {
- "line": 151,
- "column": 45
+ "line": 175,
+ "column": 13
},
"end": {
- "line": 151,
- "column": 46
+ "line": 175,
+ "column": 14
}
}
},
@@ -33725,51 +36302,24 @@
"postfix": false,
"binop": null
},
- "start": 5177,
- "end": 5178,
+ "start": 5671,
+ "end": 5672,
"loc": {
"start": {
- "line": 151,
- "column": 47
+ "line": 175,
+ "column": 15
},
"end": {
- "line": 151,
- "column": 48
- }
- }
- },
- {
- "type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "this",
- "start": 5196,
- "end": 5200,
- "loc": {
- "start": {
- "line": 152,
+ "line": 175,
"column": 16
- },
- "end": {
- "line": 152,
- "column": 20
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "return",
+ "keyword": "return",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -33779,22 +36329,24 @@
"binop": null,
"updateContext": null
},
- "start": 5200,
- "end": 5201,
+ "value": "return",
+ "start": 5682,
+ "end": 5688,
"loc": {
"start": {
- "line": 152,
- "column": 20
+ "line": 176,
+ "column": 8
},
"end": {
- "line": 152,
- "column": 21
+ "line": 176,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -33802,46 +36354,46 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "dataURL",
- "start": 5201,
- "end": 5208,
+ "value": "this",
+ "start": 5689,
+ "end": 5693,
"loc": {
"start": {
- "line": 152,
- "column": 21
+ "line": 176,
+ "column": 15
},
"end": {
- "line": 152,
- "column": 28
+ "line": 176,
+ "column": 19
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 5209,
- "end": 5210,
+ "start": 5693,
+ "end": 5694,
"loc": {
"start": {
- "line": 152,
- "column": 29
+ "line": 176,
+ "column": 19
},
"end": {
- "line": 152,
- "column": 30
+ "line": 176,
+ "column": 20
}
}
},
@@ -33857,17 +36409,17 @@
"postfix": false,
"binop": null
},
- "value": "pDataURL",
- "start": 5211,
- "end": 5219,
+ "value": "delay",
+ "start": 5694,
+ "end": 5699,
"loc": {
"start": {
- "line": 152,
- "column": 31
+ "line": 176,
+ "column": 20
},
"end": {
- "line": 152,
- "column": 39
+ "line": 176,
+ "column": 25
}
}
},
@@ -33884,16 +36436,16 @@
"binop": null,
"updateContext": null
},
- "start": 5219,
- "end": 5220,
+ "start": 5699,
+ "end": 5700,
"loc": {
"start": {
- "line": 152,
- "column": 39
+ "line": 176,
+ "column": 25
},
"end": {
- "line": 152,
- "column": 40
+ "line": 176,
+ "column": 26
}
}
},
@@ -33909,50 +36461,64 @@
"postfix": false,
"binop": null
},
- "start": 5234,
- "end": 5235,
+ "start": 5706,
+ "end": 5707,
"loc": {
"start": {
- "line": 153,
- "column": 12
+ "line": 177,
+ "column": 4
},
"end": {
- "line": 153,
- "column": 13
+ "line": 177,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 5713,
+ "end": 5866,
+ "loc": {
+ "start": {
+ "line": 178,
+ "column": 4
+ },
+ "end": {
+ "line": 182,
+ "column": 7
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "else",
- "start": 5236,
- "end": 5240,
+ "value": "rename",
+ "start": 5872,
+ "end": 5878,
"loc": {
"start": {
- "line": 153,
- "column": 14
+ "line": 183,
+ "column": 4
},
"end": {
- "line": 153,
- "column": 18
+ "line": 183,
+ "column": 10
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -33962,16 +36528,16 @@
"postfix": false,
"binop": null
},
- "start": 5241,
- "end": 5242,
+ "start": 5878,
+ "end": 5879,
"loc": {
"start": {
- "line": 153,
- "column": 19
+ "line": 183,
+ "column": 10
},
"end": {
- "line": 153,
- "column": 20
+ "line": 183,
+ "column": 11
}
}
},
@@ -33987,23 +36553,23 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 5260,
- "end": 5263,
+ "value": "pName",
+ "start": 5879,
+ "end": 5884,
"loc": {
"start": {
- "line": 154,
- "column": 16
+ "line": 183,
+ "column": 11
},
"end": {
- "line": 154,
- "column": 19
+ "line": 183,
+ "column": 16
}
}
},
{
"type": {
- "label": ".",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -34011,26 +36577,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 5263,
- "end": 5264,
+ "start": 5884,
+ "end": 5885,
"loc": {
"start": {
- "line": 154,
- "column": 19
+ "line": 183,
+ "column": 16
},
"end": {
- "line": 154,
- "column": 20
+ "line": 183,
+ "column": 17
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -34039,23 +36604,23 @@
"postfix": false,
"binop": null
},
- "value": "logger",
- "start": 5264,
- "end": 5270,
+ "start": 5886,
+ "end": 5887,
"loc": {
"start": {
- "line": 154,
- "column": 20
+ "line": 183,
+ "column": 18
},
"end": {
- "line": 154,
- "column": 26
+ "line": 183,
+ "column": 19
}
}
},
{
"type": {
- "label": ".",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -34066,23 +36631,24 @@
"binop": null,
"updateContext": null
},
- "start": 5270,
- "end": 5271,
+ "value": "if",
+ "start": 5897,
+ "end": 5899,
"loc": {
"start": {
- "line": 154,
- "column": 26
+ "line": 184,
+ "column": 8
},
"end": {
- "line": 154,
- "column": 27
+ "line": 184,
+ "column": 10
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -34091,24 +36657,23 @@
"postfix": false,
"binop": null
},
- "value": "prefix",
- "start": 5271,
- "end": 5277,
+ "start": 5900,
+ "end": 5901,
"loc": {
"start": {
- "line": 154,
- "column": 27
+ "line": 184,
+ "column": 11
},
"end": {
- "line": 154,
- "column": 33
+ "line": 184,
+ "column": 12
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -34117,51 +36682,50 @@
"postfix": false,
"binop": null
},
- "start": 5277,
- "end": 5278,
+ "value": "pName",
+ "start": 5901,
+ "end": 5906,
"loc": {
"start": {
- "line": 154,
- "column": 33
+ "line": 184,
+ "column": 12
},
"end": {
- "line": 154,
- "column": 34
+ "line": 184,
+ "column": 17
}
}
},
{
"type": {
- "label": "string",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "VYI-module",
- "start": 5278,
- "end": 5290,
+ "start": 5906,
+ "end": 5907,
"loc": {
"start": {
- "line": 154,
- "column": 34
+ "line": 184,
+ "column": 17
},
"end": {
- "line": 154,
- "column": 46
+ "line": 184,
+ "column": 18
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -34169,22 +36733,23 @@
"postfix": false,
"binop": null
},
- "start": 5290,
- "end": 5291,
+ "start": 5908,
+ "end": 5909,
"loc": {
"start": {
- "line": 154,
- "column": 46
+ "line": 184,
+ "column": 19
},
"end": {
- "line": 154,
- "column": 47
+ "line": 184,
+ "column": 20
}
}
},
{
"type": {
- "label": ".",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -34195,23 +36760,24 @@
"binop": null,
"updateContext": null
},
- "start": 5291,
- "end": 5292,
+ "value": "if",
+ "start": 5923,
+ "end": 5925,
"loc": {
"start": {
- "line": 154,
- "column": 47
+ "line": 185,
+ "column": 12
},
"end": {
- "line": 154,
- "column": 48
+ "line": 185,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -34220,77 +36786,77 @@
"postfix": false,
"binop": null
},
- "value": "error",
- "start": 5292,
- "end": 5297,
+ "start": 5926,
+ "end": 5927,
"loc": {
"start": {
- "line": 154,
- "column": 48
+ "line": 185,
+ "column": 15
},
"end": {
- "line": 154,
- "column": 53
+ "line": 185,
+ "column": 16
}
}
},
{
"type": {
- "label": "(",
+ "label": "typeof",
+ "keyword": "typeof",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5297,
- "end": 5298,
+ "value": "typeof",
+ "start": 5927,
+ "end": 5933,
"loc": {
"start": {
- "line": 154,
- "column": 53
+ "line": 185,
+ "column": 16
},
"end": {
- "line": 154,
- "column": 54
+ "line": 185,
+ "column": 22
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "Invalid data url type!",
- "start": 5298,
- "end": 5322,
+ "start": 5933,
+ "end": 5934,
"loc": {
"start": {
- "line": 154,
- "column": 54
+ "line": 185,
+ "column": 22
},
"end": {
- "line": 154,
- "column": 78
+ "line": 185,
+ "column": 23
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -34298,156 +36864,155 @@
"postfix": false,
"binop": null
},
- "start": 5322,
- "end": 5323,
+ "value": "pName",
+ "start": 5934,
+ "end": 5939,
"loc": {
"start": {
- "line": 154,
- "column": 78
+ "line": 185,
+ "column": 23
},
"end": {
- "line": 154,
- "column": 79
+ "line": 185,
+ "column": 28
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 5323,
- "end": 5324,
+ "start": 5939,
+ "end": 5940,
"loc": {
"start": {
- "line": 154,
- "column": 79
+ "line": 185,
+ "column": 28
},
"end": {
- "line": 154,
- "column": 80
+ "line": 185,
+ "column": 29
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
+ "label": "==/!=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 6,
+ "updateContext": null
},
- "start": 5338,
- "end": 5339,
+ "value": "===",
+ "start": 5941,
+ "end": 5944,
"loc": {
"start": {
- "line": 155,
- "column": 12
+ "line": 185,
+ "column": 30
},
"end": {
- "line": 155,
- "column": 13
+ "line": 185,
+ "column": 33
}
}
},
{
"type": {
- "label": "}",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5349,
- "end": 5350,
+ "value": "string",
+ "start": 5945,
+ "end": 5953,
"loc": {
"start": {
- "line": 156,
- "column": 8
+ "line": 185,
+ "column": 34
},
"end": {
- "line": 156,
- "column": 9
+ "line": 185,
+ "column": 42
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 5360,
- "end": 5366,
+ "start": 5953,
+ "end": 5954,
"loc": {
"start": {
- "line": 157,
- "column": 8
+ "line": 185,
+ "column": 42
},
"end": {
- "line": 157,
- "column": 14
+ "line": 185,
+ "column": 43
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 5367,
- "end": 5371,
+ "start": 5955,
+ "end": 5956,
"loc": {
"start": {
- "line": 157,
- "column": 15
+ "line": 185,
+ "column": 44
},
"end": {
- "line": 157,
- "column": 19
+ "line": 185,
+ "column": 45
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -34456,22 +37021,23 @@
"binop": null,
"updateContext": null
},
- "start": 5371,
- "end": 5372,
+ "value": "this",
+ "start": 5974,
+ "end": 5978,
"loc": {
"start": {
- "line": 157,
- "column": 19
+ "line": 186,
+ "column": 16
},
"end": {
- "line": 157,
+ "line": 186,
"column": 20
}
}
},
{
"type": {
- "label": "}",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -34479,34 +37045,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5378,
- "end": 5379,
- "loc": {
- "start": {
- "line": 158,
- "column": 4
- },
- "end": {
- "line": 158,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n ",
- "start": 5385,
- "end": 5497,
+ "start": 5978,
+ "end": 5979,
"loc": {
"start": {
- "line": 159,
- "column": 4
+ "line": 186,
+ "column": 20
},
"end": {
- "line": 162,
- "column": 7
+ "line": 186,
+ "column": 21
}
}
},
@@ -34522,50 +37073,52 @@
"postfix": false,
"binop": null
},
- "value": "getDataURL",
- "start": 5503,
- "end": 5513,
+ "value": "name",
+ "start": 5979,
+ "end": 5983,
"loc": {
"start": {
- "line": 163,
- "column": 4
+ "line": 186,
+ "column": 21
},
"end": {
- "line": 163,
- "column": 14
+ "line": 186,
+ "column": 25
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5513,
- "end": 5514,
+ "value": "=",
+ "start": 5984,
+ "end": 5985,
"loc": {
"start": {
- "line": 163,
- "column": 14
+ "line": 186,
+ "column": 26
},
"end": {
- "line": 163,
- "column": 15
+ "line": 186,
+ "column": 27
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -34573,78 +37126,77 @@
"postfix": false,
"binop": null
},
- "start": 5514,
- "end": 5515,
+ "value": "pName",
+ "start": 5986,
+ "end": 5991,
"loc": {
"start": {
- "line": 163,
- "column": 15
+ "line": 186,
+ "column": 28
},
"end": {
- "line": 163,
- "column": 16
+ "line": 186,
+ "column": 33
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5516,
- "end": 5517,
+ "start": 5991,
+ "end": 5992,
"loc": {
"start": {
- "line": 163,
- "column": 17
+ "line": 186,
+ "column": 33
},
"end": {
- "line": 163,
- "column": 18
+ "line": 186,
+ "column": 34
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": "}",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 5527,
- "end": 5533,
+ "start": 6006,
+ "end": 6007,
"loc": {
"start": {
- "line": 164,
- "column": 8
+ "line": 187,
+ "column": 12
},
"end": {
- "line": 164,
- "column": 14
+ "line": 187,
+ "column": 13
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -34653,42 +37205,41 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 5534,
- "end": 5538,
+ "value": "else",
+ "start": 6008,
+ "end": 6012,
"loc": {
"start": {
- "line": 164,
- "column": 15
+ "line": 187,
+ "column": 14
},
"end": {
- "line": 164,
- "column": 19
+ "line": 187,
+ "column": 18
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 5538,
- "end": 5539,
+ "start": 6013,
+ "end": 6014,
"loc": {
"start": {
- "line": 164,
+ "line": 187,
"column": 19
},
"end": {
- "line": 164,
+ "line": 187,
"column": 20
}
}
@@ -34705,24 +37256,24 @@
"postfix": false,
"binop": null
},
- "value": "dataURL",
- "start": 5539,
- "end": 5546,
+ "value": "VYI",
+ "start": 6032,
+ "end": 6035,
"loc": {
"start": {
- "line": 164,
- "column": 20
+ "line": 188,
+ "column": 16
},
"end": {
- "line": 164,
- "column": 27
+ "line": 188,
+ "column": 19
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -34732,24 +37283,24 @@
"binop": null,
"updateContext": null
},
- "start": 5546,
- "end": 5547,
+ "start": 6035,
+ "end": 6036,
"loc": {
"start": {
- "line": 164,
- "column": 27
+ "line": 188,
+ "column": 19
},
"end": {
- "line": 164,
- "column": 28
+ "line": 188,
+ "column": 20
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -34757,32 +37308,43 @@
"postfix": false,
"binop": null
},
- "start": 5553,
- "end": 5554,
+ "value": "logger",
+ "start": 6036,
+ "end": 6042,
"loc": {
"start": {
- "line": 165,
- "column": 4
+ "line": 188,
+ "column": 20
},
"end": {
- "line": 165,
- "column": 5
+ "line": 188,
+ "column": 26
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 5560,
- "end": 5724,
+ "type": {
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 6042,
+ "end": 6043,
"loc": {
"start": {
- "line": 166,
- "column": 4
+ "line": 188,
+ "column": 26
},
"end": {
- "line": 170,
- "column": 7
+ "line": 188,
+ "column": 27
}
}
},
@@ -34798,17 +37360,17 @@
"postfix": false,
"binop": null
},
- "value": "setDelay",
- "start": 5730,
- "end": 5738,
+ "value": "prefix",
+ "start": 6043,
+ "end": 6049,
"loc": {
"start": {
- "line": 171,
- "column": 4
+ "line": 188,
+ "column": 27
},
"end": {
- "line": 171,
- "column": 12
+ "line": 188,
+ "column": 33
}
}
},
@@ -34824,22 +37386,22 @@
"postfix": false,
"binop": null
},
- "start": 5738,
- "end": 5739,
+ "start": 6049,
+ "end": 6050,
"loc": {
"start": {
- "line": 171,
- "column": 12
+ "line": 188,
+ "column": 33
},
"end": {
- "line": 171,
- "column": 13
+ "line": 188,
+ "column": 34
}
}
},
{
"type": {
- "label": "name",
+ "label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -34847,19 +37409,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDelay",
- "start": 5739,
- "end": 5745,
+ "value": "VYI-Module",
+ "start": 6050,
+ "end": 6062,
"loc": {
"start": {
- "line": 171,
- "column": 13
+ "line": 188,
+ "column": 34
},
"end": {
- "line": 171,
- "column": 19
+ "line": 188,
+ "column": 46
}
}
},
@@ -34875,69 +37438,68 @@
"postfix": false,
"binop": null
},
- "start": 5745,
- "end": 5746,
+ "start": 6062,
+ "end": 6063,
"loc": {
"start": {
- "line": 171,
- "column": 19
+ "line": 188,
+ "column": 46
},
"end": {
- "line": 171,
- "column": 20
+ "line": 188,
+ "column": 47
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5747,
- "end": 5748,
+ "start": 6063,
+ "end": 6064,
"loc": {
"start": {
- "line": 171,
- "column": 21
+ "line": 188,
+ "column": 47
},
"end": {
- "line": 171,
- "column": 22
+ "line": 188,
+ "column": 48
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 5758,
- "end": 5760,
+ "value": "error",
+ "start": 6064,
+ "end": 6069,
"loc": {
"start": {
- "line": 172,
- "column": 8
+ "line": 188,
+ "column": 48
},
"end": {
- "line": 172,
- "column": 10
+ "line": 188,
+ "column": 53
}
}
},
@@ -34953,22 +37515,22 @@
"postfix": false,
"binop": null
},
- "start": 5761,
- "end": 5762,
+ "start": 6069,
+ "end": 6070,
"loc": {
"start": {
- "line": 172,
- "column": 11
+ "line": 188,
+ "column": 53
},
"end": {
- "line": 172,
- "column": 12
+ "line": 188,
+ "column": 54
}
}
},
{
"type": {
- "label": "name",
+ "label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -34976,19 +37538,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDelay",
- "start": 5762,
- "end": 5768,
+ "value": "Invalid type for pName!",
+ "start": 6070,
+ "end": 6095,
"loc": {
"start": {
- "line": 172,
- "column": 12
+ "line": 188,
+ "column": 54
},
"end": {
- "line": 172,
- "column": 18
+ "line": 188,
+ "column": 79
}
}
},
@@ -35004,48 +37567,48 @@
"postfix": false,
"binop": null
},
- "start": 5768,
- "end": 5769,
+ "start": 6095,
+ "end": 6096,
"loc": {
"start": {
- "line": 172,
- "column": 18
+ "line": 188,
+ "column": 79
},
"end": {
- "line": 172,
- "column": 19
+ "line": 188,
+ "column": 80
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5770,
- "end": 5771,
+ "start": 6096,
+ "end": 6097,
"loc": {
"start": {
- "line": 172,
- "column": 20
+ "line": 188,
+ "column": 80
},
"end": {
- "line": 172,
- "column": 21
+ "line": 188,
+ "column": 81
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -35053,28 +37616,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 5785,
- "end": 5787,
+ "start": 6111,
+ "end": 6112,
"loc": {
"start": {
- "line": 173,
+ "line": 189,
"column": 12
},
"end": {
- "line": 173,
- "column": 14
+ "line": 189,
+ "column": 13
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -35082,101 +37643,104 @@
"postfix": false,
"binop": null
},
- "start": 5788,
- "end": 5789,
+ "start": 6122,
+ "end": 6123,
"loc": {
"start": {
- "line": 173,
- "column": 15
+ "line": 190,
+ "column": 8
},
"end": {
- "line": 173,
- "column": 16
+ "line": 190,
+ "column": 9
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "typeof",
- "start": 5789,
- "end": 5795,
+ "value": "return",
+ "start": 6133,
+ "end": 6139,
"loc": {
"start": {
- "line": 173,
- "column": 16
+ "line": 191,
+ "column": 8
},
"end": {
- "line": 173,
- "column": 22
+ "line": 191,
+ "column": 14
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5795,
- "end": 5796,
+ "value": "this",
+ "start": 6140,
+ "end": 6144,
"loc": {
"start": {
- "line": 173,
- "column": 22
+ "line": 191,
+ "column": 15
},
"end": {
- "line": 173,
- "column": 23
+ "line": 191,
+ "column": 19
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDelay",
- "start": 5796,
- "end": 5802,
+ "start": 6144,
+ "end": 6145,
"loc": {
"start": {
- "line": 173,
- "column": 23
+ "line": 191,
+ "column": 19
},
"end": {
- "line": 173,
- "column": 29
+ "line": 191,
+ "column": 20
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -35186,49 +37750,38 @@
"postfix": false,
"binop": null
},
- "start": 5802,
- "end": 5803,
+ "start": 6151,
+ "end": 6152,
"loc": {
"start": {
- "line": 173,
- "column": 29
+ "line": 192,
+ "column": 4
},
"end": {
- "line": 173,
- "column": 30
+ "line": 192,
+ "column": 5
}
}
},
{
- "type": {
- "label": "==/!=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": 6,
- "updateContext": null
- },
- "value": "===",
- "start": 5804,
- "end": 5807,
+ "type": "CommentBlock",
+ "value": "*\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n ",
+ "start": 6158,
+ "end": 6258,
"loc": {
"start": {
- "line": 173,
- "column": 31
+ "line": 193,
+ "column": 4
},
"end": {
- "line": 173,
- "column": 34
+ "line": 196,
+ "column": 7
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -35236,28 +37789,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "number",
- "start": 5808,
- "end": 5816,
+ "value": "getName",
+ "start": 6264,
+ "end": 6271,
"loc": {
"start": {
- "line": 173,
- "column": 35
+ "line": 197,
+ "column": 4
},
"end": {
- "line": 173,
- "column": 43
+ "line": 197,
+ "column": 11
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -35265,24 +37817,24 @@
"postfix": false,
"binop": null
},
- "start": 5816,
- "end": 5817,
+ "start": 6271,
+ "end": 6272,
"loc": {
"start": {
- "line": 173,
- "column": 43
+ "line": 197,
+ "column": 11
},
"end": {
- "line": 173,
- "column": 44
+ "line": 197,
+ "column": 12
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -35290,51 +37842,49 @@
"postfix": false,
"binop": null
},
- "start": 5818,
- "end": 5819,
+ "start": 6272,
+ "end": 6273,
"loc": {
"start": {
- "line": 173,
- "column": 45
+ "line": 197,
+ "column": 12
},
"end": {
- "line": 173,
- "column": 46
+ "line": 197,
+ "column": 13
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 5837,
- "end": 5841,
+ "start": 6274,
+ "end": 6275,
"loc": {
"start": {
- "line": 174,
- "column": 16
+ "line": 197,
+ "column": 14
},
"end": {
- "line": 174,
- "column": 20
+ "line": 197,
+ "column": 15
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "return",
+ "keyword": "return",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -35344,22 +37894,24 @@
"binop": null,
"updateContext": null
},
- "start": 5841,
- "end": 5842,
+ "value": "return",
+ "start": 6285,
+ "end": 6291,
"loc": {
"start": {
- "line": 174,
- "column": 20
+ "line": 198,
+ "column": 8
},
"end": {
- "line": 174,
- "column": 21
+ "line": 198,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -35367,46 +37919,46 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "delay",
- "start": 5842,
- "end": 5847,
+ "value": "this",
+ "start": 6292,
+ "end": 6296,
"loc": {
"start": {
- "line": 174,
- "column": 21
+ "line": 198,
+ "column": 15
},
"end": {
- "line": 174,
- "column": 26
+ "line": 198,
+ "column": 19
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 5848,
- "end": 5849,
+ "start": 6296,
+ "end": 6297,
"loc": {
"start": {
- "line": 174,
- "column": 27
+ "line": 198,
+ "column": 19
},
"end": {
- "line": 174,
- "column": 28
+ "line": 198,
+ "column": 20
}
}
},
@@ -35422,17 +37974,17 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 5850,
- "end": 5856,
+ "value": "name",
+ "start": 6297,
+ "end": 6301,
"loc": {
"start": {
- "line": 174,
- "column": 29
+ "line": 198,
+ "column": 20
},
"end": {
- "line": 174,
- "column": 35
+ "line": 198,
+ "column": 24
}
}
},
@@ -35449,16 +38001,16 @@
"binop": null,
"updateContext": null
},
- "start": 5856,
- "end": 5857,
+ "start": 6301,
+ "end": 6302,
"loc": {
"start": {
- "line": 174,
- "column": 35
+ "line": 198,
+ "column": 24
},
"end": {
- "line": 174,
- "column": 36
+ "line": 198,
+ "column": 25
}
}
},
@@ -35474,50 +38026,64 @@
"postfix": false,
"binop": null
},
- "start": 5871,
- "end": 5872,
+ "start": 6308,
+ "end": 6309,
"loc": {
"start": {
- "line": 175,
- "column": 12
+ "line": 199,
+ "column": 4
},
"end": {
- "line": 175,
- "column": 13
+ "line": 199,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 6315,
+ "end": 6506,
+ "loc": {
+ "start": {
+ "line": 200,
+ "column": 4
+ },
+ "end": {
+ "line": 204,
+ "column": 7
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "else",
- "start": 5873,
- "end": 5877,
+ "value": "setAllFrameDelays",
+ "start": 6512,
+ "end": 6529,
"loc": {
"start": {
- "line": 175,
- "column": 14
+ "line": 205,
+ "column": 4
},
"end": {
- "line": 175,
- "column": 18
+ "line": 205,
+ "column": 21
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -35527,16 +38093,16 @@
"postfix": false,
"binop": null
},
- "start": 5878,
- "end": 5879,
+ "start": 6529,
+ "end": 6530,
"loc": {
"start": {
- "line": 175,
- "column": 19
+ "line": 205,
+ "column": 21
},
"end": {
- "line": 175,
- "column": 20
+ "line": 205,
+ "column": 22
}
}
},
@@ -35552,23 +38118,23 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 5897,
- "end": 5900,
+ "value": "pDelay",
+ "start": 6530,
+ "end": 6536,
"loc": {
"start": {
- "line": 176,
- "column": 16
+ "line": 205,
+ "column": 22
},
"end": {
- "line": 176,
- "column": 19
+ "line": 205,
+ "column": 28
}
}
},
{
"type": {
- "label": ".",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -35576,26 +38142,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 5900,
- "end": 5901,
+ "start": 6536,
+ "end": 6537,
"loc": {
"start": {
- "line": 176,
- "column": 19
+ "line": 205,
+ "column": 28
},
"end": {
- "line": 176,
- "column": 20
+ "line": 205,
+ "column": 29
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -35603,24 +38168,24 @@
"prefix": false,
"postfix": false,
"binop": null
- },
- "value": "logger",
- "start": 5901,
- "end": 5907,
+ },
+ "start": 6538,
+ "end": 6539,
"loc": {
"start": {
- "line": 176,
- "column": 20
+ "line": 205,
+ "column": 30
},
"end": {
- "line": 176,
- "column": 26
+ "line": 205,
+ "column": 31
}
}
},
{
"type": {
- "label": ".",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -35631,23 +38196,24 @@
"binop": null,
"updateContext": null
},
- "start": 5907,
- "end": 5908,
+ "value": "if",
+ "start": 6549,
+ "end": 6551,
"loc": {
"start": {
- "line": 176,
- "column": 26
+ "line": 206,
+ "column": 8
},
"end": {
- "line": 176,
- "column": 27
+ "line": 206,
+ "column": 10
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -35656,24 +38222,23 @@
"postfix": false,
"binop": null
},
- "value": "prefix",
- "start": 5908,
- "end": 5914,
+ "start": 6552,
+ "end": 6553,
"loc": {
"start": {
- "line": 176,
- "column": 27
+ "line": 206,
+ "column": 11
},
"end": {
- "line": 176,
- "column": 33
+ "line": 206,
+ "column": 12
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -35682,51 +38247,50 @@
"postfix": false,
"binop": null
},
- "start": 5914,
- "end": 5915,
+ "value": "pDelay",
+ "start": 6553,
+ "end": 6559,
"loc": {
"start": {
- "line": 176,
- "column": 33
+ "line": 206,
+ "column": 12
},
"end": {
- "line": 176,
- "column": 34
+ "line": 206,
+ "column": 18
}
}
},
{
"type": {
- "label": "string",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "VYI-module",
- "start": 5915,
- "end": 5927,
+ "start": 6559,
+ "end": 6560,
"loc": {
"start": {
- "line": 176,
- "column": 34
+ "line": 206,
+ "column": 18
},
"end": {
- "line": 176,
- "column": 46
+ "line": 206,
+ "column": 19
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -35734,22 +38298,23 @@
"postfix": false,
"binop": null
},
- "start": 5927,
- "end": 5928,
+ "start": 6561,
+ "end": 6562,
"loc": {
"start": {
- "line": 176,
- "column": 46
+ "line": 206,
+ "column": 20
},
"end": {
- "line": 176,
- "column": 47
+ "line": 206,
+ "column": 21
}
}
},
{
"type": {
- "label": ".",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -35760,23 +38325,24 @@
"binop": null,
"updateContext": null
},
- "start": 5928,
- "end": 5929,
+ "value": "if",
+ "start": 6576,
+ "end": 6578,
"loc": {
"start": {
- "line": 176,
- "column": 47
+ "line": 207,
+ "column": 12
},
"end": {
- "line": 176,
- "column": 48
+ "line": 207,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -35785,17 +38351,44 @@
"postfix": false,
"binop": null
},
- "value": "error",
- "start": 5929,
- "end": 5934,
+ "start": 6579,
+ "end": 6580,
"loc": {
"start": {
- "line": 176,
- "column": 48
+ "line": 207,
+ "column": 15
},
"end": {
- "line": 176,
- "column": 53
+ "line": 207,
+ "column": 16
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "typeof",
+ "keyword": "typeof",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": true,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "typeof",
+ "start": 6580,
+ "end": 6586,
+ "loc": {
+ "start": {
+ "line": 207,
+ "column": 16
+ },
+ "end": {
+ "line": 207,
+ "column": 22
}
}
},
@@ -35811,22 +38404,22 @@
"postfix": false,
"binop": null
},
- "start": 5934,
- "end": 5935,
+ "start": 6586,
+ "end": 6587,
"loc": {
"start": {
- "line": 176,
- "column": 53
+ "line": 207,
+ "column": 22
},
"end": {
- "line": 176,
- "column": 54
+ "line": 207,
+ "column": 23
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -35834,20 +38427,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "Invalid delay type!",
- "start": 5935,
- "end": 5956,
+ "value": "pDelay",
+ "start": 6587,
+ "end": 6593,
"loc": {
"start": {
- "line": 176,
- "column": 54
+ "line": 207,
+ "column": 23
},
"end": {
- "line": 176,
- "column": 75
+ "line": 207,
+ "column": 29
}
}
},
@@ -35863,22 +38455,22 @@
"postfix": false,
"binop": null
},
- "start": 5956,
- "end": 5957,
+ "start": 6593,
+ "end": 6594,
"loc": {
"start": {
- "line": 176,
- "column": 75
+ "line": 207,
+ "column": 29
},
"end": {
- "line": 176,
- "column": 76
+ "line": 207,
+ "column": 30
}
}
},
{
"type": {
- "label": ";",
+ "label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -35886,50 +38478,53 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "start": 5957,
- "end": 5958,
+ "value": "===",
+ "start": 6595,
+ "end": 6598,
"loc": {
"start": {
- "line": 176,
- "column": 76
+ "line": 207,
+ "column": 31
},
"end": {
- "line": 176,
- "column": 77
+ "line": 207,
+ "column": 34
}
}
},
{
"type": {
- "label": "}",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 5972,
- "end": 5973,
+ "value": "number",
+ "start": 6599,
+ "end": 6607,
"loc": {
"start": {
- "line": 177,
- "column": 12
+ "line": 207,
+ "column": 35
},
"end": {
- "line": 177,
- "column": 13
+ "line": 207,
+ "column": 43
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -35939,44 +38534,41 @@
"postfix": false,
"binop": null
},
- "start": 5983,
- "end": 5984,
+ "start": 6607,
+ "end": 6608,
"loc": {
"start": {
- "line": 178,
- "column": 8
+ "line": 207,
+ "column": 43
},
"end": {
- "line": 178,
- "column": 9
+ "line": 207,
+ "column": 44
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 5994,
- "end": 6000,
+ "start": 6609,
+ "end": 6610,
"loc": {
"start": {
- "line": 179,
- "column": 8
+ "line": 207,
+ "column": 45
},
"end": {
- "line": 179,
- "column": 14
+ "line": 207,
+ "column": 46
}
}
},
@@ -35995,23 +38587,23 @@
"updateContext": null
},
"value": "this",
- "start": 6001,
- "end": 6005,
+ "start": 6628,
+ "end": 6632,
"loc": {
"start": {
- "line": 179,
- "column": 15
+ "line": 208,
+ "column": 16
},
"end": {
- "line": 179,
- "column": 19
+ "line": 208,
+ "column": 20
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -36021,24 +38613,24 @@
"binop": null,
"updateContext": null
},
- "start": 6005,
- "end": 6006,
+ "start": 6632,
+ "end": 6633,
"loc": {
"start": {
- "line": 179,
- "column": 19
+ "line": 208,
+ "column": 20
},
"end": {
- "line": 179,
- "column": 20
+ "line": 208,
+ "column": 21
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36046,65 +38638,50 @@
"postfix": false,
"binop": null
},
- "start": 6012,
- "end": 6013,
- "loc": {
- "start": {
- "line": 180,
- "column": 4
- },
- "end": {
- "line": 180,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n ",
- "start": 6019,
- "end": 6118,
+ "value": "frames",
+ "start": 6633,
+ "end": 6639,
"loc": {
"start": {
- "line": 181,
- "column": 4
+ "line": 208,
+ "column": 21
},
"end": {
- "line": 184,
- "column": 7
+ "line": 208,
+ "column": 27
}
}
},
{
"type": {
- "label": "name",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "getDelay",
- "start": 6124,
- "end": 6132,
+ "start": 6639,
+ "end": 6640,
"loc": {
"start": {
- "line": 185,
- "column": 4
+ "line": 208,
+ "column": 27
},
"end": {
- "line": 185,
- "column": 12
+ "line": 208,
+ "column": 28
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -36113,24 +38690,25 @@
"postfix": false,
"binop": null
},
- "start": 6132,
- "end": 6133,
+ "value": "forEach",
+ "start": 6640,
+ "end": 6647,
"loc": {
"start": {
- "line": 185,
- "column": 12
+ "line": 208,
+ "column": 28
},
"end": {
- "line": 185,
- "column": 13
+ "line": 208,
+ "column": 35
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36138,22 +38716,22 @@
"postfix": false,
"binop": null
},
- "start": 6133,
- "end": 6134,
+ "start": 6647,
+ "end": 6648,
"loc": {
"start": {
- "line": 185,
- "column": 13
+ "line": 208,
+ "column": 35
},
"end": {
- "line": 185,
- "column": 14
+ "line": 208,
+ "column": 36
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -36163,79 +38741,74 @@
"postfix": false,
"binop": null
},
- "start": 6135,
- "end": 6136,
+ "start": 6648,
+ "end": 6649,
"loc": {
"start": {
- "line": 185,
- "column": 15
+ "line": 208,
+ "column": 36
},
"end": {
- "line": 185,
- "column": 16
+ "line": 208,
+ "column": 37
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 6146,
- "end": 6152,
+ "value": "pFrame",
+ "start": 6649,
+ "end": 6655,
"loc": {
"start": {
- "line": 186,
- "column": 8
+ "line": 208,
+ "column": 37
},
"end": {
- "line": 186,
- "column": 14
+ "line": 208,
+ "column": 43
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 6153,
- "end": 6157,
+ "start": 6655,
+ "end": 6656,
"loc": {
"start": {
- "line": 186,
- "column": 15
+ "line": 208,
+ "column": 43
},
"end": {
- "line": 186,
- "column": 19
+ "line": 208,
+ "column": 44
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "=>",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -36245,23 +38818,23 @@
"binop": null,
"updateContext": null
},
- "start": 6157,
- "end": 6158,
+ "start": 6657,
+ "end": 6659,
"loc": {
"start": {
- "line": 186,
- "column": 19
+ "line": 208,
+ "column": 45
},
"end": {
- "line": 186,
- "column": 20
+ "line": 208,
+ "column": 47
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -36270,49 +38843,48 @@
"postfix": false,
"binop": null
},
- "value": "delay",
- "start": 6158,
- "end": 6163,
+ "start": 6660,
+ "end": 6661,
"loc": {
"start": {
- "line": 186,
- "column": 20
+ "line": 208,
+ "column": 48
},
"end": {
- "line": 186,
- "column": 25
+ "line": 208,
+ "column": 49
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 6163,
- "end": 6164,
+ "value": "pFrame",
+ "start": 6683,
+ "end": 6689,
"loc": {
"start": {
- "line": 186,
- "column": 25
+ "line": 209,
+ "column": 20
},
"end": {
- "line": 186,
+ "line": 209,
"column": 26
}
}
},
{
"type": {
- "label": "}",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -36320,34 +38892,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6170,
- "end": 6171,
- "loc": {
- "start": {
- "line": 187,
- "column": 4
- },
- "end": {
- "line": 187,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6177,
- "end": 6330,
+ "start": 6689,
+ "end": 6690,
"loc": {
"start": {
- "line": 188,
- "column": 4
+ "line": 209,
+ "column": 26
},
"end": {
- "line": 192,
- "column": 7
+ "line": 209,
+ "column": 27
}
}
},
@@ -36363,17 +38920,17 @@
"postfix": false,
"binop": null
},
- "value": "rename",
- "start": 6336,
- "end": 6342,
+ "value": "setDelay",
+ "start": 6690,
+ "end": 6698,
"loc": {
"start": {
- "line": 193,
- "column": 4
+ "line": 209,
+ "column": 27
},
"end": {
- "line": 193,
- "column": 10
+ "line": 209,
+ "column": 35
}
}
},
@@ -36389,16 +38946,16 @@
"postfix": false,
"binop": null
},
- "start": 6342,
- "end": 6343,
+ "start": 6698,
+ "end": 6699,
"loc": {
"start": {
- "line": 193,
- "column": 10
+ "line": 209,
+ "column": 35
},
"end": {
- "line": 193,
- "column": 11
+ "line": 209,
+ "column": 36
}
}
},
@@ -36414,17 +38971,17 @@
"postfix": false,
"binop": null
},
- "value": "pName",
- "start": 6343,
- "end": 6348,
+ "value": "pDelay",
+ "start": 6699,
+ "end": 6705,
"loc": {
"start": {
- "line": 193,
- "column": 11
+ "line": 209,
+ "column": 36
},
"end": {
- "line": 193,
- "column": 16
+ "line": 209,
+ "column": 42
}
}
},
@@ -36440,49 +38997,23 @@
"postfix": false,
"binop": null
},
- "start": 6348,
- "end": 6349,
+ "start": 6705,
+ "end": 6706,
"loc": {
"start": {
- "line": 193,
- "column": 16
+ "line": 209,
+ "column": 42
},
"end": {
- "line": 193,
- "column": 17
+ "line": 209,
+ "column": 43
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 6350,
- "end": 6351,
- "loc": {
- "start": {
- "line": 193,
- "column": 18
- },
- "end": {
- "line": 193,
- "column": 19
- }
- }
- },
- {
- "type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -36492,25 +39023,24 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 6361,
- "end": 6363,
+ "start": 6706,
+ "end": 6707,
"loc": {
"start": {
- "line": 194,
- "column": 8
+ "line": 209,
+ "column": 43
},
"end": {
- "line": 194,
- "column": 10
+ "line": 209,
+ "column": 44
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36518,24 +39048,24 @@
"postfix": false,
"binop": null
},
- "start": 6364,
- "end": 6365,
+ "start": 6725,
+ "end": 6726,
"loc": {
"start": {
- "line": 194,
- "column": 11
+ "line": 210,
+ "column": 16
},
"end": {
- "line": 194,
- "column": 12
+ "line": 210,
+ "column": 17
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36543,50 +39073,50 @@
"postfix": false,
"binop": null
},
- "value": "pName",
- "start": 6365,
- "end": 6370,
+ "start": 6726,
+ "end": 6727,
"loc": {
"start": {
- "line": 194,
- "column": 12
+ "line": 210,
+ "column": 17
},
"end": {
- "line": 194,
- "column": 17
+ "line": 210,
+ "column": 18
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6370,
- "end": 6371,
+ "start": 6727,
+ "end": 6728,
"loc": {
"start": {
- "line": 194,
- "column": 17
+ "line": 210,
+ "column": 18
},
"end": {
- "line": 194,
- "column": 18
+ "line": 210,
+ "column": 19
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36594,24 +39124,24 @@
"postfix": false,
"binop": null
},
- "start": 6372,
- "end": 6373,
+ "start": 6742,
+ "end": 6743,
"loc": {
"start": {
- "line": 194,
- "column": 19
+ "line": 211,
+ "column": 12
},
"end": {
- "line": 194,
- "column": 20
+ "line": 211,
+ "column": 13
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -36621,23 +39151,23 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 6387,
- "end": 6389,
+ "value": "else",
+ "start": 6744,
+ "end": 6748,
"loc": {
"start": {
- "line": 195,
- "column": 12
+ "line": 211,
+ "column": 14
},
"end": {
- "line": 195,
- "column": 14
+ "line": 211,
+ "column": 18
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -36647,69 +39177,68 @@
"postfix": false,
"binop": null
},
- "start": 6390,
- "end": 6391,
+ "start": 6749,
+ "end": 6750,
"loc": {
"start": {
- "line": 195,
- "column": 15
+ "line": 211,
+ "column": 19
},
"end": {
- "line": 195,
- "column": 16
+ "line": 211,
+ "column": 20
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "typeof",
- "start": 6391,
- "end": 6397,
+ "value": "VYI",
+ "start": 6768,
+ "end": 6771,
"loc": {
"start": {
- "line": 195,
+ "line": 212,
"column": 16
},
"end": {
- "line": 195,
- "column": 22
+ "line": 212,
+ "column": 19
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6397,
- "end": 6398,
+ "start": 6771,
+ "end": 6772,
"loc": {
"start": {
- "line": 195,
- "column": 22
+ "line": 212,
+ "column": 19
},
"end": {
- "line": 195,
- "column": 23
+ "line": 212,
+ "column": 20
}
}
},
@@ -36725,23 +39254,23 @@
"postfix": false,
"binop": null
},
- "value": "pName",
- "start": 6398,
- "end": 6403,
+ "value": "logger",
+ "start": 6772,
+ "end": 6778,
"loc": {
"start": {
- "line": 195,
- "column": 23
+ "line": 212,
+ "column": 20
},
"end": {
- "line": 195,
- "column": 28
+ "line": 212,
+ "column": 26
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -36749,105 +39278,105 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6403,
- "end": 6404,
+ "start": 6778,
+ "end": 6779,
"loc": {
"start": {
- "line": 195,
- "column": 28
+ "line": 212,
+ "column": 26
},
"end": {
- "line": 195,
- "column": 29
+ "line": 212,
+ "column": 27
}
}
},
{
"type": {
- "label": "==/!=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
- "updateContext": null
+ "binop": null
},
- "value": "===",
- "start": 6405,
- "end": 6408,
+ "value": "prefix",
+ "start": 6779,
+ "end": 6785,
"loc": {
"start": {
- "line": 195,
- "column": 30
+ "line": 212,
+ "column": 27
},
"end": {
- "line": 195,
+ "line": 212,
"column": 33
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "string",
- "start": 6409,
- "end": 6417,
+ "start": 6785,
+ "end": 6786,
"loc": {
"start": {
- "line": 195,
- "column": 34
+ "line": 212,
+ "column": 33
},
"end": {
- "line": 195,
- "column": 42
+ "line": 212,
+ "column": 34
}
}
},
{
"type": {
- "label": ")",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6417,
- "end": 6418,
+ "value": "VYI-Module",
+ "start": 6786,
+ "end": 6798,
"loc": {
"start": {
- "line": 195,
- "column": 42
+ "line": 212,
+ "column": 34
},
"end": {
- "line": 195,
- "column": 43
+ "line": 212,
+ "column": 46
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36855,25 +39384,24 @@
"postfix": false,
"binop": null
},
- "start": 6419,
- "end": 6420,
+ "start": 6798,
+ "end": 6799,
"loc": {
"start": {
- "line": 195,
- "column": 44
+ "line": 212,
+ "column": 46
},
"end": {
- "line": 195,
- "column": 45
+ "line": 212,
+ "column": 47
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36882,50 +39410,49 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 6438,
- "end": 6442,
+ "start": 6799,
+ "end": 6800,
"loc": {
"start": {
- "line": 196,
- "column": 16
+ "line": 212,
+ "column": 47
},
"end": {
- "line": 196,
- "column": 20
+ "line": 212,
+ "column": 48
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 6442,
- "end": 6443,
+ "value": "error",
+ "start": 6800,
+ "end": 6805,
"loc": {
"start": {
- "line": 196,
- "column": 20
+ "line": 212,
+ "column": 48
},
"end": {
- "line": 196,
- "column": 21
+ "line": 212,
+ "column": 53
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -36934,52 +39461,51 @@
"postfix": false,
"binop": null
},
- "value": "name",
- "start": 6443,
- "end": 6447,
+ "start": 6805,
+ "end": 6806,
"loc": {
"start": {
- "line": 196,
- "column": 21
+ "line": 212,
+ "column": 53
},
"end": {
- "line": 196,
- "column": 25
+ "line": 212,
+ "column": 54
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 6448,
- "end": 6449,
+ "value": "Invalid type for pDelay!",
+ "start": 6806,
+ "end": 6832,
"loc": {
"start": {
- "line": 196,
- "column": 26
+ "line": 212,
+ "column": 54
},
"end": {
- "line": 196,
- "column": 27
+ "line": 212,
+ "column": 80
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -36987,17 +39513,16 @@
"postfix": false,
"binop": null
},
- "value": "pName",
- "start": 6450,
- "end": 6455,
+ "start": 6832,
+ "end": 6833,
"loc": {
"start": {
- "line": 196,
- "column": 28
+ "line": 212,
+ "column": 80
},
"end": {
- "line": 196,
- "column": 33
+ "line": 212,
+ "column": 81
}
}
},
@@ -37014,16 +39539,16 @@
"binop": null,
"updateContext": null
},
- "start": 6455,
- "end": 6456,
+ "start": 6833,
+ "end": 6834,
"loc": {
"start": {
- "line": 196,
- "column": 33
+ "line": 212,
+ "column": 81
},
"end": {
- "line": 196,
- "column": 34
+ "line": 212,
+ "column": 82
}
}
},
@@ -37039,75 +39564,76 @@
"postfix": false,
"binop": null
},
- "start": 6470,
- "end": 6471,
+ "start": 6848,
+ "end": 6849,
"loc": {
"start": {
- "line": 197,
+ "line": 213,
"column": 12
},
"end": {
- "line": 197,
+ "line": 213,
"column": 13
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
- "beforeExpr": true,
+ "label": "}",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "else",
- "start": 6472,
- "end": 6476,
+ "start": 6859,
+ "end": 6860,
"loc": {
"start": {
- "line": 197,
- "column": 14
+ "line": 214,
+ "column": 8
},
"end": {
- "line": 197,
- "column": 18
+ "line": 214,
+ "column": 9
}
}
},
{
"type": {
- "label": "{",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6477,
- "end": 6478,
+ "value": "return",
+ "start": 6870,
+ "end": 6876,
"loc": {
"start": {
- "line": 197,
- "column": 19
+ "line": 215,
+ "column": 8
},
"end": {
- "line": 197,
- "column": 20
+ "line": 215,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -37115,26 +39641,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "VYI",
- "start": 6496,
- "end": 6499,
+ "value": "this",
+ "start": 6877,
+ "end": 6881,
"loc": {
"start": {
- "line": 198,
- "column": 16
+ "line": 215,
+ "column": 15
},
"end": {
- "line": 198,
+ "line": 215,
"column": 19
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -37144,24 +39671,24 @@
"binop": null,
"updateContext": null
},
- "start": 6499,
- "end": 6500,
+ "start": 6881,
+ "end": 6882,
"loc": {
"start": {
- "line": 198,
+ "line": 215,
"column": 19
},
"end": {
- "line": 198,
+ "line": 215,
"column": 20
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -37169,43 +39696,32 @@
"postfix": false,
"binop": null
},
- "value": "logger",
- "start": 6500,
- "end": 6506,
+ "start": 6888,
+ "end": 6889,
"loc": {
"start": {
- "line": 198,
- "column": 20
+ "line": 216,
+ "column": 4
},
"end": {
- "line": 198,
- "column": 26
+ "line": 216,
+ "column": 5
}
}
},
{
- "type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 6506,
- "end": 6507,
+ "type": "CommentBlock",
+ "value": "*\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n ",
+ "start": 6895,
+ "end": 7122,
"loc": {
"start": {
- "line": 198,
- "column": 26
+ "line": 217,
+ "column": 4
},
"end": {
- "line": 198,
- "column": 27
+ "line": 221,
+ "column": 7
}
}
},
@@ -37221,17 +39737,17 @@
"postfix": false,
"binop": null
},
- "value": "prefix",
- "start": 6507,
- "end": 6513,
+ "value": "addState",
+ "start": 7128,
+ "end": 7136,
"loc": {
"start": {
- "line": 198,
- "column": 27
+ "line": 222,
+ "column": 4
},
"end": {
- "line": 198,
- "column": 33
+ "line": 222,
+ "column": 12
}
}
},
@@ -37247,22 +39763,22 @@
"postfix": false,
"binop": null
},
- "start": 6513,
- "end": 6514,
+ "start": 7136,
+ "end": 7137,
"loc": {
"start": {
- "line": 198,
- "column": 33
+ "line": 222,
+ "column": 12
},
"end": {
- "line": 198,
- "column": 34
+ "line": 222,
+ "column": 13
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -37270,20 +39786,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "VYI-Module",
- "start": 6514,
- "end": 6526,
+ "value": "pIconData",
+ "start": 7137,
+ "end": 7146,
"loc": {
"start": {
- "line": 198,
- "column": 34
+ "line": 222,
+ "column": 13
},
"end": {
- "line": 198,
- "column": 46
+ "line": 222,
+ "column": 22
}
}
},
@@ -37299,68 +39814,69 @@
"postfix": false,
"binop": null
},
- "start": 6526,
- "end": 6527,
+ "start": 7146,
+ "end": 7147,
"loc": {
"start": {
- "line": 198,
- "column": 46
+ "line": 222,
+ "column": 22
},
"end": {
- "line": 198,
- "column": 47
+ "line": 222,
+ "column": 23
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 6527,
- "end": 6528,
+ "start": 7148,
+ "end": 7149,
"loc": {
"start": {
- "line": 198,
- "column": 47
+ "line": 222,
+ "column": 24
},
"end": {
- "line": 198,
- "column": 48
+ "line": 222,
+ "column": 25
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "error",
- "start": 6528,
- "end": 6533,
+ "value": "if",
+ "start": 7159,
+ "end": 7161,
"loc": {
"start": {
- "line": 198,
- "column": 48
+ "line": 223,
+ "column": 8
},
"end": {
- "line": 198,
- "column": 53
+ "line": 223,
+ "column": 10
}
}
},
@@ -37376,22 +39892,22 @@
"postfix": false,
"binop": null
},
- "start": 6533,
- "end": 6534,
+ "start": 7162,
+ "end": 7163,
"loc": {
"start": {
- "line": 198,
- "column": 53
+ "line": 223,
+ "column": 11
},
"end": {
- "line": 198,
- "column": 54
+ "line": 223,
+ "column": 12
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -37399,77 +39915,79 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "Invalid type for pName!",
- "start": 6534,
- "end": 6559,
+ "value": "pIconData",
+ "start": 7163,
+ "end": 7172,
"loc": {
"start": {
- "line": 198,
- "column": 54
+ "line": 223,
+ "column": 12
},
"end": {
- "line": 198,
- "column": 79
+ "line": 223,
+ "column": 21
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": "instanceof",
+ "keyword": "instanceof",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 7,
+ "updateContext": null
},
- "start": 6559,
- "end": 6560,
+ "value": "instanceof",
+ "start": 7173,
+ "end": 7183,
"loc": {
"start": {
- "line": 198,
- "column": 79
+ "line": 223,
+ "column": 22
},
"end": {
- "line": 198,
- "column": 80
+ "line": 223,
+ "column": 32
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 6560,
- "end": 6561,
+ "value": "Object",
+ "start": 7184,
+ "end": 7190,
"loc": {
"start": {
- "line": 198,
- "column": 80
+ "line": 223,
+ "column": 33
},
"end": {
- "line": 198,
- "column": 81
+ "line": 223,
+ "column": 39
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -37479,24 +39997,24 @@
"postfix": false,
"binop": null
},
- "start": 6575,
- "end": 6576,
+ "start": 7190,
+ "end": 7191,
"loc": {
"start": {
- "line": 199,
- "column": 12
+ "line": 223,
+ "column": 39
},
"end": {
- "line": 199,
- "column": 13
+ "line": 223,
+ "column": 40
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -37504,24 +40022,24 @@
"postfix": false,
"binop": null
},
- "start": 6586,
- "end": 6587,
+ "start": 7192,
+ "end": 7193,
"loc": {
"start": {
- "line": 200,
- "column": 8
+ "line": 223,
+ "column": 41
},
"end": {
- "line": 200,
- "column": 9
+ "line": 223,
+ "column": 42
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": "const",
+ "keyword": "const",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -37531,24 +40049,23 @@
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 6597,
- "end": 6603,
+ "value": "const",
+ "start": 7207,
+ "end": 7212,
"loc": {
"start": {
- "line": 201,
- "column": 8
+ "line": 224,
+ "column": 12
},
"end": {
- "line": 201,
- "column": 14
+ "line": 224,
+ "column": 17
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -37556,87 +40073,74 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 6604,
- "end": 6608,
+ "value": "state",
+ "start": 7213,
+ "end": 7218,
"loc": {
"start": {
- "line": 201,
- "column": 15
+ "line": 224,
+ "column": 18
},
"end": {
- "line": 201,
- "column": 19
+ "line": 224,
+ "column": 23
}
}
},
{
"type": {
- "label": ";",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 6608,
- "end": 6609,
+ "value": "=",
+ "start": 7219,
+ "end": 7220,
"loc": {
"start": {
- "line": 201,
- "column": 19
+ "line": 224,
+ "column": 24
},
"end": {
- "line": 201,
- "column": 20
+ "line": 224,
+ "column": 25
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "new",
+ "keyword": "new",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 6615,
- "end": 6616,
- "loc": {
- "start": {
- "line": 202,
- "column": 4
- },
- "end": {
- "line": 202,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n ",
- "start": 6622,
- "end": 6722,
+ "value": "new",
+ "start": 7221,
+ "end": 7224,
"loc": {
"start": {
- "line": 203,
- "column": 4
+ "line": 224,
+ "column": 26
},
"end": {
- "line": 206,
- "column": 7
+ "line": 224,
+ "column": 29
}
}
},
@@ -37652,17 +40156,17 @@
"postfix": false,
"binop": null
},
- "value": "getName",
- "start": 6728,
- "end": 6735,
+ "value": "Icon",
+ "start": 7225,
+ "end": 7229,
"loc": {
"start": {
- "line": 207,
- "column": 4
+ "line": 224,
+ "column": 30
},
"end": {
- "line": 207,
- "column": 11
+ "line": 224,
+ "column": 34
}
}
},
@@ -37678,24 +40182,24 @@
"postfix": false,
"binop": null
},
- "start": 6735,
- "end": 6736,
+ "start": 7229,
+ "end": 7230,
"loc": {
"start": {
- "line": 207,
- "column": 11
+ "line": 224,
+ "column": 34
},
"end": {
- "line": 207,
- "column": 12
+ "line": 224,
+ "column": 35
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -37703,24 +40207,25 @@
"postfix": false,
"binop": null
},
- "start": 6736,
- "end": 6737,
+ "value": "pIconData",
+ "start": 7230,
+ "end": 7239,
"loc": {
"start": {
- "line": 207,
- "column": 12
+ "line": 224,
+ "column": 35
},
"end": {
- "line": 207,
- "column": 13
+ "line": 224,
+ "column": 44
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -37728,23 +40233,22 @@
"postfix": false,
"binop": null
},
- "start": 6738,
- "end": 6739,
+ "start": 7239,
+ "end": 7240,
"loc": {
"start": {
- "line": 207,
- "column": 14
+ "line": 224,
+ "column": 44
},
"end": {
- "line": 207,
- "column": 15
+ "line": 224,
+ "column": 45
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -37755,17 +40259,16 @@
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 6749,
- "end": 6755,
+ "start": 7240,
+ "end": 7241,
"loc": {
"start": {
- "line": 208,
- "column": 8
+ "line": 224,
+ "column": 45
},
"end": {
- "line": 208,
- "column": 14
+ "line": 224,
+ "column": 46
}
}
},
@@ -37784,16 +40287,16 @@
"updateContext": null
},
"value": "this",
- "start": 6756,
- "end": 6760,
+ "start": 7255,
+ "end": 7259,
"loc": {
"start": {
- "line": 208,
- "column": 15
+ "line": 225,
+ "column": 12
},
"end": {
- "line": 208,
- "column": 19
+ "line": 225,
+ "column": 16
}
}
},
@@ -37810,16 +40313,16 @@
"binop": null,
"updateContext": null
},
- "start": 6760,
- "end": 6761,
+ "start": 7259,
+ "end": 7260,
"loc": {
"start": {
- "line": 208,
- "column": 19
+ "line": 225,
+ "column": 16
},
"end": {
- "line": 208,
- "column": 20
+ "line": 225,
+ "column": 17
}
}
},
@@ -37835,24 +40338,24 @@
"postfix": false,
"binop": null
},
- "value": "name",
- "start": 6761,
- "end": 6765,
+ "value": "states",
+ "start": 7260,
+ "end": 7266,
"loc": {
"start": {
- "line": 208,
- "column": 20
+ "line": 225,
+ "column": 17
},
"end": {
- "line": 208,
- "column": 24
+ "line": 225,
+ "column": 23
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -37862,57 +40365,16 @@
"binop": null,
"updateContext": null
},
- "start": 6765,
- "end": 6766,
- "loc": {
- "start": {
- "line": 208,
- "column": 24
- },
- "end": {
- "line": 208,
- "column": 25
- }
- }
- },
- {
- "type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 6772,
- "end": 6773,
- "loc": {
- "start": {
- "line": 209,
- "column": 4
- },
- "end": {
- "line": 209,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 6779,
- "end": 6970,
+ "start": 7266,
+ "end": 7267,
"loc": {
"start": {
- "line": 210,
- "column": 4
+ "line": 225,
+ "column": 23
},
"end": {
- "line": 214,
- "column": 7
+ "line": 225,
+ "column": 24
}
}
},
@@ -37928,17 +40390,17 @@
"postfix": false,
"binop": null
},
- "value": "setAllFrameDelays",
- "start": 6976,
- "end": 6993,
+ "value": "push",
+ "start": 7267,
+ "end": 7271,
"loc": {
"start": {
- "line": 215,
- "column": 4
+ "line": 225,
+ "column": 24
},
"end": {
- "line": 215,
- "column": 21
+ "line": 225,
+ "column": 28
}
}
},
@@ -37954,16 +40416,16 @@
"postfix": false,
"binop": null
},
- "start": 6993,
- "end": 6994,
+ "start": 7271,
+ "end": 7272,
"loc": {
"start": {
- "line": 215,
- "column": 21
+ "line": 225,
+ "column": 28
},
"end": {
- "line": 215,
- "column": 22
+ "line": 225,
+ "column": 29
}
}
},
@@ -37979,17 +40441,17 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 6994,
- "end": 7000,
+ "value": "state",
+ "start": 7272,
+ "end": 7277,
"loc": {
"start": {
- "line": 215,
- "column": 22
+ "line": 225,
+ "column": 29
},
"end": {
- "line": 215,
- "column": 28
+ "line": 225,
+ "column": 34
}
}
},
@@ -38005,49 +40467,50 @@
"postfix": false,
"binop": null
},
- "start": 7000,
- "end": 7001,
+ "start": 7277,
+ "end": 7278,
"loc": {
"start": {
- "line": 215,
- "column": 28
+ "line": 225,
+ "column": 34
},
"end": {
- "line": 215,
- "column": 29
+ "line": 225,
+ "column": 35
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7002,
- "end": 7003,
+ "start": 7278,
+ "end": 7279,
"loc": {
"start": {
- "line": 215,
- "column": 30
+ "line": 225,
+ "column": 35
},
"end": {
- "line": 215,
- "column": 31
+ "line": 225,
+ "column": 36
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
+ "label": "return",
+ "keyword": "return",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -38057,24 +40520,24 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 7013,
- "end": 7015,
+ "value": "return",
+ "start": 7293,
+ "end": 7299,
"loc": {
"start": {
- "line": 216,
- "column": 8
+ "line": 226,
+ "column": 12
},
"end": {
- "line": 216,
- "column": 10
+ "line": 226,
+ "column": 18
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -38083,48 +40546,49 @@
"postfix": false,
"binop": null
},
- "start": 7016,
- "end": 7017,
+ "value": "state",
+ "start": 7300,
+ "end": 7305,
"loc": {
"start": {
- "line": 216,
- "column": 11
+ "line": 226,
+ "column": 19
},
"end": {
- "line": 216,
- "column": 12
+ "line": 226,
+ "column": 24
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pDelay",
- "start": 7017,
- "end": 7023,
+ "start": 7305,
+ "end": 7306,
"loc": {
"start": {
- "line": 216,
- "column": 12
+ "line": 226,
+ "column": 24
},
"end": {
- "line": 216,
- "column": 18
+ "line": 226,
+ "column": 25
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -38134,24 +40598,24 @@
"postfix": false,
"binop": null
},
- "start": 7023,
- "end": 7024,
+ "start": 7316,
+ "end": 7317,
"loc": {
"start": {
- "line": 216,
- "column": 18
+ "line": 227,
+ "column": 8
},
"end": {
- "line": 216,
- "column": 19
+ "line": 227,
+ "column": 9
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -38159,44 +40623,58 @@
"postfix": false,
"binop": null
},
- "start": 7025,
- "end": 7026,
+ "start": 7323,
+ "end": 7324,
"loc": {
"start": {
- "line": 216,
- "column": 20
+ "line": 228,
+ "column": 4
},
"end": {
- "line": 216,
- "column": 21
+ "line": 228,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 7330,
+ "end": 7691,
+ "loc": {
+ "start": {
+ "line": 229,
+ "column": 4
+ },
+ "end": {
+ "line": 234,
+ "column": 7
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 7040,
- "end": 7042,
+ "value": "removeState",
+ "start": 7697,
+ "end": 7708,
"loc": {
"start": {
- "line": 217,
- "column": 12
+ "line": 235,
+ "column": 4
},
"end": {
- "line": 217,
- "column": 14
+ "line": 235,
+ "column": 15
}
}
},
@@ -38212,68 +40690,67 @@
"postfix": false,
"binop": null
},
- "start": 7043,
- "end": 7044,
+ "start": 7708,
+ "end": 7709,
"loc": {
"start": {
- "line": 217,
+ "line": 235,
"column": 15
},
"end": {
- "line": 217,
+ "line": 235,
"column": 16
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "typeof",
- "start": 7044,
- "end": 7050,
+ "value": "pState",
+ "start": 7709,
+ "end": 7715,
"loc": {
"start": {
- "line": 217,
+ "line": 235,
"column": 16
},
"end": {
- "line": 217,
+ "line": 235,
"column": 22
}
}
},
{
"type": {
- "label": "(",
+ "label": ",",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7050,
- "end": 7051,
+ "start": 7715,
+ "end": 7716,
"loc": {
"start": {
- "line": 217,
+ "line": 235,
"column": 22
},
"end": {
- "line": 217,
+ "line": 235,
"column": 23
}
}
@@ -38290,16 +40767,16 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 7051,
- "end": 7057,
+ "value": "pName",
+ "start": 7717,
+ "end": 7722,
"loc": {
"start": {
- "line": 217,
- "column": 23
+ "line": 235,
+ "column": 24
},
"end": {
- "line": 217,
+ "line": 235,
"column": 29
}
}
@@ -38316,76 +40793,64 @@
"postfix": false,
"binop": null
},
- "start": 7057,
- "end": 7058,
+ "start": 7722,
+ "end": 7723,
"loc": {
"start": {
- "line": 217,
+ "line": 235,
"column": 29
},
"end": {
- "line": 217,
+ "line": 235,
"column": 30
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
- "updateContext": null
+ "binop": null
},
- "value": "===",
- "start": 7059,
- "end": 7062,
+ "start": 7724,
+ "end": 7725,
"loc": {
"start": {
- "line": 217,
+ "line": 235,
"column": 31
},
"end": {
- "line": 217,
- "column": 34
+ "line": 235,
+ "column": 32
}
}
},
{
- "type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "number",
- "start": 7063,
- "end": 7071,
+ "type": "CommentLine",
+ "value": " The index used to remove this frame.",
+ "start": 7735,
+ "end": 7774,
"loc": {
"start": {
- "line": 217,
- "column": 35
+ "line": 236,
+ "column": 8
},
"end": {
- "line": 217,
- "column": 43
+ "line": 236,
+ "column": 47
}
}
},
{
"type": {
- "label": ")",
+ "label": "let",
+ "keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -38393,50 +40858,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
- },
- "start": 7071,
- "end": 7072,
- "loc": {
- "start": {
- "line": 217,
- "column": 43
- },
- "end": {
- "line": 217,
- "column": 44
- }
- }
- },
- {
- "type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7073,
- "end": 7074,
+ "value": "let",
+ "start": 7784,
+ "end": 7787,
"loc": {
"start": {
- "line": 217,
- "column": 45
+ "line": 237,
+ "column": 8
},
"end": {
- "line": 217,
- "column": 46
+ "line": 237,
+ "column": 11
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -38444,27 +40885,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 7092,
- "end": 7096,
+ "value": "index",
+ "start": 7788,
+ "end": 7793,
"loc": {
"start": {
- "line": 218,
- "column": 16
+ "line": 237,
+ "column": 12
},
"end": {
- "line": 218,
- "column": 20
+ "line": 237,
+ "column": 17
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -38474,48 +40914,39 @@
"binop": null,
"updateContext": null
},
- "start": 7096,
- "end": 7097,
+ "start": 7793,
+ "end": 7794,
"loc": {
"start": {
- "line": 218,
- "column": 20
+ "line": 237,
+ "column": 17
},
"end": {
- "line": 218,
- "column": 21
+ "line": 237,
+ "column": 18
}
}
},
{
- "type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "value": "frames",
- "start": 7097,
- "end": 7103,
+ "type": "CommentLine",
+ "value": " Remove via reference to state.",
+ "start": 7804,
+ "end": 7837,
"loc": {
"start": {
- "line": 218,
- "column": 21
+ "line": 238,
+ "column": 8
},
"end": {
- "line": 218,
- "column": 27
+ "line": 238,
+ "column": 41
}
}
},
{
"type": {
- "label": ".",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -38526,23 +40957,24 @@
"binop": null,
"updateContext": null
},
- "start": 7103,
- "end": 7104,
+ "value": "if",
+ "start": 7847,
+ "end": 7849,
"loc": {
"start": {
- "line": 218,
- "column": 27
+ "line": 239,
+ "column": 8
},
"end": {
- "line": 218,
- "column": 28
+ "line": 239,
+ "column": 10
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -38551,67 +40983,70 @@
"postfix": false,
"binop": null
},
- "value": "forEach",
- "start": 7104,
- "end": 7111,
+ "start": 7850,
+ "end": 7851,
"loc": {
"start": {
- "line": 218,
- "column": 28
+ "line": 239,
+ "column": 11
},
"end": {
- "line": 218,
- "column": 35
+ "line": 239,
+ "column": 12
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7111,
- "end": 7112,
+ "value": "this",
+ "start": 7851,
+ "end": 7855,
"loc": {
"start": {
- "line": 218,
- "column": 35
+ "line": 239,
+ "column": 12
},
"end": {
- "line": 218,
- "column": 36
+ "line": 239,
+ "column": 16
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7112,
- "end": 7113,
+ "start": 7855,
+ "end": 7856,
"loc": {
"start": {
- "line": 218,
- "column": 36
+ "line": 239,
+ "column": 16
},
"end": {
- "line": 218,
- "column": 37
+ "line": 239,
+ "column": 17
}
}
},
@@ -38627,23 +41062,23 @@
"postfix": false,
"binop": null
},
- "value": "pFrame",
- "start": 7113,
- "end": 7119,
+ "value": "states",
+ "start": 7856,
+ "end": 7862,
"loc": {
"start": {
- "line": 218,
- "column": 37
+ "line": 239,
+ "column": 17
},
"end": {
- "line": 218,
- "column": 43
+ "line": 239,
+ "column": 23
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -38651,50 +41086,51 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7119,
- "end": 7120,
+ "start": 7862,
+ "end": 7863,
"loc": {
"start": {
- "line": 218,
- "column": 43
+ "line": 239,
+ "column": 23
},
"end": {
- "line": 218,
- "column": 44
+ "line": 239,
+ "column": 24
}
}
},
{
"type": {
- "label": "=>",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 7121,
- "end": 7123,
+ "value": "includes",
+ "start": 7863,
+ "end": 7871,
"loc": {
"start": {
- "line": 218,
- "column": 45
+ "line": 239,
+ "column": 24
},
"end": {
- "line": 218,
- "column": 47
+ "line": 239,
+ "column": 32
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -38704,16 +41140,16 @@
"postfix": false,
"binop": null
},
- "start": 7124,
- "end": 7125,
+ "start": 7871,
+ "end": 7872,
"loc": {
"start": {
- "line": 218,
- "column": 48
+ "line": 239,
+ "column": 32
},
"end": {
- "line": 218,
- "column": 49
+ "line": 239,
+ "column": 33
}
}
},
@@ -38729,23 +41165,23 @@
"postfix": false,
"binop": null
},
- "value": "pFrame",
- "start": 7147,
- "end": 7153,
+ "value": "pState",
+ "start": 7872,
+ "end": 7878,
"loc": {
"start": {
- "line": 219,
- "column": 20
+ "line": 239,
+ "column": 33
},
"end": {
- "line": 219,
- "column": 26
+ "line": 239,
+ "column": 39
}
}
},
{
"type": {
- "label": ".",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -38753,27 +41189,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 7153,
- "end": 7154,
+ "start": 7878,
+ "end": 7879,
"loc": {
"start": {
- "line": 219,
- "column": 26
+ "line": 239,
+ "column": 39
},
"end": {
- "line": 219,
- "column": 27
+ "line": 239,
+ "column": 40
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -38781,23 +41216,22 @@
"postfix": false,
"binop": null
},
- "value": "setDelay",
- "start": 7154,
- "end": 7162,
+ "start": 7879,
+ "end": 7880,
"loc": {
"start": {
- "line": 219,
- "column": 27
+ "line": 239,
+ "column": 40
},
"end": {
- "line": 219,
- "column": 35
+ "line": 239,
+ "column": 41
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -38807,16 +41241,16 @@
"postfix": false,
"binop": null
},
- "start": 7162,
- "end": 7163,
+ "start": 7881,
+ "end": 7882,
"loc": {
"start": {
- "line": 219,
- "column": 35
+ "line": 239,
+ "column": 42
},
"end": {
- "line": 219,
- "column": 36
+ "line": 239,
+ "column": 43
}
}
},
@@ -38832,50 +41266,53 @@
"postfix": false,
"binop": null
},
- "value": "pDelay",
- "start": 7163,
- "end": 7169,
+ "value": "index",
+ "start": 7896,
+ "end": 7901,
"loc": {
"start": {
- "line": 219,
- "column": 36
+ "line": 240,
+ "column": 12
},
"end": {
- "line": 219,
- "column": 42
+ "line": 240,
+ "column": 17
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7169,
- "end": 7170,
+ "value": "=",
+ "start": 7902,
+ "end": 7903,
"loc": {
"start": {
- "line": 219,
- "column": 42
+ "line": 240,
+ "column": 18
},
"end": {
- "line": 219,
- "column": 43
+ "line": 240,
+ "column": 19
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -38884,22 +41321,23 @@
"binop": null,
"updateContext": null
},
- "start": 7170,
- "end": 7171,
+ "value": "this",
+ "start": 7904,
+ "end": 7908,
"loc": {
"start": {
- "line": 219,
- "column": 43
+ "line": 240,
+ "column": 20
},
"end": {
- "line": 219,
- "column": 44
+ "line": 240,
+ "column": 24
}
}
},
{
"type": {
- "label": "}",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -38907,26 +41345,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7189,
- "end": 7190,
+ "start": 7908,
+ "end": 7909,
"loc": {
"start": {
- "line": 220,
- "column": 16
+ "line": 240,
+ "column": 24
},
"end": {
- "line": 220,
- "column": 17
+ "line": 240,
+ "column": 25
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -38934,23 +41373,24 @@
"postfix": false,
"binop": null
},
- "start": 7190,
- "end": 7191,
+ "value": "states",
+ "start": 7909,
+ "end": 7915,
"loc": {
"start": {
- "line": 220,
- "column": 17
+ "line": 240,
+ "column": 25
},
"end": {
- "line": 220,
- "column": 18
+ "line": 240,
+ "column": 31
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -38960,24 +41400,24 @@
"binop": null,
"updateContext": null
},
- "start": 7191,
- "end": 7192,
+ "start": 7915,
+ "end": 7916,
"loc": {
"start": {
- "line": 220,
- "column": 18
+ "line": 240,
+ "column": 31
},
"end": {
- "line": 220,
- "column": 19
+ "line": 240,
+ "column": 32
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -38985,51 +41425,49 @@
"postfix": false,
"binop": null
},
- "start": 7206,
- "end": 7207,
+ "value": "indexOf",
+ "start": 7916,
+ "end": 7923,
"loc": {
"start": {
- "line": 221,
- "column": 12
+ "line": 240,
+ "column": 32
},
"end": {
- "line": 221,
- "column": 13
+ "line": 240,
+ "column": 39
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "else",
- "start": 7208,
- "end": 7212,
+ "start": 7923,
+ "end": 7924,
"loc": {
"start": {
- "line": 221,
- "column": 14
+ "line": 240,
+ "column": 39
},
"end": {
- "line": 221,
- "column": 18
+ "line": 240,
+ "column": 40
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -39038,24 +41476,25 @@
"postfix": false,
"binop": null
},
- "start": 7213,
- "end": 7214,
+ "value": "pState",
+ "start": 7924,
+ "end": 7930,
"loc": {
"start": {
- "line": 221,
- "column": 19
+ "line": 240,
+ "column": 40
},
"end": {
- "line": 221,
- "column": 20
+ "line": 240,
+ "column": 46
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39063,24 +41502,23 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 7232,
- "end": 7235,
+ "start": 7930,
+ "end": 7931,
"loc": {
"start": {
- "line": 222,
- "column": 16
+ "line": 240,
+ "column": 46
},
"end": {
- "line": 222,
- "column": 19
+ "line": 240,
+ "column": 47
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -39090,24 +41528,40 @@
"binop": null,
"updateContext": null
},
- "start": 7235,
- "end": 7236,
+ "start": 7931,
+ "end": 7932,
"loc": {
"start": {
- "line": 222,
- "column": 19
+ "line": 240,
+ "column": 47
},
"end": {
- "line": 222,
- "column": 20
+ "line": 240,
+ "column": 48
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove via reference to name",
+ "start": 7942,
+ "end": 7973,
+ "loc": {
+ "start": {
+ "line": 241,
+ "column": 8
+ },
+ "end": {
+ "line": 241,
+ "column": 39
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39115,24 +41569,24 @@
"postfix": false,
"binop": null
},
- "value": "logger",
- "start": 7236,
- "end": 7242,
+ "start": 7983,
+ "end": 7984,
"loc": {
"start": {
- "line": 222,
- "column": 20
+ "line": 242,
+ "column": 8
},
"end": {
- "line": 222,
- "column": 26
+ "line": 242,
+ "column": 9
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -39142,42 +41596,45 @@
"binop": null,
"updateContext": null
},
- "start": 7242,
- "end": 7243,
+ "value": "else",
+ "start": 7985,
+ "end": 7989,
"loc": {
"start": {
- "line": 222,
- "column": 26
+ "line": 242,
+ "column": 10
},
"end": {
- "line": 222,
- "column": 27
+ "line": 242,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "prefix",
- "start": 7243,
- "end": 7249,
+ "value": "if",
+ "start": 7990,
+ "end": 7992,
"loc": {
"start": {
- "line": 222,
- "column": 27
+ "line": 242,
+ "column": 15
},
"end": {
- "line": 222,
- "column": 33
+ "line": 242,
+ "column": 17
}
}
},
@@ -39193,51 +41650,52 @@
"postfix": false,
"binop": null
},
- "start": 7249,
- "end": 7250,
+ "start": 7993,
+ "end": 7994,
"loc": {
"start": {
- "line": 222,
- "column": 33
+ "line": 242,
+ "column": 18
},
"end": {
- "line": 222,
- "column": 34
+ "line": 242,
+ "column": 19
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
+ "label": "typeof",
+ "keyword": "typeof",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "VYI-Module",
- "start": 7250,
- "end": 7262,
+ "value": "typeof",
+ "start": 7994,
+ "end": 8000,
"loc": {
"start": {
- "line": 222,
- "column": 34
+ "line": 242,
+ "column": 19
},
"end": {
- "line": 222,
- "column": 46
+ "line": 242,
+ "column": 25
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39245,50 +41703,50 @@
"postfix": false,
"binop": null
},
- "start": 7262,
- "end": 7263,
+ "start": 8000,
+ "end": 8001,
"loc": {
"start": {
- "line": 222,
- "column": 46
+ "line": 242,
+ "column": 25
},
"end": {
- "line": 222,
- "column": 47
+ "line": 242,
+ "column": 26
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 7263,
- "end": 7264,
+ "value": "pName",
+ "start": 8001,
+ "end": 8006,
"loc": {
"start": {
- "line": 222,
- "column": 47
+ "line": 242,
+ "column": 26
},
"end": {
- "line": 222,
- "column": 48
+ "line": 242,
+ "column": 31
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39296,42 +41754,43 @@
"postfix": false,
"binop": null
},
- "value": "error",
- "start": 7264,
- "end": 7269,
+ "start": 8006,
+ "end": 8007,
"loc": {
"start": {
- "line": 222,
- "column": 48
+ "line": 242,
+ "column": 31
},
"end": {
- "line": 222,
- "column": 53
+ "line": 242,
+ "column": 32
}
}
},
{
"type": {
- "label": "(",
+ "label": "==/!=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 6,
+ "updateContext": null
},
- "start": 7269,
- "end": 7270,
+ "value": "===",
+ "start": 8008,
+ "end": 8011,
"loc": {
"start": {
- "line": 222,
- "column": 53
+ "line": 242,
+ "column": 33
},
"end": {
- "line": 222,
- "column": 54
+ "line": 242,
+ "column": 36
}
}
},
@@ -39348,17 +41807,17 @@
"binop": null,
"updateContext": null
},
- "value": "Invalid type for pDelay!",
- "start": 7270,
- "end": 7296,
+ "value": "string",
+ "start": 8012,
+ "end": 8020,
"loc": {
"start": {
- "line": 222,
- "column": 54
+ "line": 242,
+ "column": 37
},
"end": {
- "line": 222,
- "column": 80
+ "line": 242,
+ "column": 45
}
}
},
@@ -39374,48 +41833,48 @@
"postfix": false,
"binop": null
},
- "start": 7296,
- "end": 7297,
+ "start": 8020,
+ "end": 8021,
"loc": {
"start": {
- "line": 222,
- "column": 80
+ "line": 242,
+ "column": 45
},
"end": {
- "line": 222,
- "column": 81
+ "line": 242,
+ "column": 46
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 7297,
- "end": 7298,
+ "start": 8022,
+ "end": 8023,
"loc": {
"start": {
- "line": 222,
- "column": 81
+ "line": 242,
+ "column": 47
},
"end": {
- "line": 222,
- "column": 82
+ "line": 242,
+ "column": 48
}
}
},
{
"type": {
- "label": "}",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -39423,26 +41882,28 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7312,
- "end": 7313,
+ "value": "const",
+ "start": 8037,
+ "end": 8042,
"loc": {
"start": {
- "line": 223,
+ "line": 243,
"column": 12
},
"end": {
- "line": 223,
- "column": 13
+ "line": 243,
+ "column": 17
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39450,44 +41911,44 @@
"postfix": false,
"binop": null
},
- "start": 7323,
- "end": 7324,
+ "value": "state",
+ "start": 8043,
+ "end": 8048,
"loc": {
"start": {
- "line": 224,
- "column": 8
+ "line": 243,
+ "column": 18
},
"end": {
- "line": 224,
- "column": 9
+ "line": 243,
+ "column": 23
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 7334,
- "end": 7340,
+ "value": "=",
+ "start": 8049,
+ "end": 8050,
"loc": {
"start": {
- "line": 225,
- "column": 8
+ "line": 243,
+ "column": 24
},
"end": {
- "line": 225,
- "column": 14
+ "line": 243,
+ "column": 25
}
}
},
@@ -39506,23 +41967,23 @@
"updateContext": null
},
"value": "this",
- "start": 7341,
- "end": 7345,
+ "start": 8051,
+ "end": 8055,
"loc": {
"start": {
- "line": 225,
- "column": 15
+ "line": 243,
+ "column": 26
},
"end": {
- "line": 225,
- "column": 19
+ "line": 243,
+ "column": 30
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -39532,24 +41993,24 @@
"binop": null,
"updateContext": null
},
- "start": 7345,
- "end": 7346,
+ "start": 8055,
+ "end": 8056,
"loc": {
"start": {
- "line": 225,
- "column": 19
+ "line": 243,
+ "column": 30
},
"end": {
- "line": 225,
- "column": 20
+ "line": 243,
+ "column": 31
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39557,32 +42018,42 @@
"postfix": false,
"binop": null
},
- "start": 7352,
- "end": 7353,
+ "value": "getState",
+ "start": 8056,
+ "end": 8064,
"loc": {
"start": {
- "line": 226,
- "column": 4
+ "line": 243,
+ "column": 31
},
"end": {
- "line": 226,
- "column": 5
+ "line": 243,
+ "column": 39
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n ",
- "start": 7359,
- "end": 7586,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 8064,
+ "end": 8065,
"loc": {
"start": {
- "line": 227,
- "column": 4
+ "line": 243,
+ "column": 39
},
"end": {
- "line": 231,
- "column": 7
+ "line": 243,
+ "column": 40
}
}
},
@@ -39598,25 +42069,25 @@
"postfix": false,
"binop": null
},
- "value": "addState",
- "start": 7592,
- "end": 7600,
+ "value": "pName",
+ "start": 8065,
+ "end": 8070,
"loc": {
"start": {
- "line": 232,
- "column": 4
+ "line": 243,
+ "column": 40
},
"end": {
- "line": 232,
- "column": 12
+ "line": 243,
+ "column": 45
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -39624,48 +42095,49 @@
"postfix": false,
"binop": null
},
- "start": 7600,
- "end": 7601,
+ "start": 8070,
+ "end": 8071,
"loc": {
"start": {
- "line": 232,
- "column": 12
+ "line": 243,
+ "column": 45
},
"end": {
- "line": 232,
- "column": 13
+ "line": 243,
+ "column": 46
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pIconData",
- "start": 7601,
- "end": 7610,
+ "start": 8071,
+ "end": 8072,
"loc": {
"start": {
- "line": 232,
- "column": 13
+ "line": 243,
+ "column": 46
},
"end": {
- "line": 232,
- "column": 22
+ "line": 243,
+ "column": 47
}
}
},
{
"type": {
- "label": ")",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -39673,25 +42145,52 @@
"isAssign": false,
"prefix": false,
"postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "if",
+ "start": 8086,
+ "end": 8088,
+ "loc": {
+ "start": {
+ "line": 244,
+ "column": 12
+ },
+ "end": {
+ "line": 244,
+ "column": 14
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
"binop": null
},
- "start": 7610,
- "end": 7611,
+ "start": 8089,
+ "end": 8090,
"loc": {
"start": {
- "line": 232,
- "column": 22
+ "line": 244,
+ "column": 15
},
"end": {
- "line": 232,
- "column": 23
+ "line": 244,
+ "column": 16
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -39700,23 +42199,23 @@
"postfix": false,
"binop": null
},
- "start": 7612,
- "end": 7613,
+ "value": "state",
+ "start": 8090,
+ "end": 8095,
"loc": {
"start": {
- "line": 232,
- "column": 24
+ "line": 244,
+ "column": 16
},
"end": {
- "line": 232,
- "column": 25
+ "line": 244,
+ "column": 21
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -39724,26 +42223,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 7623,
- "end": 7625,
+ "start": 8095,
+ "end": 8096,
"loc": {
"start": {
- "line": 233,
- "column": 8
+ "line": 244,
+ "column": 21
},
"end": {
- "line": 233,
- "column": 10
+ "line": 244,
+ "column": 22
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -39753,16 +42250,16 @@
"postfix": false,
"binop": null
},
- "start": 7626,
- "end": 7627,
+ "start": 8097,
+ "end": 8098,
"loc": {
"start": {
- "line": 233,
- "column": 11
+ "line": 244,
+ "column": 23
},
"end": {
- "line": 233,
- "column": 12
+ "line": 244,
+ "column": 24
}
}
},
@@ -39778,51 +42275,51 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 7627,
- "end": 7636,
+ "value": "index",
+ "start": 8116,
+ "end": 8121,
"loc": {
"start": {
- "line": 233,
- "column": 12
+ "line": 245,
+ "column": 16
},
"end": {
- "line": 233,
+ "line": 245,
"column": 21
}
}
},
{
"type": {
- "label": "instanceof",
- "keyword": "instanceof",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": 7,
+ "binop": null,
"updateContext": null
},
- "value": "instanceof",
- "start": 7637,
- "end": 7647,
+ "value": "=",
+ "start": 8122,
+ "end": 8123,
"loc": {
"start": {
- "line": 233,
+ "line": 245,
"column": 22
},
"end": {
- "line": 233,
- "column": 32
+ "line": 245,
+ "column": 23
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -39830,25 +42327,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "Object",
- "start": 7648,
- "end": 7654,
+ "value": "this",
+ "start": 8124,
+ "end": 8128,
"loc": {
"start": {
- "line": 233,
- "column": 33
+ "line": 245,
+ "column": 24
},
"end": {
- "line": 233,
- "column": 39
+ "line": 245,
+ "column": 28
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -39856,25 +42354,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7654,
- "end": 7655,
+ "start": 8128,
+ "end": 8129,
"loc": {
"start": {
- "line": 233,
- "column": 39
+ "line": 245,
+ "column": 28
},
"end": {
- "line": 233,
- "column": 40
+ "line": 245,
+ "column": 29
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -39883,23 +42382,23 @@
"postfix": false,
"binop": null
},
- "start": 7656,
- "end": 7657,
+ "value": "states",
+ "start": 8129,
+ "end": 8135,
"loc": {
"start": {
- "line": 233,
- "column": 41
+ "line": 245,
+ "column": 29
},
"end": {
- "line": 233,
- "column": 42
+ "line": 245,
+ "column": 35
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -39910,17 +42409,16 @@
"binop": null,
"updateContext": null
},
- "value": "const",
- "start": 7671,
- "end": 7676,
+ "start": 8135,
+ "end": 8136,
"loc": {
"start": {
- "line": 234,
- "column": 12
+ "line": 245,
+ "column": 35
},
"end": {
- "line": 234,
- "column": 17
+ "line": 245,
+ "column": 36
}
}
},
@@ -39936,80 +42434,76 @@
"postfix": false,
"binop": null
},
- "value": "state",
- "start": 7677,
- "end": 7682,
+ "value": "indexOf",
+ "start": 8136,
+ "end": 8143,
"loc": {
"start": {
- "line": 234,
- "column": 18
+ "line": 245,
+ "column": 36
},
"end": {
- "line": 234,
- "column": 23
+ "line": 245,
+ "column": 43
}
}
},
{
"type": {
- "label": "=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 7683,
- "end": 7684,
+ "start": 8143,
+ "end": 8144,
"loc": {
"start": {
- "line": 234,
- "column": 24
+ "line": 245,
+ "column": 43
},
"end": {
- "line": 234,
- "column": 25
+ "line": 245,
+ "column": 44
}
}
},
{
"type": {
- "label": "new",
- "keyword": "new",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "new",
- "start": 7685,
- "end": 7688,
+ "value": "state",
+ "start": 8144,
+ "end": 8149,
"loc": {
"start": {
- "line": 234,
- "column": 26
+ "line": 245,
+ "column": 44
},
"end": {
- "line": 234,
- "column": 29
+ "line": 245,
+ "column": 49
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -40017,50 +42511,50 @@
"postfix": false,
"binop": null
},
- "value": "Icon",
- "start": 7689,
- "end": 7693,
+ "start": 8149,
+ "end": 8150,
"loc": {
"start": {
- "line": 234,
- "column": 30
+ "line": 245,
+ "column": 49
},
"end": {
- "line": 234,
- "column": 34
+ "line": 245,
+ "column": 50
}
}
},
{
"type": {
- "label": "(",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7693,
- "end": 7694,
+ "start": 8150,
+ "end": 8151,
"loc": {
"start": {
- "line": 234,
- "column": 34
+ "line": 245,
+ "column": 50
},
"end": {
- "line": 234,
- "column": 35
+ "line": 245,
+ "column": 51
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -40068,23 +42562,22 @@
"postfix": false,
"binop": null
},
- "value": "pIconData",
- "start": 7694,
- "end": 7703,
+ "start": 8165,
+ "end": 8166,
"loc": {
"start": {
- "line": 234,
- "column": 35
+ "line": 246,
+ "column": 12
},
"end": {
- "line": 234,
- "column": 44
+ "line": 246,
+ "column": 13
}
}
},
{
"type": {
- "label": ")",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -40094,22 +42587,23 @@
"postfix": false,
"binop": null
},
- "start": 7703,
- "end": 7704,
+ "start": 8176,
+ "end": 8177,
"loc": {
"start": {
- "line": 234,
- "column": 44
+ "line": 247,
+ "column": 8
},
"end": {
- "line": 234,
- "column": 45
+ "line": 247,
+ "column": 9
}
}
},
{
"type": {
- "label": ";",
+ "label": "else",
+ "keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -40120,23 +42614,48 @@
"binop": null,
"updateContext": null
},
- "start": 7704,
- "end": 7705,
+ "value": "else",
+ "start": 8178,
+ "end": 8182,
"loc": {
"start": {
- "line": 234,
- "column": 45
+ "line": 247,
+ "column": 10
},
"end": {
- "line": 234,
- "column": 46
+ "line": 247,
+ "column": 14
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 8183,
+ "end": 8184,
+ "loc": {
+ "start": {
+ "line": 247,
+ "column": 15
+ },
+ "end": {
+ "line": 247,
+ "column": 16
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -40144,20 +42663,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 7719,
- "end": 7723,
+ "value": "VYI",
+ "start": 8198,
+ "end": 8201,
"loc": {
"start": {
- "line": 235,
+ "line": 248,
"column": 12
},
"end": {
- "line": 235,
- "column": 16
+ "line": 248,
+ "column": 15
}
}
},
@@ -40174,16 +42692,16 @@
"binop": null,
"updateContext": null
},
- "start": 7723,
- "end": 7724,
+ "start": 8201,
+ "end": 8202,
"loc": {
"start": {
- "line": 235,
- "column": 16
+ "line": 248,
+ "column": 15
},
"end": {
- "line": 235,
- "column": 17
+ "line": 248,
+ "column": 16
}
}
},
@@ -40199,17 +42717,17 @@
"postfix": false,
"binop": null
},
- "value": "states",
- "start": 7724,
- "end": 7730,
+ "value": "logger",
+ "start": 8202,
+ "end": 8208,
"loc": {
"start": {
- "line": 235,
- "column": 17
+ "line": 248,
+ "column": 16
},
"end": {
- "line": 235,
- "column": 23
+ "line": 248,
+ "column": 22
}
}
},
@@ -40226,16 +42744,16 @@
"binop": null,
"updateContext": null
},
- "start": 7730,
- "end": 7731,
+ "start": 8208,
+ "end": 8209,
"loc": {
"start": {
- "line": 235,
- "column": 23
+ "line": 248,
+ "column": 22
},
"end": {
- "line": 235,
- "column": 24
+ "line": 248,
+ "column": 23
}
}
},
@@ -40251,17 +42769,17 @@
"postfix": false,
"binop": null
},
- "value": "push",
- "start": 7731,
- "end": 7735,
+ "value": "prefix",
+ "start": 8209,
+ "end": 8215,
"loc": {
"start": {
- "line": 235,
- "column": 24
+ "line": 248,
+ "column": 23
},
"end": {
- "line": 235,
- "column": 28
+ "line": 248,
+ "column": 29
}
}
},
@@ -40277,22 +42795,22 @@
"postfix": false,
"binop": null
},
- "start": 7735,
- "end": 7736,
+ "start": 8215,
+ "end": 8216,
"loc": {
"start": {
- "line": 235,
- "column": 28
+ "line": 248,
+ "column": 29
},
"end": {
- "line": 235,
- "column": 29
+ "line": 248,
+ "column": 30
}
}
},
{
"type": {
- "label": "name",
+ "label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -40300,19 +42818,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "state",
- "start": 7736,
- "end": 7741,
+ "value": "VYI-Module",
+ "start": 8216,
+ "end": 8228,
"loc": {
"start": {
- "line": 235,
- "column": 29
+ "line": 248,
+ "column": 30
},
"end": {
- "line": 235,
- "column": 34
+ "line": 248,
+ "column": 42
}
}
},
@@ -40328,23 +42847,23 @@
"postfix": false,
"binop": null
},
- "start": 7741,
- "end": 7742,
+ "start": 8228,
+ "end": 8229,
"loc": {
"start": {
- "line": 235,
- "column": 34
+ "line": 248,
+ "column": 42
},
"end": {
- "line": 235,
- "column": 35
+ "line": 248,
+ "column": 43
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -40354,51 +42873,49 @@
"binop": null,
"updateContext": null
},
- "start": 7742,
- "end": 7743,
+ "start": 8229,
+ "end": 8230,
"loc": {
"start": {
- "line": 235,
- "column": 35
+ "line": 248,
+ "column": 43
},
"end": {
- "line": 235,
- "column": 36
+ "line": 248,
+ "column": 44
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 7757,
- "end": 7763,
+ "value": "error",
+ "start": 8230,
+ "end": 8235,
"loc": {
"start": {
- "line": 236,
- "column": 12
+ "line": 248,
+ "column": 44
},
"end": {
- "line": 236,
- "column": 18
+ "line": 248,
+ "column": 49
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -40407,25 +42924,24 @@
"postfix": false,
"binop": null
},
- "value": "state",
- "start": 7764,
- "end": 7769,
+ "start": 8235,
+ "end": 8236,
"loc": {
"start": {
- "line": 236,
- "column": 19
+ "line": 248,
+ "column": 49
},
"end": {
- "line": 236,
- "column": 24
+ "line": 248,
+ "column": 50
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -40434,22 +42950,23 @@
"binop": null,
"updateContext": null
},
- "start": 7769,
- "end": 7770,
+ "value": "Failed to remove state!",
+ "start": 8236,
+ "end": 8261,
"loc": {
"start": {
- "line": 236,
- "column": 24
+ "line": 248,
+ "column": 50
},
"end": {
- "line": 236,
- "column": 25
+ "line": 248,
+ "column": 75
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -40459,194 +42976,185 @@
"postfix": false,
"binop": null
},
- "start": 7780,
- "end": 7781,
+ "start": 8261,
+ "end": 8262,
"loc": {
"start": {
- "line": 237,
- "column": 8
+ "line": 248,
+ "column": 75
},
"end": {
- "line": 237,
- "column": 9
+ "line": 248,
+ "column": 76
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 7787,
- "end": 7788,
- "loc": {
- "start": {
- "line": 238,
- "column": 4
- },
- "end": {
- "line": 238,
- "column": 5
- }
- }
- },
- {
- "type": "CommentBlock",
- "value": "*\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 7794,
- "end": 8155,
+ "start": 8262,
+ "end": 8263,
"loc": {
"start": {
- "line": 239,
- "column": 4
+ "line": 248,
+ "column": 76
},
"end": {
- "line": 244,
- "column": 7
+ "line": 248,
+ "column": 77
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "return",
+ "keyword": "return",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "removeState",
- "start": 8161,
- "end": 8172,
+ "value": "return",
+ "start": 8277,
+ "end": 8283,
"loc": {
"start": {
- "line": 245,
- "column": 4
+ "line": 249,
+ "column": 12
},
"end": {
- "line": 245,
- "column": 15
+ "line": 249,
+ "column": 18
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8172,
- "end": 8173,
+ "value": "this",
+ "start": 8284,
+ "end": 8288,
"loc": {
"start": {
- "line": 245,
- "column": 15
+ "line": 249,
+ "column": 19
},
"end": {
- "line": 245,
- "column": 16
+ "line": 249,
+ "column": 23
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pState",
- "start": 8173,
- "end": 8179,
+ "start": 8288,
+ "end": 8289,
"loc": {
"start": {
- "line": 245,
- "column": 16
+ "line": 249,
+ "column": 23
},
"end": {
- "line": 245,
- "column": 22
+ "line": 249,
+ "column": 24
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": "}",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 8179,
- "end": 8180,
+ "start": 8299,
+ "end": 8300,
"loc": {
"start": {
- "line": 245,
- "column": 22
+ "line": 250,
+ "column": 8
},
"end": {
- "line": 245,
- "column": 23
+ "line": 250,
+ "column": 9
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pName",
- "start": 8181,
- "end": 8186,
+ "value": "if",
+ "start": 8310,
+ "end": 8312,
"loc": {
"start": {
- "line": 245,
- "column": 24
+ "line": 251,
+ "column": 8
},
"end": {
- "line": 245,
- "column": 29
+ "line": 251,
+ "column": 10
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -40654,93 +43162,103 @@
"postfix": false,
"binop": null
},
- "start": 8186,
- "end": 8187,
+ "start": 8313,
+ "end": 8314,
"loc": {
"start": {
- "line": 245,
- "column": 29
+ "line": 251,
+ "column": 11
},
"end": {
- "line": 245,
- "column": 30
+ "line": 251,
+ "column": 12
}
}
},
{
"type": {
- "label": "{",
+ "label": "typeof",
+ "keyword": "typeof",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8188,
- "end": 8189,
+ "value": "typeof",
+ "start": 8314,
+ "end": 8320,
"loc": {
"start": {
- "line": 245,
- "column": 31
+ "line": 251,
+ "column": 12
},
"end": {
- "line": 245,
- "column": 32
+ "line": 251,
+ "column": 18
}
}
},
{
- "type": "CommentLine",
- "value": " The index used to remove this frame.",
- "start": 8199,
- "end": 8238,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 8320,
+ "end": 8321,
"loc": {
"start": {
- "line": 246,
- "column": 8
+ "line": 251,
+ "column": 18
},
"end": {
- "line": 246,
- "column": 47
+ "line": 251,
+ "column": 19
}
}
},
{
"type": {
- "label": "let",
- "keyword": "let",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "let",
- "start": 8248,
- "end": 8251,
+ "value": "index",
+ "start": 8321,
+ "end": 8326,
"loc": {
"start": {
- "line": 247,
- "column": 8
+ "line": 251,
+ "column": 19
},
"end": {
- "line": 247,
- "column": 11
+ "line": 251,
+ "column": 24
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -40748,23 +43266,22 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 8252,
- "end": 8257,
+ "start": 8326,
+ "end": 8327,
"loc": {
"start": {
- "line": 247,
- "column": 12
+ "line": 251,
+ "column": 24
},
"end": {
- "line": 247,
- "column": 17
+ "line": 251,
+ "column": 25
}
}
},
{
"type": {
- "label": ";",
+ "label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -40772,42 +43289,53 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "start": 8257,
- "end": 8258,
+ "value": "===",
+ "start": 8328,
+ "end": 8331,
"loc": {
"start": {
- "line": 247,
- "column": 17
+ "line": 251,
+ "column": 26
},
"end": {
- "line": 247,
- "column": 18
+ "line": 251,
+ "column": 29
}
}
},
{
- "type": "CommentLine",
- "value": " Remove via reference to state.",
- "start": 8268,
- "end": 8301,
+ "type": {
+ "label": "string",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "number",
+ "start": 8332,
+ "end": 8340,
"loc": {
"start": {
- "line": 248,
- "column": 8
+ "line": 251,
+ "column": 30
},
"end": {
- "line": 248,
- "column": 41
+ "line": 251,
+ "column": 38
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -40815,26 +43343,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 8311,
- "end": 8313,
+ "start": 8340,
+ "end": 8341,
"loc": {
"start": {
- "line": 249,
- "column": 8
+ "line": 251,
+ "column": 38
},
"end": {
- "line": 249,
- "column": 10
+ "line": 251,
+ "column": 39
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -40844,16 +43370,32 @@
"postfix": false,
"binop": null
},
- "start": 8314,
- "end": 8315,
+ "start": 8342,
+ "end": 8343,
"loc": {
"start": {
- "line": 249,
- "column": 11
+ "line": 251,
+ "column": 40
},
"end": {
- "line": 249,
+ "line": 251,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove the state",
+ "start": 8357,
+ "end": 8376,
+ "loc": {
+ "start": {
+ "line": 252,
"column": 12
+ },
+ "end": {
+ "line": 252,
+ "column": 31
}
}
},
@@ -40872,15 +43414,15 @@
"updateContext": null
},
"value": "this",
- "start": 8315,
- "end": 8319,
+ "start": 8390,
+ "end": 8394,
"loc": {
"start": {
- "line": 249,
+ "line": 253,
"column": 12
},
"end": {
- "line": 249,
+ "line": 253,
"column": 16
}
}
@@ -40898,15 +43440,15 @@
"binop": null,
"updateContext": null
},
- "start": 8319,
- "end": 8320,
+ "start": 8394,
+ "end": 8395,
"loc": {
"start": {
- "line": 249,
+ "line": 253,
"column": 16
},
"end": {
- "line": 249,
+ "line": 253,
"column": 17
}
}
@@ -40924,15 +43466,15 @@
"binop": null
},
"value": "states",
- "start": 8320,
- "end": 8326,
+ "start": 8395,
+ "end": 8401,
"loc": {
"start": {
- "line": 249,
+ "line": 253,
"column": 17
},
"end": {
- "line": 249,
+ "line": 253,
"column": 23
}
}
@@ -40950,15 +43492,15 @@
"binop": null,
"updateContext": null
},
- "start": 8326,
- "end": 8327,
+ "start": 8401,
+ "end": 8402,
"loc": {
"start": {
- "line": 249,
+ "line": 253,
"column": 23
},
"end": {
- "line": 249,
+ "line": 253,
"column": 24
}
}
@@ -40975,17 +43517,17 @@
"postfix": false,
"binop": null
},
- "value": "includes",
- "start": 8327,
- "end": 8335,
+ "value": "splice",
+ "start": 8402,
+ "end": 8408,
"loc": {
"start": {
- "line": 249,
+ "line": 253,
"column": 24
},
"end": {
- "line": 249,
- "column": 32
+ "line": 253,
+ "column": 30
}
}
},
@@ -41001,16 +43543,16 @@
"postfix": false,
"binop": null
},
- "start": 8335,
- "end": 8336,
+ "start": 8408,
+ "end": 8409,
"loc": {
"start": {
- "line": 249,
- "column": 32
+ "line": 253,
+ "column": 30
},
"end": {
- "line": 249,
- "column": 33
+ "line": 253,
+ "column": 31
}
}
},
@@ -41026,42 +43568,70 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 8336,
- "end": 8342,
+ "value": "index",
+ "start": 8409,
+ "end": 8414,
"loc": {
"start": {
- "line": 249,
- "column": 33
+ "line": 253,
+ "column": 31
},
"end": {
- "line": 249,
- "column": 39
+ "line": 253,
+ "column": 36
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ",",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8342,
- "end": 8343,
+ "start": 8414,
+ "end": 8415,
"loc": {
"start": {
- "line": 249,
- "column": 39
+ "line": 253,
+ "column": 36
},
"end": {
- "line": 249,
- "column": 40
+ "line": 253,
+ "column": 37
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": 1,
+ "start": 8416,
+ "end": 8417,
+ "loc": {
+ "start": {
+ "line": 253,
+ "column": 38
+ },
+ "end": {
+ "line": 253,
+ "column": 39
}
}
},
@@ -41077,49 +43647,50 @@
"postfix": false,
"binop": null
},
- "start": 8343,
- "end": 8344,
+ "start": 8417,
+ "end": 8418,
"loc": {
"start": {
- "line": 249,
- "column": 40
+ "line": 253,
+ "column": 39
},
"end": {
- "line": 249,
- "column": 41
+ "line": 253,
+ "column": 40
}
}
},
{
"type": {
- "label": "{",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8345,
- "end": 8346,
+ "start": 8418,
+ "end": 8419,
"loc": {
"start": {
- "line": 249,
- "column": 42
+ "line": 253,
+ "column": 40
},
"end": {
- "line": 249,
- "column": 43
+ "line": 253,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -41127,44 +43698,44 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 8360,
- "end": 8365,
+ "start": 8429,
+ "end": 8430,
"loc": {
"start": {
- "line": 250,
- "column": 12
+ "line": 254,
+ "column": 8
},
"end": {
- "line": 250,
- "column": 17
+ "line": 254,
+ "column": 9
}
}
},
{
"type": {
- "label": "=",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "=",
- "start": 8366,
- "end": 8367,
+ "value": "return",
+ "start": 8440,
+ "end": 8446,
"loc": {
"start": {
- "line": 250,
- "column": 18
+ "line": 255,
+ "column": 8
},
"end": {
- "line": 250,
- "column": 19
+ "line": 255,
+ "column": 14
}
}
},
@@ -41183,23 +43754,23 @@
"updateContext": null
},
"value": "this",
- "start": 8368,
- "end": 8372,
+ "start": 8447,
+ "end": 8451,
"loc": {
"start": {
- "line": 250,
- "column": 20
+ "line": 255,
+ "column": 15
},
"end": {
- "line": 250,
- "column": 24
+ "line": 255,
+ "column": 19
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -41209,24 +43780,24 @@
"binop": null,
"updateContext": null
},
- "start": 8372,
- "end": 8373,
+ "start": 8451,
+ "end": 8452,
"loc": {
"start": {
- "line": 250,
- "column": 24
+ "line": 255,
+ "column": 19
},
"end": {
- "line": 250,
- "column": 25
+ "line": 255,
+ "column": 20
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -41234,43 +43805,32 @@
"postfix": false,
"binop": null
},
- "value": "states",
- "start": 8373,
- "end": 8379,
+ "start": 8458,
+ "end": 8459,
"loc": {
"start": {
- "line": 250,
- "column": 25
+ "line": 256,
+ "column": 4
},
"end": {
- "line": 250,
- "column": 31
+ "line": 256,
+ "column": 5
}
}
},
{
- "type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 8379,
- "end": 8380,
+ "type": "CommentBlock",
+ "value": "*\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n ",
+ "start": 8465,
+ "end": 8662,
"loc": {
"start": {
- "line": 250,
- "column": 31
+ "line": 257,
+ "column": 4
},
"end": {
- "line": 250,
- "column": 32
+ "line": 261,
+ "column": 7
}
}
},
@@ -41286,17 +43846,17 @@
"postfix": false,
"binop": null
},
- "value": "indexOf",
- "start": 8380,
- "end": 8387,
+ "value": "addFrame",
+ "start": 8668,
+ "end": 8676,
"loc": {
"start": {
- "line": 250,
- "column": 32
+ "line": 262,
+ "column": 4
},
"end": {
- "line": 250,
- "column": 39
+ "line": 262,
+ "column": 12
}
}
},
@@ -41312,16 +43872,16 @@
"postfix": false,
"binop": null
},
- "start": 8387,
- "end": 8388,
+ "start": 8676,
+ "end": 8677,
"loc": {
"start": {
- "line": 250,
- "column": 39
+ "line": 262,
+ "column": 12
},
"end": {
- "line": 250,
- "column": 40
+ "line": 262,
+ "column": 13
}
}
},
@@ -41337,17 +43897,17 @@
"postfix": false,
"binop": null
},
- "value": "pState",
- "start": 8388,
- "end": 8394,
+ "value": "pFrameData",
+ "start": 8677,
+ "end": 8687,
"loc": {
"start": {
- "line": 250,
- "column": 40
+ "line": 262,
+ "column": 13
},
"end": {
- "line": 250,
- "column": 46
+ "line": 262,
+ "column": 23
}
}
},
@@ -41363,64 +43923,48 @@
"postfix": false,
"binop": null
},
- "start": 8394,
- "end": 8395,
+ "start": 8687,
+ "end": 8688,
"loc": {
"start": {
- "line": 250,
- "column": 46
+ "line": 262,
+ "column": 23
},
"end": {
- "line": 250,
- "column": 47
+ "line": 262,
+ "column": 24
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 8395,
- "end": 8396,
- "loc": {
- "start": {
- "line": 250,
- "column": 47
- },
- "end": {
- "line": 250,
- "column": 48
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Remove via reference to name",
- "start": 8406,
- "end": 8437,
+ "start": 8689,
+ "end": 8690,
"loc": {
"start": {
- "line": 251,
- "column": 8
+ "line": 262,
+ "column": 25
},
"end": {
- "line": 251,
- "column": 39
+ "line": 262,
+ "column": 26
}
}
},
{
"type": {
- "label": "}",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -41428,82 +43972,79 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8447,
- "end": 8448,
+ "value": "if",
+ "start": 8700,
+ "end": 8702,
"loc": {
"start": {
- "line": 252,
+ "line": 263,
"column": 8
},
"end": {
- "line": 252,
- "column": 9
+ "line": 263,
+ "column": 10
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "else",
- "start": 8449,
- "end": 8453,
+ "start": 8703,
+ "end": 8704,
"loc": {
"start": {
- "line": 252,
- "column": 10
+ "line": 263,
+ "column": 11
},
"end": {
- "line": 252,
- "column": 14
+ "line": 263,
+ "column": 12
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 8454,
- "end": 8456,
+ "value": "pFrameData",
+ "start": 8704,
+ "end": 8714,
"loc": {
"start": {
- "line": 252,
- "column": 15
+ "line": 263,
+ "column": 12
},
"end": {
- "line": 252,
- "column": 17
+ "line": 263,
+ "column": 22
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -41511,76 +44052,76 @@
"postfix": false,
"binop": null
},
- "start": 8457,
- "end": 8458,
+ "start": 8714,
+ "end": 8715,
"loc": {
"start": {
- "line": 252,
- "column": 18
+ "line": 263,
+ "column": 22
},
"end": {
- "line": 252,
- "column": 19
+ "line": 263,
+ "column": 23
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "typeof",
- "start": 8458,
- "end": 8464,
+ "binop": null
+ },
+ "start": 8716,
+ "end": 8717,
"loc": {
"start": {
- "line": 252,
- "column": 19
+ "line": 263,
+ "column": 24
},
"end": {
- "line": 252,
+ "line": 263,
"column": 25
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8464,
- "end": 8465,
+ "value": "if",
+ "start": 8731,
+ "end": 8733,
"loc": {
"start": {
- "line": 252,
- "column": 25
+ "line": 264,
+ "column": 12
},
"end": {
- "line": 252,
- "column": 26
+ "line": 264,
+ "column": 14
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -41589,25 +44130,24 @@
"postfix": false,
"binop": null
},
- "value": "pName",
- "start": 8465,
- "end": 8470,
+ "start": 8734,
+ "end": 8735,
"loc": {
"start": {
- "line": 252,
- "column": 26
+ "line": 264,
+ "column": 15
},
"end": {
- "line": 252,
- "column": 31
+ "line": 264,
+ "column": 16
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -41615,22 +44155,24 @@
"postfix": false,
"binop": null
},
- "start": 8470,
- "end": 8471,
+ "value": "pFrameData",
+ "start": 8735,
+ "end": 8745,
"loc": {
"start": {
- "line": 252,
- "column": 31
+ "line": 264,
+ "column": 16
},
"end": {
- "line": 252,
- "column": 32
+ "line": 264,
+ "column": 26
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": "instanceof",
+ "keyword": "instanceof",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -41638,26 +44180,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
+ "binop": 7,
"updateContext": null
},
- "value": "===",
- "start": 8472,
- "end": 8475,
+ "value": "instanceof",
+ "start": 8746,
+ "end": 8756,
"loc": {
"start": {
- "line": 252,
- "column": 33
+ "line": 264,
+ "column": 27
},
"end": {
- "line": 252,
- "column": 36
+ "line": 264,
+ "column": 37
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -41665,20 +44207,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "string",
- "start": 8476,
- "end": 8484,
+ "value": "Object",
+ "start": 8757,
+ "end": 8763,
"loc": {
"start": {
- "line": 252,
- "column": 37
+ "line": 264,
+ "column": 38
},
"end": {
- "line": 252,
- "column": 45
+ "line": 264,
+ "column": 44
}
}
},
@@ -41694,16 +44235,16 @@
"postfix": false,
"binop": null
},
- "start": 8484,
- "end": 8485,
+ "start": 8763,
+ "end": 8764,
"loc": {
"start": {
- "line": 252,
- "column": 45
+ "line": 264,
+ "column": 44
},
"end": {
- "line": 252,
- "column": 46
+ "line": 264,
+ "column": 45
}
}
},
@@ -41719,16 +44260,16 @@
"postfix": false,
"binop": null
},
- "start": 8486,
- "end": 8487,
+ "start": 8765,
+ "end": 8766,
"loc": {
"start": {
- "line": 252,
- "column": 47
+ "line": 264,
+ "column": 46
},
"end": {
- "line": 252,
- "column": 48
+ "line": 264,
+ "column": 47
}
}
},
@@ -41747,16 +44288,16 @@
"updateContext": null
},
"value": "const",
- "start": 8501,
- "end": 8506,
+ "start": 8784,
+ "end": 8789,
"loc": {
"start": {
- "line": 253,
- "column": 12
+ "line": 265,
+ "column": 16
},
"end": {
- "line": 253,
- "column": 17
+ "line": 265,
+ "column": 21
}
}
},
@@ -41772,17 +44313,17 @@
"postfix": false,
"binop": null
},
- "value": "state",
- "start": 8507,
- "end": 8512,
+ "value": "frame",
+ "start": 8790,
+ "end": 8795,
"loc": {
"start": {
- "line": 253,
- "column": 18
+ "line": 265,
+ "column": 22
},
"end": {
- "line": 253,
- "column": 23
+ "line": 265,
+ "column": 27
}
}
},
@@ -41800,24 +44341,24 @@
"updateContext": null
},
"value": "=",
- "start": 8513,
- "end": 8514,
+ "start": 8796,
+ "end": 8797,
"loc": {
"start": {
- "line": 253,
- "column": 24
+ "line": 265,
+ "column": 28
},
"end": {
- "line": 253,
- "column": 25
+ "line": 265,
+ "column": 29
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
+ "label": "new",
+ "keyword": "new",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -41827,43 +44368,68 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 8515,
- "end": 8519,
+ "value": "new",
+ "start": 8798,
+ "end": 8801,
"loc": {
"start": {
- "line": 253,
- "column": 26
+ "line": 265,
+ "column": 30
},
"end": {
- "line": 253,
- "column": 30
+ "line": 265,
+ "column": 33
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 8519,
- "end": 8520,
+ "value": "Frame",
+ "start": 8802,
+ "end": 8807,
"loc": {
"start": {
- "line": 253,
- "column": 30
+ "line": 265,
+ "column": 34
},
"end": {
- "line": 253,
- "column": 31
+ "line": 265,
+ "column": 39
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 8807,
+ "end": 8808,
+ "loc": {
+ "start": {
+ "line": 265,
+ "column": 39
+ },
+ "end": {
+ "line": 265,
+ "column": 40
}
}
},
@@ -41879,48 +44445,50 @@
"postfix": false,
"binop": null
},
- "value": "getState",
- "start": 8520,
- "end": 8528,
+ "value": "pFrameData",
+ "start": 8808,
+ "end": 8818,
"loc": {
"start": {
- "line": 253,
- "column": 31
+ "line": 265,
+ "column": 40
},
"end": {
- "line": 253,
- "column": 39
+ "line": 265,
+ "column": 50
}
}
},
{
"type": {
- "label": "(",
+ "label": ",",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8528,
- "end": 8529,
+ "start": 8818,
+ "end": 8819,
"loc": {
"start": {
- "line": 253,
- "column": 39
+ "line": 265,
+ "column": 50
},
"end": {
- "line": 253,
- "column": 40
+ "line": 265,
+ "column": 51
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -41928,19 +44496,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pName",
- "start": 8529,
- "end": 8534,
+ "value": "this",
+ "start": 8820,
+ "end": 8824,
"loc": {
"start": {
- "line": 253,
- "column": 40
+ "line": 265,
+ "column": 52
},
"end": {
- "line": 253,
- "column": 45
+ "line": 265,
+ "column": 56
}
}
},
@@ -41956,16 +44525,16 @@
"postfix": false,
"binop": null
},
- "start": 8534,
- "end": 8535,
+ "start": 8824,
+ "end": 8825,
"loc": {
"start": {
- "line": 253,
- "column": 45
+ "line": 265,
+ "column": 56
},
"end": {
- "line": 253,
- "column": 46
+ "line": 265,
+ "column": 57
}
}
},
@@ -41982,25 +44551,41 @@
"binop": null,
"updateContext": null
},
- "start": 8535,
- "end": 8536,
+ "start": 8825,
+ "end": 8826,
"loc": {
"start": {
- "line": 253,
- "column": 46
+ "line": 265,
+ "column": 57
},
"end": {
- "line": 253,
- "column": 47
+ "line": 265,
+ "column": 58
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Add the frame to the frames array.",
+ "start": 8844,
+ "end": 8881,
+ "loc": {
+ "start": {
+ "line": 266,
+ "column": 16
+ },
+ "end": {
+ "line": 266,
+ "column": 53
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -42009,42 +44594,43 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 8550,
- "end": 8552,
+ "value": "this",
+ "start": 8899,
+ "end": 8903,
"loc": {
"start": {
- "line": 254,
- "column": 12
+ "line": 267,
+ "column": 16
},
"end": {
- "line": 254,
- "column": 14
+ "line": 267,
+ "column": 20
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8553,
- "end": 8554,
+ "start": 8903,
+ "end": 8904,
"loc": {
"start": {
- "line": 254,
- "column": 15
+ "line": 267,
+ "column": 20
},
"end": {
- "line": 254,
- "column": 16
+ "line": 267,
+ "column": 21
}
}
},
@@ -42060,23 +44646,23 @@
"postfix": false,
"binop": null
},
- "value": "state",
- "start": 8554,
- "end": 8559,
+ "value": "frames",
+ "start": 8904,
+ "end": 8910,
"loc": {
"start": {
- "line": 254,
- "column": 16
+ "line": 267,
+ "column": 21
},
"end": {
- "line": 254,
- "column": 21
+ "line": 267,
+ "column": 27
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -42084,25 +44670,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8559,
- "end": 8560,
+ "start": 8910,
+ "end": 8911,
"loc": {
"start": {
- "line": 254,
- "column": 21
+ "line": 267,
+ "column": 27
},
"end": {
- "line": 254,
- "column": 22
+ "line": 267,
+ "column": 28
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -42111,23 +44698,24 @@
"postfix": false,
"binop": null
},
- "start": 8561,
- "end": 8562,
+ "value": "push",
+ "start": 8911,
+ "end": 8915,
"loc": {
"start": {
- "line": 254,
- "column": 23
+ "line": 267,
+ "column": 28
},
"end": {
- "line": 254,
- "column": 24
+ "line": 267,
+ "column": 32
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -42136,79 +44724,74 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 8580,
- "end": 8585,
+ "start": 8915,
+ "end": 8916,
"loc": {
"start": {
- "line": 255,
- "column": 16
+ "line": 267,
+ "column": 32
},
"end": {
- "line": 255,
- "column": 21
+ "line": 267,
+ "column": 33
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 8586,
- "end": 8587,
+ "value": "frame",
+ "start": 8916,
+ "end": 8921,
"loc": {
"start": {
- "line": 255,
- "column": 22
+ "line": 267,
+ "column": 33
},
"end": {
- "line": 255,
- "column": 23
+ "line": 267,
+ "column": 38
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 8588,
- "end": 8592,
+ "start": 8921,
+ "end": 8922,
"loc": {
"start": {
- "line": 255,
- "column": 24
+ "line": 267,
+ "column": 38
},
"end": {
- "line": 255,
- "column": 28
+ "line": 267,
+ "column": 39
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -42218,22 +44801,39 @@
"binop": null,
"updateContext": null
},
- "start": 8592,
- "end": 8593,
+ "start": 8922,
+ "end": 8923,
"loc": {
"start": {
- "line": 255,
- "column": 28
+ "line": 267,
+ "column": 39
},
"end": {
- "line": 255,
- "column": 29
+ "line": 267,
+ "column": 40
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Re-index frames after a change",
+ "start": 8941,
+ "end": 8974,
+ "loc": {
+ "start": {
+ "line": 268,
+ "column": 16
+ },
+ "end": {
+ "line": 268,
+ "column": 49
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -42241,19 +44841,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "states",
- "start": 8593,
- "end": 8599,
+ "value": "this",
+ "start": 8992,
+ "end": 8996,
"loc": {
"start": {
- "line": 255,
- "column": 29
+ "line": 269,
+ "column": 16
},
"end": {
- "line": 255,
- "column": 35
+ "line": 269,
+ "column": 20
}
}
},
@@ -42270,16 +44871,16 @@
"binop": null,
"updateContext": null
},
- "start": 8599,
- "end": 8600,
+ "start": 8996,
+ "end": 8997,
"loc": {
"start": {
- "line": 255,
- "column": 35
+ "line": 269,
+ "column": 20
},
"end": {
- "line": 255,
- "column": 36
+ "line": 269,
+ "column": 21
}
}
},
@@ -42295,17 +44896,17 @@
"postfix": false,
"binop": null
},
- "value": "indexOf",
- "start": 8600,
- "end": 8607,
+ "value": "indexFrames",
+ "start": 8997,
+ "end": 9008,
"loc": {
"start": {
- "line": 255,
- "column": 36
+ "line": 269,
+ "column": 21
},
"end": {
- "line": 255,
- "column": 43
+ "line": 269,
+ "column": 32
}
}
},
@@ -42321,24 +44922,24 @@
"postfix": false,
"binop": null
},
- "start": 8607,
- "end": 8608,
+ "start": 9008,
+ "end": 9009,
"loc": {
"start": {
- "line": 255,
- "column": 43
+ "line": 269,
+ "column": 32
},
"end": {
- "line": 255,
- "column": 44
+ "line": 269,
+ "column": 33
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -42346,48 +44947,49 @@
"postfix": false,
"binop": null
},
- "value": "state",
- "start": 8608,
- "end": 8613,
+ "start": 9009,
+ "end": 9010,
"loc": {
"start": {
- "line": 255,
- "column": 44
+ "line": 269,
+ "column": 33
},
"end": {
- "line": 255,
- "column": 49
+ "line": 269,
+ "column": 34
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8613,
- "end": 8614,
+ "start": 9010,
+ "end": 9011,
"loc": {
"start": {
- "line": 255,
- "column": 49
+ "line": 269,
+ "column": 34
},
"end": {
- "line": 255,
- "column": 50
+ "line": 269,
+ "column": 35
}
}
},
{
"type": {
- "label": ";",
+ "label": "return",
+ "keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -42398,24 +45000,25 @@
"binop": null,
"updateContext": null
},
- "start": 8614,
- "end": 8615,
+ "value": "return",
+ "start": 9029,
+ "end": 9035,
"loc": {
"start": {
- "line": 255,
- "column": 50
+ "line": 270,
+ "column": 16
},
"end": {
- "line": 255,
- "column": 51
+ "line": 270,
+ "column": 22
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -42423,16 +45026,43 @@
"postfix": false,
"binop": null
},
- "start": 8629,
- "end": 8630,
+ "value": "frame",
+ "start": 9036,
+ "end": 9041,
"loc": {
"start": {
- "line": 256,
- "column": 12
+ "line": 270,
+ "column": 23
},
"end": {
- "line": 256,
- "column": 13
+ "line": 270,
+ "column": 28
+ }
+ }
+ },
+ {
+ "type": {
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 9041,
+ "end": 9042,
+ "loc": {
+ "start": {
+ "line": 270,
+ "column": 28
+ },
+ "end": {
+ "line": 270,
+ "column": 29
}
}
},
@@ -42448,16 +45078,16 @@
"postfix": false,
"binop": null
},
- "start": 8640,
- "end": 8641,
+ "start": 9056,
+ "end": 9057,
"loc": {
"start": {
- "line": 257,
- "column": 8
+ "line": 271,
+ "column": 12
},
"end": {
- "line": 257,
- "column": 9
+ "line": 271,
+ "column": 13
}
}
},
@@ -42476,16 +45106,16 @@
"updateContext": null
},
"value": "else",
- "start": 8642,
- "end": 8646,
+ "start": 9058,
+ "end": 9062,
"loc": {
"start": {
- "line": 257,
- "column": 10
+ "line": 271,
+ "column": 14
},
"end": {
- "line": 257,
- "column": 14
+ "line": 271,
+ "column": 18
}
}
},
@@ -42501,16 +45131,16 @@
"postfix": false,
"binop": null
},
- "start": 8647,
- "end": 8648,
+ "start": 9063,
+ "end": 9064,
"loc": {
"start": {
- "line": 257,
- "column": 15
+ "line": 271,
+ "column": 19
},
"end": {
- "line": 257,
- "column": 16
+ "line": 271,
+ "column": 20
}
}
},
@@ -42527,16 +45157,16 @@
"binop": null
},
"value": "VYI",
- "start": 8662,
- "end": 8665,
+ "start": 9082,
+ "end": 9085,
"loc": {
"start": {
- "line": 258,
- "column": 12
+ "line": 272,
+ "column": 16
},
"end": {
- "line": 258,
- "column": 15
+ "line": 272,
+ "column": 19
}
}
},
@@ -42553,16 +45183,16 @@
"binop": null,
"updateContext": null
},
- "start": 8665,
- "end": 8666,
+ "start": 9085,
+ "end": 9086,
"loc": {
"start": {
- "line": 258,
- "column": 15
+ "line": 272,
+ "column": 19
},
"end": {
- "line": 258,
- "column": 16
+ "line": 272,
+ "column": 20
}
}
},
@@ -42579,16 +45209,16 @@
"binop": null
},
"value": "logger",
- "start": 8666,
- "end": 8672,
+ "start": 9086,
+ "end": 9092,
"loc": {
"start": {
- "line": 258,
- "column": 16
+ "line": 272,
+ "column": 20
},
"end": {
- "line": 258,
- "column": 22
+ "line": 272,
+ "column": 26
}
}
},
@@ -42605,16 +45235,16 @@
"binop": null,
"updateContext": null
},
- "start": 8672,
- "end": 8673,
+ "start": 9092,
+ "end": 9093,
"loc": {
"start": {
- "line": 258,
- "column": 22
+ "line": 272,
+ "column": 26
},
"end": {
- "line": 258,
- "column": 23
+ "line": 272,
+ "column": 27
}
}
},
@@ -42631,16 +45261,16 @@
"binop": null
},
"value": "prefix",
- "start": 8673,
- "end": 8679,
+ "start": 9093,
+ "end": 9099,
"loc": {
"start": {
- "line": 258,
- "column": 23
+ "line": 272,
+ "column": 27
},
"end": {
- "line": 258,
- "column": 29
+ "line": 272,
+ "column": 33
}
}
},
@@ -42656,16 +45286,16 @@
"postfix": false,
"binop": null
},
- "start": 8679,
- "end": 8680,
+ "start": 9099,
+ "end": 9100,
"loc": {
"start": {
- "line": 258,
- "column": 29
+ "line": 272,
+ "column": 33
},
"end": {
- "line": 258,
- "column": 30
+ "line": 272,
+ "column": 34
}
}
},
@@ -42683,16 +45313,16 @@
"updateContext": null
},
"value": "VYI-Module",
- "start": 8680,
- "end": 8692,
+ "start": 9100,
+ "end": 9112,
"loc": {
"start": {
- "line": 258,
- "column": 30
+ "line": 272,
+ "column": 34
},
"end": {
- "line": 258,
- "column": 42
+ "line": 272,
+ "column": 46
}
}
},
@@ -42708,16 +45338,16 @@
"postfix": false,
"binop": null
},
- "start": 8692,
- "end": 8693,
+ "start": 9112,
+ "end": 9113,
"loc": {
"start": {
- "line": 258,
- "column": 42
+ "line": 272,
+ "column": 46
},
"end": {
- "line": 258,
- "column": 43
+ "line": 272,
+ "column": 47
}
}
},
@@ -42734,16 +45364,16 @@
"binop": null,
"updateContext": null
},
- "start": 8693,
- "end": 8694,
+ "start": 9113,
+ "end": 9114,
"loc": {
"start": {
- "line": 258,
- "column": 43
+ "line": 272,
+ "column": 47
},
"end": {
- "line": 258,
- "column": 44
+ "line": 272,
+ "column": 48
}
}
},
@@ -42760,16 +45390,16 @@
"binop": null
},
"value": "error",
- "start": 8694,
- "end": 8699,
+ "start": 9114,
+ "end": 9119,
"loc": {
"start": {
- "line": 258,
- "column": 44
+ "line": 272,
+ "column": 48
},
"end": {
- "line": 258,
- "column": 49
+ "line": 272,
+ "column": 53
}
}
},
@@ -42785,16 +45415,16 @@
"postfix": false,
"binop": null
},
- "start": 8699,
- "end": 8700,
+ "start": 9119,
+ "end": 9120,
"loc": {
"start": {
- "line": 258,
- "column": 49
+ "line": 272,
+ "column": 53
},
"end": {
- "line": 258,
- "column": 50
+ "line": 272,
+ "column": 54
}
}
},
@@ -42811,17 +45441,17 @@
"binop": null,
"updateContext": null
},
- "value": "Failed to remove state!",
- "start": 8700,
- "end": 8725,
+ "value": "Invalid frame data passed!",
+ "start": 9120,
+ "end": 9148,
"loc": {
"start": {
- "line": 258,
- "column": 50
+ "line": 272,
+ "column": 54
},
"end": {
- "line": 258,
- "column": 75
+ "line": 272,
+ "column": 82
}
}
},
@@ -42837,16 +45467,16 @@
"postfix": false,
"binop": null
},
- "start": 8725,
- "end": 8726,
+ "start": 9148,
+ "end": 9149,
"loc": {
"start": {
- "line": 258,
- "column": 75
+ "line": 272,
+ "column": 82
},
"end": {
- "line": 258,
- "column": 76
+ "line": 272,
+ "column": 83
}
}
},
@@ -42863,78 +45493,73 @@
"binop": null,
"updateContext": null
},
- "start": 8726,
- "end": 8727,
+ "start": 9149,
+ "end": 9150,
"loc": {
"start": {
- "line": 258,
- "column": 76
+ "line": 272,
+ "column": 83
},
"end": {
- "line": 258,
- "column": 77
+ "line": 272,
+ "column": 84
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": "}",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 8741,
- "end": 8747,
+ "start": 9164,
+ "end": 9165,
"loc": {
"start": {
- "line": 259,
+ "line": 273,
"column": 12
},
"end": {
- "line": 259,
- "column": 18
+ "line": 273,
+ "column": 13
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 8748,
- "end": 8752,
+ "start": 9175,
+ "end": 9176,
"loc": {
"start": {
- "line": 259,
- "column": 19
+ "line": 274,
+ "column": 8
},
"end": {
- "line": 259,
- "column": 23
+ "line": 274,
+ "column": 9
}
}
},
{
"type": {
- "label": ";",
+ "label": "else",
+ "keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -42945,24 +45570,25 @@
"binop": null,
"updateContext": null
},
- "start": 8752,
- "end": 8753,
+ "value": "else",
+ "start": 9177,
+ "end": 9181,
"loc": {
"start": {
- "line": 259,
- "column": 23
+ "line": 274,
+ "column": 10
},
"end": {
- "line": 259,
- "column": 24
+ "line": 274,
+ "column": 14
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -42970,51 +45596,23 @@
"postfix": false,
"binop": null
},
- "start": 8763,
- "end": 8764,
+ "start": 9182,
+ "end": 9183,
"loc": {
"start": {
- "line": 260,
- "column": 8
+ "line": 274,
+ "column": 15
},
"end": {
- "line": 260,
- "column": 9
+ "line": 274,
+ "column": 16
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "if",
- "start": 8774,
- "end": 8776,
- "loc": {
- "start": {
- "line": 261,
- "column": 8
- },
- "end": {
- "line": 261,
- "column": 10
- }
- }
- },
- {
- "type": {
- "label": "(",
- "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -43023,51 +45621,50 @@
"postfix": false,
"binop": null
},
- "start": 8777,
- "end": 8778,
+ "value": "VYI",
+ "start": 9197,
+ "end": 9200,
"loc": {
"start": {
- "line": 261,
- "column": 11
+ "line": 275,
+ "column": 12
},
"end": {
- "line": 261,
- "column": 12
+ "line": 275,
+ "column": 15
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "typeof",
- "start": 8778,
- "end": 8784,
+ "start": 9200,
+ "end": 9201,
"loc": {
"start": {
- "line": 261,
- "column": 12
+ "line": 275,
+ "column": 15
},
"end": {
- "line": 261,
- "column": 18
+ "line": 275,
+ "column": 16
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -43076,50 +45673,51 @@
"postfix": false,
"binop": null
},
- "start": 8784,
- "end": 8785,
+ "value": "logger",
+ "start": 9201,
+ "end": 9207,
"loc": {
"start": {
- "line": 261,
- "column": 18
+ "line": 275,
+ "column": 16
},
"end": {
- "line": 261,
- "column": 19
+ "line": 275,
+ "column": 22
}
}
},
{
"type": {
- "label": "name",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "index",
- "start": 8785,
- "end": 8790,
+ "start": 9207,
+ "end": 9208,
"loc": {
"start": {
- "line": 261,
- "column": 19
+ "line": 275,
+ "column": 22
},
"end": {
- "line": 261,
- "column": 24
+ "line": 275,
+ "column": 23
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43127,43 +45725,42 @@
"postfix": false,
"binop": null
},
- "start": 8790,
- "end": 8791,
+ "value": "prefix",
+ "start": 9208,
+ "end": 9214,
"loc": {
"start": {
- "line": 261,
- "column": 24
+ "line": 275,
+ "column": 23
},
"end": {
- "line": 261,
- "column": 25
+ "line": 275,
+ "column": 29
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
- "updateContext": null
+ "binop": null
},
- "value": "===",
- "start": 8792,
- "end": 8795,
+ "start": 9214,
+ "end": 9215,
"loc": {
"start": {
- "line": 261,
- "column": 26
+ "line": 275,
+ "column": 29
},
"end": {
- "line": 261,
- "column": 29
+ "line": 275,
+ "column": 30
}
}
},
@@ -43180,17 +45777,17 @@
"binop": null,
"updateContext": null
},
- "value": "number",
- "start": 8796,
- "end": 8804,
+ "value": "VYI-Module",
+ "start": 9215,
+ "end": 9227,
"loc": {
"start": {
- "line": 261,
+ "line": 275,
"column": 30
},
"end": {
- "line": 261,
- "column": 38
+ "line": 275,
+ "column": 42
}
}
},
@@ -43206,93 +45803,101 @@
"postfix": false,
"binop": null
},
- "start": 8804,
- "end": 8805,
+ "start": 9227,
+ "end": 9228,
"loc": {
"start": {
- "line": 261,
- "column": 38
+ "line": 275,
+ "column": 42
},
"end": {
- "line": 261,
- "column": 39
+ "line": 275,
+ "column": 43
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8806,
- "end": 8807,
+ "start": 9228,
+ "end": 9229,
"loc": {
"start": {
- "line": 261,
- "column": 40
+ "line": 275,
+ "column": 43
},
"end": {
- "line": 261,
- "column": 41
+ "line": 275,
+ "column": 44
}
}
},
{
- "type": "CommentLine",
- "value": " Remove the state",
- "start": 8821,
- "end": 8840,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "error",
+ "start": 9229,
+ "end": 9234,
"loc": {
"start": {
- "line": 262,
- "column": 12
+ "line": 275,
+ "column": 44
},
"end": {
- "line": 262,
- "column": 31
+ "line": 275,
+ "column": 49
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 8854,
- "end": 8858,
+ "start": 9234,
+ "end": 9235,
"loc": {
"start": {
- "line": 263,
- "column": 12
+ "line": 275,
+ "column": 49
},
"end": {
- "line": 263,
- "column": 16
+ "line": 275,
+ "column": 50
}
}
},
{
"type": {
- "label": ".",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43301,24 +45906,25 @@
"binop": null,
"updateContext": null
},
- "start": 8858,
- "end": 8859,
+ "value": "No frame data passed!",
+ "start": 9235,
+ "end": 9258,
"loc": {
"start": {
- "line": 263,
- "column": 16
+ "line": 275,
+ "column": 50
},
"end": {
- "line": 263,
- "column": 17
+ "line": 275,
+ "column": 73
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43326,24 +45932,23 @@
"postfix": false,
"binop": null
},
- "value": "states",
- "start": 8859,
- "end": 8865,
+ "start": 9258,
+ "end": 9259,
"loc": {
"start": {
- "line": 263,
- "column": 17
+ "line": 275,
+ "column": 73
},
"end": {
- "line": 263,
- "column": 23
+ "line": 275,
+ "column": 74
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -43353,24 +45958,24 @@
"binop": null,
"updateContext": null
},
- "start": 8865,
- "end": 8866,
+ "start": 9259,
+ "end": 9260,
"loc": {
"start": {
- "line": 263,
- "column": 23
+ "line": 275,
+ "column": 74
},
"end": {
- "line": 263,
- "column": 24
+ "line": 275,
+ "column": 75
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43378,25 +45983,24 @@
"postfix": false,
"binop": null
},
- "value": "splice",
- "start": 8866,
- "end": 8872,
+ "start": 9270,
+ "end": 9271,
"loc": {
"start": {
- "line": 263,
- "column": 24
+ "line": 276,
+ "column": 8
},
"end": {
- "line": 263,
- "column": 30
+ "line": 276,
+ "column": 9
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43404,16 +46008,32 @@
"postfix": false,
"binop": null
},
- "start": 8872,
- "end": 8873,
+ "start": 9277,
+ "end": 9278,
"loc": {
"start": {
- "line": 263,
- "column": 30
+ "line": 277,
+ "column": 4
},
"end": {
- "line": 263,
- "column": 31
+ "line": 277,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 9284,
+ "end": 9691,
+ "loc": {
+ "start": {
+ "line": 278,
+ "column": 4
+ },
+ "end": {
+ "line": 283,
+ "column": 7
}
}
},
@@ -43429,49 +46049,48 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 8873,
- "end": 8878,
+ "value": "removeFrame",
+ "start": 9697,
+ "end": 9708,
"loc": {
"start": {
- "line": 263,
- "column": 31
+ "line": 284,
+ "column": 4
},
"end": {
- "line": 263,
- "column": 36
+ "line": 284,
+ "column": 15
}
}
},
{
"type": {
- "label": ",",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 8878,
- "end": 8879,
+ "start": 9708,
+ "end": 9709,
"loc": {
"start": {
- "line": 263,
- "column": 36
+ "line": 284,
+ "column": 15
},
"end": {
- "line": 263,
- "column": 37
+ "line": 284,
+ "column": 16
}
}
},
{
"type": {
- "label": "num",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -43479,77 +46098,77 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 1,
- "start": 8880,
- "end": 8881,
+ "value": "pFrame",
+ "start": 9709,
+ "end": 9715,
"loc": {
"start": {
- "line": 263,
- "column": 38
+ "line": 284,
+ "column": 16
},
"end": {
- "line": 263,
- "column": 39
+ "line": 284,
+ "column": 22
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ",",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8881,
- "end": 8882,
+ "start": 9715,
+ "end": 9716,
"loc": {
"start": {
- "line": 263,
- "column": 39
+ "line": 284,
+ "column": 22
},
"end": {
- "line": 263,
- "column": 40
+ "line": 284,
+ "column": 23
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 8882,
- "end": 8883,
+ "value": "pIndex",
+ "start": 9717,
+ "end": 9723,
"loc": {
"start": {
- "line": 263,
- "column": 40
+ "line": 284,
+ "column": 24
},
"end": {
- "line": 263,
- "column": 41
+ "line": 284,
+ "column": 30
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -43559,53 +46178,66 @@
"postfix": false,
"binop": null
},
- "start": 8893,
- "end": 8894,
+ "start": 9723,
+ "end": 9724,
"loc": {
"start": {
- "line": 264,
- "column": 8
+ "line": 284,
+ "column": 30
},
"end": {
- "line": 264,
- "column": 9
+ "line": 284,
+ "column": 31
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "return",
- "start": 8904,
- "end": 8910,
+ "start": 9725,
+ "end": 9726,
"loc": {
"start": {
- "line": 265,
+ "line": 284,
+ "column": 32
+ },
+ "end": {
+ "line": 284,
+ "column": 33
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " The index used to remove this frame.",
+ "start": 9736,
+ "end": 9775,
+ "loc": {
+ "start": {
+ "line": 285,
"column": 8
},
"end": {
- "line": 265,
- "column": 14
+ "line": 285,
+ "column": 47
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "let",
+ "keyword": "let",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43614,110 +46246,113 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 8911,
- "end": 8915,
+ "value": "let",
+ "start": 9785,
+ "end": 9788,
"loc": {
"start": {
- "line": 265,
- "column": 15
+ "line": 286,
+ "column": 8
},
"end": {
- "line": 265,
- "column": 19
+ "line": 286,
+ "column": 11
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 8915,
- "end": 8916,
+ "value": "index",
+ "start": 9789,
+ "end": 9794,
"loc": {
"start": {
- "line": 265,
- "column": 19
+ "line": 286,
+ "column": 12
},
"end": {
- "line": 265,
- "column": 20
+ "line": 286,
+ "column": 17
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 8922,
- "end": 8923,
+ "start": 9794,
+ "end": 9795,
"loc": {
"start": {
- "line": 266,
- "column": 4
+ "line": 286,
+ "column": 17
},
"end": {
- "line": 266,
- "column": 5
+ "line": 286,
+ "column": 18
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n ",
- "start": 8929,
- "end": 9126,
+ "type": "CommentLine",
+ "value": " Remove via reference to frame.",
+ "start": 9805,
+ "end": 9838,
"loc": {
"start": {
- "line": 267,
- "column": 4
+ "line": 287,
+ "column": 8
},
"end": {
- "line": 271,
- "column": 7
+ "line": 287,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "addFrame",
- "start": 9132,
- "end": 9140,
+ "value": "if",
+ "start": 9848,
+ "end": 9850,
"loc": {
"start": {
- "line": 272,
- "column": 4
+ "line": 288,
+ "column": 8
},
"end": {
- "line": 272,
- "column": 12
+ "line": 288,
+ "column": 10
}
}
},
@@ -43733,22 +46368,23 @@
"postfix": false,
"binop": null
},
- "start": 9140,
- "end": 9141,
+ "start": 9851,
+ "end": 9852,
"loc": {
"start": {
- "line": 272,
- "column": 12
+ "line": 288,
+ "column": 11
},
"end": {
- "line": 272,
- "column": 13
+ "line": 288,
+ "column": 12
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -43756,25 +46392,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pFrameData",
- "start": 9141,
- "end": 9151,
+ "value": "this",
+ "start": 9852,
+ "end": 9856,
"loc": {
"start": {
- "line": 272,
- "column": 13
+ "line": 288,
+ "column": 12
},
"end": {
- "line": 272,
- "column": 23
+ "line": 288,
+ "column": 16
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -43782,25 +46419,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 9151,
- "end": 9152,
+ "start": 9856,
+ "end": 9857,
"loc": {
"start": {
- "line": 272,
- "column": 23
+ "line": 288,
+ "column": 16
},
"end": {
- "line": 272,
- "column": 24
+ "line": 288,
+ "column": 17
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -43809,23 +46447,23 @@
"postfix": false,
"binop": null
},
- "start": 9153,
- "end": 9154,
+ "value": "frames",
+ "start": 9857,
+ "end": 9863,
"loc": {
"start": {
- "line": 272,
- "column": 25
+ "line": 288,
+ "column": 17
},
"end": {
- "line": 272,
- "column": 26
+ "line": 288,
+ "column": 23
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -43836,24 +46474,23 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 9164,
- "end": 9166,
+ "start": 9863,
+ "end": 9864,
"loc": {
"start": {
- "line": 273,
- "column": 8
+ "line": 288,
+ "column": 23
},
"end": {
- "line": 273,
- "column": 10
+ "line": 288,
+ "column": 24
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -43862,23 +46499,24 @@
"postfix": false,
"binop": null
},
- "start": 9167,
- "end": 9168,
+ "value": "includes",
+ "start": 9864,
+ "end": 9872,
"loc": {
"start": {
- "line": 273,
- "column": 11
+ "line": 288,
+ "column": 24
},
"end": {
- "line": 273,
- "column": 12
+ "line": 288,
+ "column": 32
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -43887,25 +46525,24 @@
"postfix": false,
"binop": null
},
- "value": "pFrameData",
- "start": 9168,
- "end": 9178,
+ "start": 9872,
+ "end": 9873,
"loc": {
"start": {
- "line": 273,
- "column": 12
+ "line": 288,
+ "column": 32
},
"end": {
- "line": 273,
- "column": 22
+ "line": 288,
+ "column": 33
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43913,24 +46550,25 @@
"postfix": false,
"binop": null
},
- "start": 9178,
- "end": 9179,
+ "value": "pFrame",
+ "start": 9873,
+ "end": 9879,
"loc": {
"start": {
- "line": 273,
- "column": 22
+ "line": 288,
+ "column": 33
},
"end": {
- "line": 273,
- "column": 23
+ "line": 288,
+ "column": 39
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -43938,23 +46576,22 @@
"postfix": false,
"binop": null
},
- "start": 9180,
- "end": 9181,
+ "start": 9879,
+ "end": 9880,
"loc": {
"start": {
- "line": 273,
- "column": 24
+ "line": 288,
+ "column": 39
},
"end": {
- "line": 273,
- "column": 25
+ "line": 288,
+ "column": 40
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -43962,26 +46599,24 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 9195,
- "end": 9197,
+ "start": 9880,
+ "end": 9881,
"loc": {
"start": {
- "line": 274,
- "column": 12
+ "line": 288,
+ "column": 40
},
"end": {
- "line": 274,
- "column": 14
+ "line": 288,
+ "column": 41
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -43991,16 +46626,16 @@
"postfix": false,
"binop": null
},
- "start": 9198,
- "end": 9199,
+ "start": 9882,
+ "end": 9883,
"loc": {
"start": {
- "line": 274,
- "column": 15
+ "line": 288,
+ "column": 42
},
"end": {
- "line": 274,
- "column": 16
+ "line": 288,
+ "column": 43
}
}
},
@@ -44016,51 +46651,51 @@
"postfix": false,
"binop": null
},
- "value": "pFrameData",
- "start": 9199,
- "end": 9209,
+ "value": "index",
+ "start": 9897,
+ "end": 9902,
"loc": {
"start": {
- "line": 274,
- "column": 16
+ "line": 289,
+ "column": 12
},
"end": {
- "line": 274,
- "column": 26
+ "line": 289,
+ "column": 17
}
}
},
{
"type": {
- "label": "instanceof",
- "keyword": "instanceof",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": 7,
+ "binop": null,
"updateContext": null
},
- "value": "instanceof",
- "start": 9210,
- "end": 9220,
+ "value": "=",
+ "start": 9903,
+ "end": 9904,
"loc": {
"start": {
- "line": 274,
- "column": 27
+ "line": 289,
+ "column": 18
},
"end": {
- "line": 274,
- "column": 37
+ "line": 289,
+ "column": 19
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -44068,25 +46703,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "Object",
- "start": 9221,
- "end": 9227,
+ "value": "this",
+ "start": 9905,
+ "end": 9909,
"loc": {
"start": {
- "line": 274,
- "column": 38
+ "line": 289,
+ "column": 20
},
"end": {
- "line": 274,
- "column": 44
+ "line": 289,
+ "column": 24
}
}
},
{
"type": {
- "label": ")",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -44094,25 +46730,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 9227,
- "end": 9228,
+ "start": 9909,
+ "end": 9910,
"loc": {
"start": {
- "line": 274,
- "column": 44
+ "line": 289,
+ "column": 24
},
"end": {
- "line": 274,
- "column": 45
+ "line": 289,
+ "column": 25
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -44121,23 +46758,23 @@
"postfix": false,
"binop": null
},
- "start": 9229,
- "end": 9230,
+ "value": "frames",
+ "start": 9910,
+ "end": 9916,
"loc": {
"start": {
- "line": 274,
- "column": 46
+ "line": 289,
+ "column": 25
},
"end": {
- "line": 274,
- "column": 47
+ "line": 289,
+ "column": 31
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -44148,17 +46785,16 @@
"binop": null,
"updateContext": null
},
- "value": "const",
- "start": 9248,
- "end": 9253,
+ "start": 9916,
+ "end": 9917,
"loc": {
"start": {
- "line": 275,
- "column": 16
+ "line": 289,
+ "column": 31
},
"end": {
- "line": 275,
- "column": 21
+ "line": 289,
+ "column": 32
}
}
},
@@ -44174,80 +46810,76 @@
"postfix": false,
"binop": null
},
- "value": "frame",
- "start": 9254,
- "end": 9259,
+ "value": "indexOf",
+ "start": 9917,
+ "end": 9924,
"loc": {
"start": {
- "line": 275,
- "column": 22
+ "line": 289,
+ "column": 32
},
"end": {
- "line": 275,
- "column": 27
+ "line": 289,
+ "column": 39
}
}
},
{
"type": {
- "label": "=",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 9260,
- "end": 9261,
+ "start": 9924,
+ "end": 9925,
"loc": {
"start": {
- "line": 275,
- "column": 28
+ "line": 289,
+ "column": 39
},
"end": {
- "line": 275,
- "column": 29
+ "line": 289,
+ "column": 40
}
}
},
{
"type": {
- "label": "new",
- "keyword": "new",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "new",
- "start": 9262,
- "end": 9265,
+ "value": "pFrame",
+ "start": 9925,
+ "end": 9931,
"loc": {
"start": {
- "line": 275,
- "column": 30
+ "line": 289,
+ "column": 40
},
"end": {
- "line": 275,
- "column": 33
+ "line": 289,
+ "column": 46
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -44255,50 +46887,66 @@
"postfix": false,
"binop": null
},
- "value": "Frame",
- "start": 9266,
- "end": 9271,
+ "start": 9931,
+ "end": 9932,
"loc": {
"start": {
- "line": 275,
- "column": 34
+ "line": 289,
+ "column": 46
},
"end": {
- "line": 275,
- "column": 39
+ "line": 289,
+ "column": 47
}
}
},
{
"type": {
- "label": "(",
+ "label": ";",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 9271,
- "end": 9272,
+ "start": 9932,
+ "end": 9933,
"loc": {
"start": {
- "line": 275,
- "column": 39
+ "line": 289,
+ "column": 47
},
"end": {
- "line": 275,
- "column": 40
+ "line": 289,
+ "column": 48
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove via index passed.",
+ "start": 9943,
+ "end": 9970,
+ "loc": {
+ "start": {
+ "line": 290,
+ "column": 8
+ },
+ "end": {
+ "line": 290,
+ "column": 35
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -44306,49 +46954,52 @@
"postfix": false,
"binop": null
},
- "value": "pFrameData",
- "start": 9272,
- "end": 9282,
+ "start": 9980,
+ "end": 9981,
"loc": {
"start": {
- "line": 275,
- "column": 40
+ "line": 291,
+ "column": 8
},
"end": {
- "line": 275,
- "column": 50
+ "line": 291,
+ "column": 9
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 9282,
- "end": 9283,
+ "value": "else",
+ "start": 9982,
+ "end": 9986,
"loc": {
"start": {
- "line": 275,
- "column": 50
+ "line": 291,
+ "column": 10
},
"end": {
- "line": 275,
- "column": 51
+ "line": 291,
+ "column": 14
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -44358,39 +47009,48 @@
"binop": null,
"updateContext": null
},
- "start": 9283,
- "end": 9284,
+ "value": "if",
+ "start": 9987,
+ "end": 9989,
"loc": {
"start": {
- "line": 275,
- "column": 51
+ "line": 291,
+ "column": 15
},
"end": {
- "line": 275,
- "column": 52
+ "line": 291,
+ "column": 17
}
}
},
{
- "type": "CommentLine",
- "value": " Add the frame to the frames array.",
- "start": 9302,
- "end": 9339,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 9990,
+ "end": 9991,
"loc": {
"start": {
- "line": 276,
- "column": 16
+ "line": 291,
+ "column": 18
},
"end": {
- "line": 276,
- "column": 53
+ "line": 291,
+ "column": 19
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -44398,80 +47058,107 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 9357,
- "end": 9361,
+ "value": "pIndex",
+ "start": 9991,
+ "end": 9997,
"loc": {
"start": {
- "line": 277,
- "column": 16
+ "line": 291,
+ "column": 19
+ },
+ "end": {
+ "line": 291,
+ "column": 25
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "||",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": 1,
+ "updateContext": null
+ },
+ "value": "||",
+ "start": 9998,
+ "end": 10000,
+ "loc": {
+ "start": {
+ "line": 291,
+ "column": 26
},
"end": {
- "line": 277,
- "column": 20
+ "line": 291,
+ "column": 28
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 9361,
- "end": 9362,
+ "value": "pIndex",
+ "start": 10001,
+ "end": 10007,
"loc": {
"start": {
- "line": 277,
- "column": 20
+ "line": 291,
+ "column": 29
},
"end": {
- "line": 277,
- "column": 21
+ "line": 291,
+ "column": 35
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "==/!=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 6,
+ "updateContext": null
},
- "value": "frames",
- "start": 9362,
- "end": 9368,
+ "value": "===",
+ "start": 10008,
+ "end": 10011,
"loc": {
"start": {
- "line": 277,
- "column": 21
+ "line": 291,
+ "column": 36
},
"end": {
- "line": 277,
- "column": 27
+ "line": 291,
+ "column": 39
}
}
},
{
"type": {
- "label": ".",
+ "label": "num",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -44480,24 +47167,25 @@
"binop": null,
"updateContext": null
},
- "start": 9368,
- "end": 9369,
+ "value": 0,
+ "start": 10012,
+ "end": 10013,
"loc": {
"start": {
- "line": 277,
- "column": 27
+ "line": 291,
+ "column": 40
},
"end": {
- "line": 277,
- "column": 28
+ "line": 291,
+ "column": 41
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -44505,23 +47193,22 @@
"postfix": false,
"binop": null
},
- "value": "push",
- "start": 9369,
- "end": 9373,
+ "start": 10013,
+ "end": 10014,
"loc": {
"start": {
- "line": 277,
- "column": 28
+ "line": 291,
+ "column": 41
},
"end": {
- "line": 277,
- "column": 32
+ "line": 291,
+ "column": 42
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -44531,50 +47218,52 @@
"postfix": false,
"binop": null
},
- "start": 9373,
- "end": 9374,
+ "start": 10015,
+ "end": 10016,
"loc": {
"start": {
- "line": 277,
- "column": 32
+ "line": 291,
+ "column": 43
},
"end": {
- "line": 277,
- "column": 33
+ "line": 291,
+ "column": 44
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frame",
- "start": 9374,
- "end": 9379,
+ "value": "if",
+ "start": 10030,
+ "end": 10032,
"loc": {
"start": {
- "line": 277,
- "column": 33
+ "line": 292,
+ "column": 12
},
"end": {
- "line": 277,
- "column": 38
+ "line": 292,
+ "column": 14
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -44582,65 +47271,75 @@
"postfix": false,
"binop": null
},
- "start": 9379,
- "end": 9380,
+ "start": 10033,
+ "end": 10034,
"loc": {
"start": {
- "line": 277,
- "column": 38
+ "line": 292,
+ "column": 15
},
"end": {
- "line": 277,
- "column": 39
+ "line": 292,
+ "column": 16
}
}
},
{
"type": {
- "label": ";",
+ "label": "typeof",
+ "keyword": "typeof",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 9380,
- "end": 9381,
+ "value": "typeof",
+ "start": 10034,
+ "end": 10040,
"loc": {
"start": {
- "line": 277,
- "column": 39
+ "line": 292,
+ "column": 16
},
"end": {
- "line": 277,
- "column": 40
+ "line": 292,
+ "column": 22
}
}
},
{
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 9399,
- "end": 9432,
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 10040,
+ "end": 10041,
"loc": {
"start": {
- "line": 278,
- "column": 16
+ "line": 292,
+ "column": 22
},
"end": {
- "line": 278,
- "column": 49
+ "line": 292,
+ "column": 23
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -44648,26 +47347,25 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 9450,
- "end": 9454,
+ "value": "pIndex",
+ "start": 10041,
+ "end": 10047,
"loc": {
"start": {
- "line": 279,
- "column": 16
+ "line": 292,
+ "column": 23
},
"end": {
- "line": 279,
- "column": 20
+ "line": 292,
+ "column": 29
}
}
},
{
"type": {
- "label": ".",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -44675,70 +47373,72 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 9454,
- "end": 9455,
+ "start": 10047,
+ "end": 10048,
"loc": {
"start": {
- "line": 279,
- "column": 20
+ "line": 292,
+ "column": 29
},
"end": {
- "line": 279,
- "column": 21
+ "line": 292,
+ "column": 30
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "==/!=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 6,
+ "updateContext": null
},
- "value": "indexFrames",
- "start": 9455,
- "end": 9466,
+ "value": "===",
+ "start": 10049,
+ "end": 10052,
"loc": {
"start": {
- "line": 279,
- "column": 21
+ "line": 292,
+ "column": 31
},
"end": {
- "line": 279,
- "column": 32
+ "line": 292,
+ "column": 34
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "string",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 9466,
- "end": 9467,
+ "value": "number",
+ "start": 10053,
+ "end": 10061,
"loc": {
"start": {
- "line": 279,
- "column": 32
+ "line": 292,
+ "column": 35
},
"end": {
- "line": 279,
- "column": 33
+ "line": 292,
+ "column": 43
}
}
},
@@ -44754,50 +47454,49 @@
"postfix": false,
"binop": null
},
- "start": 9467,
- "end": 9468,
+ "start": 10061,
+ "end": 10062,
"loc": {
"start": {
- "line": 279,
- "column": 33
+ "line": 292,
+ "column": 43
},
"end": {
- "line": 279,
- "column": 34
+ "line": 292,
+ "column": 44
}
}
},
{
"type": {
- "label": ";",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 9468,
- "end": 9469,
+ "start": 10063,
+ "end": 10064,
"loc": {
"start": {
- "line": 279,
- "column": 34
+ "line": 292,
+ "column": 45
},
"end": {
- "line": 279,
- "column": 35
+ "line": 292,
+ "column": 46
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": "const",
+ "keyword": "const",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -44807,17 +47506,17 @@
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 9487,
- "end": 9493,
+ "value": "const",
+ "start": 10082,
+ "end": 10087,
"loc": {
"start": {
- "line": 280,
+ "line": 293,
"column": 16
},
"end": {
- "line": 280,
- "column": 22
+ "line": 293,
+ "column": 21
}
}
},
@@ -44834,75 +47533,78 @@
"binop": null
},
"value": "frame",
- "start": 9494,
- "end": 9499,
+ "start": 10088,
+ "end": 10093,
"loc": {
"start": {
- "line": 280,
- "column": 23
+ "line": 293,
+ "column": 22
},
"end": {
- "line": 280,
- "column": 28
+ "line": 293,
+ "column": 27
}
}
},
{
"type": {
- "label": ";",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 9499,
- "end": 9500,
+ "value": "=",
+ "start": 10094,
+ "end": 10095,
"loc": {
"start": {
- "line": 280,
+ "line": 293,
"column": 28
},
"end": {
- "line": 280,
+ "line": 293,
"column": 29
}
}
},
{
"type": {
- "label": "}",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 9514,
- "end": 9515,
+ "value": "this",
+ "start": 10096,
+ "end": 10100,
"loc": {
"start": {
- "line": 281,
- "column": 12
+ "line": 293,
+ "column": 30
},
"end": {
- "line": 281,
- "column": 13
+ "line": 293,
+ "column": 34
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -44912,24 +47614,23 @@
"binop": null,
"updateContext": null
},
- "value": "else",
- "start": 9516,
- "end": 9520,
+ "start": 10100,
+ "end": 10101,
"loc": {
"start": {
- "line": 281,
- "column": 14
+ "line": 293,
+ "column": 34
},
"end": {
- "line": 281,
- "column": 18
+ "line": 293,
+ "column": 35
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -44938,23 +47639,24 @@
"postfix": false,
"binop": null
},
- "start": 9521,
- "end": 9522,
+ "value": "getFrame",
+ "start": 10101,
+ "end": 10109,
"loc": {
"start": {
- "line": 281,
- "column": 19
+ "line": 293,
+ "column": 35
},
"end": {
- "line": 281,
- "column": 20
+ "line": 293,
+ "column": 43
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -44963,51 +47665,50 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 9540,
- "end": 9543,
+ "start": 10109,
+ "end": 10110,
"loc": {
"start": {
- "line": 282,
- "column": 16
+ "line": 293,
+ "column": 43
},
"end": {
- "line": 282,
- "column": 19
+ "line": 293,
+ "column": 44
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 9543,
- "end": 9544,
+ "value": "pIndex",
+ "start": 10110,
+ "end": 10116,
"loc": {
"start": {
- "line": 282,
- "column": 19
+ "line": 293,
+ "column": 44
},
"end": {
- "line": 282,
- "column": 20
+ "line": 293,
+ "column": 50
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -45015,24 +47716,23 @@
"postfix": false,
"binop": null
},
- "value": "logger",
- "start": 9544,
- "end": 9550,
+ "start": 10116,
+ "end": 10117,
"loc": {
"start": {
- "line": 282,
- "column": 20
+ "line": 293,
+ "column": 50
},
"end": {
- "line": 282,
- "column": 26
+ "line": 293,
+ "column": 51
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -45042,42 +47742,44 @@
"binop": null,
"updateContext": null
},
- "start": 9550,
- "end": 9551,
+ "start": 10117,
+ "end": 10118,
"loc": {
"start": {
- "line": 282,
- "column": 26
+ "line": 293,
+ "column": 51
},
"end": {
- "line": 282,
- "column": 27
+ "line": 293,
+ "column": 52
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "prefix",
- "start": 9551,
- "end": 9557,
+ "value": "if",
+ "start": 10136,
+ "end": 10138,
"loc": {
"start": {
- "line": 282,
- "column": 27
+ "line": 294,
+ "column": 16
},
"end": {
- "line": 282,
- "column": 33
+ "line": 294,
+ "column": 18
}
}
},
@@ -45093,22 +47795,22 @@
"postfix": false,
"binop": null
},
- "start": 9557,
- "end": 9558,
+ "start": 10139,
+ "end": 10140,
"loc": {
"start": {
- "line": 282,
- "column": 33
+ "line": 294,
+ "column": 19
},
"end": {
- "line": 282,
- "column": 34
+ "line": 294,
+ "column": 20
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -45116,20 +47818,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "VYI-Module",
- "start": 9558,
- "end": 9570,
+ "value": "frame",
+ "start": 10140,
+ "end": 10145,
"loc": {
"start": {
- "line": 282,
- "column": 34
+ "line": 294,
+ "column": 20
},
"end": {
- "line": 282,
- "column": 46
+ "line": 294,
+ "column": 25
}
}
},
@@ -45145,42 +47846,41 @@
"postfix": false,
"binop": null
},
- "start": 9570,
- "end": 9571,
+ "start": 10145,
+ "end": 10146,
"loc": {
"start": {
- "line": 282,
- "column": 46
+ "line": 294,
+ "column": 25
},
"end": {
- "line": 282,
- "column": 47
+ "line": 294,
+ "column": 26
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 9571,
- "end": 9572,
+ "start": 10147,
+ "end": 10148,
"loc": {
"start": {
- "line": 282,
- "column": 47
+ "line": 294,
+ "column": 27
},
"end": {
- "line": 282,
- "column": 48
+ "line": 294,
+ "column": 28
}
}
},
@@ -45196,77 +47896,52 @@
"postfix": false,
"binop": null
},
- "value": "error",
- "start": 9572,
- "end": 9577,
+ "value": "index",
+ "start": 10170,
+ "end": 10175,
"loc": {
"start": {
- "line": 282,
- "column": 48
+ "line": 295,
+ "column": 20
},
"end": {
- "line": 282,
- "column": 53
+ "line": 295,
+ "column": 25
}
}
},
{
"type": {
- "label": "(",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 9577,
- "end": 9578,
- "loc": {
- "start": {
- "line": 282,
- "column": 53
- },
- "end": {
- "line": 282,
- "column": 54
- }
- }
- },
- {
- "type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "Invalid frame data passed!",
- "start": 9578,
- "end": 9606,
+ "value": "=",
+ "start": 10176,
+ "end": 10177,
"loc": {
"start": {
- "line": 282,
- "column": 54
+ "line": 295,
+ "column": 26
},
"end": {
- "line": 282,
- "column": 82
+ "line": 295,
+ "column": 27
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -45274,16 +47949,17 @@
"postfix": false,
"binop": null
},
- "start": 9606,
- "end": 9607,
+ "value": "pIndex",
+ "start": 10178,
+ "end": 10184,
"loc": {
"start": {
- "line": 282,
- "column": 82
+ "line": 295,
+ "column": 28
},
"end": {
- "line": 282,
- "column": 83
+ "line": 295,
+ "column": 34
}
}
},
@@ -45300,16 +47976,16 @@
"binop": null,
"updateContext": null
},
- "start": 9607,
- "end": 9608,
+ "start": 10184,
+ "end": 10185,
"loc": {
"start": {
- "line": 282,
- "column": 83
+ "line": 295,
+ "column": 34
},
"end": {
- "line": 282,
- "column": 84
+ "line": 295,
+ "column": 35
}
}
},
@@ -45325,16 +48001,16 @@
"postfix": false,
"binop": null
},
- "start": 9622,
- "end": 9623,
+ "start": 10203,
+ "end": 10204,
"loc": {
"start": {
- "line": 283,
- "column": 12
+ "line": 296,
+ "column": 16
},
"end": {
- "line": 283,
- "column": 13
+ "line": 296,
+ "column": 17
}
}
},
@@ -45350,16 +48026,16 @@
"postfix": false,
"binop": null
},
- "start": 9633,
- "end": 9634,
+ "start": 10218,
+ "end": 10219,
"loc": {
"start": {
- "line": 284,
- "column": 8
+ "line": 297,
+ "column": 12
},
"end": {
- "line": 284,
- "column": 9
+ "line": 297,
+ "column": 13
}
}
},
@@ -45378,16 +48054,16 @@
"updateContext": null
},
"value": "else",
- "start": 9635,
- "end": 9639,
+ "start": 10220,
+ "end": 10224,
"loc": {
"start": {
- "line": 284,
- "column": 10
+ "line": 297,
+ "column": 14
},
"end": {
- "line": 284,
- "column": 14
+ "line": 297,
+ "column": 18
}
}
},
@@ -45403,16 +48079,16 @@
"postfix": false,
"binop": null
},
- "start": 9640,
- "end": 9641,
+ "start": 10225,
+ "end": 10226,
"loc": {
"start": {
- "line": 284,
- "column": 15
+ "line": 297,
+ "column": 19
},
"end": {
- "line": 284,
- "column": 16
+ "line": 297,
+ "column": 20
}
}
},
@@ -45429,16 +48105,16 @@
"binop": null
},
"value": "VYI",
- "start": 9655,
- "end": 9658,
+ "start": 10244,
+ "end": 10247,
"loc": {
"start": {
- "line": 285,
- "column": 12
+ "line": 298,
+ "column": 16
},
"end": {
- "line": 285,
- "column": 15
+ "line": 298,
+ "column": 19
}
}
},
@@ -45455,16 +48131,16 @@
"binop": null,
"updateContext": null
},
- "start": 9658,
- "end": 9659,
+ "start": 10247,
+ "end": 10248,
"loc": {
"start": {
- "line": 285,
- "column": 15
+ "line": 298,
+ "column": 19
},
"end": {
- "line": 285,
- "column": 16
+ "line": 298,
+ "column": 20
}
}
},
@@ -45481,16 +48157,16 @@
"binop": null
},
"value": "logger",
- "start": 9659,
- "end": 9665,
+ "start": 10248,
+ "end": 10254,
"loc": {
"start": {
- "line": 285,
- "column": 16
+ "line": 298,
+ "column": 20
},
"end": {
- "line": 285,
- "column": 22
+ "line": 298,
+ "column": 26
}
}
},
@@ -45507,16 +48183,16 @@
"binop": null,
"updateContext": null
},
- "start": 9665,
- "end": 9666,
+ "start": 10254,
+ "end": 10255,
"loc": {
"start": {
- "line": 285,
- "column": 22
+ "line": 298,
+ "column": 26
},
"end": {
- "line": 285,
- "column": 23
+ "line": 298,
+ "column": 27
}
}
},
@@ -45533,16 +48209,16 @@
"binop": null
},
"value": "prefix",
- "start": 9666,
- "end": 9672,
+ "start": 10255,
+ "end": 10261,
"loc": {
"start": {
- "line": 285,
- "column": 23
+ "line": 298,
+ "column": 27
},
"end": {
- "line": 285,
- "column": 29
+ "line": 298,
+ "column": 33
}
}
},
@@ -45558,16 +48234,16 @@
"postfix": false,
"binop": null
},
- "start": 9672,
- "end": 9673,
+ "start": 10261,
+ "end": 10262,
"loc": {
"start": {
- "line": 285,
- "column": 29
+ "line": 298,
+ "column": 33
},
"end": {
- "line": 285,
- "column": 30
+ "line": 298,
+ "column": 34
}
}
},
@@ -45585,16 +48261,16 @@
"updateContext": null
},
"value": "VYI-Module",
- "start": 9673,
- "end": 9685,
+ "start": 10262,
+ "end": 10274,
"loc": {
"start": {
- "line": 285,
- "column": 30
+ "line": 298,
+ "column": 34
},
"end": {
- "line": 285,
- "column": 42
+ "line": 298,
+ "column": 46
}
}
},
@@ -45610,16 +48286,16 @@
"postfix": false,
"binop": null
},
- "start": 9685,
- "end": 9686,
+ "start": 10274,
+ "end": 10275,
"loc": {
"start": {
- "line": 285,
- "column": 42
+ "line": 298,
+ "column": 46
},
"end": {
- "line": 285,
- "column": 43
+ "line": 298,
+ "column": 47
}
}
},
@@ -45636,16 +48312,16 @@
"binop": null,
"updateContext": null
},
- "start": 9686,
- "end": 9687,
+ "start": 10275,
+ "end": 10276,
"loc": {
"start": {
- "line": 285,
- "column": 43
+ "line": 298,
+ "column": 47
},
"end": {
- "line": 285,
- "column": 44
+ "line": 298,
+ "column": 48
}
}
},
@@ -45662,16 +48338,16 @@
"binop": null
},
"value": "error",
- "start": 9687,
- "end": 9692,
+ "start": 10276,
+ "end": 10281,
"loc": {
"start": {
- "line": 285,
- "column": 44
+ "line": 298,
+ "column": 48
},
"end": {
- "line": 285,
- "column": 49
+ "line": 298,
+ "column": 53
}
}
},
@@ -45687,16 +48363,16 @@
"postfix": false,
"binop": null
},
- "start": 9692,
- "end": 9693,
+ "start": 10281,
+ "end": 10282,
"loc": {
"start": {
- "line": 285,
- "column": 49
+ "line": 298,
+ "column": 53
},
"end": {
- "line": 285,
- "column": 50
+ "line": 298,
+ "column": 54
}
}
},
@@ -45713,17 +48389,17 @@
"binop": null,
"updateContext": null
},
- "value": "No frame data passed!",
- "start": 9693,
- "end": 9716,
+ "value": "Invalid pIndex type!",
+ "start": 10282,
+ "end": 10304,
"loc": {
"start": {
- "line": 285,
- "column": 50
+ "line": 298,
+ "column": 54
},
"end": {
- "line": 285,
- "column": 73
+ "line": 298,
+ "column": 76
}
}
},
@@ -45739,16 +48415,16 @@
"postfix": false,
"binop": null
},
- "start": 9716,
- "end": 9717,
+ "start": 10304,
+ "end": 10305,
"loc": {
"start": {
- "line": 285,
- "column": 73
+ "line": 298,
+ "column": 76
},
"end": {
- "line": 285,
- "column": 74
+ "line": 298,
+ "column": 77
}
}
},
@@ -45765,16 +48441,16 @@
"binop": null,
"updateContext": null
},
- "start": 9717,
- "end": 9718,
+ "start": 10305,
+ "end": 10306,
"loc": {
"start": {
- "line": 285,
- "column": 74
+ "line": 298,
+ "column": 77
},
"end": {
- "line": 285,
- "column": 75
+ "line": 298,
+ "column": 78
}
}
},
@@ -45790,16 +48466,16 @@
"postfix": false,
"binop": null
},
- "start": 9728,
- "end": 9729,
+ "start": 10320,
+ "end": 10321,
"loc": {
"start": {
- "line": 286,
- "column": 8
+ "line": 299,
+ "column": 12
},
"end": {
- "line": 286,
- "column": 9
+ "line": 299,
+ "column": 13
}
}
},
@@ -45815,32 +48491,69 @@
"postfix": false,
"binop": null
},
- "start": 9735,
- "end": 9736,
+ "start": 10331,
+ "end": 10332,
"loc": {
"start": {
- "line": 287,
- "column": 4
+ "line": 300,
+ "column": 8
},
"end": {
- "line": 287,
- "column": 5
+ "line": 300,
+ "column": 9
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 9742,
- "end": 10149,
+ "type": {
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "else",
+ "start": 10333,
+ "end": 10337,
"loc": {
"start": {
- "line": 288,
- "column": 4
+ "line": 300,
+ "column": 10
},
"end": {
- "line": 293,
- "column": 7
+ "line": 300,
+ "column": 14
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 10338,
+ "end": 10339,
+ "loc": {
+ "start": {
+ "line": 300,
+ "column": 15
+ },
+ "end": {
+ "line": 300,
+ "column": 16
}
}
},
@@ -45856,41 +48569,42 @@
"postfix": false,
"binop": null
},
- "value": "removeFrame",
- "start": 10155,
- "end": 10166,
+ "value": "VYI",
+ "start": 10353,
+ "end": 10356,
"loc": {
"start": {
- "line": 294,
- "column": 4
+ "line": 301,
+ "column": 12
},
"end": {
- "line": 294,
+ "line": 301,
"column": 15
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10166,
- "end": 10167,
+ "start": 10356,
+ "end": 10357,
"loc": {
"start": {
- "line": 294,
+ "line": 301,
"column": 15
},
"end": {
- "line": 294,
+ "line": 301,
"column": 16
}
}
@@ -45907,24 +48621,24 @@
"postfix": false,
"binop": null
},
- "value": "pFrame",
- "start": 10167,
- "end": 10173,
+ "value": "logger",
+ "start": 10357,
+ "end": 10363,
"loc": {
"start": {
- "line": 294,
+ "line": 301,
"column": 16
},
"end": {
- "line": 294,
+ "line": 301,
"column": 22
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -45934,15 +48648,15 @@
"binop": null,
"updateContext": null
},
- "start": 10173,
- "end": 10174,
+ "start": 10363,
+ "end": 10364,
"loc": {
"start": {
- "line": 294,
+ "line": 301,
"column": 22
},
"end": {
- "line": 294,
+ "line": 301,
"column": 23
}
}
@@ -45959,25 +48673,25 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 10175,
- "end": 10181,
+ "value": "prefix",
+ "start": 10364,
+ "end": 10370,
"loc": {
"start": {
- "line": 294,
- "column": 24
+ "line": 301,
+ "column": 23
},
"end": {
- "line": 294,
- "column": 30
+ "line": 301,
+ "column": 29
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -45985,64 +48699,74 @@
"postfix": false,
"binop": null
},
- "start": 10181,
- "end": 10182,
+ "start": 10370,
+ "end": 10371,
"loc": {
"start": {
- "line": 294,
- "column": 30
+ "line": 301,
+ "column": 29
},
"end": {
- "line": 294,
- "column": 31
+ "line": 301,
+ "column": 30
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "string",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10183,
- "end": 10184,
+ "value": "VYI-Module",
+ "start": 10371,
+ "end": 10383,
"loc": {
"start": {
- "line": 294,
- "column": 32
+ "line": 301,
+ "column": 30
},
"end": {
- "line": 294,
- "column": 33
+ "line": 301,
+ "column": 42
}
}
},
{
- "type": "CommentLine",
- "value": " The index used to remove this frame.",
- "start": 10194,
- "end": 10233,
+ "type": {
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 10383,
+ "end": 10384,
"loc": {
"start": {
- "line": 295,
- "column": 8
+ "line": 301,
+ "column": 42
},
"end": {
- "line": 295,
- "column": 47
+ "line": 301,
+ "column": 43
}
}
},
{
"type": {
- "label": "let",
- "keyword": "let",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -46053,17 +48777,16 @@
"binop": null,
"updateContext": null
},
- "value": "let",
- "start": 10243,
- "end": 10246,
+ "start": 10384,
+ "end": 10385,
"loc": {
"start": {
- "line": 296,
- "column": 8
+ "line": 301,
+ "column": 43
},
"end": {
- "line": 296,
- "column": 11
+ "line": 301,
+ "column": 44
}
}
},
@@ -46079,68 +48802,50 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 10247,
- "end": 10252,
+ "value": "error",
+ "start": 10385,
+ "end": 10390,
"loc": {
"start": {
- "line": 296,
- "column": 12
+ "line": 301,
+ "column": 44
},
"end": {
- "line": 296,
- "column": 17
+ "line": 301,
+ "column": 49
}
}
},
{
"type": {
- "label": ";",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10252,
- "end": 10253,
- "loc": {
- "start": {
- "line": 296,
- "column": 17
- },
- "end": {
- "line": 296,
- "column": 18
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Remove via reference to frame.",
- "start": 10263,
- "end": 10296,
+ "start": 10390,
+ "end": 10391,
"loc": {
"start": {
- "line": 297,
- "column": 8
+ "line": 301,
+ "column": 49
},
"end": {
- "line": 297,
- "column": 41
+ "line": 301,
+ "column": 50
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46149,25 +48854,25 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 10306,
- "end": 10308,
+ "value": "Failed to remove frame!",
+ "start": 10391,
+ "end": 10416,
"loc": {
"start": {
- "line": 298,
- "column": 8
+ "line": 301,
+ "column": 50
},
"end": {
- "line": 298,
- "column": 10
+ "line": 301,
+ "column": 75
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46175,25 +48880,24 @@
"postfix": false,
"binop": null
},
- "start": 10309,
- "end": 10310,
+ "start": 10416,
+ "end": 10417,
"loc": {
"start": {
- "line": 298,
- "column": 11
+ "line": 301,
+ "column": 75
},
"end": {
- "line": 298,
- "column": 12
+ "line": 301,
+ "column": 76
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46202,23 +48906,22 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 10310,
- "end": 10314,
+ "start": 10417,
+ "end": 10418,
"loc": {
"start": {
- "line": 298,
- "column": 12
+ "line": 301,
+ "column": 76
},
"end": {
- "line": 298,
- "column": 16
+ "line": 301,
+ "column": 77
}
}
},
{
"type": {
- "label": ".",
+ "label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -46226,97 +48929,99 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10314,
- "end": 10315,
+ "start": 10428,
+ "end": 10429,
"loc": {
"start": {
- "line": 298,
- "column": 16
+ "line": 302,
+ "column": 8
},
"end": {
- "line": 298,
- "column": 17
+ "line": 302,
+ "column": 9
}
}
},
{
"type": {
- "label": "name",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frames",
- "start": 10315,
- "end": 10321,
+ "value": "if",
+ "start": 10439,
+ "end": 10441,
"loc": {
"start": {
- "line": 298,
- "column": 17
+ "line": 303,
+ "column": 8
},
"end": {
- "line": 298,
- "column": 23
+ "line": 303,
+ "column": 10
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10321,
- "end": 10322,
+ "start": 10442,
+ "end": 10443,
"loc": {
"start": {
- "line": 298,
- "column": 23
+ "line": 303,
+ "column": 11
},
"end": {
- "line": 298,
- "column": 24
+ "line": 303,
+ "column": 12
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "typeof",
+ "keyword": "typeof",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "includes",
- "start": 10322,
- "end": 10330,
+ "value": "typeof",
+ "start": 10443,
+ "end": 10449,
"loc": {
"start": {
- "line": 298,
- "column": 24
+ "line": 303,
+ "column": 12
},
"end": {
- "line": 298,
- "column": 32
+ "line": 303,
+ "column": 18
}
}
},
@@ -46332,16 +49037,16 @@
"postfix": false,
"binop": null
},
- "start": 10330,
- "end": 10331,
+ "start": 10449,
+ "end": 10450,
"loc": {
"start": {
- "line": 298,
- "column": 32
+ "line": 303,
+ "column": 18
},
"end": {
- "line": 298,
- "column": 33
+ "line": 303,
+ "column": 19
}
}
},
@@ -46357,17 +49062,17 @@
"postfix": false,
"binop": null
},
- "value": "pFrame",
- "start": 10331,
- "end": 10337,
+ "value": "index",
+ "start": 10450,
+ "end": 10455,
"loc": {
"start": {
- "line": 298,
- "column": 33
+ "line": 303,
+ "column": 19
},
"end": {
- "line": 298,
- "column": 39
+ "line": 303,
+ "column": 24
}
}
},
@@ -46383,74 +49088,78 @@
"postfix": false,
"binop": null
},
- "start": 10337,
- "end": 10338,
+ "start": 10455,
+ "end": 10456,
"loc": {
"start": {
- "line": 298,
- "column": 39
+ "line": 303,
+ "column": 24
},
"end": {
- "line": 298,
- "column": 40
+ "line": 303,
+ "column": 25
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": "==/!=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 6,
+ "updateContext": null
},
- "start": 10338,
- "end": 10339,
+ "value": "===",
+ "start": 10457,
+ "end": 10460,
"loc": {
"start": {
- "line": 298,
- "column": 40
+ "line": 303,
+ "column": 26
},
"end": {
- "line": 298,
- "column": 41
+ "line": 303,
+ "column": 29
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "string",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10340,
- "end": 10341,
+ "value": "number",
+ "start": 10461,
+ "end": 10469,
"loc": {
"start": {
- "line": 298,
- "column": 42
+ "line": 303,
+ "column": 30
},
"end": {
- "line": 298,
- "column": 43
+ "line": 303,
+ "column": 38
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46458,44 +49167,57 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 10355,
- "end": 10360,
+ "start": 10469,
+ "end": 10470,
"loc": {
"start": {
- "line": 299,
- "column": 12
+ "line": 303,
+ "column": 38
},
"end": {
- "line": 299,
- "column": 17
+ "line": 303,
+ "column": 39
}
}
},
{
"type": {
- "label": "=",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 10361,
- "end": 10362,
+ "start": 10471,
+ "end": 10472,
"loc": {
"start": {
- "line": 299,
- "column": 18
+ "line": 303,
+ "column": 40
},
"end": {
- "line": 299,
- "column": 19
+ "line": 303,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Remove the frame",
+ "start": 10486,
+ "end": 10505,
+ "loc": {
+ "start": {
+ "line": 304,
+ "column": 12
+ },
+ "end": {
+ "line": 304,
+ "column": 31
}
}
},
@@ -46514,16 +49236,16 @@
"updateContext": null
},
"value": "this",
- "start": 10363,
- "end": 10367,
+ "start": 10519,
+ "end": 10523,
"loc": {
"start": {
- "line": 299,
- "column": 20
+ "line": 305,
+ "column": 12
},
"end": {
- "line": 299,
- "column": 24
+ "line": 305,
+ "column": 16
}
}
},
@@ -46540,16 +49262,16 @@
"binop": null,
"updateContext": null
},
- "start": 10367,
- "end": 10368,
+ "start": 10523,
+ "end": 10524,
"loc": {
"start": {
- "line": 299,
- "column": 24
+ "line": 305,
+ "column": 16
},
"end": {
- "line": 299,
- "column": 25
+ "line": 305,
+ "column": 17
}
}
},
@@ -46566,16 +49288,16 @@
"binop": null
},
"value": "frames",
- "start": 10368,
- "end": 10374,
+ "start": 10524,
+ "end": 10530,
"loc": {
"start": {
- "line": 299,
- "column": 25
+ "line": 305,
+ "column": 17
},
"end": {
- "line": 299,
- "column": 31
+ "line": 305,
+ "column": 23
}
}
},
@@ -46592,16 +49314,16 @@
"binop": null,
"updateContext": null
},
- "start": 10374,
- "end": 10375,
+ "start": 10530,
+ "end": 10531,
"loc": {
"start": {
- "line": 299,
- "column": 31
+ "line": 305,
+ "column": 23
},
"end": {
- "line": 299,
- "column": 32
+ "line": 305,
+ "column": 24
}
}
},
@@ -46617,17 +49339,17 @@
"postfix": false,
"binop": null
},
- "value": "indexOf",
- "start": 10375,
- "end": 10382,
+ "value": "splice",
+ "start": 10531,
+ "end": 10537,
"loc": {
"start": {
- "line": 299,
- "column": 32
+ "line": 305,
+ "column": 24
},
"end": {
- "line": 299,
- "column": 39
+ "line": 305,
+ "column": 30
}
}
},
@@ -46643,16 +49365,16 @@
"postfix": false,
"binop": null
},
- "start": 10382,
- "end": 10383,
+ "start": 10537,
+ "end": 10538,
"loc": {
"start": {
- "line": 299,
- "column": 39
+ "line": 305,
+ "column": 30
},
"end": {
- "line": 299,
- "column": 40
+ "line": 305,
+ "column": 31
}
}
},
@@ -46668,50 +49390,51 @@
"postfix": false,
"binop": null
},
- "value": "pFrame",
- "start": 10383,
- "end": 10389,
+ "value": "index",
+ "start": 10538,
+ "end": 10543,
"loc": {
"start": {
- "line": 299,
- "column": 40
+ "line": 305,
+ "column": 31
},
"end": {
- "line": 299,
- "column": 46
+ "line": 305,
+ "column": 36
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ",",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10389,
- "end": 10390,
+ "start": 10543,
+ "end": 10544,
"loc": {
"start": {
- "line": 299,
- "column": 46
+ "line": 305,
+ "column": 36
},
"end": {
- "line": 299,
- "column": 47
+ "line": 305,
+ "column": 37
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "num",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46720,38 +49443,23 @@
"binop": null,
"updateContext": null
},
- "start": 10390,
- "end": 10391,
- "loc": {
- "start": {
- "line": 299,
- "column": 47
- },
- "end": {
- "line": 299,
- "column": 48
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Remove via index passed.",
- "start": 10401,
- "end": 10428,
+ "value": 1,
+ "start": 10545,
+ "end": 10546,
"loc": {
"start": {
- "line": 300,
- "column": 8
+ "line": 305,
+ "column": 38
},
"end": {
- "line": 300,
- "column": 35
+ "line": 305,
+ "column": 39
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -46761,23 +49469,22 @@
"postfix": false,
"binop": null
},
- "start": 10438,
- "end": 10439,
+ "start": 10546,
+ "end": 10547,
"loc": {
"start": {
- "line": 301,
- "column": 8
+ "line": 305,
+ "column": 39
},
"end": {
- "line": 301,
- "column": 9
+ "line": 305,
+ "column": 40
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -46788,26 +49495,41 @@
"binop": null,
"updateContext": null
},
- "value": "else",
- "start": 10440,
- "end": 10444,
+ "start": 10547,
+ "end": 10548,
"loc": {
"start": {
- "line": 301,
- "column": 10
+ "line": 305,
+ "column": 40
},
"end": {
- "line": 301,
- "column": 14
+ "line": 305,
+ "column": 41
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Re-index frames after a change",
+ "start": 10562,
+ "end": 10595,
+ "loc": {
+ "start": {
+ "line": 306,
+ "column": 12
+ },
+ "end": {
+ "line": 306,
+ "column": 45
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46816,42 +49538,43 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 10445,
- "end": 10447,
+ "value": "this",
+ "start": 10609,
+ "end": 10613,
"loc": {
"start": {
- "line": 301,
- "column": 15
+ "line": 307,
+ "column": 12
},
"end": {
- "line": 301,
- "column": 17
+ "line": 307,
+ "column": 16
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10448,
- "end": 10449,
+ "start": 10613,
+ "end": 10614,
"loc": {
"start": {
- "line": 301,
- "column": 18
+ "line": 307,
+ "column": 16
},
"end": {
- "line": 301,
- "column": 19
+ "line": 307,
+ "column": 17
}
}
},
@@ -46867,52 +49590,50 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 10449,
- "end": 10455,
+ "value": "indexFrames",
+ "start": 10614,
+ "end": 10625,
"loc": {
"start": {
- "line": 301,
- "column": 19
+ "line": 307,
+ "column": 17
},
"end": {
- "line": 301,
- "column": 25
+ "line": 307,
+ "column": 28
}
}
},
{
"type": {
- "label": "||",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 1,
- "updateContext": null
+ "binop": null
},
- "value": "||",
- "start": 10456,
- "end": 10458,
+ "start": 10625,
+ "end": 10626,
"loc": {
"start": {
- "line": 301,
- "column": 26
+ "line": 307,
+ "column": 28
},
"end": {
- "line": 301,
- "column": 28
+ "line": 307,
+ "column": 29
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -46920,23 +49641,22 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 10459,
- "end": 10465,
+ "start": 10626,
+ "end": 10627,
"loc": {
"start": {
- "line": 301,
+ "line": 307,
"column": 29
},
"end": {
- "line": 301,
- "column": 35
+ "line": 307,
+ "column": 30
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -46944,105 +49664,107 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
+ "binop": null,
"updateContext": null
},
- "value": "===",
- "start": 10466,
- "end": 10469,
+ "start": 10627,
+ "end": 10628,
"loc": {
"start": {
- "line": 301,
- "column": 36
+ "line": 307,
+ "column": 30
},
"end": {
- "line": 301,
- "column": 39
+ "line": 307,
+ "column": 31
}
}
},
{
"type": {
- "label": "num",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 0,
- "start": 10470,
- "end": 10471,
+ "start": 10638,
+ "end": 10639,
"loc": {
"start": {
- "line": 301,
- "column": 40
+ "line": 308,
+ "column": 8
},
"end": {
- "line": 301,
- "column": 41
+ "line": 308,
+ "column": 9
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": "return",
+ "keyword": "return",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10471,
- "end": 10472,
+ "value": "return",
+ "start": 10649,
+ "end": 10655,
"loc": {
"start": {
- "line": 301,
- "column": 41
+ "line": 309,
+ "column": 8
},
"end": {
- "line": 301,
- "column": 42
+ "line": 309,
+ "column": 14
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10473,
- "end": 10474,
+ "value": "this",
+ "start": 10656,
+ "end": 10660,
"loc": {
"start": {
- "line": 301,
- "column": 43
+ "line": 309,
+ "column": 15
},
"end": {
- "line": 301,
- "column": 44
+ "line": 309,
+ "column": 19
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -47052,25 +49774,24 @@
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 10488,
- "end": 10490,
+ "start": 10660,
+ "end": 10661,
"loc": {
"start": {
- "line": 302,
- "column": 12
+ "line": 309,
+ "column": 19
},
"end": {
- "line": 302,
- "column": 14
+ "line": 309,
+ "column": 20
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -47078,51 +49799,39 @@
"postfix": false,
"binop": null
},
- "start": 10491,
- "end": 10492,
+ "start": 10667,
+ "end": 10668,
"loc": {
"start": {
- "line": 302,
- "column": 15
+ "line": 310,
+ "column": 4
},
"end": {
- "line": 302,
- "column": 16
+ "line": 310,
+ "column": 5
}
}
},
{
- "type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": true,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "typeof",
- "start": 10492,
- "end": 10498,
+ "type": "CommentBlock",
+ "value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
+ "start": 10674,
+ "end": 10738,
"loc": {
"start": {
- "line": 302,
- "column": 16
+ "line": 311,
+ "column": 4
},
"end": {
- "line": 302,
- "column": 22
+ "line": 314,
+ "column": 7
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -47131,23 +49840,24 @@
"postfix": false,
"binop": null
},
- "start": 10498,
- "end": 10499,
+ "value": "indexFrames",
+ "start": 10744,
+ "end": 10755,
"loc": {
"start": {
- "line": 302,
- "column": 22
+ "line": 315,
+ "column": 4
},
"end": {
- "line": 302,
- "column": 23
+ "line": 315,
+ "column": 15
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -47156,17 +49866,16 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 10499,
- "end": 10505,
+ "start": 10755,
+ "end": 10756,
"loc": {
"start": {
- "line": 302,
- "column": 23
+ "line": 315,
+ "column": 15
},
"end": {
- "line": 302,
- "column": 29
+ "line": 315,
+ "column": 16
}
}
},
@@ -47182,127 +49891,91 @@
"postfix": false,
"binop": null
},
- "start": 10505,
- "end": 10506,
+ "start": 10756,
+ "end": 10757,
"loc": {
"start": {
- "line": 302,
- "column": 29
+ "line": 315,
+ "column": 16
},
"end": {
- "line": 302,
- "column": 30
+ "line": 315,
+ "column": 17
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": "{",
"beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": 6,
- "updateContext": null
- },
- "value": "===",
- "start": 10507,
- "end": 10510,
- "loc": {
- "start": {
- "line": 302,
- "column": 31
- },
- "end": {
- "line": 302,
- "column": 34
- }
- }
- },
- {
- "type": {
- "label": "string",
- "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "number",
- "start": 10511,
- "end": 10519,
+ "start": 10758,
+ "end": 10759,
"loc": {
"start": {
- "line": 302,
- "column": 35
+ "line": 315,
+ "column": 18
},
"end": {
- "line": 302,
- "column": 43
+ "line": 315,
+ "column": 19
}
}
},
{
- "type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 10519,
- "end": 10520,
+ "type": "CommentLine",
+ "value": " Reorder the frames after removing.",
+ "start": 10769,
+ "end": 10806,
"loc": {
"start": {
- "line": 302,
- "column": 43
+ "line": 316,
+ "column": 8
},
"end": {
- "line": 302,
- "column": 44
+ "line": 316,
+ "column": 45
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "this",
+ "keyword": "this",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10521,
- "end": 10522,
+ "value": "this",
+ "start": 10816,
+ "end": 10820,
"loc": {
"start": {
- "line": 302,
- "column": 45
+ "line": 317,
+ "column": 8
},
"end": {
- "line": 302,
- "column": 46
+ "line": 317,
+ "column": 12
}
}
},
{
"type": {
- "label": "const",
- "keyword": "const",
+ "label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -47313,17 +49986,16 @@
"binop": null,
"updateContext": null
},
- "value": "const",
- "start": 10540,
- "end": 10545,
+ "start": 10820,
+ "end": 10821,
"loc": {
"start": {
- "line": 303,
- "column": 16
+ "line": 317,
+ "column": 12
},
"end": {
- "line": 303,
- "column": 21
+ "line": 317,
+ "column": 13
}
}
},
@@ -47339,53 +50011,25 @@
"postfix": false,
"binop": null
},
- "value": "frame",
- "start": 10546,
- "end": 10551,
- "loc": {
- "start": {
- "line": 303,
- "column": 22
- },
- "end": {
- "line": 303,
- "column": 27
- }
- }
- },
- {
- "type": {
- "label": "=",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": true,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "value": "=",
- "start": 10552,
- "end": 10553,
+ "value": "frames",
+ "start": 10821,
+ "end": 10827,
"loc": {
"start": {
- "line": 303,
- "column": 28
+ "line": 317,
+ "column": 13
},
"end": {
- "line": 303,
- "column": 29
+ "line": 317,
+ "column": 19
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -47394,50 +50038,49 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 10554,
- "end": 10558,
+ "start": 10827,
+ "end": 10828,
"loc": {
"start": {
- "line": 303,
- "column": 30
+ "line": 317,
+ "column": 19
},
"end": {
- "line": 303,
- "column": 34
+ "line": 317,
+ "column": 20
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10558,
- "end": 10559,
+ "value": "forEach",
+ "start": 10828,
+ "end": 10835,
"loc": {
"start": {
- "line": 303,
- "column": 34
+ "line": 317,
+ "column": 20
},
"end": {
- "line": 303,
- "column": 35
+ "line": 317,
+ "column": 27
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -47446,17 +50089,16 @@
"postfix": false,
"binop": null
},
- "value": "getFrame",
- "start": 10559,
- "end": 10567,
+ "start": 10835,
+ "end": 10836,
"loc": {
"start": {
- "line": 303,
- "column": 35
+ "line": 317,
+ "column": 27
},
"end": {
- "line": 303,
- "column": 43
+ "line": 317,
+ "column": 28
}
}
},
@@ -47472,16 +50114,16 @@
"postfix": false,
"binop": null
},
- "start": 10567,
- "end": 10568,
+ "start": 10836,
+ "end": 10837,
"loc": {
"start": {
- "line": 303,
- "column": 43
+ "line": 317,
+ "column": 28
},
"end": {
- "line": 303,
- "column": 44
+ "line": 317,
+ "column": 29
}
}
},
@@ -47497,75 +50139,75 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 10568,
- "end": 10574,
+ "value": "pFrame",
+ "start": 10837,
+ "end": 10843,
"loc": {
"start": {
- "line": 303,
- "column": 44
+ "line": 317,
+ "column": 29
},
"end": {
- "line": 303,
- "column": 50
+ "line": 317,
+ "column": 35
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ",",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10574,
- "end": 10575,
+ "start": 10843,
+ "end": 10844,
"loc": {
"start": {
- "line": 303,
- "column": 50
+ "line": 317,
+ "column": 35
},
"end": {
- "line": 303,
- "column": 51
+ "line": 317,
+ "column": 36
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10575,
- "end": 10576,
+ "value": "pIndex",
+ "start": 10845,
+ "end": 10851,
"loc": {
"start": {
- "line": 303,
- "column": 51
+ "line": 317,
+ "column": 37
},
"end": {
- "line": 303,
- "column": 52
+ "line": 317,
+ "column": 43
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -47573,52 +50215,51 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 10594,
- "end": 10596,
+ "start": 10851,
+ "end": 10852,
"loc": {
"start": {
- "line": 304,
- "column": 16
+ "line": 317,
+ "column": 43
},
"end": {
- "line": 304,
- "column": 18
+ "line": 317,
+ "column": 44
}
}
},
{
"type": {
- "label": "(",
+ "label": "=>",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10597,
- "end": 10598,
+ "start": 10853,
+ "end": 10855,
"loc": {
"start": {
- "line": 304,
- "column": 19
+ "line": 317,
+ "column": 45
},
"end": {
- "line": 304,
- "column": 20
+ "line": 317,
+ "column": 47
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -47627,25 +50268,24 @@
"postfix": false,
"binop": null
},
- "value": "frame",
- "start": 10598,
- "end": 10603,
+ "start": 10856,
+ "end": 10857,
"loc": {
"start": {
- "line": 304,
- "column": 20
+ "line": 317,
+ "column": 48
},
"end": {
- "line": 304,
- "column": 25
+ "line": 317,
+ "column": 49
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -47653,41 +50293,43 @@
"postfix": false,
"binop": null
},
- "start": 10603,
- "end": 10604,
+ "value": "pFrame",
+ "start": 10871,
+ "end": 10877,
"loc": {
"start": {
- "line": 304,
- "column": 25
+ "line": 318,
+ "column": 12
},
"end": {
- "line": 304,
- "column": 26
+ "line": 318,
+ "column": 18
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10605,
- "end": 10606,
+ "start": 10877,
+ "end": 10878,
"loc": {
"start": {
- "line": 304,
- "column": 27
+ "line": 318,
+ "column": 18
},
"end": {
- "line": 304,
- "column": 28
+ "line": 318,
+ "column": 19
}
}
},
@@ -47704,16 +50346,16 @@
"binop": null
},
"value": "index",
- "start": 10628,
- "end": 10633,
+ "start": 10878,
+ "end": 10883,
"loc": {
"start": {
- "line": 305,
- "column": 20
+ "line": 318,
+ "column": 19
},
"end": {
- "line": 305,
- "column": 25
+ "line": 318,
+ "column": 24
}
}
},
@@ -47731,16 +50373,16 @@
"updateContext": null
},
"value": "=",
- "start": 10634,
- "end": 10635,
+ "start": 10884,
+ "end": 10885,
"loc": {
"start": {
- "line": 305,
- "column": 26
+ "line": 318,
+ "column": 25
},
"end": {
- "line": 305,
- "column": 27
+ "line": 318,
+ "column": 26
}
}
},
@@ -47757,16 +50399,16 @@
"binop": null
},
"value": "pIndex",
- "start": 10636,
- "end": 10642,
+ "start": 10886,
+ "end": 10892,
"loc": {
"start": {
- "line": 305,
- "column": 28
+ "line": 318,
+ "column": 27
},
"end": {
- "line": 305,
- "column": 34
+ "line": 318,
+ "column": 33
}
}
},
@@ -47783,16 +50425,16 @@
"binop": null,
"updateContext": null
},
- "start": 10642,
- "end": 10643,
+ "start": 10892,
+ "end": 10893,
"loc": {
"start": {
- "line": 305,
- "column": 34
+ "line": 318,
+ "column": 33
},
"end": {
- "line": 305,
- "column": 35
+ "line": 318,
+ "column": 34
}
}
},
@@ -47808,22 +50450,22 @@
"postfix": false,
"binop": null
},
- "start": 10661,
- "end": 10662,
+ "start": 10903,
+ "end": 10904,
"loc": {
"start": {
- "line": 306,
- "column": 16
+ "line": 319,
+ "column": 8
},
"end": {
- "line": 306,
- "column": 17
+ "line": 319,
+ "column": 9
}
}
},
{
"type": {
- "label": "}",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -47833,23 +50475,22 @@
"postfix": false,
"binop": null
},
- "start": 10676,
- "end": 10677,
+ "start": 10904,
+ "end": 10905,
"loc": {
"start": {
- "line": 307,
- "column": 12
+ "line": 319,
+ "column": 9
},
"end": {
- "line": 307,
- "column": 13
+ "line": 319,
+ "column": 10
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -47860,25 +50501,24 @@
"binop": null,
"updateContext": null
},
- "value": "else",
- "start": 10678,
- "end": 10682,
+ "start": 10905,
+ "end": 10906,
"loc": {
"start": {
- "line": 307,
- "column": 14
+ "line": 319,
+ "column": 10
},
"end": {
- "line": 307,
- "column": 18
+ "line": 319,
+ "column": 11
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -47886,16 +50526,32 @@
"postfix": false,
"binop": null
},
- "start": 10683,
- "end": 10684,
+ "start": 10912,
+ "end": 10913,
"loc": {
"start": {
- "line": 307,
- "column": 19
+ "line": 320,
+ "column": 4
},
"end": {
- "line": 307,
- "column": 20
+ "line": 320,
+ "column": 5
+ }
+ }
+ },
+ {
+ "type": "CommentBlock",
+ "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * The \"first\" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.\r\n * pCurrentIndex must be set to -1 to match this icon.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
+ "start": 10919,
+ "end": 11458,
+ "loc": {
+ "start": {
+ "line": 321,
+ "column": 4
+ },
+ "end": {
+ "line": 328,
+ "column": 7
}
}
},
@@ -47911,43 +50567,42 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 10702,
- "end": 10705,
+ "value": "reorderFrame",
+ "start": 11464,
+ "end": 11476,
"loc": {
"start": {
- "line": 308,
- "column": 16
+ "line": 329,
+ "column": 4
},
"end": {
- "line": 308,
- "column": 19
+ "line": 329,
+ "column": 16
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10705,
- "end": 10706,
+ "start": 11476,
+ "end": 11477,
"loc": {
"start": {
- "line": 308,
- "column": 19
+ "line": 329,
+ "column": 16
},
"end": {
- "line": 308,
- "column": 20
+ "line": 329,
+ "column": 17
}
}
},
@@ -47963,24 +50618,24 @@
"postfix": false,
"binop": null
},
- "value": "logger",
- "start": 10706,
- "end": 10712,
+ "value": "pCurrentIndex",
+ "start": 11477,
+ "end": 11490,
"loc": {
"start": {
- "line": 308,
- "column": 20
+ "line": 329,
+ "column": 17
},
"end": {
- "line": 308,
- "column": 26
+ "line": 329,
+ "column": 30
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ",",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -47990,16 +50645,16 @@
"binop": null,
"updateContext": null
},
- "start": 10712,
- "end": 10713,
+ "start": 11490,
+ "end": 11491,
"loc": {
"start": {
- "line": 308,
- "column": 26
+ "line": 329,
+ "column": 30
},
"end": {
- "line": 308,
- "column": 27
+ "line": 329,
+ "column": 31
}
}
},
@@ -48015,25 +50670,25 @@
"postfix": false,
"binop": null
},
- "value": "prefix",
- "start": 10713,
- "end": 10719,
+ "value": "pIndex",
+ "start": 11492,
+ "end": 11498,
"loc": {
"start": {
- "line": 308,
- "column": 27
+ "line": 329,
+ "column": 32
},
"end": {
- "line": 308,
- "column": 33
+ "line": 329,
+ "column": 38
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48041,49 +50696,48 @@
"postfix": false,
"binop": null
},
- "start": 10719,
- "end": 10720,
+ "start": 11498,
+ "end": 11499,
"loc": {
"start": {
- "line": 308,
- "column": 33
+ "line": 329,
+ "column": 38
},
"end": {
- "line": 308,
- "column": 34
+ "line": 329,
+ "column": 39
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "VYI-Module",
- "start": 10720,
- "end": 10732,
+ "start": 11500,
+ "end": 11501,
"loc": {
"start": {
- "line": 308,
- "column": 34
+ "line": 329,
+ "column": 40
},
"end": {
- "line": 308,
- "column": 46
+ "line": 329,
+ "column": 41
}
}
},
{
"type": {
- "label": ")",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -48091,70 +50745,73 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10732,
- "end": 10733,
+ "value": "if",
+ "start": 11511,
+ "end": 11513,
"loc": {
"start": {
- "line": 308,
- "column": 46
+ "line": 330,
+ "column": 8
},
"end": {
- "line": 308,
- "column": 47
+ "line": 330,
+ "column": 10
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10733,
- "end": 10734,
+ "start": 11514,
+ "end": 11515,
"loc": {
"start": {
- "line": 308,
- "column": 47
+ "line": 330,
+ "column": 11
},
"end": {
- "line": 308,
- "column": 48
+ "line": 330,
+ "column": 12
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "typeof",
+ "keyword": "typeof",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "error",
- "start": 10734,
- "end": 10739,
+ "value": "typeof",
+ "start": 11515,
+ "end": 11521,
"loc": {
"start": {
- "line": 308,
- "column": 48
+ "line": 330,
+ "column": 12
},
"end": {
- "line": 308,
- "column": 53
+ "line": 330,
+ "column": 18
}
}
},
@@ -48170,22 +50827,22 @@
"postfix": false,
"binop": null
},
- "start": 10739,
- "end": 10740,
+ "start": 11521,
+ "end": 11522,
"loc": {
"start": {
- "line": 308,
- "column": 53
+ "line": 330,
+ "column": 18
},
"end": {
- "line": 308,
- "column": 54
+ "line": 330,
+ "column": 19
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -48193,20 +50850,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "Invalid pIndex type!",
- "start": 10740,
- "end": 10762,
+ "value": "pCurrentIndex",
+ "start": 11522,
+ "end": 11535,
"loc": {
"start": {
- "line": 308,
- "column": 54
+ "line": 330,
+ "column": 19
},
"end": {
- "line": 308,
- "column": 76
+ "line": 330,
+ "column": 32
}
}
},
@@ -48222,22 +50878,22 @@
"postfix": false,
"binop": null
},
- "start": 10762,
- "end": 10763,
+ "start": 11535,
+ "end": 11536,
"loc": {
"start": {
- "line": 308,
- "column": 76
+ "line": 330,
+ "column": 32
},
"end": {
- "line": 308,
- "column": 77
+ "line": 330,
+ "column": 33
}
}
},
{
"type": {
- "label": ";",
+ "label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -48245,103 +50901,108 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "start": 10763,
- "end": 10764,
+ "value": "===",
+ "start": 11537,
+ "end": 11540,
"loc": {
"start": {
- "line": 308,
- "column": 77
+ "line": 330,
+ "column": 34
},
"end": {
- "line": 308,
- "column": 78
+ "line": 330,
+ "column": 37
}
}
},
{
"type": {
- "label": "}",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10778,
- "end": 10779,
+ "value": "number",
+ "start": 11541,
+ "end": 11549,
"loc": {
"start": {
- "line": 309,
- "column": 12
+ "line": 330,
+ "column": 38
},
"end": {
- "line": 309,
- "column": 13
+ "line": 330,
+ "column": 46
}
}
},
{
"type": {
- "label": "}",
- "beforeExpr": false,
+ "label": "&&",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 2,
+ "updateContext": null
},
- "start": 10789,
- "end": 10790,
+ "value": "&&",
+ "start": 11550,
+ "end": 11552,
"loc": {
"start": {
- "line": 310,
- "column": 8
+ "line": 330,
+ "column": 47
},
"end": {
- "line": 310,
- "column": 9
+ "line": 330,
+ "column": 49
}
}
},
{
"type": {
- "label": "else",
- "keyword": "else",
+ "label": "typeof",
+ "keyword": "typeof",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "else",
- "start": 10791,
- "end": 10795,
+ "value": "typeof",
+ "start": 11553,
+ "end": 11559,
"loc": {
"start": {
- "line": 310,
- "column": 10
+ "line": 330,
+ "column": 50
},
"end": {
- "line": 310,
- "column": 14
+ "line": 330,
+ "column": 56
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -48351,16 +51012,16 @@
"postfix": false,
"binop": null
},
- "start": 10796,
- "end": 10797,
+ "start": 11559,
+ "end": 11560,
"loc": {
"start": {
- "line": 310,
- "column": 15
+ "line": 330,
+ "column": 56
},
"end": {
- "line": 310,
- "column": 16
+ "line": 330,
+ "column": 57
}
}
},
@@ -48376,23 +51037,23 @@
"postfix": false,
"binop": null
},
- "value": "VYI",
- "start": 10811,
- "end": 10814,
+ "value": "pIndex",
+ "start": 11560,
+ "end": 11566,
"loc": {
"start": {
- "line": 311,
- "column": 12
+ "line": 330,
+ "column": 57
},
"end": {
- "line": 311,
- "column": 15
+ "line": 330,
+ "column": 63
}
}
},
{
"type": {
- "label": ".",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -48400,53 +51061,53 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10814,
- "end": 10815,
+ "start": 11566,
+ "end": 11567,
"loc": {
"start": {
- "line": 311,
- "column": 15
+ "line": 330,
+ "column": 63
},
- "end": {
- "line": 311,
- "column": 16
+ "end": {
+ "line": 330,
+ "column": 64
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": "==/!=",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": 6,
+ "updateContext": null
},
- "value": "logger",
- "start": 10815,
- "end": 10821,
+ "value": "===",
+ "start": 11568,
+ "end": 11571,
"loc": {
"start": {
- "line": 311,
- "column": 16
+ "line": 330,
+ "column": 65
},
"end": {
- "line": 311,
- "column": 22
+ "line": 330,
+ "column": 68
}
}
},
{
"type": {
- "label": ".",
+ "label": "string",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48455,24 +51116,25 @@
"binop": null,
"updateContext": null
},
- "start": 10821,
- "end": 10822,
+ "value": "number",
+ "start": 11572,
+ "end": 11580,
"loc": {
"start": {
- "line": 311,
- "column": 22
+ "line": 330,
+ "column": 69
},
"end": {
- "line": 311,
- "column": 23
+ "line": 330,
+ "column": 77
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48480,23 +51142,22 @@
"postfix": false,
"binop": null
},
- "value": "prefix",
- "start": 10822,
- "end": 10828,
+ "start": 11580,
+ "end": 11581,
"loc": {
"start": {
- "line": 311,
- "column": 23
+ "line": 330,
+ "column": 77
},
"end": {
- "line": 311,
- "column": 29
+ "line": 330,
+ "column": 78
}
}
},
{
"type": {
- "label": "(",
+ "label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -48506,24 +51167,25 @@
"postfix": false,
"binop": null
},
- "start": 10828,
- "end": 10829,
+ "start": 11582,
+ "end": 11583,
"loc": {
"start": {
- "line": 311,
- "column": 29
+ "line": 330,
+ "column": 79
},
"end": {
- "line": 311,
- "column": 30
+ "line": 330,
+ "column": 80
}
}
},
{
"type": {
- "label": "string",
+ "label": "let",
+ "keyword": "let",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48532,25 +51194,25 @@
"binop": null,
"updateContext": null
},
- "value": "VYI-Module",
- "start": 10829,
- "end": 10841,
+ "value": "let",
+ "start": 11597,
+ "end": 11600,
"loc": {
"start": {
- "line": 311,
- "column": 30
+ "line": 331,
+ "column": 12
},
"end": {
- "line": 311,
- "column": 42
+ "line": 331,
+ "column": 15
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48558,23 +51220,24 @@
"postfix": false,
"binop": null
},
- "start": 10841,
- "end": 10842,
+ "value": "frameAtIndex",
+ "start": 11601,
+ "end": 11613,
"loc": {
"start": {
- "line": 311,
- "column": 42
+ "line": 331,
+ "column": 16
},
"end": {
- "line": 311,
- "column": 43
+ "line": 331,
+ "column": 28
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -48584,49 +51247,51 @@
"binop": null,
"updateContext": null
},
- "start": 10842,
- "end": 10843,
+ "start": 11613,
+ "end": 11614,
"loc": {
"start": {
- "line": 311,
- "column": 43
+ "line": 331,
+ "column": 28
},
"end": {
- "line": 311,
- "column": 44
+ "line": 331,
+ "column": 29
}
}
},
{
"type": {
- "label": "name",
+ "label": "let",
+ "keyword": "let",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "error",
- "start": 10843,
- "end": 10848,
+ "value": "let",
+ "start": 11628,
+ "end": 11631,
"loc": {
"start": {
- "line": 311,
- "column": 44
+ "line": 332,
+ "column": 12
},
"end": {
- "line": 311,
- "column": 49
+ "line": 332,
+ "column": 15
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -48635,24 +51300,25 @@
"postfix": false,
"binop": null
},
- "start": 10848,
- "end": 10849,
+ "value": "currentFrame",
+ "start": 11632,
+ "end": 11644,
"loc": {
"start": {
- "line": 311,
- "column": 49
+ "line": 332,
+ "column": 16
},
"end": {
- "line": 311,
- "column": 50
+ "line": 332,
+ "column": 28
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48661,23 +51327,55 @@
"binop": null,
"updateContext": null
},
- "value": "Failed to remove frame!",
- "start": 10849,
- "end": 10874,
+ "start": 11644,
+ "end": 11645,
"loc": {
"start": {
- "line": 311,
- "column": 50
+ "line": 332,
+ "column": 28
},
"end": {
- "line": 311,
- "column": 75
+ "line": 332,
+ "column": 29
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves",
+ "start": 11659,
+ "end": 11807,
+ "loc": {
+ "start": {
+ "line": 333,
+ "column": 12
+ },
+ "end": {
+ "line": 333,
+ "column": 160
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " as the frame 0.",
+ "start": 11821,
+ "end": 11839,
+ "loc": {
+ "start": {
+ "line": 334,
+ "column": 12
+ },
+ "end": {
+ "line": 334,
+ "column": 30
}
}
},
{
"type": {
- "label": ")",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -48685,52 +51383,53 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10874,
- "end": 10875,
+ "value": "if",
+ "start": 11853,
+ "end": 11855,
"loc": {
"start": {
- "line": 311,
- "column": 75
+ "line": 335,
+ "column": 12
},
"end": {
- "line": 311,
- "column": 76
+ "line": 335,
+ "column": 14
}
}
},
{
"type": {
- "label": ";",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10875,
- "end": 10876,
+ "start": 11856,
+ "end": 11857,
"loc": {
"start": {
- "line": 311,
- "column": 76
+ "line": 335,
+ "column": 15
},
"end": {
- "line": 311,
- "column": 77
+ "line": 335,
+ "column": 16
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48738,105 +51437,106 @@
"postfix": false,
"binop": null
},
- "start": 10886,
- "end": 10887,
+ "value": "pCurrentIndex",
+ "start": 11857,
+ "end": 11870,
"loc": {
"start": {
- "line": 312,
- "column": 8
+ "line": 335,
+ "column": 16
},
"end": {
- "line": 312,
- "column": 9
+ "line": 335,
+ "column": 29
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
+ "label": "==/!=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 6,
"updateContext": null
},
- "value": "if",
- "start": 10897,
- "end": 10899,
+ "value": "===",
+ "start": 11871,
+ "end": 11874,
"loc": {
"start": {
- "line": 313,
- "column": 8
+ "line": 335,
+ "column": 30
},
"end": {
- "line": 313,
- "column": 10
+ "line": 335,
+ "column": 33
}
}
},
{
"type": {
- "label": "(",
+ "label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": false,
+ "prefix": true,
"postfix": false,
- "binop": null
+ "binop": 9,
+ "updateContext": null
},
- "start": 10900,
- "end": 10901,
+ "value": "-",
+ "start": 11875,
+ "end": 11876,
"loc": {
"start": {
- "line": 313,
- "column": 11
+ "line": 335,
+ "column": 34
},
"end": {
- "line": 313,
- "column": 12
+ "line": 335,
+ "column": 35
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "num",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "typeof",
- "start": 10901,
- "end": 10907,
+ "value": 1,
+ "start": 11876,
+ "end": 11877,
"loc": {
"start": {
- "line": 313,
- "column": 12
+ "line": 335,
+ "column": 35
},
"end": {
- "line": 313,
- "column": 18
+ "line": 335,
+ "column": 36
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ")",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48844,23 +51544,23 @@
"postfix": false,
"binop": null
},
- "start": 10907,
- "end": 10908,
+ "start": 11877,
+ "end": 11878,
"loc": {
"start": {
- "line": 313,
- "column": 18
+ "line": 335,
+ "column": 36
},
"end": {
- "line": 313,
- "column": 19
+ "line": 335,
+ "column": 37
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -48869,25 +51569,24 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 10908,
- "end": 10913,
+ "start": 11879,
+ "end": 11880,
"loc": {
"start": {
- "line": 313,
- "column": 19
+ "line": 335,
+ "column": 38
},
"end": {
- "line": 313,
- "column": 24
+ "line": 335,
+ "column": 39
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48895,49 +51594,51 @@
"postfix": false,
"binop": null
},
- "start": 10913,
- "end": 10914,
+ "value": "currentFrame",
+ "start": 11898,
+ "end": 11910,
"loc": {
"start": {
- "line": 313,
- "column": 24
+ "line": 336,
+ "column": 16
},
"end": {
- "line": 313,
- "column": 25
+ "line": 336,
+ "column": 28
}
}
},
{
"type": {
- "label": "==/!=",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": 6,
+ "binop": null,
"updateContext": null
},
- "value": "===",
- "start": 10915,
- "end": 10918,
+ "value": "=",
+ "start": 11911,
+ "end": 11912,
"loc": {
"start": {
- "line": 313,
- "column": 26
+ "line": 336,
+ "column": 29
},
"end": {
- "line": 313,
- "column": 29
+ "line": 336,
+ "column": 30
}
}
},
{
"type": {
- "label": "string",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -48948,50 +51649,67 @@
"binop": null,
"updateContext": null
},
- "value": "number",
- "start": 10919,
- "end": 10927,
+ "value": "this",
+ "start": 11913,
+ "end": 11917,
"loc": {
"start": {
- "line": 313,
- "column": 30
+ "line": 336,
+ "column": 31
},
"end": {
- "line": 313,
- "column": 38
+ "line": 336,
+ "column": 35
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10927,
- "end": 10928,
+ "start": 11917,
+ "end": 11918,
"loc": {
"start": {
- "line": 313,
- "column": 38
+ "line": 336,
+ "column": 35
},
"end": {
- "line": 313,
- "column": 39
+ "line": 336,
+ "column": 36
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Otherwise if the index passed can be found in the frames array, then we use that frame.",
+ "start": 11932,
+ "end": 12022,
+ "loc": {
+ "start": {
+ "line": 337,
+ "column": 12
+ },
+ "end": {
+ "line": 337,
+ "column": 102
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "}",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -48999,41 +51717,53 @@
"postfix": false,
"binop": null
},
- "start": 10929,
- "end": 10930,
+ "start": 12036,
+ "end": 12037,
"loc": {
"start": {
- "line": 313,
- "column": 40
+ "line": 338,
+ "column": 12
},
"end": {
- "line": 313,
- "column": 41
+ "line": 338,
+ "column": 13
}
}
},
{
- "type": "CommentLine",
- "value": " Remove the frame",
- "start": 10944,
- "end": 10963,
+ "type": {
+ "label": "else",
+ "keyword": "else",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "else",
+ "start": 12038,
+ "end": 12042,
"loc": {
"start": {
- "line": 314,
- "column": 12
+ "line": 338,
+ "column": 14
},
"end": {
- "line": 314,
- "column": 31
+ "line": 338,
+ "column": 18
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "if",
+ "keyword": "if",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -49042,49 +51772,49 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 10977,
- "end": 10981,
+ "value": "if",
+ "start": 12043,
+ "end": 12045,
"loc": {
"start": {
- "line": 315,
- "column": 12
+ "line": 338,
+ "column": 19
},
"end": {
- "line": 315,
- "column": 16
+ "line": 338,
+ "column": 21
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 10981,
- "end": 10982,
+ "start": 12046,
+ "end": 12047,
"loc": {
"start": {
- "line": 315,
- "column": 16
+ "line": 338,
+ "column": 22
},
"end": {
- "line": 315,
- "column": 17
+ "line": 338,
+ "column": 23
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -49092,19 +51822,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frames",
- "start": 10982,
- "end": 10988,
+ "value": "this",
+ "start": 12047,
+ "end": 12051,
"loc": {
"start": {
- "line": 315,
- "column": 17
+ "line": 338,
+ "column": 23
},
"end": {
- "line": 315,
- "column": 23
+ "line": 338,
+ "column": 27
}
}
},
@@ -49121,16 +51852,16 @@
"binop": null,
"updateContext": null
},
- "start": 10988,
- "end": 10989,
+ "start": 12051,
+ "end": 12052,
"loc": {
"start": {
- "line": 315,
- "column": 23
+ "line": 338,
+ "column": 27
},
"end": {
- "line": 315,
- "column": 24
+ "line": 338,
+ "column": 28
}
}
},
@@ -49146,23 +51877,23 @@
"postfix": false,
"binop": null
},
- "value": "splice",
- "start": 10989,
- "end": 10995,
+ "value": "frames",
+ "start": 12052,
+ "end": 12058,
"loc": {
"start": {
- "line": 315,
- "column": 24
+ "line": 338,
+ "column": 28
},
"end": {
- "line": 315,
- "column": 30
+ "line": 338,
+ "column": 34
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -49170,18 +51901,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 10995,
- "end": 10996,
+ "start": 12058,
+ "end": 12059,
"loc": {
"start": {
- "line": 315,
- "column": 30
+ "line": 338,
+ "column": 34
},
"end": {
- "line": 315,
- "column": 31
+ "line": 338,
+ "column": 35
}
}
},
@@ -49197,24 +51929,24 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 10996,
- "end": 11001,
+ "value": "pCurrentIndex",
+ "start": 12059,
+ "end": 12072,
"loc": {
"start": {
- "line": 315,
- "column": 31
+ "line": 338,
+ "column": 35
},
"end": {
- "line": 315,
- "column": 36
+ "line": 338,
+ "column": 48
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": "]",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -49224,51 +51956,49 @@
"binop": null,
"updateContext": null
},
- "start": 11001,
- "end": 11002,
+ "start": 12072,
+ "end": 12073,
"loc": {
"start": {
- "line": 315,
- "column": 36
+ "line": 338,
+ "column": 48
},
"end": {
- "line": 315,
- "column": 37
+ "line": 338,
+ "column": 49
}
}
},
{
"type": {
- "label": "num",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": 1,
- "start": 11003,
- "end": 11004,
+ "start": 12073,
+ "end": 12074,
"loc": {
"start": {
- "line": 315,
- "column": 38
+ "line": 338,
+ "column": 49
},
"end": {
- "line": 315,
- "column": 39
+ "line": 338,
+ "column": 50
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "{",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -49276,58 +52006,69 @@
"postfix": false,
"binop": null
},
- "start": 11004,
- "end": 11005,
+ "start": 12075,
+ "end": 12076,
"loc": {
"start": {
- "line": 315,
- "column": 39
+ "line": 338,
+ "column": 51
},
"end": {
- "line": 315,
- "column": 40
+ "line": 338,
+ "column": 52
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 11005,
- "end": 11006,
+ "value": "currentFrame",
+ "start": 12094,
+ "end": 12106,
"loc": {
"start": {
- "line": 315,
- "column": 40
+ "line": 339,
+ "column": 16
},
"end": {
- "line": 315,
- "column": 41
+ "line": 339,
+ "column": 28
}
}
},
{
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 11020,
- "end": 11053,
+ "type": {
+ "label": "=",
+ "beforeExpr": true,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": true,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "value": "=",
+ "start": 12107,
+ "end": 12108,
"loc": {
"start": {
- "line": 316,
- "column": 12
+ "line": 339,
+ "column": 29
},
"end": {
- "line": 316,
- "column": 45
+ "line": 339,
+ "column": 30
}
}
},
@@ -49346,16 +52087,16 @@
"updateContext": null
},
"value": "this",
- "start": 11067,
- "end": 11071,
+ "start": 12109,
+ "end": 12113,
"loc": {
"start": {
- "line": 317,
- "column": 12
+ "line": 339,
+ "column": 31
},
"end": {
- "line": 317,
- "column": 16
+ "line": 339,
+ "column": 35
}
}
},
@@ -49372,16 +52113,16 @@
"binop": null,
"updateContext": null
},
- "start": 11071,
- "end": 11072,
+ "start": 12113,
+ "end": 12114,
"loc": {
"start": {
- "line": 317,
- "column": 16
+ "line": 339,
+ "column": 35
},
"end": {
- "line": 317,
- "column": 17
+ "line": 339,
+ "column": 36
}
}
},
@@ -49397,23 +52138,23 @@
"postfix": false,
"binop": null
},
- "value": "indexFrames",
- "start": 11072,
- "end": 11083,
+ "value": "frames",
+ "start": 12114,
+ "end": 12120,
"loc": {
"start": {
- "line": 317,
- "column": 17
+ "line": 339,
+ "column": 36
},
"end": {
- "line": 317,
- "column": 28
+ "line": 339,
+ "column": 42
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -49421,24 +52162,51 @@
"isAssign": false,
"prefix": false,
"postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 12120,
+ "end": 12121,
+ "loc": {
+ "start": {
+ "line": 339,
+ "column": 42
+ },
+ "end": {
+ "line": 339,
+ "column": 43
+ }
+ }
+ },
+ {
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
"binop": null
},
- "start": 11083,
- "end": 11084,
+ "value": "pCurrentIndex",
+ "start": 12121,
+ "end": 12134,
"loc": {
"start": {
- "line": 317,
- "column": 28
+ "line": 339,
+ "column": 43
},
"end": {
- "line": 317,
- "column": 29
+ "line": 339,
+ "column": 56
}
}
},
{
"type": {
- "label": ")",
+ "label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -49446,18 +52214,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11084,
- "end": 11085,
+ "start": 12134,
+ "end": 12135,
"loc": {
"start": {
- "line": 317,
- "column": 29
+ "line": 339,
+ "column": 56
},
"end": {
- "line": 317,
- "column": 30
+ "line": 339,
+ "column": 57
}
}
},
@@ -49474,16 +52243,16 @@
"binop": null,
"updateContext": null
},
- "start": 11085,
- "end": 11086,
+ "start": 12135,
+ "end": 12136,
"loc": {
"start": {
- "line": 317,
- "column": 30
+ "line": 339,
+ "column": 57
},
"end": {
- "line": 317,
- "column": 31
+ "line": 339,
+ "column": 58
}
}
},
@@ -49499,24 +52268,40 @@
"postfix": false,
"binop": null
},
- "start": 11096,
- "end": 11097,
+ "start": 12150,
+ "end": 12151,
"loc": {
"start": {
- "line": 318,
- "column": 8
+ "line": 340,
+ "column": 12
},
"end": {
- "line": 318,
- "column": 9
+ "line": 340,
+ "column": 13
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " We get the frame at the specified index.",
+ "start": 12167,
+ "end": 12210,
+ "loc": {
+ "start": {
+ "line": 342,
+ "column": 12
+ },
+ "end": {
+ "line": 342,
+ "column": 55
}
}
},
{
"type": {
- "label": "return",
- "keyword": "return",
- "beforeExpr": true,
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -49526,20 +52311,45 @@
"binop": null,
"updateContext": null
},
- "value": "return",
- "start": 11107,
- "end": 11113,
+ "value": "if",
+ "start": 12224,
+ "end": 12226,
"loc": {
"start": {
- "line": 319,
- "column": 8
+ "line": 343,
+ "column": 12
},
"end": {
- "line": 319,
+ "line": 343,
"column": 14
}
}
},
+ {
+ "type": {
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "start": 12227,
+ "end": 12228,
+ "loc": {
+ "start": {
+ "line": 343,
+ "column": 15
+ },
+ "end": {
+ "line": 343,
+ "column": 16
+ }
+ }
+ },
{
"type": {
"label": "this",
@@ -49555,23 +52365,23 @@
"updateContext": null
},
"value": "this",
- "start": 11114,
- "end": 11118,
+ "start": 12228,
+ "end": 12232,
"loc": {
"start": {
- "line": 319,
- "column": 15
+ "line": 343,
+ "column": 16
},
"end": {
- "line": 319,
- "column": 19
+ "line": 343,
+ "column": 20
}
}
},
{
"type": {
- "label": ";",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -49581,24 +52391,24 @@
"binop": null,
"updateContext": null
},
- "start": 11118,
- "end": 11119,
+ "start": 12232,
+ "end": 12233,
"loc": {
"start": {
- "line": 319,
- "column": 19
+ "line": 343,
+ "column": 20
},
"end": {
- "line": 319,
- "column": 20
+ "line": 343,
+ "column": 21
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -49606,32 +52416,43 @@
"postfix": false,
"binop": null
},
- "start": 11125,
- "end": 11126,
+ "value": "frames",
+ "start": 12233,
+ "end": 12239,
"loc": {
"start": {
- "line": 320,
- "column": 4
+ "line": 343,
+ "column": 21
},
"end": {
- "line": 320,
- "column": 5
+ "line": 343,
+ "column": 27
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Index the frames properly.\r\n * @private\r\n ",
- "start": 11132,
- "end": 11196,
+ "type": {
+ "label": "[",
+ "beforeExpr": true,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 12239,
+ "end": 12240,
"loc": {
"start": {
- "line": 321,
- "column": 4
+ "line": 343,
+ "column": 27
},
"end": {
- "line": 324,
- "column": 7
+ "line": 343,
+ "column": 28
}
}
},
@@ -49647,42 +52468,43 @@
"postfix": false,
"binop": null
},
- "value": "indexFrames",
- "start": 11202,
- "end": 11213,
+ "value": "pIndex",
+ "start": 12240,
+ "end": 12246,
"loc": {
"start": {
- "line": 325,
- "column": 4
+ "line": 343,
+ "column": 28
},
"end": {
- "line": 325,
- "column": 15
+ "line": 343,
+ "column": 34
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": "]",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11213,
- "end": 11214,
+ "start": 12246,
+ "end": 12247,
"loc": {
"start": {
- "line": 325,
- "column": 15
+ "line": 343,
+ "column": 34
},
"end": {
- "line": 325,
- "column": 16
+ "line": 343,
+ "column": 35
}
}
},
@@ -49698,16 +52520,16 @@
"postfix": false,
"binop": null
},
- "start": 11214,
- "end": 11215,
+ "start": 12247,
+ "end": 12248,
"loc": {
"start": {
- "line": 325,
- "column": 16
+ "line": 343,
+ "column": 35
},
"end": {
- "line": 325,
- "column": 17
+ "line": 343,
+ "column": 36
}
}
},
@@ -49723,39 +52545,22 @@
"postfix": false,
"binop": null
},
- "start": 11216,
- "end": 11217,
- "loc": {
- "start": {
- "line": 325,
- "column": 18
- },
- "end": {
- "line": 325,
- "column": 19
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Reorder the frames after removing.",
- "start": 11227,
- "end": 11264,
+ "start": 12249,
+ "end": 12250,
"loc": {
"start": {
- "line": 326,
- "column": 8
+ "line": 343,
+ "column": 37
},
"end": {
- "line": 326,
- "column": 45
+ "line": 343,
+ "column": 38
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -49763,52 +52568,53 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 11274,
- "end": 11278,
+ "value": "frameAtIndex",
+ "start": 12268,
+ "end": 12280,
"loc": {
"start": {
- "line": 327,
- "column": 8
+ "line": 344,
+ "column": 16
},
"end": {
- "line": 327,
- "column": 12
+ "line": 344,
+ "column": 28
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 11278,
- "end": 11279,
+ "value": "=",
+ "start": 12281,
+ "end": 12282,
"loc": {
"start": {
- "line": 327,
- "column": 12
+ "line": 344,
+ "column": 29
},
"end": {
- "line": 327,
- "column": 13
+ "line": 344,
+ "column": 30
}
}
},
{
"type": {
- "label": "name",
+ "label": "this",
+ "keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -49816,19 +52622,20 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "frames",
- "start": 11279,
- "end": 11285,
+ "value": "this",
+ "start": 12283,
+ "end": 12287,
"loc": {
"start": {
- "line": 327,
- "column": 13
+ "line": 344,
+ "column": 31
},
"end": {
- "line": 327,
- "column": 19
+ "line": 344,
+ "column": 35
}
}
},
@@ -49845,16 +52652,16 @@
"binop": null,
"updateContext": null
},
- "start": 11285,
- "end": 11286,
+ "start": 12287,
+ "end": 12288,
"loc": {
"start": {
- "line": 327,
- "column": 19
+ "line": 344,
+ "column": 35
},
"end": {
- "line": 327,
- "column": 20
+ "line": 344,
+ "column": 36
}
}
},
@@ -49870,23 +52677,23 @@
"postfix": false,
"binop": null
},
- "value": "forEach",
- "start": 11286,
- "end": 11293,
+ "value": "frames",
+ "start": 12288,
+ "end": 12294,
"loc": {
"start": {
- "line": 327,
- "column": 20
+ "line": 344,
+ "column": 36
},
"end": {
- "line": 327,
- "column": 27
+ "line": 344,
+ "column": 42
}
}
},
{
"type": {
- "label": "(",
+ "label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -49894,25 +52701,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11293,
- "end": 11294,
+ "start": 12294,
+ "end": 12295,
"loc": {
"start": {
- "line": 327,
- "column": 27
+ "line": 344,
+ "column": 42
},
"end": {
- "line": 327,
- "column": 28
+ "line": 344,
+ "column": 43
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -49921,48 +52729,49 @@
"postfix": false,
"binop": null
},
- "start": 11294,
- "end": 11295,
+ "value": "pIndex",
+ "start": 12295,
+ "end": 12301,
"loc": {
"start": {
- "line": 327,
- "column": 28
+ "line": 344,
+ "column": 43
},
"end": {
- "line": 327,
- "column": 29
+ "line": 344,
+ "column": 49
}
}
},
{
"type": {
- "label": "name",
+ "label": "]",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pFrame",
- "start": 11295,
- "end": 11301,
+ "start": 12301,
+ "end": 12302,
"loc": {
"start": {
- "line": 327,
- "column": 29
+ "line": 344,
+ "column": 49
},
"end": {
- "line": 327,
- "column": 35
+ "line": 344,
+ "column": 50
}
}
},
{
"type": {
- "label": ",",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -49973,24 +52782,24 @@
"binop": null,
"updateContext": null
},
- "start": 11301,
- "end": 11302,
+ "start": 12302,
+ "end": 12303,
"loc": {
"start": {
- "line": 327,
- "column": 35
+ "line": 344,
+ "column": 50
},
"end": {
- "line": 327,
- "column": 36
+ "line": 344,
+ "column": 51
}
}
},
{
"type": {
- "label": "name",
+ "label": "}",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -49998,49 +52807,40 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 11303,
- "end": 11309,
+ "start": 12317,
+ "end": 12318,
"loc": {
"start": {
- "line": 327,
- "column": 37
+ "line": 345,
+ "column": 12
},
"end": {
- "line": 327,
- "column": 43
+ "line": 345,
+ "column": 13
}
}
},
{
- "type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 11309,
- "end": 11310,
+ "type": "CommentLine",
+ "value": " If both frames can be found, we can swap their data.",
+ "start": 12334,
+ "end": 12389,
"loc": {
"start": {
- "line": 327,
- "column": 43
+ "line": 347,
+ "column": 12
},
"end": {
- "line": 327,
- "column": 44
+ "line": 347,
+ "column": 67
}
}
},
{
"type": {
- "label": "=>",
- "beforeExpr": true,
+ "label": "if",
+ "keyword": "if",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -50050,22 +52850,23 @@
"binop": null,
"updateContext": null
},
- "start": 11311,
- "end": 11313,
+ "value": "if",
+ "start": 12403,
+ "end": 12405,
"loc": {
"start": {
- "line": 327,
- "column": 45
+ "line": 348,
+ "column": 12
},
"end": {
- "line": 327,
- "column": 47
+ "line": 348,
+ "column": 14
}
}
},
{
"type": {
- "label": "{",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -50075,16 +52876,16 @@
"postfix": false,
"binop": null
},
- "start": 11314,
- "end": 11315,
+ "start": 12406,
+ "end": 12407,
"loc": {
"start": {
- "line": 327,
- "column": 48
+ "line": 348,
+ "column": 15
},
"end": {
- "line": 327,
- "column": 49
+ "line": 348,
+ "column": 16
}
}
},
@@ -50100,43 +52901,44 @@
"postfix": false,
"binop": null
},
- "value": "pFrame",
- "start": 11329,
- "end": 11335,
+ "value": "currentFrame",
+ "start": 12407,
+ "end": 12419,
"loc": {
"start": {
- "line": 328,
- "column": 12
+ "line": 348,
+ "column": 16
},
"end": {
- "line": 328,
- "column": 18
+ "line": 348,
+ "column": 28
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": "&&",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
+ "binop": 2,
"updateContext": null
},
- "start": 11335,
- "end": 11336,
+ "value": "&&",
+ "start": 12420,
+ "end": 12422,
"loc": {
"start": {
- "line": 328,
- "column": 18
+ "line": 348,
+ "column": 29
},
"end": {
- "line": 328,
- "column": 19
+ "line": 348,
+ "column": 31
}
}
},
@@ -50152,51 +52954,49 @@
"postfix": false,
"binop": null
},
- "value": "index",
- "start": 11336,
- "end": 11341,
+ "value": "frameAtIndex",
+ "start": 12423,
+ "end": 12435,
"loc": {
"start": {
- "line": 328,
- "column": 19
+ "line": 348,
+ "column": 32
},
"end": {
- "line": 328,
- "column": 24
+ "line": 348,
+ "column": 44
}
}
},
{
"type": {
- "label": "=",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": true,
+ "isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "=",
- "start": 11342,
- "end": 11343,
+ "start": 12435,
+ "end": 12436,
"loc": {
"start": {
- "line": 328,
- "column": 25
+ "line": 348,
+ "column": 44
},
"end": {
- "line": 328,
- "column": 26
+ "line": 348,
+ "column": 45
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "{",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -50205,49 +53005,39 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 11344,
- "end": 11350,
+ "start": 12437,
+ "end": 12438,
"loc": {
"start": {
- "line": 328,
- "column": 27
+ "line": 348,
+ "column": 46
},
"end": {
- "line": 328,
- "column": 33
+ "line": 348,
+ "column": 47
}
}
},
{
- "type": {
- "label": ";",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null,
- "updateContext": null
- },
- "start": 11350,
- "end": 11351,
+ "type": "CommentLine",
+ "value": " Store frame data",
+ "start": 12456,
+ "end": 12475,
"loc": {
"start": {
- "line": 328,
- "column": 33
+ "line": 349,
+ "column": 16
},
"end": {
- "line": 328,
- "column": 34
+ "line": 349,
+ "column": 35
}
}
},
{
"type": {
- "label": "}",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -50255,26 +53045,28 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11361,
- "end": 11362,
+ "value": "const",
+ "start": 12493,
+ "end": 12498,
"loc": {
"start": {
- "line": 329,
- "column": 8
+ "line": 350,
+ "column": 16
},
"end": {
- "line": 329,
- "column": 9
+ "line": 350,
+ "column": 21
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50282,50 +53074,52 @@
"postfix": false,
"binop": null
},
- "start": 11362,
- "end": 11363,
+ "value": "currentFrameDataURL",
+ "start": 12499,
+ "end": 12518,
"loc": {
"start": {
- "line": 329,
- "column": 9
+ "line": 350,
+ "column": 22
},
"end": {
- "line": 329,
- "column": 10
+ "line": 350,
+ "column": 41
}
}
},
{
"type": {
- "label": ";",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "start": 11363,
- "end": 11364,
+ "value": "=",
+ "start": 12519,
+ "end": 12520,
"loc": {
"start": {
- "line": 329,
- "column": 10
+ "line": 350,
+ "column": 42
},
"end": {
- "line": 329,
- "column": 11
+ "line": 350,
+ "column": 43
}
}
},
{
"type": {
- "label": "}",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50333,32 +53127,43 @@
"postfix": false,
"binop": null
},
- "start": 11370,
- "end": 11371,
+ "value": "currentFrame",
+ "start": 12521,
+ "end": 12533,
"loc": {
"start": {
- "line": 330,
- "column": 4
+ "line": 350,
+ "column": 44
},
"end": {
- "line": 330,
- "column": 5
+ "line": 350,
+ "column": 56
}
}
},
{
- "type": "CommentBlock",
- "value": "*\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n ",
- "start": 11377,
- "end": 11694,
+ "type": {
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null,
+ "updateContext": null
+ },
+ "start": 12533,
+ "end": 12534,
"loc": {
"start": {
- "line": 331,
- "column": 4
+ "line": 350,
+ "column": 56
},
"end": {
- "line": 336,
- "column": 7
+ "line": 350,
+ "column": 57
}
}
},
@@ -50374,17 +53179,17 @@
"postfix": false,
"binop": null
},
- "value": "reorderFrame",
- "start": 11700,
- "end": 11712,
+ "value": "getDataURL",
+ "start": 12534,
+ "end": 12544,
"loc": {
"start": {
- "line": 337,
- "column": 4
+ "line": 350,
+ "column": 57
},
"end": {
- "line": 337,
- "column": 16
+ "line": 350,
+ "column": 67
}
}
},
@@ -50400,24 +53205,24 @@
"postfix": false,
"binop": null
},
- "start": 11712,
- "end": 11713,
+ "start": 12544,
+ "end": 12545,
"loc": {
"start": {
- "line": 337,
- "column": 16
+ "line": 350,
+ "column": 67
},
"end": {
- "line": 337,
- "column": 17
+ "line": 350,
+ "column": 68
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50425,23 +53230,22 @@
"postfix": false,
"binop": null
},
- "value": "pCurrentIndex",
- "start": 11713,
- "end": 11726,
+ "start": 12545,
+ "end": 12546,
"loc": {
"start": {
- "line": 337,
- "column": 17
+ "line": 350,
+ "column": 68
},
"end": {
- "line": 337,
- "column": 30
+ "line": 350,
+ "column": 69
}
}
},
{
"type": {
- "label": ",",
+ "label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
@@ -50452,50 +53256,52 @@
"binop": null,
"updateContext": null
},
- "start": 11726,
- "end": 11727,
+ "start": 12546,
+ "end": 12547,
"loc": {
"start": {
- "line": 337,
- "column": 30
+ "line": 350,
+ "column": 69
},
"end": {
- "line": 337,
- "column": 31
+ "line": 350,
+ "column": 70
}
}
},
{
"type": {
- "label": "name",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "pIndex",
- "start": 11728,
- "end": 11734,
+ "value": "const",
+ "start": 12565,
+ "end": 12570,
"loc": {
"start": {
- "line": 337,
- "column": 32
+ "line": 351,
+ "column": 16
},
"end": {
- "line": 337,
- "column": 38
+ "line": 351,
+ "column": 21
}
}
},
{
"type": {
- "label": ")",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50503,122 +53309,122 @@
"postfix": false,
"binop": null
},
- "start": 11734,
- "end": 11735,
+ "value": "currentFrameDelay",
+ "start": 12571,
+ "end": 12588,
"loc": {
"start": {
- "line": 337,
- "column": 38
+ "line": 351,
+ "column": 22
},
"end": {
- "line": 337,
+ "line": 351,
"column": 39
}
}
},
{
"type": {
- "label": "{",
+ "label": "=",
"beforeExpr": true,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11736,
- "end": 11737,
+ "value": "=",
+ "start": 12589,
+ "end": 12590,
"loc": {
"start": {
- "line": 337,
+ "line": 351,
"column": 40
},
"end": {
- "line": 337,
+ "line": 351,
"column": 41
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "if",
- "start": 11747,
- "end": 11749,
+ "value": "currentFrame",
+ "start": 12591,
+ "end": 12603,
"loc": {
"start": {
- "line": 338,
- "column": 8
+ "line": 351,
+ "column": 42
},
"end": {
- "line": 338,
- "column": 10
+ "line": 351,
+ "column": 54
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11750,
- "end": 11751,
+ "start": 12603,
+ "end": 12604,
"loc": {
"start": {
- "line": 338,
- "column": 11
+ "line": 351,
+ "column": 54
},
"end": {
- "line": 338,
- "column": 12
+ "line": 351,
+ "column": 55
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "typeof",
- "start": 11751,
- "end": 11757,
+ "value": "getDelay",
+ "start": 12604,
+ "end": 12612,
"loc": {
"start": {
- "line": 338,
- "column": 12
+ "line": 351,
+ "column": 55
},
"end": {
- "line": 338,
- "column": 18
+ "line": 351,
+ "column": 63
}
}
},
@@ -50634,24 +53440,24 @@
"postfix": false,
"binop": null
},
- "start": 11757,
- "end": 11758,
+ "start": 12612,
+ "end": 12613,
"loc": {
"start": {
- "line": 338,
- "column": 18
+ "line": 351,
+ "column": 63
},
"end": {
- "line": 338,
- "column": 19
+ "line": 351,
+ "column": 64
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50659,75 +53465,76 @@
"postfix": false,
"binop": null
},
- "value": "pCurrentIndex",
- "start": 11758,
- "end": 11771,
+ "start": 12613,
+ "end": 12614,
"loc": {
"start": {
- "line": 338,
- "column": 19
+ "line": 351,
+ "column": 64
},
"end": {
- "line": 338,
- "column": 32
+ "line": 351,
+ "column": 65
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11771,
- "end": 11772,
+ "start": 12614,
+ "end": 12615,
"loc": {
"start": {
- "line": 338,
- "column": 32
+ "line": 351,
+ "column": 65
},
"end": {
- "line": 338,
- "column": 33
+ "line": 351,
+ "column": 66
}
}
},
{
"type": {
- "label": "==/!=",
- "beforeExpr": true,
+ "label": "const",
+ "keyword": "const",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
+ "binop": null,
"updateContext": null
},
- "value": "===",
- "start": 11773,
- "end": 11776,
+ "value": "const",
+ "start": 12635,
+ "end": 12640,
"loc": {
"start": {
- "line": 338,
- "column": 34
+ "line": 353,
+ "column": 16
},
"end": {
- "line": 338,
- "column": 37
+ "line": 353,
+ "column": 21
}
}
},
{
"type": {
- "label": "string",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -50735,99 +53542,97 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "number",
- "start": 11777,
- "end": 11785,
+ "value": "frameAtIndexDataURL",
+ "start": 12641,
+ "end": 12660,
"loc": {
"start": {
- "line": 338,
- "column": 38
+ "line": 353,
+ "column": 22
},
"end": {
- "line": 338,
- "column": 46
+ "line": 353,
+ "column": 41
}
}
},
{
"type": {
- "label": "&&",
+ "label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
- "binop": 2,
+ "binop": null,
"updateContext": null
},
- "value": "&&",
- "start": 11786,
- "end": 11788,
+ "value": "=",
+ "start": 12661,
+ "end": 12662,
"loc": {
"start": {
- "line": 338,
- "column": 47
+ "line": 353,
+ "column": 42
},
"end": {
- "line": 338,
- "column": 49
+ "line": 353,
+ "column": 43
}
}
},
{
"type": {
- "label": "typeof",
- "keyword": "typeof",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
- "prefix": true,
+ "prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "typeof",
- "start": 11789,
- "end": 11795,
+ "value": "frameAtIndex",
+ "start": 12663,
+ "end": 12675,
"loc": {
"start": {
- "line": 338,
- "column": 50
+ "line": 353,
+ "column": 44
},
"end": {
- "line": 338,
+ "line": 353,
"column": 56
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
+ "label": ".",
+ "beforeExpr": false,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11795,
- "end": 11796,
+ "start": 12675,
+ "end": 12676,
"loc": {
"start": {
- "line": 338,
+ "line": 353,
"column": 56
},
"end": {
- "line": 338,
+ "line": 353,
"column": 57
}
}
@@ -50844,25 +53649,25 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 11796,
- "end": 11802,
+ "value": "getDataURL",
+ "start": 12676,
+ "end": 12686,
"loc": {
"start": {
- "line": 338,
+ "line": 353,
"column": 57
},
"end": {
- "line": 338,
- "column": 63
+ "line": 353,
+ "column": 67
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
- "startsExpr": false,
+ "label": "(",
+ "beforeExpr": true,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50870,51 +53675,49 @@
"postfix": false,
"binop": null
},
- "start": 11802,
- "end": 11803,
+ "start": 12686,
+ "end": 12687,
"loc": {
"start": {
- "line": 338,
- "column": 63
+ "line": 353,
+ "column": 67
},
"end": {
- "line": 338,
- "column": 64
+ "line": 353,
+ "column": 68
}
}
},
{
"type": {
- "label": "==/!=",
- "beforeExpr": true,
+ "label": ")",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": 6,
- "updateContext": null
+ "binop": null
},
- "value": "===",
- "start": 11804,
- "end": 11807,
+ "start": 12687,
+ "end": 12688,
"loc": {
"start": {
- "line": 338,
- "column": 65
+ "line": 353,
+ "column": 68
},
"end": {
- "line": 338,
- "column": 68
+ "line": 353,
+ "column": 69
}
}
},
{
"type": {
- "label": "string",
- "beforeExpr": false,
- "startsExpr": true,
+ "label": ";",
+ "beforeExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -50923,23 +53726,23 @@
"binop": null,
"updateContext": null
},
- "value": "number",
- "start": 11808,
- "end": 11816,
+ "start": 12688,
+ "end": 12689,
"loc": {
"start": {
- "line": 338,
+ "line": 353,
"column": 69
},
"end": {
- "line": 338,
- "column": 77
+ "line": 353,
+ "column": 70
}
}
},
{
"type": {
- "label": ")",
+ "label": "const",
+ "keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -50947,25 +53750,27 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11816,
- "end": 11817,
+ "value": "const",
+ "start": 12707,
+ "end": 12712,
"loc": {
"start": {
- "line": 338,
- "column": 77
+ "line": 354,
+ "column": 16
},
"end": {
- "line": 338,
- "column": 78
+ "line": 354,
+ "column": 21
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -50974,92 +53779,50 @@
"postfix": false,
"binop": null
},
- "start": 11818,
- "end": 11819,
- "loc": {
- "start": {
- "line": 338,
- "column": 79
- },
- "end": {
- "line": 338,
- "column": 80
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " We check if there is a valid frame at the current index and at the index we want to swap with.",
- "start": 11833,
- "end": 11930,
+ "value": "frameAtIndexDelay",
+ "start": 12713,
+ "end": 12730,
"loc": {
"start": {
- "line": 339,
- "column": 12
+ "line": 354,
+ "column": 22
},
"end": {
- "line": 339,
- "column": 109
+ "line": 354,
+ "column": 39
}
}
},
{
"type": {
- "label": "if",
- "keyword": "if",
- "beforeExpr": false,
+ "label": "=",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
- "isAssign": false,
+ "isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
- "value": "if",
- "start": 11944,
- "end": 11946,
- "loc": {
- "start": {
- "line": 340,
- "column": 12
- },
- "end": {
- "line": 340,
- "column": 14
- }
- }
- },
- {
- "type": {
- "label": "(",
- "beforeExpr": true,
- "startsExpr": true,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": null
- },
- "start": 11947,
- "end": 11948,
+ "value": "=",
+ "start": 12731,
+ "end": 12732,
"loc": {
"start": {
- "line": 340,
- "column": 15
+ "line": 354,
+ "column": 40
},
"end": {
- "line": 340,
- "column": 16
+ "line": 354,
+ "column": 41
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -51067,20 +53830,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 11948,
- "end": 11952,
+ "value": "frameAtIndex",
+ "start": 12733,
+ "end": 12745,
"loc": {
"start": {
- "line": 340,
- "column": 16
+ "line": 354,
+ "column": 42
},
"end": {
- "line": 340,
- "column": 20
+ "line": 354,
+ "column": 54
}
}
},
@@ -51097,16 +53859,16 @@
"binop": null,
"updateContext": null
},
- "start": 11952,
- "end": 11953,
+ "start": 12745,
+ "end": 12746,
"loc": {
"start": {
- "line": 340,
- "column": 20
+ "line": 354,
+ "column": 54
},
"end": {
- "line": 340,
- "column": 21
+ "line": 354,
+ "column": 55
}
}
},
@@ -51122,23 +53884,23 @@
"postfix": false,
"binop": null
},
- "value": "frames",
- "start": 11953,
- "end": 11959,
+ "value": "getDelay",
+ "start": 12746,
+ "end": 12754,
"loc": {
"start": {
- "line": 340,
- "column": 21
+ "line": 354,
+ "column": 55
},
"end": {
- "line": 340,
- "column": 27
+ "line": 354,
+ "column": 63
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -51146,27 +53908,26 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 11959,
- "end": 11960,
+ "start": 12754,
+ "end": 12755,
"loc": {
"start": {
- "line": 340,
- "column": 27
+ "line": 354,
+ "column": 63
},
"end": {
- "line": 340,
- "column": 28
+ "line": 354,
+ "column": 64
}
}
},
{
"type": {
- "label": "name",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -51174,24 +53935,23 @@
"postfix": false,
"binop": null
},
- "value": "pCurrentIndex",
- "start": 11960,
- "end": 11973,
+ "start": 12755,
+ "end": 12756,
"loc": {
"start": {
- "line": 340,
- "column": 28
+ "line": 354,
+ "column": 64
},
"end": {
- "line": 340,
- "column": 41
+ "line": 354,
+ "column": 65
}
}
},
{
"type": {
- "label": "]",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -51201,50 +53961,38 @@
"binop": null,
"updateContext": null
},
- "start": 11973,
- "end": 11974,
+ "start": 12756,
+ "end": 12757,
"loc": {
"start": {
- "line": 340,
- "column": 41
- },
- "end": {
- "line": 340,
- "column": 42
- }
- }
- },
- {
- "type": {
- "label": "&&",
- "beforeExpr": true,
- "startsExpr": false,
- "rightAssociative": false,
- "isLoop": false,
- "isAssign": false,
- "prefix": false,
- "postfix": false,
- "binop": 2,
- "updateContext": null
- },
- "value": "&&",
- "start": 11975,
- "end": 11977,
+ "line": 354,
+ "column": 65
+ },
+ "end": {
+ "line": 354,
+ "column": 66
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Swap data from frame",
+ "start": 12777,
+ "end": 12800,
"loc": {
"start": {
- "line": 340,
- "column": 43
+ "line": 356,
+ "column": 16
},
"end": {
- "line": 340,
- "column": 45
+ "line": 356,
+ "column": 39
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
@@ -51252,20 +54000,19 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 11978,
- "end": 11982,
+ "value": "currentFrame",
+ "start": 12818,
+ "end": 12830,
"loc": {
"start": {
- "line": 340,
- "column": 46
+ "line": 357,
+ "column": 16
},
"end": {
- "line": 340,
- "column": 50
+ "line": 357,
+ "column": 28
}
}
},
@@ -51282,16 +54029,16 @@
"binop": null,
"updateContext": null
},
- "start": 11982,
- "end": 11983,
+ "start": 12830,
+ "end": 12831,
"loc": {
"start": {
- "line": 340,
- "column": 50
+ "line": 357,
+ "column": 28
},
"end": {
- "line": 340,
- "column": 51
+ "line": 357,
+ "column": 29
}
}
},
@@ -51307,23 +54054,23 @@
"postfix": false,
"binop": null
},
- "value": "frames",
- "start": 11983,
- "end": 11989,
+ "value": "setDataURL",
+ "start": 12831,
+ "end": 12841,
"loc": {
"start": {
- "line": 340,
- "column": 51
+ "line": 357,
+ "column": 29
},
"end": {
- "line": 340,
- "column": 57
+ "line": 357,
+ "column": 39
}
}
},
{
"type": {
- "label": "[",
+ "label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
@@ -51331,19 +54078,18 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 11989,
- "end": 11990,
+ "start": 12841,
+ "end": 12842,
"loc": {
"start": {
- "line": 340,
- "column": 57
+ "line": 357,
+ "column": 39
},
"end": {
- "line": 340,
- "column": 58
+ "line": 357,
+ "column": 40
}
}
},
@@ -51359,23 +54105,23 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 11990,
- "end": 11996,
+ "value": "frameAtIndexDataURL",
+ "start": 12842,
+ "end": 12861,
"loc": {
"start": {
- "line": 340,
- "column": 58
+ "line": 357,
+ "column": 40
},
"end": {
- "line": 340,
- "column": 64
+ "line": 357,
+ "column": 59
}
}
},
{
"type": {
- "label": "]",
+ "label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
@@ -51383,51 +54129,51 @@
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 11996,
- "end": 11997,
+ "start": 12861,
+ "end": 12862,
"loc": {
"start": {
- "line": 340,
- "column": 64
+ "line": 357,
+ "column": 59
},
"end": {
- "line": 340,
- "column": 65
+ "line": 357,
+ "column": 60
}
}
},
{
"type": {
- "label": ")",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "start": 11997,
- "end": 11998,
+ "start": 12862,
+ "end": 12863,
"loc": {
"start": {
- "line": 340,
- "column": 65
+ "line": 357,
+ "column": 60
},
"end": {
- "line": 340,
- "column": 66
+ "line": 357,
+ "column": 61
}
}
},
{
"type": {
- "label": "{",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -51436,91 +54182,76 @@
"postfix": false,
"binop": null
},
- "start": 11999,
- "end": 12000,
- "loc": {
- "start": {
- "line": 340,
- "column": 67
- },
- "end": {
- "line": 340,
- "column": 68
- }
- }
- },
- {
- "type": "CommentLine",
- "value": " Swaps the frames",
- "start": 12018,
- "end": 12037,
+ "value": "currentFrame",
+ "start": 12881,
+ "end": 12893,
"loc": {
"start": {
- "line": 341,
+ "line": 358,
"column": 16
},
"end": {
- "line": 341,
- "column": 35
+ "line": 358,
+ "column": 28
}
}
},
{
"type": {
- "label": "name",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null
+ "binop": null,
+ "updateContext": null
},
- "value": "Icon",
- "start": 12055,
- "end": 12059,
+ "start": 12893,
+ "end": 12894,
"loc": {
"start": {
- "line": 342,
- "column": 16
+ "line": 358,
+ "column": 28
},
"end": {
- "line": 342,
- "column": 20
+ "line": 358,
+ "column": 29
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 12059,
- "end": 12060,
+ "value": "setDelay",
+ "start": 12894,
+ "end": 12902,
"loc": {
"start": {
- "line": 342,
- "column": 20
+ "line": 358,
+ "column": 29
},
"end": {
- "line": 342,
- "column": 21
+ "line": 358,
+ "column": 37
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -51529,24 +54260,23 @@
"postfix": false,
"binop": null
},
- "value": "swapArrayElements",
- "start": 12060,
- "end": 12077,
+ "start": 12902,
+ "end": 12903,
"loc": {
"start": {
- "line": 342,
- "column": 21
+ "line": 358,
+ "column": 37
},
"end": {
- "line": 342,
+ "line": 358,
"column": 38
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -51555,51 +54285,49 @@
"postfix": false,
"binop": null
},
- "start": 12077,
- "end": 12078,
+ "value": "frameAtIndexDelay",
+ "start": 12903,
+ "end": 12920,
"loc": {
"start": {
- "line": 342,
+ "line": 358,
"column": 38
},
"end": {
- "line": 342,
- "column": 39
+ "line": 358,
+ "column": 55
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ")",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "value": "this",
- "start": 12078,
- "end": 12082,
+ "start": 12920,
+ "end": 12921,
"loc": {
"start": {
- "line": 342,
- "column": 39
+ "line": 358,
+ "column": 55
},
"end": {
- "line": 342,
- "column": 43
+ "line": 358,
+ "column": 56
}
}
},
{
"type": {
- "label": ".",
- "beforeExpr": false,
+ "label": ";",
+ "beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -51609,16 +54337,32 @@
"binop": null,
"updateContext": null
},
- "start": 12082,
- "end": 12083,
+ "start": 12921,
+ "end": 12922,
"loc": {
"start": {
- "line": 342,
- "column": 43
+ "line": 358,
+ "column": 56
},
"end": {
- "line": 342,
- "column": 44
+ "line": 358,
+ "column": 57
+ }
+ }
+ },
+ {
+ "type": "CommentLine",
+ "value": " Swap data to frame",
+ "start": 12940,
+ "end": 12961,
+ "loc": {
+ "start": {
+ "line": 359,
+ "column": 16
+ },
+ "end": {
+ "line": 359,
+ "column": 37
}
}
},
@@ -51634,24 +54378,24 @@
"postfix": false,
"binop": null
},
- "value": "frames",
- "start": 12083,
- "end": 12089,
+ "value": "frameAtIndex",
+ "start": 12979,
+ "end": 12991,
"loc": {
"start": {
- "line": 342,
- "column": 44
+ "line": 360,
+ "column": 16
},
"end": {
- "line": 342,
- "column": 50
+ "line": 360,
+ "column": 28
}
}
},
{
"type": {
- "label": ",",
- "beforeExpr": true,
+ "label": ".",
+ "beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
@@ -51661,16 +54405,16 @@
"binop": null,
"updateContext": null
},
- "start": 12089,
- "end": 12090,
+ "start": 12991,
+ "end": 12992,
"loc": {
"start": {
- "line": 342,
- "column": 50
+ "line": 360,
+ "column": 28
},
"end": {
- "line": 342,
- "column": 51
+ "line": 360,
+ "column": 29
}
}
},
@@ -51686,43 +54430,42 @@
"postfix": false,
"binop": null
},
- "value": "pCurrentIndex",
- "start": 12091,
- "end": 12104,
+ "value": "setDataURL",
+ "start": 12992,
+ "end": 13002,
"loc": {
"start": {
- "line": 342,
- "column": 52
+ "line": 360,
+ "column": 29
},
"end": {
- "line": 342,
- "column": 65
+ "line": 360,
+ "column": 39
}
}
},
{
"type": {
- "label": ",",
+ "label": "(",
"beforeExpr": true,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 12104,
- "end": 12105,
+ "start": 13002,
+ "end": 13003,
"loc": {
"start": {
- "line": 342,
- "column": 65
+ "line": 360,
+ "column": 39
},
"end": {
- "line": 342,
- "column": 66
+ "line": 360,
+ "column": 40
}
}
},
@@ -51738,17 +54481,17 @@
"postfix": false,
"binop": null
},
- "value": "pIndex",
- "start": 12106,
- "end": 12112,
+ "value": "currentFrameDataURL",
+ "start": 13003,
+ "end": 13022,
"loc": {
"start": {
- "line": 342,
- "column": 67
+ "line": 360,
+ "column": 40
},
"end": {
- "line": 342,
- "column": 73
+ "line": 360,
+ "column": 59
}
}
},
@@ -51764,16 +54507,16 @@
"postfix": false,
"binop": null
},
- "start": 12112,
- "end": 12113,
+ "start": 13022,
+ "end": 13023,
"loc": {
"start": {
- "line": 342,
- "column": 73
+ "line": 360,
+ "column": 59
},
"end": {
- "line": 342,
- "column": 74
+ "line": 360,
+ "column": 60
}
}
},
@@ -51790,41 +54533,50 @@
"binop": null,
"updateContext": null
},
- "start": 12113,
- "end": 12114,
+ "start": 13023,
+ "end": 13024,
"loc": {
"start": {
- "line": 342,
- "column": 74
+ "line": 360,
+ "column": 60
},
"end": {
- "line": 342,
- "column": 75
+ "line": 360,
+ "column": 61
}
}
},
{
- "type": "CommentLine",
- "value": " Re-index frames after a change",
- "start": 12132,
- "end": 12165,
+ "type": {
+ "label": "name",
+ "beforeExpr": false,
+ "startsExpr": true,
+ "rightAssociative": false,
+ "isLoop": false,
+ "isAssign": false,
+ "prefix": false,
+ "postfix": false,
+ "binop": null
+ },
+ "value": "frameAtIndex",
+ "start": 13042,
+ "end": 13054,
"loc": {
"start": {
- "line": 343,
+ "line": 361,
"column": 16
},
"end": {
- "line": 343,
- "column": 49
+ "line": 361,
+ "column": 28
}
}
},
{
"type": {
- "label": "this",
- "keyword": "this",
+ "label": ".",
"beforeExpr": false,
- "startsExpr": true,
+ "startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
@@ -51833,50 +54585,49 @@
"binop": null,
"updateContext": null
},
- "value": "this",
- "start": 12183,
- "end": 12187,
+ "start": 13054,
+ "end": 13055,
"loc": {
"start": {
- "line": 344,
- "column": 16
+ "line": 361,
+ "column": 28
},
"end": {
- "line": 344,
- "column": 20
+ "line": 361,
+ "column": 29
}
}
},
{
"type": {
- "label": ".",
+ "label": "name",
"beforeExpr": false,
- "startsExpr": false,
+ "startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
- "binop": null,
- "updateContext": null
+ "binop": null
},
- "start": 12187,
- "end": 12188,
+ "value": "setDelay",
+ "start": 13055,
+ "end": 13063,
"loc": {
"start": {
- "line": 344,
- "column": 20
+ "line": 361,
+ "column": 29
},
"end": {
- "line": 344,
- "column": 21
+ "line": 361,
+ "column": 37
}
}
},
{
"type": {
- "label": "name",
- "beforeExpr": false,
+ "label": "(",
+ "beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -51885,24 +54636,23 @@
"postfix": false,
"binop": null
},
- "value": "indexFrames",
- "start": 12188,
- "end": 12199,
+ "start": 13063,
+ "end": 13064,
"loc": {
"start": {
- "line": 344,
- "column": 21
+ "line": 361,
+ "column": 37
},
"end": {
- "line": 344,
- "column": 32
+ "line": 361,
+ "column": 38
}
}
},
{
"type": {
- "label": "(",
- "beforeExpr": true,
+ "label": "name",
+ "beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
@@ -51911,16 +54661,17 @@
"postfix": false,
"binop": null
},
- "start": 12199,
- "end": 12200,
+ "value": "currentFrameDelay",
+ "start": 13064,
+ "end": 13081,
"loc": {
"start": {
- "line": 344,
- "column": 32
+ "line": 361,
+ "column": 38
},
"end": {
- "line": 344,
- "column": 33
+ "line": 361,
+ "column": 55
}
}
},
@@ -51936,16 +54687,16 @@
"postfix": false,
"binop": null
},
- "start": 12200,
- "end": 12201,
+ "start": 13081,
+ "end": 13082,
"loc": {
"start": {
- "line": 344,
- "column": 33
+ "line": 361,
+ "column": 55
},
"end": {
- "line": 344,
- "column": 34
+ "line": 361,
+ "column": 56
}
}
},
@@ -51962,16 +54713,16 @@
"binop": null,
"updateContext": null
},
- "start": 12201,
- "end": 12202,
+ "start": 13082,
+ "end": 13083,
"loc": {
"start": {
- "line": 344,
- "column": 34
+ "line": 361,
+ "column": 56
},
"end": {
- "line": 344,
- "column": 35
+ "line": 361,
+ "column": 57
}
}
},
@@ -51987,15 +54738,15 @@
"postfix": false,
"binop": null
},
- "start": 12216,
- "end": 12217,
+ "start": 13097,
+ "end": 13098,
"loc": {
"start": {
- "line": 345,
+ "line": 362,
"column": 12
},
"end": {
- "line": 345,
+ "line": 362,
"column": 13
}
}
@@ -52015,15 +54766,15 @@
"updateContext": null
},
"value": "else",
- "start": 12218,
- "end": 12222,
+ "start": 13099,
+ "end": 13103,
"loc": {
"start": {
- "line": 345,
+ "line": 362,
"column": 14
},
"end": {
- "line": 345,
+ "line": 362,
"column": 18
}
}
@@ -52040,15 +54791,15 @@
"postfix": false,
"binop": null
},
- "start": 12223,
- "end": 12224,
+ "start": 13104,
+ "end": 13105,
"loc": {
"start": {
- "line": 345,
+ "line": 362,
"column": 19
},
"end": {
- "line": 345,
+ "line": 362,
"column": 20
}
}
@@ -52066,15 +54817,15 @@
"binop": null
},
"value": "VYI",
- "start": 12242,
- "end": 12245,
+ "start": 13123,
+ "end": 13126,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 16
},
"end": {
- "line": 346,
+ "line": 363,
"column": 19
}
}
@@ -52092,15 +54843,15 @@
"binop": null,
"updateContext": null
},
- "start": 12245,
- "end": 12246,
+ "start": 13126,
+ "end": 13127,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 19
},
"end": {
- "line": 346,
+ "line": 363,
"column": 20
}
}
@@ -52118,15 +54869,15 @@
"binop": null
},
"value": "logger",
- "start": 12246,
- "end": 12252,
+ "start": 13127,
+ "end": 13133,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 20
},
"end": {
- "line": 346,
+ "line": 363,
"column": 26
}
}
@@ -52144,15 +54895,15 @@
"binop": null,
"updateContext": null
},
- "start": 12252,
- "end": 12253,
+ "start": 13133,
+ "end": 13134,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 26
},
"end": {
- "line": 346,
+ "line": 363,
"column": 27
}
}
@@ -52170,15 +54921,15 @@
"binop": null
},
"value": "prefix",
- "start": 12253,
- "end": 12259,
+ "start": 13134,
+ "end": 13140,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 27
},
"end": {
- "line": 346,
+ "line": 363,
"column": 33
}
}
@@ -52195,15 +54946,15 @@
"postfix": false,
"binop": null
},
- "start": 12259,
- "end": 12260,
+ "start": 13140,
+ "end": 13141,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 33
},
"end": {
- "line": 346,
+ "line": 363,
"column": 34
}
}
@@ -52222,15 +54973,15 @@
"updateContext": null
},
"value": "VYI-Module",
- "start": 12260,
- "end": 12272,
+ "start": 13141,
+ "end": 13153,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 34
},
"end": {
- "line": 346,
+ "line": 363,
"column": 46
}
}
@@ -52247,15 +54998,15 @@
"postfix": false,
"binop": null
},
- "start": 12272,
- "end": 12273,
+ "start": 13153,
+ "end": 13154,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 46
},
"end": {
- "line": 346,
+ "line": 363,
"column": 47
}
}
@@ -52273,15 +55024,15 @@
"binop": null,
"updateContext": null
},
- "start": 12273,
- "end": 12274,
+ "start": 13154,
+ "end": 13155,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 47
},
"end": {
- "line": 346,
+ "line": 363,
"column": 48
}
}
@@ -52299,15 +55050,15 @@
"binop": null
},
"value": "error",
- "start": 12274,
- "end": 12279,
+ "start": 13155,
+ "end": 13160,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 48
},
"end": {
- "line": 346,
+ "line": 363,
"column": 53
}
}
@@ -52324,15 +55075,15 @@
"postfix": false,
"binop": null
},
- "start": 12279,
- "end": 12280,
+ "start": 13160,
+ "end": 13161,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 53
},
"end": {
- "line": 346,
+ "line": 363,
"column": 54
}
}
@@ -52351,15 +55102,15 @@
"updateContext": null
},
"value": "There was no frame found at pCurrentIndex, or there was no frame found at pIndex!",
- "start": 12280,
- "end": 12363,
+ "start": 13161,
+ "end": 13244,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 54
},
"end": {
- "line": 346,
+ "line": 363,
"column": 137
}
}
@@ -52376,15 +55127,15 @@
"postfix": false,
"binop": null
},
- "start": 12363,
- "end": 12364,
+ "start": 13244,
+ "end": 13245,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 137
},
"end": {
- "line": 346,
+ "line": 363,
"column": 138
}
}
@@ -52402,15 +55153,15 @@
"binop": null,
"updateContext": null
},
- "start": 12364,
- "end": 12365,
+ "start": 13245,
+ "end": 13246,
"loc": {
"start": {
- "line": 346,
+ "line": 363,
"column": 138
},
"end": {
- "line": 346,
+ "line": 363,
"column": 139
}
}
@@ -52427,15 +55178,15 @@
"postfix": false,
"binop": null
},
- "start": 12379,
- "end": 12380,
+ "start": 13260,
+ "end": 13261,
"loc": {
"start": {
- "line": 347,
+ "line": 364,
"column": 12
},
"end": {
- "line": 347,
+ "line": 364,
"column": 13
}
}
@@ -52452,15 +55203,15 @@
"postfix": false,
"binop": null
},
- "start": 12390,
- "end": 12391,
+ "start": 13271,
+ "end": 13272,
"loc": {
"start": {
- "line": 348,
+ "line": 365,
"column": 8
},
"end": {
- "line": 348,
+ "line": 365,
"column": 9
}
}
@@ -52480,15 +55231,15 @@
"updateContext": null
},
"value": "else",
- "start": 12392,
- "end": 12396,
+ "start": 13273,
+ "end": 13277,
"loc": {
"start": {
- "line": 348,
+ "line": 365,
"column": 10
},
"end": {
- "line": 348,
+ "line": 365,
"column": 14
}
}
@@ -52505,15 +55256,15 @@
"postfix": false,
"binop": null
},
- "start": 12397,
- "end": 12398,
+ "start": 13278,
+ "end": 13279,
"loc": {
"start": {
- "line": 348,
+ "line": 365,
"column": 15
},
"end": {
- "line": 348,
+ "line": 365,
"column": 16
}
}
@@ -52531,15 +55282,15 @@
"binop": null
},
"value": "VYI",
- "start": 12412,
- "end": 12415,
+ "start": 13293,
+ "end": 13296,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 12
},
"end": {
- "line": 349,
+ "line": 366,
"column": 15
}
}
@@ -52557,15 +55308,15 @@
"binop": null,
"updateContext": null
},
- "start": 12415,
- "end": 12416,
+ "start": 13296,
+ "end": 13297,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 15
},
"end": {
- "line": 349,
+ "line": 366,
"column": 16
}
}
@@ -52583,15 +55334,15 @@
"binop": null
},
"value": "logger",
- "start": 12416,
- "end": 12422,
+ "start": 13297,
+ "end": 13303,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 16
},
"end": {
- "line": 349,
+ "line": 366,
"column": 22
}
}
@@ -52609,15 +55360,15 @@
"binop": null,
"updateContext": null
},
- "start": 12422,
- "end": 12423,
+ "start": 13303,
+ "end": 13304,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 22
},
"end": {
- "line": 349,
+ "line": 366,
"column": 23
}
}
@@ -52635,15 +55386,15 @@
"binop": null
},
"value": "prefix",
- "start": 12423,
- "end": 12429,
+ "start": 13304,
+ "end": 13310,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 23
},
"end": {
- "line": 349,
+ "line": 366,
"column": 29
}
}
@@ -52660,15 +55411,15 @@
"postfix": false,
"binop": null
},
- "start": 12429,
- "end": 12430,
+ "start": 13310,
+ "end": 13311,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 29
},
"end": {
- "line": 349,
+ "line": 366,
"column": 30
}
}
@@ -52687,15 +55438,15 @@
"updateContext": null
},
"value": "VYI-Module",
- "start": 12430,
- "end": 12442,
+ "start": 13311,
+ "end": 13323,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 30
},
"end": {
- "line": 349,
+ "line": 366,
"column": 42
}
}
@@ -52712,15 +55463,15 @@
"postfix": false,
"binop": null
},
- "start": 12442,
- "end": 12443,
+ "start": 13323,
+ "end": 13324,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 42
},
"end": {
- "line": 349,
+ "line": 366,
"column": 43
}
}
@@ -52738,15 +55489,15 @@
"binop": null,
"updateContext": null
},
- "start": 12443,
- "end": 12444,
+ "start": 13324,
+ "end": 13325,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 43
},
"end": {
- "line": 349,
+ "line": 366,
"column": 44
}
}
@@ -52764,15 +55515,15 @@
"binop": null
},
"value": "error",
- "start": 12444,
- "end": 12449,
+ "start": 13325,
+ "end": 13330,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 44
},
"end": {
- "line": 349,
+ "line": 366,
"column": 49
}
}
@@ -52789,15 +55540,15 @@
"postfix": false,
"binop": null
},
- "start": 12449,
- "end": 12450,
+ "start": 13330,
+ "end": 13331,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 49
},
"end": {
- "line": 349,
+ "line": 366,
"column": 50
}
}
@@ -52816,15 +55567,15 @@
"updateContext": null
},
"value": "Invalid type used!",
- "start": 12450,
- "end": 12470,
+ "start": 13331,
+ "end": 13351,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 50
},
"end": {
- "line": 349,
+ "line": 366,
"column": 70
}
}
@@ -52841,15 +55592,15 @@
"postfix": false,
"binop": null
},
- "start": 12470,
- "end": 12471,
+ "start": 13351,
+ "end": 13352,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 70
},
"end": {
- "line": 349,
+ "line": 366,
"column": 71
}
}
@@ -52867,15 +55618,15 @@
"binop": null,
"updateContext": null
},
- "start": 12471,
- "end": 12472,
+ "start": 13352,
+ "end": 13353,
"loc": {
"start": {
- "line": 349,
+ "line": 366,
"column": 71
},
"end": {
- "line": 349,
+ "line": 366,
"column": 72
}
}
@@ -52892,15 +55643,15 @@
"postfix": false,
"binop": null
},
- "start": 12482,
- "end": 12483,
+ "start": 13363,
+ "end": 13364,
"loc": {
"start": {
- "line": 350,
+ "line": 367,
"column": 8
},
"end": {
- "line": 350,
+ "line": 367,
"column": 9
}
}
@@ -52920,15 +55671,15 @@
"updateContext": null
},
"value": "return",
- "start": 12493,
- "end": 12499,
+ "start": 13374,
+ "end": 13380,
"loc": {
"start": {
- "line": 351,
+ "line": 368,
"column": 8
},
"end": {
- "line": 351,
+ "line": 368,
"column": 14
}
}
@@ -52948,15 +55699,15 @@
"updateContext": null
},
"value": "this",
- "start": 12500,
- "end": 12504,
+ "start": 13381,
+ "end": 13385,
"loc": {
"start": {
- "line": 351,
+ "line": 368,
"column": 15
},
"end": {
- "line": 351,
+ "line": 368,
"column": 19
}
}
@@ -52974,15 +55725,15 @@
"binop": null,
"updateContext": null
},
- "start": 12504,
- "end": 12505,
+ "start": 13385,
+ "end": 13386,
"loc": {
"start": {
- "line": 351,
+ "line": 368,
"column": 19
},
"end": {
- "line": 351,
+ "line": 368,
"column": 20
}
}
@@ -52999,31 +55750,31 @@
"postfix": false,
"binop": null
},
- "start": 12511,
- "end": 12512,
+ "start": 13392,
+ "end": 13393,
"loc": {
"start": {
- "line": 352,
+ "line": 369,
"column": 4
},
"end": {
- "line": 352,
+ "line": 369,
"column": 5
}
}
},
{
"type": "CommentBlock",
- "value": "*\r\n * Gets the frame existing at pIndex.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
- "start": 12518,
- "end": 12699,
+ "value": "*\r\n * Gets the frame existing at pIndex.\r\n * Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\r\n * If you are trying to get \"frame\" 1. Then you will need to use the icon's delay and data url. As that is frame 0.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n ",
+ "start": 13399,
+ "end": 13801,
"loc": {
"start": {
- "line": 353,
+ "line": 370,
"column": 4
},
"end": {
- "line": 357,
+ "line": 376,
"column": 7
}
}
@@ -53041,15 +55792,15 @@
"binop": null
},
"value": "getFrame",
- "start": 12705,
- "end": 12713,
+ "start": 13807,
+ "end": 13815,
"loc": {
"start": {
- "line": 358,
+ "line": 377,
"column": 4
},
"end": {
- "line": 358,
+ "line": 377,
"column": 12
}
}
@@ -53066,15 +55817,15 @@
"postfix": false,
"binop": null
},
- "start": 12713,
- "end": 12714,
+ "start": 13815,
+ "end": 13816,
"loc": {
"start": {
- "line": 358,
+ "line": 377,
"column": 12
},
"end": {
- "line": 358,
+ "line": 377,
"column": 13
}
}
@@ -53092,15 +55843,15 @@
"binop": null
},
"value": "pIndex",
- "start": 12714,
- "end": 12720,
+ "start": 13816,
+ "end": 13822,
"loc": {
"start": {
- "line": 358,
+ "line": 377,
"column": 13
},
"end": {
- "line": 358,
+ "line": 377,
"column": 19
}
}
@@ -53117,15 +55868,15 @@
"postfix": false,
"binop": null
},
- "start": 12720,
- "end": 12721,
+ "start": 13822,
+ "end": 13823,
"loc": {
"start": {
- "line": 358,
+ "line": 377,
"column": 19
},
"end": {
- "line": 358,
+ "line": 377,
"column": 20
}
}
@@ -53142,35 +55893,19 @@
"postfix": false,
"binop": null
},
- "start": 12722,
- "end": 12723,
+ "start": 13824,
+ "end": 13825,
"loc": {
"start": {
- "line": 358,
+ "line": 377,
"column": 21
},
"end": {
- "line": 358,
+ "line": 377,
"column": 22
}
}
},
- {
- "type": "CommentLine",
- "value": " Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.",
- "start": 12733,
- "end": 12827,
- "loc": {
- "start": {
- "line": 359,
- "column": 8
- },
- "end": {
- "line": 359,
- "column": 102
- }
- }
- },
{
"type": {
"label": "if",
@@ -53186,15 +55921,15 @@
"updateContext": null
},
"value": "if",
- "start": 12837,
- "end": 12839,
+ "start": 13835,
+ "end": 13837,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 8
},
"end": {
- "line": 360,
+ "line": 378,
"column": 10
}
}
@@ -53211,15 +55946,15 @@
"postfix": false,
"binop": null
},
- "start": 12840,
- "end": 12841,
+ "start": 13838,
+ "end": 13839,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 11
},
"end": {
- "line": 360,
+ "line": 378,
"column": 12
}
}
@@ -53239,15 +55974,15 @@
"updateContext": null
},
"value": "typeof",
- "start": 12841,
- "end": 12847,
+ "start": 13839,
+ "end": 13845,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 12
},
"end": {
- "line": 360,
+ "line": 378,
"column": 18
}
}
@@ -53264,15 +55999,15 @@
"postfix": false,
"binop": null
},
- "start": 12847,
- "end": 12848,
+ "start": 13845,
+ "end": 13846,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 18
},
"end": {
- "line": 360,
+ "line": 378,
"column": 19
}
}
@@ -53290,15 +56025,15 @@
"binop": null
},
"value": "pIndex",
- "start": 12848,
- "end": 12854,
+ "start": 13846,
+ "end": 13852,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 19
},
"end": {
- "line": 360,
+ "line": 378,
"column": 25
}
}
@@ -53315,15 +56050,15 @@
"postfix": false,
"binop": null
},
- "start": 12854,
- "end": 12855,
+ "start": 13852,
+ "end": 13853,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 25
},
"end": {
- "line": 360,
+ "line": 378,
"column": 26
}
}
@@ -53342,15 +56077,15 @@
"updateContext": null
},
"value": "===",
- "start": 12856,
- "end": 12859,
+ "start": 13854,
+ "end": 13857,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 27
},
"end": {
- "line": 360,
+ "line": 378,
"column": 30
}
}
@@ -53369,15 +56104,15 @@
"updateContext": null
},
"value": "number",
- "start": 12860,
- "end": 12868,
+ "start": 13858,
+ "end": 13866,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 31
},
"end": {
- "line": 360,
+ "line": 378,
"column": 39
}
}
@@ -53394,15 +56129,15 @@
"postfix": false,
"binop": null
},
- "start": 12868,
- "end": 12869,
+ "start": 13866,
+ "end": 13867,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 39
},
"end": {
- "line": 360,
+ "line": 378,
"column": 40
}
}
@@ -53419,15 +56154,15 @@
"postfix": false,
"binop": null
},
- "start": 12870,
- "end": 12871,
+ "start": 13868,
+ "end": 13869,
"loc": {
"start": {
- "line": 360,
+ "line": 378,
"column": 41
},
"end": {
- "line": 360,
+ "line": 378,
"column": 42
}
}
@@ -53447,15 +56182,15 @@
"updateContext": null
},
"value": "return",
- "start": 12885,
- "end": 12891,
+ "start": 13883,
+ "end": 13889,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 12
},
"end": {
- "line": 361,
+ "line": 379,
"column": 18
}
}
@@ -53475,15 +56210,15 @@
"updateContext": null
},
"value": "this",
- "start": 12892,
- "end": 12896,
+ "start": 13890,
+ "end": 13894,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 19
},
"end": {
- "line": 361,
+ "line": 379,
"column": 23
}
}
@@ -53501,15 +56236,15 @@
"binop": null,
"updateContext": null
},
- "start": 12896,
- "end": 12897,
+ "start": 13894,
+ "end": 13895,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 23
},
"end": {
- "line": 361,
+ "line": 379,
"column": 24
}
}
@@ -53527,15 +56262,15 @@
"binop": null
},
"value": "frames",
- "start": 12897,
- "end": 12903,
+ "start": 13895,
+ "end": 13901,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 24
},
"end": {
- "line": 361,
+ "line": 379,
"column": 30
}
}
@@ -53553,15 +56288,15 @@
"binop": null,
"updateContext": null
},
- "start": 12903,
- "end": 12904,
+ "start": 13901,
+ "end": 13902,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 30
},
"end": {
- "line": 361,
+ "line": 379,
"column": 31
}
}
@@ -53579,15 +56314,15 @@
"binop": null
},
"value": "pIndex",
- "start": 12904,
- "end": 12910,
+ "start": 13902,
+ "end": 13908,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 31
},
"end": {
- "line": 361,
+ "line": 379,
"column": 37
}
}
@@ -53605,15 +56340,15 @@
"binop": null,
"updateContext": null
},
- "start": 12910,
- "end": 12911,
+ "start": 13908,
+ "end": 13909,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 37
},
"end": {
- "line": 361,
+ "line": 379,
"column": 38
}
}
@@ -53631,15 +56366,15 @@
"binop": null,
"updateContext": null
},
- "start": 12911,
- "end": 12912,
+ "start": 13909,
+ "end": 13910,
"loc": {
"start": {
- "line": 361,
+ "line": 379,
"column": 38
},
"end": {
- "line": 361,
+ "line": 379,
"column": 39
}
}
@@ -53656,15 +56391,15 @@
"postfix": false,
"binop": null
},
- "start": 12922,
- "end": 12923,
+ "start": 13920,
+ "end": 13921,
"loc": {
"start": {
- "line": 362,
+ "line": 380,
"column": 8
},
"end": {
- "line": 362,
+ "line": 380,
"column": 9
}
}
@@ -53684,15 +56419,15 @@
"updateContext": null
},
"value": "else",
- "start": 12924,
- "end": 12928,
+ "start": 13922,
+ "end": 13926,
"loc": {
"start": {
- "line": 362,
+ "line": 380,
"column": 10
},
"end": {
- "line": 362,
+ "line": 380,
"column": 14
}
}
@@ -53709,15 +56444,15 @@
"postfix": false,
"binop": null
},
- "start": 12929,
- "end": 12930,
+ "start": 13927,
+ "end": 13928,
"loc": {
"start": {
- "line": 362,
+ "line": 380,
"column": 15
},
"end": {
- "line": 362,
+ "line": 380,
"column": 16
}
}
@@ -53735,15 +56470,15 @@
"binop": null
},
"value": "VYI",
- "start": 12944,
- "end": 12947,
+ "start": 13942,
+ "end": 13945,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 12
},
"end": {
- "line": 363,
+ "line": 381,
"column": 15
}
}
@@ -53761,15 +56496,15 @@
"binop": null,
"updateContext": null
},
- "start": 12947,
- "end": 12948,
+ "start": 13945,
+ "end": 13946,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 15
},
"end": {
- "line": 363,
+ "line": 381,
"column": 16
}
}
@@ -53787,15 +56522,15 @@
"binop": null
},
"value": "logger",
- "start": 12948,
- "end": 12954,
+ "start": 13946,
+ "end": 13952,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 16
},
"end": {
- "line": 363,
+ "line": 381,
"column": 22
}
}
@@ -53813,15 +56548,15 @@
"binop": null,
"updateContext": null
},
- "start": 12954,
- "end": 12955,
+ "start": 13952,
+ "end": 13953,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 22
},
"end": {
- "line": 363,
+ "line": 381,
"column": 23
}
}
@@ -53839,15 +56574,15 @@
"binop": null
},
"value": "prefix",
- "start": 12955,
- "end": 12961,
+ "start": 13953,
+ "end": 13959,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 23
},
"end": {
- "line": 363,
+ "line": 381,
"column": 29
}
}
@@ -53864,15 +56599,15 @@
"postfix": false,
"binop": null
},
- "start": 12961,
- "end": 12962,
+ "start": 13959,
+ "end": 13960,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 29
},
"end": {
- "line": 363,
+ "line": 381,
"column": 30
}
}
@@ -53891,15 +56626,15 @@
"updateContext": null
},
"value": "VYI-Module",
- "start": 12962,
- "end": 12974,
+ "start": 13960,
+ "end": 13972,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 30
},
"end": {
- "line": 363,
+ "line": 381,
"column": 42
}
}
@@ -53916,15 +56651,15 @@
"postfix": false,
"binop": null
},
- "start": 12974,
- "end": 12975,
+ "start": 13972,
+ "end": 13973,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 42
},
"end": {
- "line": 363,
+ "line": 381,
"column": 43
}
}
@@ -53942,15 +56677,15 @@
"binop": null,
"updateContext": null
},
- "start": 12975,
- "end": 12976,
+ "start": 13973,
+ "end": 13974,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 43
},
"end": {
- "line": 363,
+ "line": 381,
"column": 44
}
}
@@ -53968,15 +56703,15 @@
"binop": null
},
"value": "error",
- "start": 12976,
- "end": 12981,
+ "start": 13974,
+ "end": 13979,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 44
},
"end": {
- "line": 363,
+ "line": 381,
"column": 49
}
}
@@ -53993,15 +56728,15 @@
"postfix": false,
"binop": null
},
- "start": 12981,
- "end": 12982,
+ "start": 13979,
+ "end": 13980,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 49
},
"end": {
- "line": 363,
+ "line": 381,
"column": 50
}
}
@@ -54020,15 +56755,15 @@
"updateContext": null
},
"value": "Invalid type used!",
- "start": 12982,
- "end": 13002,
+ "start": 13980,
+ "end": 14000,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 50
},
"end": {
- "line": 363,
+ "line": 381,
"column": 70
}
}
@@ -54045,15 +56780,15 @@
"postfix": false,
"binop": null
},
- "start": 13002,
- "end": 13003,
+ "start": 14000,
+ "end": 14001,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 70
},
"end": {
- "line": 363,
+ "line": 381,
"column": 71
}
}
@@ -54071,15 +56806,15 @@
"binop": null,
"updateContext": null
},
- "start": 13003,
- "end": 13004,
+ "start": 14001,
+ "end": 14002,
"loc": {
"start": {
- "line": 363,
+ "line": 381,
"column": 71
},
"end": {
- "line": 363,
+ "line": 381,
"column": 72
}
}
@@ -54096,15 +56831,15 @@
"postfix": false,
"binop": null
},
- "start": 13014,
- "end": 13015,
+ "start": 14012,
+ "end": 14013,
"loc": {
"start": {
- "line": 364,
+ "line": 382,
"column": 8
},
"end": {
- "line": 364,
+ "line": 382,
"column": 9
}
}
@@ -54121,15 +56856,15 @@
"postfix": false,
"binop": null
},
- "start": 13021,
- "end": 13022,
+ "start": 14019,
+ "end": 14020,
"loc": {
"start": {
- "line": 365,
+ "line": 383,
"column": 4
},
"end": {
- "line": 365,
+ "line": 383,
"column": 5
}
}
@@ -54137,15 +56872,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n ",
- "start": 13028,
- "end": 13158,
+ "start": 14026,
+ "end": 14156,
"loc": {
"start": {
- "line": 366,
+ "line": 384,
"column": 4
},
"end": {
- "line": 369,
+ "line": 387,
"column": 7
}
}
@@ -54163,15 +56898,15 @@
"binop": null
},
"value": "getFrames",
- "start": 13164,
- "end": 13173,
+ "start": 14162,
+ "end": 14171,
"loc": {
"start": {
- "line": 370,
+ "line": 388,
"column": 4
},
"end": {
- "line": 370,
+ "line": 388,
"column": 13
}
}
@@ -54188,15 +56923,15 @@
"postfix": false,
"binop": null
},
- "start": 13173,
- "end": 13174,
+ "start": 14171,
+ "end": 14172,
"loc": {
"start": {
- "line": 370,
+ "line": 388,
"column": 13
},
"end": {
- "line": 370,
+ "line": 388,
"column": 14
}
}
@@ -54213,15 +56948,15 @@
"postfix": false,
"binop": null
},
- "start": 13174,
- "end": 13175,
+ "start": 14172,
+ "end": 14173,
"loc": {
"start": {
- "line": 370,
+ "line": 388,
"column": 14
},
"end": {
- "line": 370,
+ "line": 388,
"column": 15
}
}
@@ -54238,15 +56973,15 @@
"postfix": false,
"binop": null
},
- "start": 13176,
- "end": 13177,
+ "start": 14174,
+ "end": 14175,
"loc": {
"start": {
- "line": 370,
+ "line": 388,
"column": 16
},
"end": {
- "line": 370,
+ "line": 388,
"column": 17
}
}
@@ -54266,15 +57001,15 @@
"updateContext": null
},
"value": "return",
- "start": 13187,
- "end": 13193,
+ "start": 14185,
+ "end": 14191,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 8
},
"end": {
- "line": 371,
+ "line": 389,
"column": 14
}
}
@@ -54292,15 +57027,15 @@
"binop": null,
"updateContext": null
},
- "start": 13194,
- "end": 13195,
+ "start": 14192,
+ "end": 14193,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 15
},
"end": {
- "line": 371,
+ "line": 389,
"column": 16
}
}
@@ -54318,15 +57053,15 @@
"binop": null,
"updateContext": null
},
- "start": 13196,
- "end": 13199,
+ "start": 14194,
+ "end": 14197,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 17
},
"end": {
- "line": 371,
+ "line": 389,
"column": 20
}
}
@@ -54346,15 +57081,15 @@
"updateContext": null
},
"value": "this",
- "start": 13199,
- "end": 13203,
+ "start": 14197,
+ "end": 14201,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 20
},
"end": {
- "line": 371,
+ "line": 389,
"column": 24
}
}
@@ -54372,15 +57107,15 @@
"binop": null,
"updateContext": null
},
- "start": 13203,
- "end": 13204,
+ "start": 14201,
+ "end": 14202,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 24
},
"end": {
- "line": 371,
+ "line": 389,
"column": 25
}
}
@@ -54398,15 +57133,15 @@
"binop": null
},
"value": "frames",
- "start": 13204,
- "end": 13210,
+ "start": 14202,
+ "end": 14208,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 25
},
"end": {
- "line": 371,
+ "line": 389,
"column": 31
}
}
@@ -54424,15 +57159,15 @@
"binop": null,
"updateContext": null
},
- "start": 13211,
- "end": 13212,
+ "start": 14209,
+ "end": 14210,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 32
},
"end": {
- "line": 371,
+ "line": 389,
"column": 33
}
}
@@ -54450,15 +57185,15 @@
"binop": null,
"updateContext": null
},
- "start": 13212,
- "end": 13213,
+ "start": 14210,
+ "end": 14211,
"loc": {
"start": {
- "line": 371,
+ "line": 389,
"column": 33
},
"end": {
- "line": 371,
+ "line": 389,
"column": 34
}
}
@@ -54475,15 +57210,15 @@
"postfix": false,
"binop": null
},
- "start": 13219,
- "end": 13220,
+ "start": 14217,
+ "end": 14218,
"loc": {
"start": {
- "line": 372,
+ "line": 390,
"column": 4
},
"end": {
- "line": 372,
+ "line": 390,
"column": 5
}
}
@@ -54491,15 +57226,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n ",
- "start": 13226,
- "end": 13382,
+ "start": 14224,
+ "end": 14380,
"loc": {
"start": {
- "line": 373,
+ "line": 391,
"column": 4
},
"end": {
- "line": 377,
+ "line": 395,
"column": 7
}
}
@@ -54517,15 +57252,15 @@
"binop": null
},
"value": "getFramesData",
- "start": 13388,
- "end": 13401,
+ "start": 14386,
+ "end": 14399,
"loc": {
"start": {
- "line": 378,
+ "line": 396,
"column": 4
},
"end": {
- "line": 378,
+ "line": 396,
"column": 17
}
}
@@ -54542,15 +57277,15 @@
"postfix": false,
"binop": null
},
- "start": 13401,
- "end": 13402,
+ "start": 14399,
+ "end": 14400,
"loc": {
"start": {
- "line": 378,
+ "line": 396,
"column": 17
},
"end": {
- "line": 378,
+ "line": 396,
"column": 18
}
}
@@ -54567,15 +57302,15 @@
"postfix": false,
"binop": null
},
- "start": 13402,
- "end": 13403,
+ "start": 14400,
+ "end": 14401,
"loc": {
"start": {
- "line": 378,
+ "line": 396,
"column": 18
},
"end": {
- "line": 378,
+ "line": 396,
"column": 19
}
}
@@ -54592,15 +57327,15 @@
"postfix": false,
"binop": null
},
- "start": 13404,
- "end": 13405,
+ "start": 14402,
+ "end": 14403,
"loc": {
"start": {
- "line": 378,
+ "line": 396,
"column": 20
},
"end": {
- "line": 378,
+ "line": 396,
"column": 21
}
}
@@ -54620,15 +57355,15 @@
"updateContext": null
},
"value": "const",
- "start": 13415,
- "end": 13420,
+ "start": 14413,
+ "end": 14418,
"loc": {
"start": {
- "line": 379,
+ "line": 397,
"column": 8
},
"end": {
- "line": 379,
+ "line": 397,
"column": 13
}
}
@@ -54646,15 +57381,15 @@
"binop": null
},
"value": "frameDataArray",
- "start": 13421,
- "end": 13435,
+ "start": 14419,
+ "end": 14433,
"loc": {
"start": {
- "line": 379,
+ "line": 397,
"column": 14
},
"end": {
- "line": 379,
+ "line": 397,
"column": 28
}
}
@@ -54673,15 +57408,15 @@
"updateContext": null
},
"value": "=",
- "start": 13436,
- "end": 13437,
+ "start": 14434,
+ "end": 14435,
"loc": {
"start": {
- "line": 379,
+ "line": 397,
"column": 29
},
"end": {
- "line": 379,
+ "line": 397,
"column": 30
}
}
@@ -54699,15 +57434,15 @@
"binop": null,
"updateContext": null
},
- "start": 13438,
- "end": 13439,
+ "start": 14436,
+ "end": 14437,
"loc": {
"start": {
- "line": 379,
+ "line": 397,
"column": 31
},
"end": {
- "line": 379,
+ "line": 397,
"column": 32
}
}
@@ -54725,15 +57460,15 @@
"binop": null,
"updateContext": null
},
- "start": 13439,
- "end": 13440,
+ "start": 14437,
+ "end": 14438,
"loc": {
"start": {
- "line": 379,
+ "line": 397,
"column": 32
},
"end": {
- "line": 379,
+ "line": 397,
"column": 33
}
}
@@ -54751,15 +57486,15 @@
"binop": null,
"updateContext": null
},
- "start": 13440,
- "end": 13441,
+ "start": 14438,
+ "end": 14439,
"loc": {
"start": {
- "line": 379,
+ "line": 397,
"column": 33
},
"end": {
- "line": 379,
+ "line": 397,
"column": 34
}
}
@@ -54779,15 +57514,15 @@
"updateContext": null
},
"value": "this",
- "start": 13451,
- "end": 13455,
+ "start": 14449,
+ "end": 14453,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 8
},
"end": {
- "line": 380,
+ "line": 398,
"column": 12
}
}
@@ -54805,15 +57540,15 @@
"binop": null,
"updateContext": null
},
- "start": 13455,
- "end": 13456,
+ "start": 14453,
+ "end": 14454,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 12
},
"end": {
- "line": 380,
+ "line": 398,
"column": 13
}
}
@@ -54831,15 +57566,15 @@
"binop": null
},
"value": "frames",
- "start": 13456,
- "end": 13462,
+ "start": 14454,
+ "end": 14460,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 13
},
"end": {
- "line": 380,
+ "line": 398,
"column": 19
}
}
@@ -54857,15 +57592,15 @@
"binop": null,
"updateContext": null
},
- "start": 13462,
- "end": 13463,
+ "start": 14460,
+ "end": 14461,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 19
},
"end": {
- "line": 380,
+ "line": 398,
"column": 20
}
}
@@ -54883,15 +57618,15 @@
"binop": null
},
"value": "forEach",
- "start": 13463,
- "end": 13470,
+ "start": 14461,
+ "end": 14468,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 20
},
"end": {
- "line": 380,
+ "line": 398,
"column": 27
}
}
@@ -54908,15 +57643,15 @@
"postfix": false,
"binop": null
},
- "start": 13470,
- "end": 13471,
+ "start": 14468,
+ "end": 14469,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 27
},
"end": {
- "line": 380,
+ "line": 398,
"column": 28
}
}
@@ -54933,15 +57668,15 @@
"postfix": false,
"binop": null
},
- "start": 13471,
- "end": 13472,
+ "start": 14469,
+ "end": 14470,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 28
},
"end": {
- "line": 380,
+ "line": 398,
"column": 29
}
}
@@ -54959,15 +57694,15 @@
"binop": null
},
"value": "pFrame",
- "start": 13472,
- "end": 13478,
+ "start": 14470,
+ "end": 14476,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 29
},
"end": {
- "line": 380,
+ "line": 398,
"column": 35
}
}
@@ -54984,15 +57719,15 @@
"postfix": false,
"binop": null
},
- "start": 13478,
- "end": 13479,
+ "start": 14476,
+ "end": 14477,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 35
},
"end": {
- "line": 380,
+ "line": 398,
"column": 36
}
}
@@ -55010,15 +57745,15 @@
"binop": null,
"updateContext": null
},
- "start": 13480,
- "end": 13482,
+ "start": 14478,
+ "end": 14480,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 37
},
"end": {
- "line": 380,
+ "line": 398,
"column": 39
}
}
@@ -55035,15 +57770,15 @@
"postfix": false,
"binop": null
},
- "start": 13483,
- "end": 13484,
+ "start": 14481,
+ "end": 14482,
"loc": {
"start": {
- "line": 380,
+ "line": 398,
"column": 40
},
"end": {
- "line": 380,
+ "line": 398,
"column": 41
}
}
@@ -55061,15 +57796,15 @@
"binop": null
},
"value": "frameDataArray",
- "start": 13498,
- "end": 13512,
+ "start": 14496,
+ "end": 14510,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 12
},
"end": {
- "line": 381,
+ "line": 399,
"column": 26
}
}
@@ -55087,15 +57822,15 @@
"binop": null,
"updateContext": null
},
- "start": 13512,
- "end": 13513,
+ "start": 14510,
+ "end": 14511,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 26
},
"end": {
- "line": 381,
+ "line": 399,
"column": 27
}
}
@@ -55113,15 +57848,15 @@
"binop": null
},
"value": "push",
- "start": 13513,
- "end": 13517,
+ "start": 14511,
+ "end": 14515,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 27
},
"end": {
- "line": 381,
+ "line": 399,
"column": 31
}
}
@@ -55138,15 +57873,15 @@
"postfix": false,
"binop": null
},
- "start": 13517,
- "end": 13518,
+ "start": 14515,
+ "end": 14516,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 31
},
"end": {
- "line": 381,
+ "line": 399,
"column": 32
}
}
@@ -55164,15 +57899,15 @@
"binop": null
},
"value": "pFrame",
- "start": 13518,
- "end": 13524,
+ "start": 14516,
+ "end": 14522,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 32
},
"end": {
- "line": 381,
+ "line": 399,
"column": 38
}
}
@@ -55190,15 +57925,15 @@
"binop": null,
"updateContext": null
},
- "start": 13524,
- "end": 13525,
+ "start": 14522,
+ "end": 14523,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 38
},
"end": {
- "line": 381,
+ "line": 399,
"column": 39
}
}
@@ -55218,15 +57953,15 @@
"updateContext": null
},
"value": "export",
- "start": 13525,
- "end": 13531,
+ "start": 14523,
+ "end": 14529,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 39
},
"end": {
- "line": 381,
+ "line": 399,
"column": 45
}
}
@@ -55243,15 +57978,15 @@
"postfix": false,
"binop": null
},
- "start": 13531,
- "end": 13532,
+ "start": 14529,
+ "end": 14530,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 45
},
"end": {
- "line": 381,
+ "line": 399,
"column": 46
}
}
@@ -55268,15 +58003,15 @@
"postfix": false,
"binop": null
},
- "start": 13532,
- "end": 13533,
+ "start": 14530,
+ "end": 14531,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 46
},
"end": {
- "line": 381,
+ "line": 399,
"column": 47
}
}
@@ -55293,15 +58028,15 @@
"postfix": false,
"binop": null
},
- "start": 13533,
- "end": 13534,
+ "start": 14531,
+ "end": 14532,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 47
},
"end": {
- "line": 381,
+ "line": 399,
"column": 48
}
}
@@ -55319,15 +58054,15 @@
"binop": null,
"updateContext": null
},
- "start": 13534,
- "end": 13535,
+ "start": 14532,
+ "end": 14533,
"loc": {
"start": {
- "line": 381,
+ "line": 399,
"column": 48
},
"end": {
- "line": 381,
+ "line": 399,
"column": 49
}
}
@@ -55344,15 +58079,15 @@
"postfix": false,
"binop": null
},
- "start": 13545,
- "end": 13546,
+ "start": 14543,
+ "end": 14544,
"loc": {
"start": {
- "line": 382,
+ "line": 400,
"column": 8
},
"end": {
- "line": 382,
+ "line": 400,
"column": 9
}
}
@@ -55369,15 +58104,15 @@
"postfix": false,
"binop": null
},
- "start": 13546,
- "end": 13547,
+ "start": 14544,
+ "end": 14545,
"loc": {
"start": {
- "line": 382,
+ "line": 400,
"column": 9
},
"end": {
- "line": 382,
+ "line": 400,
"column": 10
}
}
@@ -55395,15 +58130,15 @@
"binop": null,
"updateContext": null
},
- "start": 13547,
- "end": 13548,
+ "start": 14545,
+ "end": 14546,
"loc": {
"start": {
- "line": 382,
+ "line": 400,
"column": 10
},
"end": {
- "line": 382,
+ "line": 400,
"column": 11
}
}
@@ -55423,15 +58158,15 @@
"updateContext": null
},
"value": "return",
- "start": 13558,
- "end": 13564,
+ "start": 14556,
+ "end": 14562,
"loc": {
"start": {
- "line": 383,
+ "line": 401,
"column": 8
},
"end": {
- "line": 383,
+ "line": 401,
"column": 14
}
}
@@ -55449,15 +58184,15 @@
"binop": null
},
"value": "frameDataArray",
- "start": 13565,
- "end": 13579,
+ "start": 14563,
+ "end": 14577,
"loc": {
"start": {
- "line": 383,
+ "line": 401,
"column": 15
},
"end": {
- "line": 383,
+ "line": 401,
"column": 29
}
}
@@ -55475,15 +58210,15 @@
"binop": null,
"updateContext": null
},
- "start": 13579,
- "end": 13580,
+ "start": 14577,
+ "end": 14578,
"loc": {
"start": {
- "line": 383,
+ "line": 401,
"column": 29
},
"end": {
- "line": 383,
+ "line": 401,
"column": 30
}
}
@@ -55500,15 +58235,15 @@
"postfix": false,
"binop": null
},
- "start": 13586,
- "end": 13587,
+ "start": 14584,
+ "end": 14585,
"loc": {
"start": {
- "line": 384,
+ "line": 402,
"column": 4
},
"end": {
- "line": 384,
+ "line": 402,
"column": 5
}
}
@@ -55516,15 +58251,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n ",
- "start": 13593,
- "end": 13777,
+ "start": 14591,
+ "end": 14775,
"loc": {
"start": {
- "line": 385,
+ "line": 403,
"column": 4
},
"end": {
- "line": 389,
+ "line": 407,
"column": 7
}
}
@@ -55542,15 +58277,15 @@
"binop": null
},
"value": "getState",
- "start": 13783,
- "end": 13791,
+ "start": 14781,
+ "end": 14789,
"loc": {
"start": {
- "line": 390,
+ "line": 408,
"column": 4
},
"end": {
- "line": 390,
+ "line": 408,
"column": 12
}
}
@@ -55567,15 +58302,15 @@
"postfix": false,
"binop": null
},
- "start": 13791,
- "end": 13792,
+ "start": 14789,
+ "end": 14790,
"loc": {
"start": {
- "line": 390,
+ "line": 408,
"column": 12
},
"end": {
- "line": 390,
+ "line": 408,
"column": 13
}
}
@@ -55593,15 +58328,15 @@
"binop": null
},
"value": "pName",
- "start": 13792,
- "end": 13797,
+ "start": 14790,
+ "end": 14795,
"loc": {
"start": {
- "line": 390,
+ "line": 408,
"column": 13
},
"end": {
- "line": 390,
+ "line": 408,
"column": 18
}
}
@@ -55618,15 +58353,15 @@
"postfix": false,
"binop": null
},
- "start": 13797,
- "end": 13798,
+ "start": 14795,
+ "end": 14796,
"loc": {
"start": {
- "line": 390,
+ "line": 408,
"column": 18
},
"end": {
- "line": 390,
+ "line": 408,
"column": 19
}
}
@@ -55643,15 +58378,15 @@
"postfix": false,
"binop": null
},
- "start": 13799,
- "end": 13800,
+ "start": 14797,
+ "end": 14798,
"loc": {
"start": {
- "line": 390,
+ "line": 408,
"column": 20
},
"end": {
- "line": 390,
+ "line": 408,
"column": 21
}
}
@@ -55671,15 +58406,15 @@
"updateContext": null
},
"value": "for",
- "start": 13810,
- "end": 13813,
+ "start": 14808,
+ "end": 14811,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 8
},
"end": {
- "line": 391,
+ "line": 409,
"column": 11
}
}
@@ -55696,15 +58431,15 @@
"postfix": false,
"binop": null
},
- "start": 13814,
- "end": 13815,
+ "start": 14812,
+ "end": 14813,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 12
},
"end": {
- "line": 391,
+ "line": 409,
"column": 13
}
}
@@ -55724,15 +58459,15 @@
"updateContext": null
},
"value": "const",
- "start": 13815,
- "end": 13820,
+ "start": 14813,
+ "end": 14818,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 13
},
"end": {
- "line": 391,
+ "line": 409,
"column": 18
}
}
@@ -55750,15 +58485,15 @@
"binop": null
},
"value": "icon",
- "start": 13821,
- "end": 13825,
+ "start": 14819,
+ "end": 14823,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 19
},
"end": {
- "line": 391,
+ "line": 409,
"column": 23
}
}
@@ -55776,15 +58511,15 @@
"binop": null
},
"value": "of",
- "start": 13826,
- "end": 13828,
+ "start": 14824,
+ "end": 14826,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 24
},
"end": {
- "line": 391,
+ "line": 409,
"column": 26
}
}
@@ -55804,15 +58539,15 @@
"updateContext": null
},
"value": "this",
- "start": 13829,
- "end": 13833,
+ "start": 14827,
+ "end": 14831,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 27
},
"end": {
- "line": 391,
+ "line": 409,
"column": 31
}
}
@@ -55830,15 +58565,15 @@
"binop": null,
"updateContext": null
},
- "start": 13833,
- "end": 13834,
+ "start": 14831,
+ "end": 14832,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 31
},
"end": {
- "line": 391,
+ "line": 409,
"column": 32
}
}
@@ -55856,15 +58591,15 @@
"binop": null
},
"value": "states",
- "start": 13834,
- "end": 13840,
+ "start": 14832,
+ "end": 14838,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 32
},
"end": {
- "line": 391,
+ "line": 409,
"column": 38
}
}
@@ -55881,15 +58616,15 @@
"postfix": false,
"binop": null
},
- "start": 13840,
- "end": 13841,
+ "start": 14838,
+ "end": 14839,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 38
},
"end": {
- "line": 391,
+ "line": 409,
"column": 39
}
}
@@ -55906,15 +58641,15 @@
"postfix": false,
"binop": null
},
- "start": 13842,
- "end": 13843,
+ "start": 14840,
+ "end": 14841,
"loc": {
"start": {
- "line": 391,
+ "line": 409,
"column": 40
},
"end": {
- "line": 391,
+ "line": 409,
"column": 41
}
}
@@ -55922,15 +58657,15 @@
{
"type": "CommentLine",
"value": " If the state has the same name, return that state",
- "start": 13857,
- "end": 13909,
+ "start": 14855,
+ "end": 14907,
"loc": {
"start": {
- "line": 392,
+ "line": 410,
"column": 12
},
"end": {
- "line": 392,
+ "line": 410,
"column": 64
}
}
@@ -55950,15 +58685,15 @@
"updateContext": null
},
"value": "if",
- "start": 13923,
- "end": 13925,
+ "start": 14921,
+ "end": 14923,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 12
},
"end": {
- "line": 393,
+ "line": 411,
"column": 14
}
}
@@ -55975,15 +58710,15 @@
"postfix": false,
"binop": null
},
- "start": 13926,
- "end": 13927,
+ "start": 14924,
+ "end": 14925,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 15
},
"end": {
- "line": 393,
+ "line": 411,
"column": 16
}
}
@@ -56001,15 +58736,15 @@
"binop": null
},
"value": "icon",
- "start": 13927,
- "end": 13931,
+ "start": 14925,
+ "end": 14929,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 16
},
"end": {
- "line": 393,
+ "line": 411,
"column": 20
}
}
@@ -56027,15 +58762,15 @@
"binop": null,
"updateContext": null
},
- "start": 13931,
- "end": 13932,
+ "start": 14929,
+ "end": 14930,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 20
},
"end": {
- "line": 393,
+ "line": 411,
"column": 21
}
}
@@ -56053,15 +58788,15 @@
"binop": null
},
"value": "getName",
- "start": 13932,
- "end": 13939,
+ "start": 14930,
+ "end": 14937,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 21
},
"end": {
- "line": 393,
+ "line": 411,
"column": 28
}
}
@@ -56078,15 +58813,15 @@
"postfix": false,
"binop": null
},
- "start": 13939,
- "end": 13940,
+ "start": 14937,
+ "end": 14938,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 28
},
"end": {
- "line": 393,
+ "line": 411,
"column": 29
}
}
@@ -56103,15 +58838,15 @@
"postfix": false,
"binop": null
},
- "start": 13940,
- "end": 13941,
+ "start": 14938,
+ "end": 14939,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 29
},
"end": {
- "line": 393,
+ "line": 411,
"column": 30
}
}
@@ -56130,15 +58865,15 @@
"updateContext": null
},
"value": "===",
- "start": 13942,
- "end": 13945,
+ "start": 14940,
+ "end": 14943,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 31
},
"end": {
- "line": 393,
+ "line": 411,
"column": 34
}
}
@@ -56156,15 +58891,15 @@
"binop": null
},
"value": "pName",
- "start": 13946,
- "end": 13951,
+ "start": 14944,
+ "end": 14949,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 35
},
"end": {
- "line": 393,
+ "line": 411,
"column": 40
}
}
@@ -56181,15 +58916,15 @@
"postfix": false,
"binop": null
},
- "start": 13951,
- "end": 13952,
+ "start": 14949,
+ "end": 14950,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 40
},
"end": {
- "line": 393,
+ "line": 411,
"column": 41
}
}
@@ -56206,15 +58941,15 @@
"postfix": false,
"binop": null
},
- "start": 13953,
- "end": 13954,
+ "start": 14951,
+ "end": 14952,
"loc": {
"start": {
- "line": 393,
+ "line": 411,
"column": 42
},
"end": {
- "line": 393,
+ "line": 411,
"column": 43
}
}
@@ -56234,15 +58969,15 @@
"updateContext": null
},
"value": "return",
- "start": 13972,
- "end": 13978,
+ "start": 14970,
+ "end": 14976,
"loc": {
"start": {
- "line": 394,
+ "line": 412,
"column": 16
},
"end": {
- "line": 394,
+ "line": 412,
"column": 22
}
}
@@ -56260,15 +58995,15 @@
"binop": null
},
"value": "icon",
- "start": 13979,
- "end": 13983,
+ "start": 14977,
+ "end": 14981,
"loc": {
"start": {
- "line": 394,
+ "line": 412,
"column": 23
},
"end": {
- "line": 394,
+ "line": 412,
"column": 27
}
}
@@ -56286,15 +59021,15 @@
"binop": null,
"updateContext": null
},
- "start": 13983,
- "end": 13984,
+ "start": 14981,
+ "end": 14982,
"loc": {
"start": {
- "line": 394,
+ "line": 412,
"column": 27
},
"end": {
- "line": 394,
+ "line": 412,
"column": 28
}
}
@@ -56311,15 +59046,15 @@
"postfix": false,
"binop": null
},
- "start": 13998,
- "end": 13999,
+ "start": 14996,
+ "end": 14997,
"loc": {
"start": {
- "line": 395,
+ "line": 413,
"column": 12
},
"end": {
- "line": 395,
+ "line": 413,
"column": 13
}
}
@@ -56336,15 +59071,15 @@
"postfix": false,
"binop": null
},
- "start": 14009,
- "end": 14010,
+ "start": 15007,
+ "end": 15008,
"loc": {
"start": {
- "line": 396,
+ "line": 414,
"column": 8
},
"end": {
- "line": 396,
+ "line": 414,
"column": 9
}
}
@@ -56362,15 +59097,15 @@
"binop": null,
"updateContext": null
},
- "start": 14010,
- "end": 14011,
+ "start": 15008,
+ "end": 15009,
"loc": {
"start": {
- "line": 396,
+ "line": 414,
"column": 9
},
"end": {
- "line": 396,
+ "line": 414,
"column": 10
}
}
@@ -56387,15 +59122,15 @@
"postfix": false,
"binop": null
},
- "start": 14017,
- "end": 14018,
+ "start": 15015,
+ "end": 15016,
"loc": {
"start": {
- "line": 397,
+ "line": 415,
"column": 4
},
"end": {
- "line": 397,
+ "line": 415,
"column": 5
}
}
@@ -56403,15 +59138,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n ",
- "start": 14024,
- "end": 14154,
+ "start": 15022,
+ "end": 15152,
"loc": {
"start": {
- "line": 398,
+ "line": 416,
"column": 4
},
"end": {
- "line": 401,
+ "line": 419,
"column": 7
}
}
@@ -56429,15 +59164,15 @@
"binop": null
},
"value": "getStates",
- "start": 14160,
- "end": 14169,
+ "start": 15158,
+ "end": 15167,
"loc": {
"start": {
- "line": 402,
+ "line": 420,
"column": 4
},
"end": {
- "line": 402,
+ "line": 420,
"column": 13
}
}
@@ -56454,15 +59189,15 @@
"postfix": false,
"binop": null
},
- "start": 14169,
- "end": 14170,
+ "start": 15167,
+ "end": 15168,
"loc": {
"start": {
- "line": 402,
+ "line": 420,
"column": 13
},
"end": {
- "line": 402,
+ "line": 420,
"column": 14
}
}
@@ -56479,15 +59214,15 @@
"postfix": false,
"binop": null
},
- "start": 14170,
- "end": 14171,
+ "start": 15168,
+ "end": 15169,
"loc": {
"start": {
- "line": 402,
+ "line": 420,
"column": 14
},
"end": {
- "line": 402,
+ "line": 420,
"column": 15
}
}
@@ -56504,15 +59239,15 @@
"postfix": false,
"binop": null
},
- "start": 14172,
- "end": 14173,
+ "start": 15170,
+ "end": 15171,
"loc": {
"start": {
- "line": 402,
+ "line": 420,
"column": 16
},
"end": {
- "line": 402,
+ "line": 420,
"column": 17
}
}
@@ -56532,15 +59267,15 @@
"updateContext": null
},
"value": "return",
- "start": 14183,
- "end": 14189,
+ "start": 15181,
+ "end": 15187,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 8
},
"end": {
- "line": 403,
+ "line": 421,
"column": 14
}
}
@@ -56558,15 +59293,15 @@
"binop": null,
"updateContext": null
},
- "start": 14190,
- "end": 14191,
+ "start": 15188,
+ "end": 15189,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 15
},
"end": {
- "line": 403,
+ "line": 421,
"column": 16
}
}
@@ -56584,15 +59319,15 @@
"binop": null,
"updateContext": null
},
- "start": 14192,
- "end": 14195,
+ "start": 15190,
+ "end": 15193,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 17
},
"end": {
- "line": 403,
+ "line": 421,
"column": 20
}
}
@@ -56612,15 +59347,15 @@
"updateContext": null
},
"value": "this",
- "start": 14195,
- "end": 14199,
+ "start": 15193,
+ "end": 15197,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 20
},
"end": {
- "line": 403,
+ "line": 421,
"column": 24
}
}
@@ -56638,15 +59373,15 @@
"binop": null,
"updateContext": null
},
- "start": 14199,
- "end": 14200,
+ "start": 15197,
+ "end": 15198,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 24
},
"end": {
- "line": 403,
+ "line": 421,
"column": 25
}
}
@@ -56664,15 +59399,15 @@
"binop": null
},
"value": "states",
- "start": 14200,
- "end": 14206,
+ "start": 15198,
+ "end": 15204,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 25
},
"end": {
- "line": 403,
+ "line": 421,
"column": 31
}
}
@@ -56690,15 +59425,15 @@
"binop": null,
"updateContext": null
},
- "start": 14207,
- "end": 14208,
+ "start": 15205,
+ "end": 15206,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 32
},
"end": {
- "line": 403,
+ "line": 421,
"column": 33
}
}
@@ -56716,15 +59451,15 @@
"binop": null,
"updateContext": null
},
- "start": 14208,
- "end": 14209,
+ "start": 15206,
+ "end": 15207,
"loc": {
"start": {
- "line": 403,
+ "line": 421,
"column": 33
},
"end": {
- "line": 403,
+ "line": 421,
"column": 34
}
}
@@ -56741,15 +59476,15 @@
"postfix": false,
"binop": null
},
- "start": 14215,
- "end": 14216,
+ "start": 15213,
+ "end": 15214,
"loc": {
"start": {
- "line": 404,
+ "line": 422,
"column": 4
},
"end": {
- "line": 404,
+ "line": 422,
"column": 5
}
}
@@ -56757,15 +59492,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n ",
- "start": 14222,
- "end": 14378,
+ "start": 15220,
+ "end": 15376,
"loc": {
"start": {
- "line": 405,
+ "line": 423,
"column": 4
},
"end": {
- "line": 409,
+ "line": 427,
"column": 7
}
}
@@ -56783,15 +59518,15 @@
"binop": null
},
"value": "getStatesData",
- "start": 14384,
- "end": 14397,
+ "start": 15382,
+ "end": 15395,
"loc": {
"start": {
- "line": 410,
+ "line": 428,
"column": 4
},
"end": {
- "line": 410,
+ "line": 428,
"column": 17
}
}
@@ -56808,15 +59543,15 @@
"postfix": false,
"binop": null
},
- "start": 14397,
- "end": 14398,
+ "start": 15395,
+ "end": 15396,
"loc": {
"start": {
- "line": 410,
+ "line": 428,
"column": 17
},
"end": {
- "line": 410,
+ "line": 428,
"column": 18
}
}
@@ -56833,15 +59568,15 @@
"postfix": false,
"binop": null
},
- "start": 14398,
- "end": 14399,
+ "start": 15396,
+ "end": 15397,
"loc": {
"start": {
- "line": 410,
+ "line": 428,
"column": 18
},
"end": {
- "line": 410,
+ "line": 428,
"column": 19
}
}
@@ -56858,15 +59593,15 @@
"postfix": false,
"binop": null
},
- "start": 14400,
- "end": 14401,
+ "start": 15398,
+ "end": 15399,
"loc": {
"start": {
- "line": 410,
+ "line": 428,
"column": 20
},
"end": {
- "line": 410,
+ "line": 428,
"column": 21
}
}
@@ -56886,15 +59621,15 @@
"updateContext": null
},
"value": "const",
- "start": 14411,
- "end": 14416,
+ "start": 15409,
+ "end": 15414,
"loc": {
"start": {
- "line": 411,
+ "line": 429,
"column": 8
},
"end": {
- "line": 411,
+ "line": 429,
"column": 13
}
}
@@ -56912,15 +59647,15 @@
"binop": null
},
"value": "stateDataArray",
- "start": 14417,
- "end": 14431,
+ "start": 15415,
+ "end": 15429,
"loc": {
"start": {
- "line": 411,
+ "line": 429,
"column": 14
},
"end": {
- "line": 411,
+ "line": 429,
"column": 28
}
}
@@ -56939,15 +59674,15 @@
"updateContext": null
},
"value": "=",
- "start": 14432,
- "end": 14433,
+ "start": 15430,
+ "end": 15431,
"loc": {
"start": {
- "line": 411,
+ "line": 429,
"column": 29
},
"end": {
- "line": 411,
+ "line": 429,
"column": 30
}
}
@@ -56965,15 +59700,15 @@
"binop": null,
"updateContext": null
},
- "start": 14434,
- "end": 14435,
+ "start": 15432,
+ "end": 15433,
"loc": {
"start": {
- "line": 411,
+ "line": 429,
"column": 31
},
"end": {
- "line": 411,
+ "line": 429,
"column": 32
}
}
@@ -56991,15 +59726,15 @@
"binop": null,
"updateContext": null
},
- "start": 14435,
- "end": 14436,
+ "start": 15433,
+ "end": 15434,
"loc": {
"start": {
- "line": 411,
+ "line": 429,
"column": 32
},
"end": {
- "line": 411,
+ "line": 429,
"column": 33
}
}
@@ -57017,15 +59752,15 @@
"binop": null,
"updateContext": null
},
- "start": 14436,
- "end": 14437,
+ "start": 15434,
+ "end": 15435,
"loc": {
"start": {
- "line": 411,
+ "line": 429,
"column": 33
},
"end": {
- "line": 411,
+ "line": 429,
"column": 34
}
}
@@ -57033,15 +59768,15 @@
{
"type": "CommentLine",
"value": " Loop state array to export relevant information.",
- "start": 14447,
- "end": 14498,
+ "start": 15445,
+ "end": 15496,
"loc": {
"start": {
- "line": 412,
+ "line": 430,
"column": 8
},
"end": {
- "line": 412,
+ "line": 430,
"column": 59
}
}
@@ -57061,15 +59796,15 @@
"updateContext": null
},
"value": "this",
- "start": 14508,
- "end": 14512,
+ "start": 15506,
+ "end": 15510,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 8
},
"end": {
- "line": 413,
+ "line": 431,
"column": 12
}
}
@@ -57087,15 +59822,15 @@
"binop": null,
"updateContext": null
},
- "start": 14512,
- "end": 14513,
+ "start": 15510,
+ "end": 15511,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 12
},
"end": {
- "line": 413,
+ "line": 431,
"column": 13
}
}
@@ -57113,15 +59848,15 @@
"binop": null
},
"value": "states",
- "start": 14513,
- "end": 14519,
+ "start": 15511,
+ "end": 15517,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 13
},
"end": {
- "line": 413,
+ "line": 431,
"column": 19
}
}
@@ -57139,15 +59874,15 @@
"binop": null,
"updateContext": null
},
- "start": 14519,
- "end": 14520,
+ "start": 15517,
+ "end": 15518,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 19
},
"end": {
- "line": 413,
+ "line": 431,
"column": 20
}
}
@@ -57165,15 +59900,15 @@
"binop": null
},
"value": "forEach",
- "start": 14520,
- "end": 14527,
+ "start": 15518,
+ "end": 15525,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 20
},
"end": {
- "line": 413,
+ "line": 431,
"column": 27
}
}
@@ -57190,15 +59925,15 @@
"postfix": false,
"binop": null
},
- "start": 14527,
- "end": 14528,
+ "start": 15525,
+ "end": 15526,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 27
},
"end": {
- "line": 413,
+ "line": 431,
"column": 28
}
}
@@ -57215,15 +59950,15 @@
"postfix": false,
"binop": null
},
- "start": 14528,
- "end": 14529,
+ "start": 15526,
+ "end": 15527,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 28
},
"end": {
- "line": 413,
+ "line": 431,
"column": 29
}
}
@@ -57241,15 +59976,15 @@
"binop": null
},
"value": "pState",
- "start": 14529,
- "end": 14535,
+ "start": 15527,
+ "end": 15533,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 29
},
"end": {
- "line": 413,
+ "line": 431,
"column": 35
}
}
@@ -57266,15 +60001,15 @@
"postfix": false,
"binop": null
},
- "start": 14535,
- "end": 14536,
+ "start": 15533,
+ "end": 15534,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 35
},
"end": {
- "line": 413,
+ "line": 431,
"column": 36
}
}
@@ -57292,15 +60027,15 @@
"binop": null,
"updateContext": null
},
- "start": 14537,
- "end": 14539,
+ "start": 15535,
+ "end": 15537,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 37
},
"end": {
- "line": 413,
+ "line": 431,
"column": 39
}
}
@@ -57317,15 +60052,15 @@
"postfix": false,
"binop": null
},
- "start": 14540,
- "end": 14541,
+ "start": 15538,
+ "end": 15539,
"loc": {
"start": {
- "line": 413,
+ "line": 431,
"column": 40
},
"end": {
- "line": 413,
+ "line": 431,
"column": 41
}
}
@@ -57343,15 +60078,15 @@
"binop": null
},
"value": "stateDataArray",
- "start": 14555,
- "end": 14569,
+ "start": 15553,
+ "end": 15567,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 12
},
"end": {
- "line": 414,
+ "line": 432,
"column": 26
}
}
@@ -57369,15 +60104,15 @@
"binop": null,
"updateContext": null
},
- "start": 14569,
- "end": 14570,
+ "start": 15567,
+ "end": 15568,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 26
},
"end": {
- "line": 414,
+ "line": 432,
"column": 27
}
}
@@ -57395,15 +60130,15 @@
"binop": null
},
"value": "push",
- "start": 14570,
- "end": 14574,
+ "start": 15568,
+ "end": 15572,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 27
},
"end": {
- "line": 414,
+ "line": 432,
"column": 31
}
}
@@ -57420,15 +60155,15 @@
"postfix": false,
"binop": null
},
- "start": 14574,
- "end": 14575,
+ "start": 15572,
+ "end": 15573,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 31
},
"end": {
- "line": 414,
+ "line": 432,
"column": 32
}
}
@@ -57446,15 +60181,15 @@
"binop": null
},
"value": "pState",
- "start": 14575,
- "end": 14581,
+ "start": 15573,
+ "end": 15579,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 32
},
"end": {
- "line": 414,
+ "line": 432,
"column": 38
}
}
@@ -57472,15 +60207,15 @@
"binop": null,
"updateContext": null
},
- "start": 14581,
- "end": 14582,
+ "start": 15579,
+ "end": 15580,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 38
},
"end": {
- "line": 414,
+ "line": 432,
"column": 39
}
}
@@ -57498,15 +60233,15 @@
"binop": null
},
"value": "exportAsState",
- "start": 14582,
- "end": 14595,
+ "start": 15580,
+ "end": 15593,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 39
},
"end": {
- "line": 414,
+ "line": 432,
"column": 52
}
}
@@ -57523,15 +60258,15 @@
"postfix": false,
"binop": null
},
- "start": 14595,
- "end": 14596,
+ "start": 15593,
+ "end": 15594,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 52
},
"end": {
- "line": 414,
+ "line": 432,
"column": 53
}
}
@@ -57548,15 +60283,15 @@
"postfix": false,
"binop": null
},
- "start": 14596,
- "end": 14597,
+ "start": 15594,
+ "end": 15595,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 53
},
"end": {
- "line": 414,
+ "line": 432,
"column": 54
}
}
@@ -57573,15 +60308,15 @@
"postfix": false,
"binop": null
},
- "start": 14597,
- "end": 14598,
+ "start": 15595,
+ "end": 15596,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 54
},
"end": {
- "line": 414,
+ "line": 432,
"column": 55
}
}
@@ -57599,15 +60334,15 @@
"binop": null,
"updateContext": null
},
- "start": 14598,
- "end": 14599,
+ "start": 15596,
+ "end": 15597,
"loc": {
"start": {
- "line": 414,
+ "line": 432,
"column": 55
},
"end": {
- "line": 414,
+ "line": 432,
"column": 56
}
}
@@ -57624,15 +60359,15 @@
"postfix": false,
"binop": null
},
- "start": 14609,
- "end": 14610,
+ "start": 15607,
+ "end": 15608,
"loc": {
"start": {
- "line": 415,
+ "line": 433,
"column": 8
},
"end": {
- "line": 415,
+ "line": 433,
"column": 9
}
}
@@ -57649,15 +60384,15 @@
"postfix": false,
"binop": null
},
- "start": 14610,
- "end": 14611,
+ "start": 15608,
+ "end": 15609,
"loc": {
"start": {
- "line": 415,
+ "line": 433,
"column": 9
},
"end": {
- "line": 415,
+ "line": 433,
"column": 10
}
}
@@ -57675,15 +60410,15 @@
"binop": null,
"updateContext": null
},
- "start": 14611,
- "end": 14612,
+ "start": 15609,
+ "end": 15610,
"loc": {
"start": {
- "line": 415,
+ "line": 433,
"column": 10
},
"end": {
- "line": 415,
+ "line": 433,
"column": 11
}
}
@@ -57703,15 +60438,15 @@
"updateContext": null
},
"value": "return",
- "start": 14622,
- "end": 14628,
+ "start": 15620,
+ "end": 15626,
"loc": {
"start": {
- "line": 416,
+ "line": 434,
"column": 8
},
"end": {
- "line": 416,
+ "line": 434,
"column": 14
}
}
@@ -57729,15 +60464,15 @@
"binop": null
},
"value": "stateDataArray",
- "start": 14629,
- "end": 14643,
+ "start": 15627,
+ "end": 15641,
"loc": {
"start": {
- "line": 416,
+ "line": 434,
"column": 15
},
"end": {
- "line": 416,
+ "line": 434,
"column": 29
}
}
@@ -57755,15 +60490,15 @@
"binop": null,
"updateContext": null
},
- "start": 14643,
- "end": 14644,
+ "start": 15641,
+ "end": 15642,
"loc": {
"start": {
- "line": 416,
+ "line": 434,
"column": 29
},
"end": {
- "line": 416,
+ "line": 434,
"column": 30
}
}
@@ -57780,15 +60515,15 @@
"postfix": false,
"binop": null
},
- "start": 14658,
- "end": 14659,
+ "start": 15656,
+ "end": 15657,
"loc": {
"start": {
- "line": 417,
+ "line": 435,
"column": 4
},
"end": {
- "line": 417,
+ "line": 435,
"column": 5
}
}
@@ -57796,15 +60531,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n ",
- "start": 14665,
- "end": 14853,
+ "start": 15663,
+ "end": 15851,
"loc": {
"start": {
- "line": 418,
+ "line": 436,
"column": 4
},
"end": {
- "line": 422,
+ "line": 440,
"column": 7
}
}
@@ -57822,15 +60557,15 @@
"binop": null
},
"value": "exportAsState",
- "start": 14859,
- "end": 14872,
+ "start": 15857,
+ "end": 15870,
"loc": {
"start": {
- "line": 423,
+ "line": 441,
"column": 4
},
"end": {
- "line": 423,
+ "line": 441,
"column": 17
}
}
@@ -57847,15 +60582,15 @@
"postfix": false,
"binop": null
},
- "start": 14872,
- "end": 14873,
+ "start": 15870,
+ "end": 15871,
"loc": {
"start": {
- "line": 423,
+ "line": 441,
"column": 17
},
"end": {
- "line": 423,
+ "line": 441,
"column": 18
}
}
@@ -57872,15 +60607,15 @@
"postfix": false,
"binop": null
},
- "start": 14873,
- "end": 14874,
+ "start": 15871,
+ "end": 15872,
"loc": {
"start": {
- "line": 423,
+ "line": 441,
"column": 18
},
"end": {
- "line": 423,
+ "line": 441,
"column": 19
}
}
@@ -57897,15 +60632,15 @@
"postfix": false,
"binop": null
},
- "start": 14875,
- "end": 14876,
+ "start": 15873,
+ "end": 15874,
"loc": {
"start": {
- "line": 423,
+ "line": 441,
"column": 20
},
"end": {
- "line": 423,
+ "line": 441,
"column": 21
}
}
@@ -57925,15 +60660,15 @@
"updateContext": null
},
"value": "const",
- "start": 14886,
- "end": 14891,
+ "start": 15884,
+ "end": 15889,
"loc": {
"start": {
- "line": 424,
+ "line": 442,
"column": 8
},
"end": {
- "line": 424,
+ "line": 442,
"column": 13
}
}
@@ -57951,15 +60686,15 @@
"binop": null
},
"value": "stateData",
- "start": 14892,
- "end": 14901,
+ "start": 15890,
+ "end": 15899,
"loc": {
"start": {
- "line": 424,
+ "line": 442,
"column": 14
},
"end": {
- "line": 424,
+ "line": 442,
"column": 23
}
}
@@ -57978,15 +60713,15 @@
"updateContext": null
},
"value": "=",
- "start": 14902,
- "end": 14903,
+ "start": 15900,
+ "end": 15901,
"loc": {
"start": {
- "line": 424,
+ "line": 442,
"column": 24
},
"end": {
- "line": 424,
+ "line": 442,
"column": 25
}
}
@@ -58004,15 +60739,15 @@
"binop": null,
"updateContext": null
},
- "start": 14904,
- "end": 14905,
+ "start": 15902,
+ "end": 15903,
"loc": {
"start": {
- "line": 424,
+ "line": 442,
"column": 26
},
"end": {
- "line": 424,
+ "line": 442,
"column": 27
}
}
@@ -58030,15 +60765,15 @@
"binop": null,
"updateContext": null
},
- "start": 14905,
- "end": 14906,
+ "start": 15903,
+ "end": 15904,
"loc": {
"start": {
- "line": 424,
+ "line": 442,
"column": 27
},
"end": {
- "line": 424,
+ "line": 442,
"column": 28
}
}
@@ -58056,15 +60791,15 @@
"binop": null,
"updateContext": null
},
- "start": 14906,
- "end": 14907,
+ "start": 15904,
+ "end": 15905,
"loc": {
"start": {
- "line": 424,
+ "line": 442,
"column": 28
},
"end": {
- "line": 424,
+ "line": 442,
"column": 29
}
}
@@ -58072,15 +60807,15 @@
{
"type": "CommentLine",
"value": " state name",
- "start": 14917,
- "end": 14930,
+ "start": 15915,
+ "end": 15928,
"loc": {
"start": {
- "line": 425,
+ "line": 443,
"column": 8
},
"end": {
- "line": 425,
+ "line": 443,
"column": 21
}
}
@@ -58098,15 +60833,15 @@
"binop": null
},
"value": "stateData",
- "start": 14940,
- "end": 14949,
+ "start": 15938,
+ "end": 15947,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 8
},
"end": {
- "line": 426,
+ "line": 444,
"column": 17
}
}
@@ -58124,15 +60859,15 @@
"binop": null,
"updateContext": null
},
- "start": 14949,
- "end": 14950,
+ "start": 15947,
+ "end": 15948,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 17
},
"end": {
- "line": 426,
+ "line": 444,
"column": 18
}
}
@@ -58151,15 +60886,15 @@
"updateContext": null
},
"value": 0,
- "start": 14950,
- "end": 14951,
+ "start": 15948,
+ "end": 15949,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 18
},
"end": {
- "line": 426,
+ "line": 444,
"column": 19
}
}
@@ -58177,15 +60912,15 @@
"binop": null,
"updateContext": null
},
- "start": 14951,
- "end": 14952,
+ "start": 15949,
+ "end": 15950,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 19
},
"end": {
- "line": 426,
+ "line": 444,
"column": 20
}
}
@@ -58204,15 +60939,15 @@
"updateContext": null
},
"value": "=",
- "start": 14953,
- "end": 14954,
+ "start": 15951,
+ "end": 15952,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 21
},
"end": {
- "line": 426,
+ "line": 444,
"column": 22
}
}
@@ -58232,15 +60967,15 @@
"updateContext": null
},
"value": "this",
- "start": 14955,
- "end": 14959,
+ "start": 15953,
+ "end": 15957,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 23
},
"end": {
- "line": 426,
+ "line": 444,
"column": 27
}
}
@@ -58258,15 +60993,15 @@
"binop": null,
"updateContext": null
},
- "start": 14959,
- "end": 14960,
+ "start": 15957,
+ "end": 15958,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 27
},
"end": {
- "line": 426,
+ "line": 444,
"column": 28
}
}
@@ -58284,15 +61019,15 @@
"binop": null
},
"value": "getName",
- "start": 14960,
- "end": 14967,
+ "start": 15958,
+ "end": 15965,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 28
},
"end": {
- "line": 426,
+ "line": 444,
"column": 35
}
}
@@ -58309,15 +61044,15 @@
"postfix": false,
"binop": null
},
- "start": 14967,
- "end": 14968,
+ "start": 15965,
+ "end": 15966,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 35
},
"end": {
- "line": 426,
+ "line": 444,
"column": 36
}
}
@@ -58334,15 +61069,15 @@
"postfix": false,
"binop": null
},
- "start": 14968,
- "end": 14969,
+ "start": 15966,
+ "end": 15967,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 36
},
"end": {
- "line": 426,
+ "line": 444,
"column": 37
}
}
@@ -58360,15 +61095,15 @@
"binop": null,
"updateContext": null
},
- "start": 14969,
- "end": 14970,
+ "start": 15967,
+ "end": 15968,
"loc": {
"start": {
- "line": 426,
+ "line": 444,
"column": 37
},
"end": {
- "line": 426,
+ "line": 444,
"column": 38
}
}
@@ -58376,15 +61111,15 @@
{
"type": "CommentLine",
"value": " state dataURL",
- "start": 14980,
- "end": 14996,
+ "start": 15978,
+ "end": 15994,
"loc": {
"start": {
- "line": 427,
+ "line": 445,
"column": 8
},
"end": {
- "line": 427,
+ "line": 445,
"column": 24
}
}
@@ -58402,15 +61137,15 @@
"binop": null
},
"value": "stateData",
- "start": 15006,
- "end": 15015,
+ "start": 16004,
+ "end": 16013,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 8
},
"end": {
- "line": 428,
+ "line": 446,
"column": 17
}
}
@@ -58428,15 +61163,15 @@
"binop": null,
"updateContext": null
},
- "start": 15015,
- "end": 15016,
+ "start": 16013,
+ "end": 16014,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 17
},
"end": {
- "line": 428,
+ "line": 446,
"column": 18
}
}
@@ -58455,15 +61190,15 @@
"updateContext": null
},
"value": 1,
- "start": 15016,
- "end": 15017,
+ "start": 16014,
+ "end": 16015,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 18
},
"end": {
- "line": 428,
+ "line": 446,
"column": 19
}
}
@@ -58481,15 +61216,15 @@
"binop": null,
"updateContext": null
},
- "start": 15017,
- "end": 15018,
+ "start": 16015,
+ "end": 16016,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 19
},
"end": {
- "line": 428,
+ "line": 446,
"column": 20
}
}
@@ -58508,15 +61243,15 @@
"updateContext": null
},
"value": "=",
- "start": 15019,
- "end": 15020,
+ "start": 16017,
+ "end": 16018,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 21
},
"end": {
- "line": 428,
+ "line": 446,
"column": 22
}
}
@@ -58536,15 +61271,15 @@
"updateContext": null
},
"value": "this",
- "start": 15021,
- "end": 15025,
+ "start": 16019,
+ "end": 16023,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 23
},
"end": {
- "line": 428,
+ "line": 446,
"column": 27
}
}
@@ -58562,15 +61297,15 @@
"binop": null,
"updateContext": null
},
- "start": 15025,
- "end": 15026,
+ "start": 16023,
+ "end": 16024,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 27
},
"end": {
- "line": 428,
+ "line": 446,
"column": 28
}
}
@@ -58588,15 +61323,15 @@
"binop": null
},
"value": "getDataURL",
- "start": 15026,
- "end": 15036,
+ "start": 16024,
+ "end": 16034,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 28
},
"end": {
- "line": 428,
+ "line": 446,
"column": 38
}
}
@@ -58613,15 +61348,15 @@
"postfix": false,
"binop": null
},
- "start": 15036,
- "end": 15037,
+ "start": 16034,
+ "end": 16035,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 38
},
"end": {
- "line": 428,
+ "line": 446,
"column": 39
}
}
@@ -58638,15 +61373,15 @@
"postfix": false,
"binop": null
},
- "start": 15037,
- "end": 15038,
+ "start": 16035,
+ "end": 16036,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 39
},
"end": {
- "line": 428,
+ "line": 446,
"column": 40
}
}
@@ -58664,15 +61399,15 @@
"binop": null,
"updateContext": null
},
- "start": 15038,
- "end": 15039,
+ "start": 16036,
+ "end": 16037,
"loc": {
"start": {
- "line": 428,
+ "line": 446,
"column": 40
},
"end": {
- "line": 428,
+ "line": 446,
"column": 41
}
}
@@ -58680,15 +61415,15 @@
{
"type": "CommentLine",
"value": " state frame delay",
- "start": 15049,
- "end": 15069,
+ "start": 16047,
+ "end": 16067,
"loc": {
"start": {
- "line": 429,
+ "line": 447,
"column": 8
},
"end": {
- "line": 429,
+ "line": 447,
"column": 28
}
}
@@ -58706,15 +61441,15 @@
"binop": null
},
"value": "stateData",
- "start": 15079,
- "end": 15088,
+ "start": 16077,
+ "end": 16086,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 8
},
"end": {
- "line": 430,
+ "line": 448,
"column": 17
}
}
@@ -58732,15 +61467,15 @@
"binop": null,
"updateContext": null
},
- "start": 15088,
- "end": 15089,
+ "start": 16086,
+ "end": 16087,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 17
},
"end": {
- "line": 430,
+ "line": 448,
"column": 18
}
}
@@ -58759,15 +61494,15 @@
"updateContext": null
},
"value": 2,
- "start": 15089,
- "end": 15090,
+ "start": 16087,
+ "end": 16088,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 18
},
"end": {
- "line": 430,
+ "line": 448,
"column": 19
}
}
@@ -58785,15 +61520,15 @@
"binop": null,
"updateContext": null
},
- "start": 15090,
- "end": 15091,
+ "start": 16088,
+ "end": 16089,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 19
},
"end": {
- "line": 430,
+ "line": 448,
"column": 20
}
}
@@ -58812,15 +61547,15 @@
"updateContext": null
},
"value": "=",
- "start": 15092,
- "end": 15093,
+ "start": 16090,
+ "end": 16091,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 21
},
"end": {
- "line": 430,
+ "line": 448,
"column": 22
}
}
@@ -58840,15 +61575,15 @@
"updateContext": null
},
"value": "this",
- "start": 15094,
- "end": 15098,
+ "start": 16092,
+ "end": 16096,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 23
},
"end": {
- "line": 430,
+ "line": 448,
"column": 27
}
}
@@ -58866,15 +61601,15 @@
"binop": null,
"updateContext": null
},
- "start": 15098,
- "end": 15099,
+ "start": 16096,
+ "end": 16097,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 27
},
"end": {
- "line": 430,
+ "line": 448,
"column": 28
}
}
@@ -58892,15 +61627,15 @@
"binop": null
},
"value": "getDelay",
- "start": 15099,
- "end": 15107,
+ "start": 16097,
+ "end": 16105,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 28
},
"end": {
- "line": 430,
+ "line": 448,
"column": 36
}
}
@@ -58917,15 +61652,15 @@
"postfix": false,
"binop": null
},
- "start": 15107,
- "end": 15108,
+ "start": 16105,
+ "end": 16106,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 36
},
"end": {
- "line": 430,
+ "line": 448,
"column": 37
}
}
@@ -58942,15 +61677,15 @@
"postfix": false,
"binop": null
},
- "start": 15108,
- "end": 15109,
+ "start": 16106,
+ "end": 16107,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 37
},
"end": {
- "line": 430,
+ "line": 448,
"column": 38
}
}
@@ -58968,15 +61703,15 @@
"binop": null,
"updateContext": null
},
- "start": 15109,
- "end": 15110,
+ "start": 16107,
+ "end": 16108,
"loc": {
"start": {
- "line": 430,
+ "line": 448,
"column": 38
},
"end": {
- "line": 430,
+ "line": 448,
"column": 39
}
}
@@ -58984,15 +61719,15 @@
{
"type": "CommentLine",
"value": " state frame array",
- "start": 15120,
- "end": 15140,
+ "start": 16118,
+ "end": 16138,
"loc": {
"start": {
- "line": 431,
+ "line": 449,
"column": 8
},
"end": {
- "line": 431,
+ "line": 449,
"column": 28
}
}
@@ -59010,15 +61745,15 @@
"binop": null
},
"value": "stateData",
- "start": 15150,
- "end": 15159,
+ "start": 16148,
+ "end": 16157,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 8
},
"end": {
- "line": 432,
+ "line": 450,
"column": 17
}
}
@@ -59036,15 +61771,15 @@
"binop": null,
"updateContext": null
},
- "start": 15159,
- "end": 15160,
+ "start": 16157,
+ "end": 16158,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 17
},
"end": {
- "line": 432,
+ "line": 450,
"column": 18
}
}
@@ -59063,15 +61798,15 @@
"updateContext": null
},
"value": 3,
- "start": 15160,
- "end": 15161,
+ "start": 16158,
+ "end": 16159,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 18
},
"end": {
- "line": 432,
+ "line": 450,
"column": 19
}
}
@@ -59089,15 +61824,15 @@
"binop": null,
"updateContext": null
},
- "start": 15161,
- "end": 15162,
+ "start": 16159,
+ "end": 16160,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 19
},
"end": {
- "line": 432,
+ "line": 450,
"column": 20
}
}
@@ -59116,15 +61851,15 @@
"updateContext": null
},
"value": "=",
- "start": 15163,
- "end": 15164,
+ "start": 16161,
+ "end": 16162,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 21
},
"end": {
- "line": 432,
+ "line": 450,
"column": 22
}
}
@@ -59142,15 +61877,15 @@
"binop": null,
"updateContext": null
},
- "start": 15165,
- "end": 15166,
+ "start": 16163,
+ "end": 16164,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 23
},
"end": {
- "line": 432,
+ "line": 450,
"column": 24
}
}
@@ -59168,15 +61903,15 @@
"binop": null,
"updateContext": null
},
- "start": 15166,
- "end": 15167,
+ "start": 16164,
+ "end": 16165,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 24
},
"end": {
- "line": 432,
+ "line": 450,
"column": 25
}
}
@@ -59194,15 +61929,15 @@
"binop": null,
"updateContext": null
},
- "start": 15167,
- "end": 15168,
+ "start": 16165,
+ "end": 16166,
"loc": {
"start": {
- "line": 432,
+ "line": 450,
"column": 25
},
"end": {
- "line": 432,
+ "line": 450,
"column": 26
}
}
@@ -59210,15 +61945,15 @@
{
"type": "CommentLine",
"value": " Loop frame array to export relevant information.",
- "start": 15180,
- "end": 15231,
+ "start": 16178,
+ "end": 16229,
"loc": {
"start": {
- "line": 434,
+ "line": 452,
"column": 8
},
"end": {
- "line": 434,
+ "line": 452,
"column": 59
}
}
@@ -59238,15 +61973,15 @@
"updateContext": null
},
"value": "this",
- "start": 15241,
- "end": 15245,
+ "start": 16239,
+ "end": 16243,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 8
},
"end": {
- "line": 435,
+ "line": 453,
"column": 12
}
}
@@ -59264,15 +61999,15 @@
"binop": null,
"updateContext": null
},
- "start": 15245,
- "end": 15246,
+ "start": 16243,
+ "end": 16244,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 12
},
"end": {
- "line": 435,
+ "line": 453,
"column": 13
}
}
@@ -59290,15 +62025,15 @@
"binop": null
},
"value": "frames",
- "start": 15246,
- "end": 15252,
+ "start": 16244,
+ "end": 16250,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 13
},
"end": {
- "line": 435,
+ "line": 453,
"column": 19
}
}
@@ -59316,15 +62051,15 @@
"binop": null,
"updateContext": null
},
- "start": 15252,
- "end": 15253,
+ "start": 16250,
+ "end": 16251,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 19
},
"end": {
- "line": 435,
+ "line": 453,
"column": 20
}
}
@@ -59342,15 +62077,15 @@
"binop": null
},
"value": "forEach",
- "start": 15253,
- "end": 15260,
+ "start": 16251,
+ "end": 16258,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 20
},
"end": {
- "line": 435,
+ "line": 453,
"column": 27
}
}
@@ -59367,15 +62102,15 @@
"postfix": false,
"binop": null
},
- "start": 15260,
- "end": 15261,
+ "start": 16258,
+ "end": 16259,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 27
},
"end": {
- "line": 435,
+ "line": 453,
"column": 28
}
}
@@ -59392,15 +62127,15 @@
"postfix": false,
"binop": null
},
- "start": 15261,
- "end": 15262,
+ "start": 16259,
+ "end": 16260,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 28
},
"end": {
- "line": 435,
+ "line": 453,
"column": 29
}
}
@@ -59418,15 +62153,15 @@
"binop": null
},
"value": "pFrame",
- "start": 15262,
- "end": 15268,
+ "start": 16260,
+ "end": 16266,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 29
},
"end": {
- "line": 435,
+ "line": 453,
"column": 35
}
}
@@ -59443,15 +62178,15 @@
"postfix": false,
"binop": null
},
- "start": 15268,
- "end": 15269,
+ "start": 16266,
+ "end": 16267,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 35
},
"end": {
- "line": 435,
+ "line": 453,
"column": 36
}
}
@@ -59469,15 +62204,15 @@
"binop": null,
"updateContext": null
},
- "start": 15270,
- "end": 15272,
+ "start": 16268,
+ "end": 16270,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 37
},
"end": {
- "line": 435,
+ "line": 453,
"column": 39
}
}
@@ -59494,15 +62229,15 @@
"postfix": false,
"binop": null
},
- "start": 15273,
- "end": 15274,
+ "start": 16271,
+ "end": 16272,
"loc": {
"start": {
- "line": 435,
+ "line": 453,
"column": 40
},
"end": {
- "line": 435,
+ "line": 453,
"column": 41
}
}
@@ -59520,15 +62255,15 @@
"binop": null
},
"value": "stateData",
- "start": 15288,
- "end": 15297,
+ "start": 16286,
+ "end": 16295,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 12
},
"end": {
- "line": 436,
+ "line": 454,
"column": 21
}
}
@@ -59546,15 +62281,15 @@
"binop": null,
"updateContext": null
},
- "start": 15297,
- "end": 15298,
+ "start": 16295,
+ "end": 16296,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 21
},
"end": {
- "line": 436,
+ "line": 454,
"column": 22
}
}
@@ -59573,15 +62308,15 @@
"updateContext": null
},
"value": 3,
- "start": 15298,
- "end": 15299,
+ "start": 16296,
+ "end": 16297,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 22
},
"end": {
- "line": 436,
+ "line": 454,
"column": 23
}
}
@@ -59599,15 +62334,15 @@
"binop": null,
"updateContext": null
},
- "start": 15299,
- "end": 15300,
+ "start": 16297,
+ "end": 16298,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 23
},
"end": {
- "line": 436,
+ "line": 454,
"column": 24
}
}
@@ -59625,15 +62360,15 @@
"binop": null,
"updateContext": null
},
- "start": 15300,
- "end": 15301,
+ "start": 16298,
+ "end": 16299,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 24
},
"end": {
- "line": 436,
+ "line": 454,
"column": 25
}
}
@@ -59651,15 +62386,15 @@
"binop": null
},
"value": "push",
- "start": 15301,
- "end": 15305,
+ "start": 16299,
+ "end": 16303,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 25
},
"end": {
- "line": 436,
+ "line": 454,
"column": 29
}
}
@@ -59676,15 +62411,15 @@
"postfix": false,
"binop": null
},
- "start": 15305,
- "end": 15306,
+ "start": 16303,
+ "end": 16304,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 29
},
"end": {
- "line": 436,
+ "line": 454,
"column": 30
}
}
@@ -59702,15 +62437,15 @@
"binop": null
},
"value": "pFrame",
- "start": 15306,
- "end": 15312,
+ "start": 16304,
+ "end": 16310,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 30
},
"end": {
- "line": 436,
+ "line": 454,
"column": 36
}
}
@@ -59728,15 +62463,15 @@
"binop": null,
"updateContext": null
},
- "start": 15312,
- "end": 15313,
+ "start": 16310,
+ "end": 16311,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 36
},
"end": {
- "line": 436,
+ "line": 454,
"column": 37
}
}
@@ -59756,15 +62491,15 @@
"updateContext": null
},
"value": "export",
- "start": 15313,
- "end": 15319,
+ "start": 16311,
+ "end": 16317,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 37
},
"end": {
- "line": 436,
+ "line": 454,
"column": 43
}
}
@@ -59781,15 +62516,15 @@
"postfix": false,
"binop": null
},
- "start": 15319,
- "end": 15320,
+ "start": 16317,
+ "end": 16318,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 43
},
"end": {
- "line": 436,
+ "line": 454,
"column": 44
}
}
@@ -59806,15 +62541,15 @@
"postfix": false,
"binop": null
},
- "start": 15320,
- "end": 15321,
+ "start": 16318,
+ "end": 16319,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 44
},
"end": {
- "line": 436,
+ "line": 454,
"column": 45
}
}
@@ -59831,15 +62566,15 @@
"postfix": false,
"binop": null
},
- "start": 15321,
- "end": 15322,
+ "start": 16319,
+ "end": 16320,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 45
},
"end": {
- "line": 436,
+ "line": 454,
"column": 46
}
}
@@ -59857,15 +62592,15 @@
"binop": null,
"updateContext": null
},
- "start": 15322,
- "end": 15323,
+ "start": 16320,
+ "end": 16321,
"loc": {
"start": {
- "line": 436,
+ "line": 454,
"column": 46
},
"end": {
- "line": 436,
+ "line": 454,
"column": 47
}
}
@@ -59882,15 +62617,15 @@
"postfix": false,
"binop": null
},
- "start": 15333,
- "end": 15334,
+ "start": 16331,
+ "end": 16332,
"loc": {
"start": {
- "line": 437,
+ "line": 455,
"column": 8
},
"end": {
- "line": 437,
+ "line": 455,
"column": 9
}
}
@@ -59907,15 +62642,15 @@
"postfix": false,
"binop": null
},
- "start": 15334,
- "end": 15335,
+ "start": 16332,
+ "end": 16333,
"loc": {
"start": {
- "line": 437,
+ "line": 455,
"column": 9
},
"end": {
- "line": 437,
+ "line": 455,
"column": 10
}
}
@@ -59933,15 +62668,15 @@
"binop": null,
"updateContext": null
},
- "start": 15335,
- "end": 15336,
+ "start": 16333,
+ "end": 16334,
"loc": {
"start": {
- "line": 437,
+ "line": 455,
"column": 10
},
"end": {
- "line": 437,
+ "line": 455,
"column": 11
}
}
@@ -59961,15 +62696,15 @@
"updateContext": null
},
"value": "return",
- "start": 15346,
- "end": 15352,
+ "start": 16344,
+ "end": 16350,
"loc": {
"start": {
- "line": 438,
+ "line": 456,
"column": 8
},
"end": {
- "line": 438,
+ "line": 456,
"column": 14
}
}
@@ -59987,15 +62722,15 @@
"binop": null
},
"value": "stateData",
- "start": 15353,
- "end": 15362,
+ "start": 16351,
+ "end": 16360,
"loc": {
"start": {
- "line": 438,
+ "line": 456,
"column": 15
},
"end": {
- "line": 438,
+ "line": 456,
"column": 24
}
}
@@ -60013,15 +62748,15 @@
"binop": null,
"updateContext": null
},
- "start": 15362,
- "end": 15363,
+ "start": 16360,
+ "end": 16361,
"loc": {
"start": {
- "line": 438,
+ "line": 456,
"column": 24
},
"end": {
- "line": 438,
+ "line": 456,
"column": 25
}
}
@@ -60038,15 +62773,15 @@
"postfix": false,
"binop": null
},
- "start": 15369,
- "end": 15370,
+ "start": 16367,
+ "end": 16368,
"loc": {
"start": {
- "line": 439,
+ "line": 457,
"column": 4
},
"end": {
- "line": 439,
+ "line": 457,
"column": 5
}
}
@@ -60054,15 +62789,15 @@
{
"type": "CommentBlock",
"value": "*\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n ",
- "start": 15376,
- "end": 15551,
+ "start": 16374,
+ "end": 16549,
"loc": {
"start": {
- "line": 440,
+ "line": 458,
"column": 4
},
"end": {
- "line": 444,
+ "line": 462,
"column": 7
}
}
@@ -60082,15 +62817,15 @@
"updateContext": null
},
"value": "export",
- "start": 15557,
- "end": 15563,
+ "start": 16555,
+ "end": 16561,
"loc": {
"start": {
- "line": 445,
+ "line": 463,
"column": 4
},
"end": {
- "line": 445,
+ "line": 463,
"column": 10
}
}
@@ -60107,15 +62842,15 @@
"postfix": false,
"binop": null
},
- "start": 15563,
- "end": 15564,
+ "start": 16561,
+ "end": 16562,
"loc": {
"start": {
- "line": 445,
+ "line": 463,
"column": 10
},
"end": {
- "line": 445,
+ "line": 463,
"column": 11
}
}
@@ -60132,15 +62867,15 @@
"postfix": false,
"binop": null
},
- "start": 15564,
- "end": 15565,
+ "start": 16562,
+ "end": 16563,
"loc": {
"start": {
- "line": 445,
+ "line": 463,
"column": 11
},
"end": {
- "line": 445,
+ "line": 463,
"column": 12
}
}
@@ -60157,15 +62892,15 @@
"postfix": false,
"binop": null
},
- "start": 15566,
- "end": 15567,
+ "start": 16564,
+ "end": 16565,
"loc": {
"start": {
- "line": 445,
+ "line": 463,
"column": 13
},
"end": {
- "line": 445,
+ "line": 463,
"column": 14
}
}
@@ -60185,15 +62920,15 @@
"updateContext": null
},
"value": "const",
- "start": 15577,
- "end": 15582,
+ "start": 16575,
+ "end": 16580,
"loc": {
"start": {
- "line": 446,
+ "line": 464,
"column": 8
},
"end": {
- "line": 446,
+ "line": 464,
"column": 13
}
}
@@ -60211,15 +62946,15 @@
"binop": null
},
"value": "iconData",
- "start": 15583,
- "end": 15591,
+ "start": 16581,
+ "end": 16589,
"loc": {
"start": {
- "line": 446,
+ "line": 464,
"column": 14
},
"end": {
- "line": 446,
+ "line": 464,
"column": 22
}
}
@@ -60238,15 +62973,15 @@
"updateContext": null
},
"value": "=",
- "start": 15592,
- "end": 15593,
+ "start": 16590,
+ "end": 16591,
"loc": {
"start": {
- "line": 446,
+ "line": 464,
"column": 23
},
"end": {
- "line": 446,
+ "line": 464,
"column": 24
}
}
@@ -60264,15 +62999,15 @@
"binop": null,
"updateContext": null
},
- "start": 15594,
- "end": 15595,
+ "start": 16592,
+ "end": 16593,
"loc": {
"start": {
- "line": 446,
+ "line": 464,
"column": 25
},
"end": {
- "line": 446,
+ "line": 464,
"column": 26
}
}
@@ -60290,15 +63025,15 @@
"binop": null,
"updateContext": null
},
- "start": 15595,
- "end": 15596,
+ "start": 16593,
+ "end": 16594,
"loc": {
"start": {
- "line": 446,
+ "line": 464,
"column": 26
},
"end": {
- "line": 446,
+ "line": 464,
"column": 27
}
}
@@ -60316,15 +63051,15 @@
"binop": null,
"updateContext": null
},
- "start": 15596,
- "end": 15597,
+ "start": 16594,
+ "end": 16595,
"loc": {
"start": {
- "line": 446,
+ "line": 464,
"column": 27
},
"end": {
- "line": 446,
+ "line": 464,
"column": 28
}
}
@@ -60332,15 +63067,15 @@
{
"type": "CommentLine",
"value": " icon name",
- "start": 15607,
- "end": 15619,
+ "start": 16605,
+ "end": 16617,
"loc": {
"start": {
- "line": 447,
+ "line": 465,
"column": 8
},
"end": {
- "line": 447,
+ "line": 465,
"column": 20
}
}
@@ -60358,15 +63093,15 @@
"binop": null
},
"value": "iconData",
- "start": 15629,
- "end": 15637,
+ "start": 16627,
+ "end": 16635,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 8
},
"end": {
- "line": 448,
+ "line": 466,
"column": 16
}
}
@@ -60384,15 +63119,15 @@
"binop": null,
"updateContext": null
},
- "start": 15637,
- "end": 15638,
+ "start": 16635,
+ "end": 16636,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 16
},
"end": {
- "line": 448,
+ "line": 466,
"column": 17
}
}
@@ -60411,15 +63146,15 @@
"updateContext": null
},
"value": 0,
- "start": 15638,
- "end": 15639,
+ "start": 16636,
+ "end": 16637,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 17
},
"end": {
- "line": 448,
+ "line": 466,
"column": 18
}
}
@@ -60437,15 +63172,15 @@
"binop": null,
"updateContext": null
},
- "start": 15639,
- "end": 15640,
+ "start": 16637,
+ "end": 16638,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 18
},
"end": {
- "line": 448,
+ "line": 466,
"column": 19
}
}
@@ -60464,15 +63199,15 @@
"updateContext": null
},
"value": "=",
- "start": 15641,
- "end": 15642,
+ "start": 16639,
+ "end": 16640,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 20
},
"end": {
- "line": 448,
+ "line": 466,
"column": 21
}
}
@@ -60492,15 +63227,15 @@
"updateContext": null
},
"value": "this",
- "start": 15643,
- "end": 15647,
+ "start": 16641,
+ "end": 16645,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 22
},
"end": {
- "line": 448,
+ "line": 466,
"column": 26
}
}
@@ -60518,15 +63253,15 @@
"binop": null,
"updateContext": null
},
- "start": 15647,
- "end": 15648,
+ "start": 16645,
+ "end": 16646,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 26
},
"end": {
- "line": 448,
+ "line": 466,
"column": 27
}
}
@@ -60544,15 +63279,15 @@
"binop": null
},
"value": "getName",
- "start": 15648,
- "end": 15655,
+ "start": 16646,
+ "end": 16653,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 27
},
"end": {
- "line": 448,
+ "line": 466,
"column": 34
}
}
@@ -60569,15 +63304,15 @@
"postfix": false,
"binop": null
},
- "start": 15655,
- "end": 15656,
+ "start": 16653,
+ "end": 16654,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 34
},
"end": {
- "line": 448,
+ "line": 466,
"column": 35
}
}
@@ -60594,15 +63329,15 @@
"postfix": false,
"binop": null
},
- "start": 15656,
- "end": 15657,
+ "start": 16654,
+ "end": 16655,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 35
},
"end": {
- "line": 448,
+ "line": 466,
"column": 36
}
}
@@ -60620,15 +63355,15 @@
"binop": null,
"updateContext": null
},
- "start": 15657,
- "end": 15658,
+ "start": 16655,
+ "end": 16656,
"loc": {
"start": {
- "line": 448,
+ "line": 466,
"column": 36
},
"end": {
- "line": 448,
+ "line": 466,
"column": 37
}
}
@@ -60636,15 +63371,15 @@
{
"type": "CommentLine",
"value": " Get the size of this icon.",
- "start": 15668,
- "end": 15697,
+ "start": 16666,
+ "end": 16695,
"loc": {
"start": {
- "line": 449,
+ "line": 467,
"column": 8
},
"end": {
- "line": 449,
+ "line": 467,
"column": 37
}
}
@@ -60664,15 +63399,15 @@
"updateContext": null
},
"value": "const",
- "start": 15707,
- "end": 15712,
+ "start": 16705,
+ "end": 16710,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 8
},
"end": {
- "line": 450,
+ "line": 468,
"column": 13
}
}
@@ -60690,15 +63425,15 @@
"binop": null
},
"value": "size",
- "start": 15713,
- "end": 15717,
+ "start": 16711,
+ "end": 16715,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 14
},
"end": {
- "line": 450,
+ "line": 468,
"column": 18
}
}
@@ -60717,15 +63452,15 @@
"updateContext": null
},
"value": "=",
- "start": 15718,
- "end": 15719,
+ "start": 16716,
+ "end": 16717,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 19
},
"end": {
- "line": 450,
+ "line": 468,
"column": 20
}
}
@@ -60745,15 +63480,15 @@
"updateContext": null
},
"value": "this",
- "start": 15720,
- "end": 15724,
+ "start": 16718,
+ "end": 16722,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 21
},
"end": {
- "line": 450,
+ "line": 468,
"column": 25
}
}
@@ -60771,15 +63506,15 @@
"binop": null,
"updateContext": null
},
- "start": 15724,
- "end": 15725,
+ "start": 16722,
+ "end": 16723,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 25
},
"end": {
- "line": 450,
+ "line": 468,
"column": 26
}
}
@@ -60797,15 +63532,15 @@
"binop": null
},
"value": "getSize",
- "start": 15725,
- "end": 15732,
+ "start": 16723,
+ "end": 16730,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 26
},
"end": {
- "line": 450,
+ "line": 468,
"column": 33
}
}
@@ -60822,15 +63557,15 @@
"postfix": false,
"binop": null
},
- "start": 15732,
- "end": 15733,
+ "start": 16730,
+ "end": 16731,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 33
},
"end": {
- "line": 450,
+ "line": 468,
"column": 34
}
}
@@ -60847,15 +63582,15 @@
"postfix": false,
"binop": null
},
- "start": 15733,
- "end": 15734,
+ "start": 16731,
+ "end": 16732,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 34
},
"end": {
- "line": 450,
+ "line": 468,
"column": 35
}
}
@@ -60873,15 +63608,15 @@
"binop": null,
"updateContext": null
},
- "start": 15734,
- "end": 15735,
+ "start": 16732,
+ "end": 16733,
"loc": {
"start": {
- "line": 450,
+ "line": 468,
"column": 35
},
"end": {
- "line": 450,
+ "line": 468,
"column": 36
}
}
@@ -60889,15 +63624,15 @@
{
"type": "CommentLine",
"value": " icon width",
- "start": 15745,
- "end": 15758,
+ "start": 16743,
+ "end": 16756,
"loc": {
"start": {
- "line": 451,
+ "line": 469,
"column": 8
},
"end": {
- "line": 451,
+ "line": 469,
"column": 21
}
}
@@ -60915,15 +63650,15 @@
"binop": null
},
"value": "iconData",
- "start": 15768,
- "end": 15776,
+ "start": 16766,
+ "end": 16774,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 8
},
"end": {
- "line": 452,
+ "line": 470,
"column": 16
}
}
@@ -60941,15 +63676,15 @@
"binop": null,
"updateContext": null
},
- "start": 15776,
- "end": 15777,
+ "start": 16774,
+ "end": 16775,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 16
},
"end": {
- "line": 452,
+ "line": 470,
"column": 17
}
}
@@ -60968,15 +63703,15 @@
"updateContext": null
},
"value": 1,
- "start": 15777,
- "end": 15778,
+ "start": 16775,
+ "end": 16776,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 17
},
"end": {
- "line": 452,
+ "line": 470,
"column": 18
}
}
@@ -60994,15 +63729,15 @@
"binop": null,
"updateContext": null
},
- "start": 15778,
- "end": 15779,
+ "start": 16776,
+ "end": 16777,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 18
},
"end": {
- "line": 452,
+ "line": 470,
"column": 19
}
}
@@ -61021,15 +63756,15 @@
"updateContext": null
},
"value": "=",
- "start": 15780,
- "end": 15781,
+ "start": 16778,
+ "end": 16779,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 20
},
"end": {
- "line": 452,
+ "line": 470,
"column": 21
}
}
@@ -61047,15 +63782,15 @@
"binop": null
},
"value": "size",
- "start": 15782,
- "end": 15786,
+ "start": 16780,
+ "end": 16784,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 22
},
"end": {
- "line": 452,
+ "line": 470,
"column": 26
}
}
@@ -61073,15 +63808,15 @@
"binop": null,
"updateContext": null
},
- "start": 15786,
- "end": 15787,
+ "start": 16784,
+ "end": 16785,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 26
},
"end": {
- "line": 452,
+ "line": 470,
"column": 27
}
}
@@ -61099,15 +63834,15 @@
"binop": null
},
"value": "width",
- "start": 15787,
- "end": 15792,
+ "start": 16785,
+ "end": 16790,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 27
},
"end": {
- "line": 452,
+ "line": 470,
"column": 32
}
}
@@ -61125,15 +63860,15 @@
"binop": null,
"updateContext": null
},
- "start": 15792,
- "end": 15793,
+ "start": 16790,
+ "end": 16791,
"loc": {
"start": {
- "line": 452,
+ "line": 470,
"column": 32
},
"end": {
- "line": 452,
+ "line": 470,
"column": 33
}
}
@@ -61141,15 +63876,15 @@
{
"type": "CommentLine",
"value": " icon height",
- "start": 15803,
- "end": 15817,
+ "start": 16801,
+ "end": 16815,
"loc": {
"start": {
- "line": 453,
+ "line": 471,
"column": 8
},
"end": {
- "line": 453,
+ "line": 471,
"column": 22
}
}
@@ -61167,15 +63902,15 @@
"binop": null
},
"value": "iconData",
- "start": 15827,
- "end": 15835,
+ "start": 16825,
+ "end": 16833,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 8
},
"end": {
- "line": 454,
+ "line": 472,
"column": 16
}
}
@@ -61193,15 +63928,15 @@
"binop": null,
"updateContext": null
},
- "start": 15835,
- "end": 15836,
+ "start": 16833,
+ "end": 16834,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 16
},
"end": {
- "line": 454,
+ "line": 472,
"column": 17
}
}
@@ -61220,15 +63955,15 @@
"updateContext": null
},
"value": 2,
- "start": 15836,
- "end": 15837,
+ "start": 16834,
+ "end": 16835,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 17
},
"end": {
- "line": 454,
+ "line": 472,
"column": 18
}
}
@@ -61246,15 +63981,15 @@
"binop": null,
"updateContext": null
},
- "start": 15837,
- "end": 15838,
+ "start": 16835,
+ "end": 16836,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 18
},
"end": {
- "line": 454,
+ "line": 472,
"column": 19
}
}
@@ -61273,15 +64008,15 @@
"updateContext": null
},
"value": "=",
- "start": 15839,
- "end": 15840,
+ "start": 16837,
+ "end": 16838,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 20
},
"end": {
- "line": 454,
+ "line": 472,
"column": 21
}
}
@@ -61299,15 +64034,15 @@
"binop": null
},
"value": "size",
- "start": 15841,
- "end": 15845,
+ "start": 16839,
+ "end": 16843,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 22
},
"end": {
- "line": 454,
+ "line": 472,
"column": 26
}
}
@@ -61325,15 +64060,15 @@
"binop": null,
"updateContext": null
},
- "start": 15845,
- "end": 15846,
+ "start": 16843,
+ "end": 16844,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 26
},
"end": {
- "line": 454,
+ "line": 472,
"column": 27
}
}
@@ -61351,15 +64086,15 @@
"binop": null
},
"value": "height",
- "start": 15846,
- "end": 15852,
+ "start": 16844,
+ "end": 16850,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 27
},
"end": {
- "line": 454,
+ "line": 472,
"column": 33
}
}
@@ -61377,15 +64112,15 @@
"binop": null,
"updateContext": null
},
- "start": 15852,
- "end": 15853,
+ "start": 16850,
+ "end": 16851,
"loc": {
"start": {
- "line": 454,
+ "line": 472,
"column": 33
},
"end": {
- "line": 454,
+ "line": 472,
"column": 34
}
}
@@ -61393,15 +64128,15 @@
{
"type": "CommentLine",
"value": " frame delay",
- "start": 15863,
- "end": 15877,
+ "start": 16861,
+ "end": 16875,
"loc": {
"start": {
- "line": 455,
+ "line": 473,
"column": 8
},
"end": {
- "line": 455,
+ "line": 473,
"column": 22
}
}
@@ -61419,15 +64154,15 @@
"binop": null
},
"value": "iconData",
- "start": 15887,
- "end": 15895,
+ "start": 16885,
+ "end": 16893,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 8
},
"end": {
- "line": 456,
+ "line": 474,
"column": 16
}
}
@@ -61445,15 +64180,15 @@
"binop": null,
"updateContext": null
},
- "start": 15895,
- "end": 15896,
+ "start": 16893,
+ "end": 16894,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 16
},
"end": {
- "line": 456,
+ "line": 474,
"column": 17
}
}
@@ -61472,15 +64207,15 @@
"updateContext": null
},
"value": 3,
- "start": 15896,
- "end": 15897,
+ "start": 16894,
+ "end": 16895,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 17
},
"end": {
- "line": 456,
+ "line": 474,
"column": 18
}
}
@@ -61498,15 +64233,15 @@
"binop": null,
"updateContext": null
},
- "start": 15897,
- "end": 15898,
+ "start": 16895,
+ "end": 16896,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 18
},
"end": {
- "line": 456,
+ "line": 474,
"column": 19
}
}
@@ -61525,15 +64260,15 @@
"updateContext": null
},
"value": "=",
- "start": 15899,
- "end": 15900,
+ "start": 16897,
+ "end": 16898,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 20
},
"end": {
- "line": 456,
+ "line": 474,
"column": 21
}
}
@@ -61553,15 +64288,15 @@
"updateContext": null
},
"value": "this",
- "start": 15901,
- "end": 15905,
+ "start": 16899,
+ "end": 16903,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 22
},
"end": {
- "line": 456,
+ "line": 474,
"column": 26
}
}
@@ -61579,15 +64314,15 @@
"binop": null,
"updateContext": null
},
- "start": 15905,
- "end": 15906,
+ "start": 16903,
+ "end": 16904,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 26
},
"end": {
- "line": 456,
+ "line": 474,
"column": 27
}
}
@@ -61605,15 +64340,15 @@
"binop": null
},
"value": "getDelay",
- "start": 15906,
- "end": 15914,
+ "start": 16904,
+ "end": 16912,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 27
},
"end": {
- "line": 456,
+ "line": 474,
"column": 35
}
}
@@ -61630,15 +64365,15 @@
"postfix": false,
"binop": null
},
- "start": 15914,
- "end": 15915,
+ "start": 16912,
+ "end": 16913,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 35
},
"end": {
- "line": 456,
+ "line": 474,
"column": 36
}
}
@@ -61655,15 +64390,15 @@
"postfix": false,
"binop": null
},
- "start": 15915,
- "end": 15916,
+ "start": 16913,
+ "end": 16914,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 36
},
"end": {
- "line": 456,
+ "line": 474,
"column": 37
}
}
@@ -61681,15 +64416,15 @@
"binop": null,
"updateContext": null
},
- "start": 15916,
- "end": 15917,
+ "start": 16914,
+ "end": 16915,
"loc": {
"start": {
- "line": 456,
+ "line": 474,
"column": 37
},
"end": {
- "line": 456,
+ "line": 474,
"column": 38
}
}
@@ -61697,15 +64432,15 @@
{
"type": "CommentLine",
"value": " icon DataURL",
- "start": 15927,
- "end": 15942,
+ "start": 16925,
+ "end": 16940,
"loc": {
"start": {
- "line": 457,
+ "line": 475,
"column": 8
},
"end": {
- "line": 457,
+ "line": 475,
"column": 23
}
}
@@ -61723,15 +64458,15 @@
"binop": null
},
"value": "iconData",
- "start": 15952,
- "end": 15960,
+ "start": 16950,
+ "end": 16958,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 8
},
"end": {
- "line": 458,
+ "line": 476,
"column": 16
}
}
@@ -61749,15 +64484,15 @@
"binop": null,
"updateContext": null
},
- "start": 15960,
- "end": 15961,
+ "start": 16958,
+ "end": 16959,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 16
},
"end": {
- "line": 458,
+ "line": 476,
"column": 17
}
}
@@ -61776,15 +64511,15 @@
"updateContext": null
},
"value": 4,
- "start": 15961,
- "end": 15962,
+ "start": 16959,
+ "end": 16960,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 17
},
"end": {
- "line": 458,
+ "line": 476,
"column": 18
}
}
@@ -61802,15 +64537,15 @@
"binop": null,
"updateContext": null
},
- "start": 15962,
- "end": 15963,
+ "start": 16960,
+ "end": 16961,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 18
},
"end": {
- "line": 458,
+ "line": 476,
"column": 19
}
}
@@ -61829,15 +64564,15 @@
"updateContext": null
},
"value": "=",
- "start": 15964,
- "end": 15965,
+ "start": 16962,
+ "end": 16963,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 20
},
"end": {
- "line": 458,
+ "line": 476,
"column": 21
}
}
@@ -61857,15 +64592,15 @@
"updateContext": null
},
"value": "this",
- "start": 15966,
- "end": 15970,
+ "start": 16964,
+ "end": 16968,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 22
},
"end": {
- "line": 458,
+ "line": 476,
"column": 26
}
}
@@ -61883,15 +64618,15 @@
"binop": null,
"updateContext": null
},
- "start": 15970,
- "end": 15971,
+ "start": 16968,
+ "end": 16969,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 26
},
"end": {
- "line": 458,
+ "line": 476,
"column": 27
}
}
@@ -61909,15 +64644,15 @@
"binop": null
},
"value": "getDataURL",
- "start": 15971,
- "end": 15981,
+ "start": 16969,
+ "end": 16979,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 27
},
"end": {
- "line": 458,
+ "line": 476,
"column": 37
}
}
@@ -61934,15 +64669,15 @@
"postfix": false,
"binop": null
},
- "start": 15981,
- "end": 15982,
+ "start": 16979,
+ "end": 16980,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 37
},
"end": {
- "line": 458,
+ "line": 476,
"column": 38
}
}
@@ -61959,15 +64694,15 @@
"postfix": false,
"binop": null
},
- "start": 15982,
- "end": 15983,
+ "start": 16980,
+ "end": 16981,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 38
},
"end": {
- "line": 458,
+ "line": 476,
"column": 39
}
}
@@ -61985,15 +64720,15 @@
"binop": null,
"updateContext": null
},
- "start": 15983,
- "end": 15984,
+ "start": 16981,
+ "end": 16982,
"loc": {
"start": {
- "line": 458,
+ "line": 476,
"column": 39
},
"end": {
- "line": 458,
+ "line": 476,
"column": 40
}
}
@@ -62001,15 +64736,15 @@
{
"type": "CommentLine",
"value": " frame array",
- "start": 15994,
- "end": 16008,
+ "start": 16992,
+ "end": 17006,
"loc": {
"start": {
- "line": 459,
+ "line": 477,
"column": 8
},
"end": {
- "line": 459,
+ "line": 477,
"column": 22
}
}
@@ -62027,15 +64762,15 @@
"binop": null
},
"value": "iconData",
- "start": 16018,
- "end": 16026,
+ "start": 17016,
+ "end": 17024,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 8
},
"end": {
- "line": 460,
+ "line": 478,
"column": 16
}
}
@@ -62053,15 +64788,15 @@
"binop": null,
"updateContext": null
},
- "start": 16026,
- "end": 16027,
+ "start": 17024,
+ "end": 17025,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 16
},
"end": {
- "line": 460,
+ "line": 478,
"column": 17
}
}
@@ -62080,15 +64815,15 @@
"updateContext": null
},
"value": 5,
- "start": 16027,
- "end": 16028,
+ "start": 17025,
+ "end": 17026,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 17
},
"end": {
- "line": 460,
+ "line": 478,
"column": 18
}
}
@@ -62106,15 +64841,15 @@
"binop": null,
"updateContext": null
},
- "start": 16028,
- "end": 16029,
+ "start": 17026,
+ "end": 17027,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 18
},
"end": {
- "line": 460,
+ "line": 478,
"column": 19
}
}
@@ -62133,15 +64868,15 @@
"updateContext": null
},
"value": "=",
- "start": 16030,
- "end": 16031,
+ "start": 17028,
+ "end": 17029,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 20
},
"end": {
- "line": 460,
+ "line": 478,
"column": 21
}
}
@@ -62161,15 +64896,15 @@
"updateContext": null
},
"value": "this",
- "start": 16032,
- "end": 16036,
+ "start": 17030,
+ "end": 17034,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 22
},
"end": {
- "line": 460,
+ "line": 478,
"column": 26
}
}
@@ -62187,15 +64922,15 @@
"binop": null,
"updateContext": null
},
- "start": 16036,
- "end": 16037,
+ "start": 17034,
+ "end": 17035,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 26
},
"end": {
- "line": 460,
+ "line": 478,
"column": 27
}
}
@@ -62213,15 +64948,15 @@
"binop": null
},
"value": "getFramesData",
- "start": 16037,
- "end": 16050,
+ "start": 17035,
+ "end": 17048,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 27
},
"end": {
- "line": 460,
+ "line": 478,
"column": 40
}
}
@@ -62238,15 +64973,15 @@
"postfix": false,
"binop": null
},
- "start": 16050,
- "end": 16051,
+ "start": 17048,
+ "end": 17049,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 40
},
"end": {
- "line": 460,
+ "line": 478,
"column": 41
}
}
@@ -62263,15 +64998,15 @@
"postfix": false,
"binop": null
},
- "start": 16051,
- "end": 16052,
+ "start": 17049,
+ "end": 17050,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 41
},
"end": {
- "line": 460,
+ "line": 478,
"column": 42
}
}
@@ -62289,15 +65024,15 @@
"binop": null,
"updateContext": null
},
- "start": 16052,
- "end": 16053,
+ "start": 17050,
+ "end": 17051,
"loc": {
"start": {
- "line": 460,
+ "line": 478,
"column": 42
},
"end": {
- "line": 460,
+ "line": 478,
"column": 43
}
}
@@ -62305,15 +65040,15 @@
{
"type": "CommentLine",
"value": " this is actually an optional data entry into the vyi, only used if states actually exist on this icon.",
- "start": 16065,
- "end": 16170,
+ "start": 17063,
+ "end": 17168,
"loc": {
"start": {
- "line": 462,
+ "line": 480,
"column": 8
},
"end": {
- "line": 462,
+ "line": 480,
"column": 113
}
}
@@ -62321,15 +65056,15 @@
{
"type": "CommentLine",
"value": " this will save data",
- "start": 16180,
- "end": 16202,
+ "start": 17178,
+ "end": 17200,
"loc": {
"start": {
- "line": 463,
+ "line": 481,
"column": 8
},
"end": {
- "line": 463,
+ "line": 481,
"column": 30
}
}
@@ -62349,15 +65084,15 @@
"updateContext": null
},
"value": "if",
- "start": 16212,
- "end": 16214,
+ "start": 17210,
+ "end": 17212,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 8
},
"end": {
- "line": 464,
+ "line": 482,
"column": 10
}
}
@@ -62374,15 +65109,15 @@
"postfix": false,
"binop": null
},
- "start": 16215,
- "end": 16216,
+ "start": 17213,
+ "end": 17214,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 11
},
"end": {
- "line": 464,
+ "line": 482,
"column": 12
}
}
@@ -62402,15 +65137,15 @@
"updateContext": null
},
"value": "this",
- "start": 16216,
- "end": 16220,
+ "start": 17214,
+ "end": 17218,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 12
},
"end": {
- "line": 464,
+ "line": 482,
"column": 16
}
}
@@ -62428,15 +65163,15 @@
"binop": null,
"updateContext": null
},
- "start": 16220,
- "end": 16221,
+ "start": 17218,
+ "end": 17219,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 16
},
"end": {
- "line": 464,
+ "line": 482,
"column": 17
}
}
@@ -62454,15 +65189,15 @@
"binop": null
},
"value": "states",
- "start": 16221,
- "end": 16227,
+ "start": 17219,
+ "end": 17225,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 17
},
"end": {
- "line": 464,
+ "line": 482,
"column": 23
}
}
@@ -62480,15 +65215,15 @@
"binop": null,
"updateContext": null
},
- "start": 16227,
- "end": 16228,
+ "start": 17225,
+ "end": 17226,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 23
},
"end": {
- "line": 464,
+ "line": 482,
"column": 24
}
}
@@ -62506,15 +65241,15 @@
"binop": null
},
"value": "length",
- "start": 16228,
- "end": 16234,
+ "start": 17226,
+ "end": 17232,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 24
},
"end": {
- "line": 464,
+ "line": 482,
"column": 30
}
}
@@ -62531,15 +65266,15 @@
"postfix": false,
"binop": null
},
- "start": 16234,
- "end": 16235,
+ "start": 17232,
+ "end": 17233,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 30
},
"end": {
- "line": 464,
+ "line": 482,
"column": 31
}
}
@@ -62556,15 +65291,15 @@
"postfix": false,
"binop": null
},
- "start": 16236,
- "end": 16237,
+ "start": 17234,
+ "end": 17235,
"loc": {
"start": {
- "line": 464,
+ "line": 482,
"column": 32
},
"end": {
- "line": 464,
+ "line": 482,
"column": 33
}
}
@@ -62572,15 +65307,15 @@
{
"type": "CommentLine",
"value": " states array",
- "start": 16251,
- "end": 16266,
+ "start": 17249,
+ "end": 17264,
"loc": {
"start": {
- "line": 465,
+ "line": 483,
"column": 12
},
"end": {
- "line": 465,
+ "line": 483,
"column": 27
}
}
@@ -62598,15 +65333,15 @@
"binop": null
},
"value": "iconData",
- "start": 16280,
- "end": 16288,
+ "start": 17278,
+ "end": 17286,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 12
},
"end": {
- "line": 466,
+ "line": 484,
"column": 20
}
}
@@ -62624,15 +65359,15 @@
"binop": null,
"updateContext": null
},
- "start": 16288,
- "end": 16289,
+ "start": 17286,
+ "end": 17287,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 20
},
"end": {
- "line": 466,
+ "line": 484,
"column": 21
}
}
@@ -62651,15 +65386,15 @@
"updateContext": null
},
"value": 6,
- "start": 16289,
- "end": 16290,
+ "start": 17287,
+ "end": 17288,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 21
},
"end": {
- "line": 466,
+ "line": 484,
"column": 22
}
}
@@ -62677,15 +65412,15 @@
"binop": null,
"updateContext": null
},
- "start": 16290,
- "end": 16291,
+ "start": 17288,
+ "end": 17289,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 22
},
"end": {
- "line": 466,
+ "line": 484,
"column": 23
}
}
@@ -62704,15 +65439,15 @@
"updateContext": null
},
"value": "=",
- "start": 16292,
- "end": 16293,
+ "start": 17290,
+ "end": 17291,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 24
},
"end": {
- "line": 466,
+ "line": 484,
"column": 25
}
}
@@ -62732,15 +65467,15 @@
"updateContext": null
},
"value": "this",
- "start": 16294,
- "end": 16298,
+ "start": 17292,
+ "end": 17296,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 26
},
"end": {
- "line": 466,
+ "line": 484,
"column": 30
}
}
@@ -62758,15 +65493,15 @@
"binop": null,
"updateContext": null
},
- "start": 16298,
- "end": 16299,
+ "start": 17296,
+ "end": 17297,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 30
},
"end": {
- "line": 466,
+ "line": 484,
"column": 31
}
}
@@ -62784,15 +65519,15 @@
"binop": null
},
"value": "getStatesData",
- "start": 16299,
- "end": 16312,
+ "start": 17297,
+ "end": 17310,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 31
},
"end": {
- "line": 466,
+ "line": 484,
"column": 44
}
}
@@ -62809,15 +65544,15 @@
"postfix": false,
"binop": null
},
- "start": 16312,
- "end": 16313,
+ "start": 17310,
+ "end": 17311,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 44
},
"end": {
- "line": 466,
+ "line": 484,
"column": 45
}
}
@@ -62834,15 +65569,15 @@
"postfix": false,
"binop": null
},
- "start": 16313,
- "end": 16314,
+ "start": 17311,
+ "end": 17312,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 45
},
"end": {
- "line": 466,
+ "line": 484,
"column": 46
}
}
@@ -62860,15 +65595,15 @@
"binop": null,
"updateContext": null
},
- "start": 16314,
- "end": 16315,
+ "start": 17312,
+ "end": 17313,
"loc": {
"start": {
- "line": 466,
+ "line": 484,
"column": 46
},
"end": {
- "line": 466,
+ "line": 484,
"column": 47
}
}
@@ -62885,15 +65620,15 @@
"postfix": false,
"binop": null
},
- "start": 16325,
- "end": 16326,
+ "start": 17323,
+ "end": 17324,
"loc": {
"start": {
- "line": 467,
+ "line": 485,
"column": 8
},
"end": {
- "line": 467,
+ "line": 485,
"column": 9
}
}
@@ -62913,15 +65648,15 @@
"updateContext": null
},
"value": "return",
- "start": 16336,
- "end": 16342,
+ "start": 17334,
+ "end": 17340,
"loc": {
"start": {
- "line": 468,
+ "line": 486,
"column": 8
},
"end": {
- "line": 468,
+ "line": 486,
"column": 14
}
}
@@ -62939,15 +65674,15 @@
"binop": null
},
"value": "iconData",
- "start": 16343,
- "end": 16351,
+ "start": 17341,
+ "end": 17349,
"loc": {
"start": {
- "line": 468,
+ "line": 486,
"column": 15
},
"end": {
- "line": 468,
+ "line": 486,
"column": 23
}
}
@@ -62965,15 +65700,15 @@
"binop": null,
"updateContext": null
},
- "start": 16351,
- "end": 16352,
+ "start": 17349,
+ "end": 17350,
"loc": {
"start": {
- "line": 468,
+ "line": 486,
"column": 23
},
"end": {
- "line": 468,
+ "line": 486,
"column": 24
}
}
@@ -62990,15 +65725,15 @@
"postfix": false,
"binop": null
},
- "start": 16358,
- "end": 16359,
+ "start": 17356,
+ "end": 17357,
"loc": {
"start": {
- "line": 469,
+ "line": 487,
"column": 4
},
"end": {
- "line": 469,
+ "line": 487,
"column": 5
}
}
@@ -63015,15 +65750,15 @@
"postfix": false,
"binop": null
},
- "start": 16361,
- "end": 16362,
+ "start": 17359,
+ "end": 17360,
"loc": {
"start": {
- "line": 470,
+ "line": 488,
"column": 0
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
}
@@ -63041,15 +65776,15 @@
"binop": null,
"updateContext": null
},
- "start": 16362,
- "end": 16362,
+ "start": 17360,
+ "end": 17360,
"loc": {
"start": {
- "line": 470,
+ "line": 488,
"column": 1
},
"end": {
- "line": 470,
+ "line": 488,
"column": 1
}
}
diff --git a/docs/class/src/frame.mjs~Frame.html b/docs/class/src/frame.mjs~Frame.html
index 4d3c321..22956e2 100644
--- a/docs/class/src/frame.mjs~Frame.html
+++ b/docs/class/src/frame.mjs~Frame.html
@@ -130,7 +130,7 @@ Frame
- constructor(pFrameData: Object)
+ constructor(pFrameData: Object, pParentIcon: Icon)
@@ -239,16 +239,9 @@
Frame
-
-
-
-Method Summary
- Public Methods |
-
-
-
+
- public
+ private
@@ -260,13 +253,13 @@ Frame
- export(): Array
+ parent: Icon
- Exports this frame's data into proper vyi format.
+ The icon that owns this frame.
|
@@ -275,7 +268,14 @@ Frame
-
+
+
+
+Method Summary
+ Public Methods |
+
+
+
public
@@ -339,35 +339,6 @@ Frame
-
- |
-
-
-
-
-
- Gets the index of this frame.
-
-
- |
-
-
-
- |
-
-
-
- public
-
-
-
|
@@ -440,13 +411,13 @@ Frame
- parse(pFrameData: Object)
+ export(): Array
- parses through the icon data and adds data to this frame.
+ Exports this frame's data into proper vyi format.
|
@@ -469,13 +440,13 @@ Frame
- setIndex(pIndex: number): self
+ parse(pFrameData: Object)
-
Sets the index of the frame.
+
parses through the icon data and adds data to this frame.
@@ -504,7 +475,7 @@
@@ -548,11 +519,11 @@
- constructor(pFrameData: Object)
+ constructor(pFrameData: Object, pParentIcon: Icon)
- source
+ source
@@ -579,6 +550,13 @@
Params:
The frame data that is used to build this frame.
|
+
+ pParentIcon |
+ Icon |
+ |
+ The icon that created this frame.
+ |
+
@@ -736,29 +714,26 @@
-
-Public Methods
-
-
- public
+
- Exports this frame's data into proper vyi format.
+
The icon that owns this frame.
@@ -766,20 +741,7 @@
-
-
Return:
-
-
-
- Array |
- An array of data related to this frame in the proper vyi format.
- |
-
-
-
-
-
-
+
@@ -796,6 +758,9 @@ Return:
+
+
Public Methods
+
public
@@ -808,7 +773,7 @@
@@ -865,7 +830,7 @@
@@ -909,63 +874,6 @@ Return:
-
-
-
- public
-
-
-
-
-
- getIndex(): number
-
-
-
- source
-
-
-
-
-
-
-
Gets the index of this frame.
-
-
-
-
-
-
-
-
-
Return:
-
-
-
- number |
- The index of this frame.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -979,7 +887,7 @@
@@ -1053,7 +961,7 @@
@@ -1118,50 +1026,46 @@ Return:
Private Methods
-
+
private
- parse(pFrameData: Object)
+ export(): Array
- source
+ source
- parses through the icon data and adds data to this frame.
+
Exports this frame's data into proper vyi format.
-
-
Params:
-
-
- Name | Type | Attribute | Description |
-
-
-
-
- pFrameData |
- Object |
- |
- The frame data that is used to build this frame.
- |
-
-
-
-
+
-
+
+
Return:
+
+
+
+ Array |
+ An array of data related to this frame in the proper vyi format.
+ |
+
+
+
+
+
+
@@ -1179,25 +1083,25 @@
Params:
-
+
private
- setIndex(pIndex: number): self
+ parse(pFrameData: Object)
- source
+ source
- Sets the index of the frame.
+
parses through the icon data and adds data to this frame.
@@ -1211,10 +1115,10 @@
Params:
- pIndex |
- number |
+ pFrameData |
+ Object |
|
- The index to set the frame to.
+ | The frame data that is used to build this frame.
|
@@ -1222,20 +1126,7 @@
Params:
-
-
Return:
-
-
-
- self |
- This frame instance.
- |
-
-
-
-
-
-
+
diff --git a/docs/class/src/icon.mjs~Icon.html b/docs/class/src/icon.mjs~Icon.html
index fa5b1b7..d87d84a 100644
--- a/docs/class/src/icon.mjs~Icon.html
+++ b/docs/class/src/icon.mjs~Icon.html
@@ -76,42 +76,7 @@
Icon
-Static Method Summary
- Static Public Methods |
-
-
-
-
- public
- static
-
-
-
- |
-
-
-
-
-
- Swaps the positions of two elements in an array.
-
-
- |
-
-
-
- |
-
-
-
-
+
Constructor Summary
Private Constructor |
@@ -1071,96 +1036,7 @@ Icon
-Static Public Methods
-
-
- public
- static
-
-
-
-
- swapArrayElements(pArray: Array, pIndex1: number, pIndex2: number): void
-
-
-
- source
-
-
-
-
-
-
-
Swaps the positions of two elements in an array.
-
-
-
-
-
-
Params:
-
-
- Name | Type | Attribute | Description |
-
-
-
-
- pArray |
- Array |
- |
- The array in which to swap elements.
- |
-
-
- pIndex1 |
- number |
- |
- The index of the first element to swap.
- |
-
-
- pIndex2 |
- number |
- |
- The index of the second element to swap.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Private Constructors
@@ -1550,7 +1426,7 @@
@@ -1624,7 +1500,7 @@
@@ -1698,7 +1574,7 @@
@@ -1755,7 +1631,7 @@
@@ -1812,14 +1688,16 @@
-
Gets the frame existing at pIndex.
+
Gets the frame existing at pIndex.
+Frame 0 will actually be frame "1" in the animation. As this icon will actually be frame 0.
+If you are trying to get "frame" 1. Then you will need to use the icon's delay and data url. As that is frame 0.
@@ -1886,7 +1764,7 @@
@@ -1943,7 +1821,7 @@
@@ -2000,7 +1878,7 @@
@@ -2057,7 +1935,7 @@
@@ -2131,7 +2009,7 @@
@@ -2188,7 +2066,7 @@
@@ -2269,7 +2147,7 @@
@@ -2350,7 +2228,7 @@
@@ -2424,14 +2302,16 @@
-
Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.
+
Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.
+The "first" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.
+pCurrentIndex must be set to -1 to match this icon.
@@ -2505,7 +2385,7 @@
@@ -2579,7 +2459,7 @@
@@ -2653,7 +2533,7 @@
@@ -2727,7 +2607,7 @@
@@ -2810,7 +2690,7 @@
@@ -2867,7 +2747,7 @@
@@ -2924,7 +2804,7 @@
@@ -2981,7 +2861,7 @@
@@ -3038,7 +2918,7 @@
@@ -3082,7 +2962,7 @@
diff --git a/docs/file/src/frame.mjs.html b/docs/file/src/frame.mjs.html
index 51e76af..dda3081 100644
--- a/docs/file/src/frame.mjs.html
+++ b/docs/file/src/frame.mjs.html
@@ -58,6 +58,12 @@
* @type {number}
*/
index = 0;
+ /**
+ * The icon that owns this frame.
+ * @private
+ * @type {Icon}
+ */
+ parent;
/**
* The default delay in ms of frames.
* @private
@@ -67,9 +73,11 @@
/**
* Create this frame class instance.
* @param {Object} pFrameData - The frame data that is used to build this frame.
+ * @param {Icon} pParentIcon - The icon that created this frame.
* @private
*/
- constructor(pFrameData) {
+ constructor(pFrameData, pParentIcon) {
+ this.parent = pParentIcon;
this.parse(pFrameData);
}
/**
@@ -130,31 +138,9 @@
getDataURL() {
return this.dataURL;
}
- /**
- * Sets the index of the frame.
- * @private
- * @param {number} pIndex - The index to set the frame to.
- * @returns {self} This frame instance.
- */
- setIndex(pIndex) {
- if (pIndex) {
- if (typeof(pIndex) === 'number') {
- this.index = pIndex;
- } else {
- VYI.logger.prefix('VYI-module').error('Invalid index type!');
- }
- }
- return this;
- }
- /**
- * Gets the index of this frame.
- * @returns {number} The index of this frame.
- */
- getIndex() {
- return this.index;
- }
/**
* Exports this frame's data into proper vyi format.
+ * @private
* @returns {Array} An array of data related to this frame in the proper vyi format.
*/
export() {
diff --git a/docs/file/src/icon.mjs.html b/docs/file/src/icon.mjs.html
index 8240052..0dd77e7 100644
--- a/docs/file/src/icon.mjs.html
+++ b/docs/file/src/icon.mjs.html
@@ -91,16 +91,6 @@
constructor(pIconData) {
this.parse(pIconData);
}
- /**
- * Swaps the positions of two elements in an array.
- * @param {Array} pArray - The array in which to swap elements.
- * @param {number} pIndex1 - The index of the first element to swap.
- * @param {number} pIndex2 - The index of the second element to swap.
- * @returns {void}
- */
- static swapArrayElements(pArray, pIndex1, pIndex2) {
- [pArray[pIndex1], pArray[pIndex2]] = [pArray[pIndex2], pArray[pIndex1]];
- }
/**
* parses through the icon data and adds data to this icon.
* @param {Object} pIconData - The icon data that is used to build this icon.
@@ -311,7 +301,7 @@
addFrame(pFrameData) {
if (pFrameData) {
if (pFrameData instanceof Object) {
- const frame = new Frame(pFrameData);
+ const frame = new Frame(pFrameData, this);
// Add the frame to the frames array.
this.frames.push(frame);
// Re-index frames after a change
@@ -369,18 +359,45 @@
}
/**
* Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.
+ * The "first" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.
+ * pCurrentIndex must be set to -1 to match this icon.
* @param {number} pCurrentIndex - The current index of the frame.
* @param {number} pIndex - The index the frame will be moving to.
* @returns {self} This icon instance.
*/
reorderFrame(pCurrentIndex, pIndex) {
if (typeof(pCurrentIndex) === 'number' && typeof(pIndex) === 'number') {
- // We check if there is a valid frame at the current index and at the index we want to swap with.
- if (this.frames[pCurrentIndex] && this.frames[pIndex]) {
- // Swaps the frames
- Icon.swapArrayElements(this.frames, pCurrentIndex, pIndex);
- // Re-index frames after a change
- this.indexFrames();
+ let frameAtIndex;
+ let currentFrame;
+ // We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves
+ // as the frame 0.
+ if (pCurrentIndex === -1) {
+ currentFrame = this;
+ // Otherwise if the index passed can be found in the frames array, then we use that frame.
+ } else if (this.frames[pCurrentIndex]) {
+ currentFrame = this.frames[pCurrentIndex];
+ }
+
+ // We get the frame at the specified index.
+ if (this.frames[pIndex]) {
+ frameAtIndex = this.frames[pIndex];
+ }
+
+ // If both frames can be found, we can swap their data.
+ if (currentFrame && frameAtIndex) {
+ // Store frame data
+ const currentFrameDataURL = currentFrame.getDataURL();
+ const currentFrameDelay = currentFrame.getDelay();
+
+ const frameAtIndexDataURL = frameAtIndex.getDataURL();
+ const frameAtIndexDelay = frameAtIndex.getDelay();
+
+ // Swap data from frame
+ currentFrame.setDataURL(frameAtIndexDataURL);
+ currentFrame.setDelay(frameAtIndexDelay);
+ // Swap data to frame
+ frameAtIndex.setDataURL(currentFrameDataURL);
+ frameAtIndex.setDelay(currentFrameDelay);
} else {
VYI.logger.prefix('VYI-Module').error('There was no frame found at pCurrentIndex, or there was no frame found at pIndex!');
}
@@ -391,11 +408,12 @@
}
/**
* Gets the frame existing at pIndex.
+ * Frame 0 will actually be frame "1" in the animation. As this icon will actually be frame 0.
+ * If you are trying to get "frame" 1. Then you will need to use the icon's delay and data url. As that is frame 0.
* @param {number} pIndex - The index of the frame to get.
* @returns {Frame|undefined} The frame found at pIndex.
*/
getFrame(pIndex) {
- // Frame 0 will actually be frame "1" in the animation. As this icon will actually be frame 0.
if (typeof(pIndex) === 'number') {
return this.frames[pIndex];
} else {
diff --git a/docs/index.json b/docs/index.json
index 31592ef..c2c1155 100644
--- a/docs/index.json
+++ b/docs/index.json
@@ -567,7 +567,7 @@
"__docId__": 48,
"kind": "file",
"name": "src/frame.mjs",
- "content": "import { VYI } from './vyi.mjs';\r\n\r\nexport class Frame {\r\n /**\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n */\r\n delay = 100;\r\n /**\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n */\r\n dataURL;\r\n /**\r\n * The index of this frame. This indicates the order of the frame. 0 - Infinity.\r\n * @private\r\n * @type {number}\r\n */\r\n index = 0;\r\n /**\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n */\r\n static defaultDelay = 100;\r\n /**\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n */\r\n constructor(pFrameData) {\r\n this.parse(pFrameData);\r\n }\r\n /**\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n */\r\n parse(pFrameData) {\r\n // Loop through frame data and build frame.\r\n const dataURL = pFrameData[0];\r\n const frameDelay = pFrameData[1];\r\n // Set the data url\r\n this.setDataURL(dataURL);\r\n // Set the frame delay\r\n this.setDelay(frameDelay);\r\n }\r\n /**\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n */\r\n setDelay(pDelay) {\r\n if (pDelay) {\r\n if (typeof(pDelay) === 'number') {\r\n this.delay = pDelay;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid delay type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n */\r\n getDelay() {\r\n return this.delay;\r\n }\r\n /**\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n */\r\n setDataURL(pDataURL) {\r\n if (pDataURL) {\r\n if (typeof(pDataURL) === 'string') {\r\n this.dataURL = pDataURL;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid data url type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n */\r\n getDataURL() {\r\n return this.dataURL;\r\n }\r\n /**\r\n * Sets the index of the frame.\r\n * @private\r\n * @param {number} pIndex - The index to set the frame to.\r\n * @returns {self} This frame instance.\r\n */\r\n setIndex(pIndex) {\r\n if (pIndex) {\r\n if (typeof(pIndex) === 'number') {\r\n this.index = pIndex;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid index type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the index of this frame.\r\n * @returns {number} The index of this frame.\r\n */\r\n getIndex() {\r\n return this.index;\r\n }\r\n /**\r\n * Exports this frame's data into proper vyi format.\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n */\r\n export() {\r\n const frameData = [];\r\n // frame dataURL\r\n frameData[0] = this.getDataURL();\r\n // We do not have to store the delay if it is the default value of 100. This will save data.\r\n const delayIsDefault = this.getDelay() === Frame.defaultDelay;\r\n if (!delayIsDefault) {\r\n // frame delay\r\n frameData[1] = this.getDelay();\r\n }\r\n return frameData;\r\n }\r\n}",
+ "content": "import { VYI } from './vyi.mjs';\r\n\r\nexport class Frame {\r\n /**\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n */\r\n delay = 100;\r\n /**\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n */\r\n dataURL;\r\n /**\r\n * The index of this frame. This indicates the order of the frame. 0 - Infinity.\r\n * @private\r\n * @type {number}\r\n */\r\n index = 0;\r\n /**\r\n * The icon that owns this frame. \r\n * @private\r\n * @type {Icon}\r\n */\r\n parent;\r\n /**\r\n * The default delay in ms of frames.\r\n * @private\r\n * @type {number}\r\n */\r\n static defaultDelay = 100;\r\n /**\r\n * Create this frame class instance.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @param {Icon} pParentIcon - The icon that created this frame.\r\n * @private\r\n */\r\n constructor(pFrameData, pParentIcon) {\r\n this.parent = pParentIcon;\r\n this.parse(pFrameData);\r\n }\r\n /**\r\n * parses through the icon data and adds data to this frame.\r\n * @param {Object} pFrameData - The frame data that is used to build this frame.\r\n * @private\r\n */\r\n parse(pFrameData) {\r\n // Loop through frame data and build frame.\r\n const dataURL = pFrameData[0];\r\n const frameDelay = pFrameData[1];\r\n // Set the data url\r\n this.setDataURL(dataURL);\r\n // Set the frame delay\r\n this.setDelay(frameDelay);\r\n }\r\n /**\r\n * Sets the delay of this frame in ms.\r\n * @param {number} pDelay - The delay in ms to set this frame to.\r\n * @returns {self} This frame instance.\r\n */\r\n setDelay(pDelay) {\r\n if (pDelay) {\r\n if (typeof(pDelay) === 'number') {\r\n this.delay = pDelay;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid delay type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the delay of this frame.\r\n * @returns {number} The delay of this frame.\r\n */\r\n getDelay() {\r\n return this.delay;\r\n }\r\n /**\r\n * Sets the data url of this frame.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This frame instance.\r\n */\r\n setDataURL(pDataURL) {\r\n if (pDataURL) {\r\n if (typeof(pDataURL) === 'string') {\r\n this.dataURL = pDataURL;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid data url type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the data URL of this frame.\r\n * @returns {DataURL} - The base64 data of this image.\r\n */\r\n getDataURL() {\r\n return this.dataURL;\r\n }\r\n /**\r\n * Exports this frame's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this frame in the proper vyi format.\r\n */\r\n export() {\r\n const frameData = [];\r\n // frame dataURL\r\n frameData[0] = this.getDataURL();\r\n // We do not have to store the delay if it is the default value of 100. This will save data.\r\n const delayIsDefault = this.getDelay() === Frame.defaultDelay;\r\n if (!delayIsDefault) {\r\n // frame delay\r\n frameData[1] = this.getDelay();\r\n }\r\n return frameData;\r\n }\r\n}",
"static": true,
"longname": "C:/Users/jared/Documents/Github/vyi/src/frame.mjs",
"access": "public",
@@ -650,13 +650,32 @@
{
"__docId__": 53,
"kind": "member",
+ "name": "parent",
+ "memberof": "src/frame.mjs~Frame",
+ "static": false,
+ "longname": "src/frame.mjs~Frame#parent",
+ "access": "private",
+ "description": "The icon that owns this frame. ",
+ "lineNumber": 27,
+ "type": {
+ "nullable": null,
+ "types": [
+ "Icon"
+ ],
+ "spread": false,
+ "description": null
+ }
+ },
+ {
+ "__docId__": 54,
+ "kind": "member",
"name": "defaultDelay",
"memberof": "src/frame.mjs~Frame",
"static": true,
"longname": "src/frame.mjs~Frame.defaultDelay",
"access": "private",
"description": "The default delay in ms of frames.",
- "lineNumber": 27,
+ "lineNumber": 33,
"type": {
"nullable": null,
"types": [
@@ -667,7 +686,7 @@
}
},
{
- "__docId__": 54,
+ "__docId__": 55,
"kind": "constructor",
"name": "constructor",
"memberof": "src/frame.mjs~Frame",
@@ -677,7 +696,7 @@
"longname": "src/frame.mjs~Frame#constructor",
"access": "private",
"description": "Create this frame class instance.",
- "lineNumber": 33,
+ "lineNumber": 40,
"params": [
{
"nullable": null,
@@ -688,11 +707,21 @@
"optional": false,
"name": "pFrameData",
"description": "The frame data that is used to build this frame."
+ },
+ {
+ "nullable": null,
+ "types": [
+ "Icon"
+ ],
+ "spread": false,
+ "optional": false,
+ "name": "pParentIcon",
+ "description": "The icon that created this frame."
}
]
},
{
- "__docId__": 55,
+ "__docId__": 57,
"kind": "method",
"name": "parse",
"memberof": "src/frame.mjs~Frame",
@@ -702,7 +731,7 @@
"longname": "src/frame.mjs~Frame#parse",
"access": "private",
"description": "parses through the icon data and adds data to this frame.",
- "lineNumber": 41,
+ "lineNumber": 49,
"params": [
{
"nullable": null,
@@ -718,7 +747,7 @@
"return": null
},
{
- "__docId__": 56,
+ "__docId__": 58,
"kind": "method",
"name": "setDelay",
"memberof": "src/frame.mjs~Frame",
@@ -728,7 +757,7 @@
"longname": "src/frame.mjs~Frame#setDelay",
"access": "public",
"description": "Sets the delay of this frame in ms.",
- "lineNumber": 55,
+ "lineNumber": 63,
"unknown": [
{
"tagName": "@returns",
@@ -757,7 +786,7 @@
}
},
{
- "__docId__": 58,
+ "__docId__": 60,
"kind": "method",
"name": "getDelay",
"memberof": "src/frame.mjs~Frame",
@@ -767,7 +796,7 @@
"longname": "src/frame.mjs~Frame#getDelay",
"access": "public",
"description": "Gets the delay of this frame.",
- "lineNumber": 69,
+ "lineNumber": 77,
"unknown": [
{
"tagName": "@returns",
@@ -785,7 +814,7 @@
"params": []
},
{
- "__docId__": 59,
+ "__docId__": 61,
"kind": "method",
"name": "setDataURL",
"memberof": "src/frame.mjs~Frame",
@@ -795,7 +824,7 @@
"longname": "src/frame.mjs~Frame#setDataURL",
"access": "public",
"description": "Sets the data url of this frame.",
- "lineNumber": 77,
+ "lineNumber": 85,
"unknown": [
{
"tagName": "@returns",
@@ -824,7 +853,7 @@
}
},
{
- "__docId__": 61,
+ "__docId__": 63,
"kind": "method",
"name": "getDataURL",
"memberof": "src/frame.mjs~Frame",
@@ -834,7 +863,7 @@
"longname": "src/frame.mjs~Frame#getDataURL",
"access": "public",
"description": "Gets the data URL of this frame.",
- "lineNumber": 91,
+ "lineNumber": 99,
"unknown": [
{
"tagName": "@returns",
@@ -851,85 +880,18 @@
},
"params": []
},
- {
- "__docId__": 62,
- "kind": "method",
- "name": "setIndex",
- "memberof": "src/frame.mjs~Frame",
- "generator": false,
- "async": false,
- "static": false,
- "longname": "src/frame.mjs~Frame#setIndex",
- "access": "private",
- "description": "Sets the index of the frame.",
- "lineNumber": 100,
- "unknown": [
- {
- "tagName": "@returns",
- "tagValue": "{self} This frame instance."
- }
- ],
- "params": [
- {
- "nullable": null,
- "types": [
- "number"
- ],
- "spread": false,
- "optional": false,
- "name": "pIndex",
- "description": "The index to set the frame to."
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "self"
- ],
- "spread": false,
- "description": "This frame instance."
- }
- },
{
"__docId__": 64,
"kind": "method",
- "name": "getIndex",
- "memberof": "src/frame.mjs~Frame",
- "generator": false,
- "async": false,
- "static": false,
- "longname": "src/frame.mjs~Frame#getIndex",
- "access": "public",
- "description": "Gets the index of this frame.",
- "lineNumber": 114,
- "unknown": [
- {
- "tagName": "@returns",
- "tagValue": "{number} The index of this frame."
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "number"
- ],
- "spread": false,
- "description": "The index of this frame."
- },
- "params": []
- },
- {
- "__docId__": 65,
- "kind": "method",
"name": "export",
"memberof": "src/frame.mjs~Frame",
"generator": false,
"async": false,
"static": false,
"longname": "src/frame.mjs~Frame#export",
- "access": "public",
+ "access": "private",
"description": "Exports this frame's data into proper vyi format.",
- "lineNumber": 121,
+ "lineNumber": 107,
"unknown": [
{
"tagName": "@returns",
@@ -947,10 +909,10 @@
"params": []
},
{
- "__docId__": 66,
+ "__docId__": 65,
"kind": "file",
"name": "src/icon.mjs",
- "content": "import { VYI } from './vyi.mjs';\r\nimport { Frame } from './frame.mjs';\r\n\r\nexport class Icon {\r\n /**\r\n * An array of Icon's that are state of this icon.\r\n * @private\r\n * @type {Array}\r\n */\r\n states = [];\r\n /**\r\n * An arary of Frame's that are the frames of this icon.\r\n * @private\r\n * @type {Array}\r\n */\r\n frames = [];\r\n /**\r\n * The width of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n */\r\n width = 32;\r\n /**\r\n * The height of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n */\r\n height = 32;\r\n /**\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n */\r\n dataURL;\r\n /**\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n */\r\n delay = 100;\r\n /**\r\n * The name of this icon.\r\n * @private\r\n * @type {string}\r\n */\r\n name = 'rename-this-icon';\r\n /**\r\n * Creates this icon instance.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n */\r\n constructor(pIconData) {\r\n this.parse(pIconData);\r\n }\r\n /**\r\n * Swaps the positions of two elements in an array.\r\n * @param {Array} pArray - The array in which to swap elements.\r\n * @param {number} pIndex1 - The index of the first element to swap.\r\n * @param {number} pIndex2 - The index of the second element to swap.\r\n * @returns {void}\r\n */\r\n static swapArrayElements(pArray, pIndex1, pIndex2) {\r\n [pArray[pIndex1], pArray[pIndex2]] = [pArray[pIndex2], pArray[pIndex1]];\r\n }\r\n /**\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n */\r\n parse(pIconData) {\r\n // Loop through pIconData and create this icon\r\n const iconName = pIconData[0];\r\n const iconWidth = pIconData[1];\r\n const iconHeight = pIconData[2];\r\n const iconDelay = pIconData[3];\r\n const iconDataURL = pIconData[4];\r\n const frameArray = pIconData[5];\r\n const stateArray = pIconData[6];\r\n\r\n // Set name\r\n this.rename(iconName);\r\n // Set size\r\n this.setSize(iconWidth, iconHeight);\r\n // Set icon delay\r\n this.setDelay(iconDelay);\r\n // Set dataURL\r\n this.setDataURL(iconDataURL);\r\n // Check if the frame data is an array\r\n if (Array.isArray(frameArray)) {\r\n // If the frame array has data then we need to store it.\r\n if (frameArray.length) {\r\n frameArray.forEach((pFrame) => {\r\n // pFrame is an array holding the datalURL and frameDelay of the frame\r\n this.addFrame(pFrame);\r\n });\r\n }\r\n }\r\n // Check if the states data is an array\r\n if (Array.isArray(stateArray)) {\r\n // If the state array has data then we need to store it.\r\n if (stateArray.length) {\r\n stateArray.forEach((pState) => {\r\n // Here we create a icon with aggregated data because the state data is not enough to make it an icon.\r\n // We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.\r\n const aggregatedIconData = [];\r\n // iconName\r\n aggregatedIconData[0] = pState[0];\r\n // iconWidth\r\n aggregatedIconData[1] = iconWidth;\r\n // iconHeight\r\n aggregatedIconData[2] = iconHeight;\r\n // frame delay\r\n aggregatedIconData[3] = pState[2];\r\n // iconDataURL\r\n aggregatedIconData[4] = pState[1];\r\n // frame array\r\n aggregatedIconData[5] = pState[3];\r\n this.addState(aggregatedIconData);\r\n });\r\n }\r\n }\r\n }\r\n /**\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n */\r\n setSize(pWidth, pHeight) {\r\n if (typeof(pWidth) === 'number') {\r\n this.width = pWidth;\r\n }\r\n if (typeof(pHeight) === 'number') {\r\n this.height = pHeight;\r\n }\r\n }\r\n /**\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n */\r\n getSize() {\r\n return { width: this.width, height: this.height };\r\n }\r\n /**\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n */\r\n setDataURL(pDataURL) {\r\n if (pDataURL) {\r\n if (typeof(pDataURL) === 'string') {\r\n this.dataURL = pDataURL;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid data url type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n */\r\n getDataURL() {\r\n return this.dataURL;\r\n }\r\n /**\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n */\r\n setDelay(pDelay) {\r\n if (pDelay) {\r\n if (typeof(pDelay) === 'number') {\r\n this.delay = pDelay;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid delay type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n */\r\n getDelay() {\r\n return this.delay;\r\n }\r\n /**\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n */\r\n rename(pName) {\r\n if (pName) {\r\n if (typeof(pName) === 'string') {\r\n this.name = pName;\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type for pName!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n */\r\n getName() {\r\n return this.name;\r\n }\r\n /**\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n */\r\n setAllFrameDelays(pDelay) {\r\n if (pDelay) {\r\n if (typeof(pDelay) === 'number') {\r\n this.frames.forEach((pFrame) => {\r\n pFrame.setDelay(pDelay);\r\n });\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type for pDelay!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n */\r\n addState(pIconData) {\r\n if (pIconData instanceof Object) {\r\n const state = new Icon(pIconData);\r\n this.states.push(state);\r\n return state;\r\n }\r\n }\r\n /**\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n */\r\n removeState(pState, pName) {\r\n // The index used to remove this frame.\r\n let index;\r\n // Remove via reference to state.\r\n if (this.states.includes(pState)) {\r\n index = this.states.indexOf(pState);\r\n // Remove via reference to name\r\n } else if (typeof(pName) === 'string') {\r\n const state = this.getState(pName);\r\n if (state) {\r\n index = this.states.indexOf(state);\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Failed to remove state!');\r\n return this;\r\n }\r\n if (typeof(index) === 'number') {\r\n // Remove the state\r\n this.states.splice(index, 1);\r\n }\r\n return this;\r\n }\r\n /**\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n */\r\n addFrame(pFrameData) {\r\n if (pFrameData) {\r\n if (pFrameData instanceof Object) {\r\n const frame = new Frame(pFrameData);\r\n // Add the frame to the frames array.\r\n this.frames.push(frame);\r\n // Re-index frames after a change\r\n this.indexFrames();\r\n return frame;\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid frame data passed!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('No frame data passed!');\r\n }\r\n }\r\n /**\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n */\r\n removeFrame(pFrame, pIndex) {\r\n // The index used to remove this frame.\r\n let index;\r\n // Remove via reference to frame.\r\n if (this.frames.includes(pFrame)) {\r\n index = this.frames.indexOf(pFrame);\r\n // Remove via index passed.\r\n } else if (pIndex || pIndex === 0) {\r\n if (typeof(pIndex) === 'number') {\r\n const frame = this.getFrame(pIndex);\r\n if (frame) {\r\n index = pIndex;\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid pIndex type!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Failed to remove frame!');\r\n }\r\n if (typeof(index) === 'number') {\r\n // Remove the frame\r\n this.frames.splice(index, 1);\r\n // Re-index frames after a change\r\n this.indexFrames();\r\n }\r\n return this;\r\n }\r\n /**\r\n * Index the frames properly.\r\n * @private\r\n */\r\n indexFrames() {\r\n // Reorder the frames after removing.\r\n this.frames.forEach((pFrame, pIndex) => {\r\n pFrame.index = pIndex;\r\n });\r\n }\r\n /**\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n */\r\n reorderFrame(pCurrentIndex, pIndex) {\r\n if (typeof(pCurrentIndex) === 'number' && typeof(pIndex) === 'number') {\r\n // We check if there is a valid frame at the current index and at the index we want to swap with.\r\n if (this.frames[pCurrentIndex] && this.frames[pIndex]) {\r\n // Swaps the frames\r\n Icon.swapArrayElements(this.frames, pCurrentIndex, pIndex);\r\n // Re-index frames after a change\r\n this.indexFrames();\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('There was no frame found at pCurrentIndex, or there was no frame found at pIndex!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type used!');\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the frame existing at pIndex.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n */\r\n getFrame(pIndex) {\r\n // Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\r\n if (typeof(pIndex) === 'number') {\r\n return this.frames[pIndex];\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type used!');\r\n }\r\n }\r\n /**\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n */\r\n getFrames() {\r\n return [ ...this.frames ];\r\n }\r\n /**\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n */\r\n getFramesData() {\r\n const frameDataArray = [];\r\n this.frames.forEach((pFrame) => {\r\n frameDataArray.push(pFrame.export());\r\n });\r\n return frameDataArray;\r\n }\r\n /**\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n */\r\n getState(pName) {\r\n for (const icon of this.states) {\r\n // If the state has the same name, return that state\r\n if (icon.getName() === pName) {\r\n return icon;\r\n }\r\n };\r\n }\r\n /**\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n */\r\n getStates() {\r\n return [ ...this.states ];\r\n }\r\n /**\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n */\r\n getStatesData() {\r\n const stateDataArray = [];\r\n // Loop state array to export relevant information.\r\n this.states.forEach((pState) => {\r\n stateDataArray.push(pState.exportAsState());\r\n });\r\n return stateDataArray; \r\n }\r\n /**\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n */\r\n exportAsState() {\r\n const stateData = [];\r\n // state name\r\n stateData[0] = this.getName();\r\n // state dataURL\r\n stateData[1] = this.getDataURL();\r\n // state frame delay\r\n stateData[2] = this.getDelay();\r\n // state frame array\r\n stateData[3] = [];\r\n\r\n // Loop frame array to export relevant information.\r\n this.frames.forEach((pFrame) => {\r\n stateData[3].push(pFrame.export());\r\n });\r\n return stateData;\r\n }\r\n /**\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n */\r\n export() {\r\n const iconData = [];\r\n // icon name\r\n iconData[0] = this.getName();\r\n // Get the size of this icon.\r\n const size = this.getSize();\r\n // icon width\r\n iconData[1] = size.width;\r\n // icon height\r\n iconData[2] = size.height;\r\n // frame delay\r\n iconData[3] = this.getDelay();\r\n // icon DataURL\r\n iconData[4] = this.getDataURL();\r\n // frame array\r\n iconData[5] = this.getFramesData();\r\n\r\n // this is actually an optional data entry into the vyi, only used if states actually exist on this icon.\r\n // this will save data\r\n if (this.states.length) {\r\n // states array\r\n iconData[6] = this.getStatesData();\r\n }\r\n return iconData;\r\n }\r\n}",
+ "content": "import { VYI } from './vyi.mjs';\r\nimport { Frame } from './frame.mjs';\r\n\r\nexport class Icon {\r\n /**\r\n * An array of Icon's that are state of this icon.\r\n * @private\r\n * @type {Array}\r\n */\r\n states = [];\r\n /**\r\n * An arary of Frame's that are the frames of this icon.\r\n * @private\r\n * @type {Array}\r\n */\r\n frames = [];\r\n /**\r\n * The width of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n */\r\n width = 32;\r\n /**\r\n * The height of this icon. All states and frames of this icon must match this size.\r\n * @private\r\n * @type {number}\r\n */\r\n height = 32;\r\n /**\r\n * The data URL of the sprite in this frame.\r\n * @private\r\n * @type {string}\r\n */\r\n dataURL;\r\n /**\r\n * The delay of this frame.\r\n * @private\r\n * @type {number}\r\n */\r\n delay = 100;\r\n /**\r\n * The name of this icon.\r\n * @private\r\n * @type {string}\r\n */\r\n name = 'rename-this-icon';\r\n /**\r\n * Creates this icon instance.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n */\r\n constructor(pIconData) {\r\n this.parse(pIconData);\r\n }\r\n /**\r\n * parses through the icon data and adds data to this icon.\r\n * @param {Object} pIconData - The icon data that is used to build this icon.\r\n * @private\r\n */\r\n parse(pIconData) {\r\n // Loop through pIconData and create this icon\r\n const iconName = pIconData[0];\r\n const iconWidth = pIconData[1];\r\n const iconHeight = pIconData[2];\r\n const iconDelay = pIconData[3];\r\n const iconDataURL = pIconData[4];\r\n const frameArray = pIconData[5];\r\n const stateArray = pIconData[6];\r\n\r\n // Set name\r\n this.rename(iconName);\r\n // Set size\r\n this.setSize(iconWidth, iconHeight);\r\n // Set icon delay\r\n this.setDelay(iconDelay);\r\n // Set dataURL\r\n this.setDataURL(iconDataURL);\r\n // Check if the frame data is an array\r\n if (Array.isArray(frameArray)) {\r\n // If the frame array has data then we need to store it.\r\n if (frameArray.length) {\r\n frameArray.forEach((pFrame) => {\r\n // pFrame is an array holding the datalURL and frameDelay of the frame\r\n this.addFrame(pFrame);\r\n });\r\n }\r\n }\r\n // Check if the states data is an array\r\n if (Array.isArray(stateArray)) {\r\n // If the state array has data then we need to store it.\r\n if (stateArray.length) {\r\n stateArray.forEach((pState) => {\r\n // Here we create a icon with aggregated data because the state data is not enough to make it an icon.\r\n // We do this because a state is basically an icon, but it just \"inherits\" alot of the data. But this makes it easier to manage if we treat it internally as an icon.\r\n const aggregatedIconData = [];\r\n // iconName\r\n aggregatedIconData[0] = pState[0];\r\n // iconWidth\r\n aggregatedIconData[1] = iconWidth;\r\n // iconHeight\r\n aggregatedIconData[2] = iconHeight;\r\n // frame delay\r\n aggregatedIconData[3] = pState[2];\r\n // iconDataURL\r\n aggregatedIconData[4] = pState[1];\r\n // frame array\r\n aggregatedIconData[5] = pState[3];\r\n this.addState(aggregatedIconData);\r\n });\r\n }\r\n }\r\n }\r\n /**\r\n * Sets the size of this icon.\r\n * @param {number} pWidth - The width of this icon.\r\n * @param {number} pHeight - THe height of this icon.\r\n * @returns {self} This icon instance.\r\n */\r\n setSize(pWidth, pHeight) {\r\n if (typeof(pWidth) === 'number') {\r\n this.width = pWidth;\r\n }\r\n if (typeof(pHeight) === 'number') {\r\n this.height = pHeight;\r\n }\r\n }\r\n /**\r\n * Gets the width and height of this icon and returns it.\r\n * @returns {Object} An object with the width and height of this icon.\r\n */\r\n getSize() {\r\n return { width: this.width, height: this.height };\r\n }\r\n /**\r\n * Sets the data url of this icon.\r\n * @param {DataURL} pDataURL - The base64 data of this image.\r\n * @returns {self} This icon instance.\r\n */\r\n setDataURL(pDataURL) {\r\n if (pDataURL) {\r\n if (typeof(pDataURL) === 'string') {\r\n this.dataURL = pDataURL;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid data url type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the data URL of this icon.\r\n * @returns {DataURL} - The base64 data of this image.\r\n */\r\n getDataURL() {\r\n return this.dataURL;\r\n }\r\n /**\r\n * Sets the frame delay of this icon.\r\n * @param {number} pDelay - The delay to set this frame to.\r\n * @returns {self} This icon instance.\r\n */\r\n setDelay(pDelay) {\r\n if (pDelay) {\r\n if (typeof(pDelay) === 'number') {\r\n this.delay = pDelay;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid delay type!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the delay of this icon.\r\n * @returns {number} The delay of this icon.\r\n */\r\n getDelay() {\r\n return this.delay;\r\n }\r\n /**\r\n * Changes the name of this icon.\r\n * @param {string} pName - The new name of the icon.\r\n * @returns {self} This icon instance.\r\n */\r\n rename(pName) {\r\n if (pName) {\r\n if (typeof(pName) === 'string') {\r\n this.name = pName;\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type for pName!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Returns the name of this icon.\r\n * @returns {string} The name of this icon.\r\n */\r\n getName() {\r\n return this.name;\r\n }\r\n /**\r\n * Sets all the frames belonging to this icon to the same delay.\r\n * @param {number} pDelay - The delay to set all frames to.\r\n * @returns {self} This icon instance.\r\n */\r\n setAllFrameDelays(pDelay) {\r\n if (pDelay) {\r\n if (typeof(pDelay) === 'number') {\r\n this.frames.forEach((pFrame) => {\r\n pFrame.setDelay(pDelay);\r\n });\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type for pDelay!');\r\n }\r\n }\r\n return this;\r\n }\r\n /**\r\n * Adds this icon data as a state. A state is also an icon.\r\n * @param {Object} pIconData - The data used to create this state icon.\r\n * @returns {Icon|undefined} The state that was added or undefined.\r\n */\r\n addState(pIconData) {\r\n if (pIconData instanceof Object) {\r\n const state = new Icon(pIconData);\r\n this.states.push(state);\r\n return state;\r\n }\r\n }\r\n /**\r\n * Removes the state with the name pName.\r\n * @param {Icon} pState - The state to remove from this icon. pName should be not be used in tandem with this method of removing.\r\n * @param {string} pName - The name of the state to remove. pState must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n */\r\n removeState(pState, pName) {\r\n // The index used to remove this frame.\r\n let index;\r\n // Remove via reference to state.\r\n if (this.states.includes(pState)) {\r\n index = this.states.indexOf(pState);\r\n // Remove via reference to name\r\n } else if (typeof(pName) === 'string') {\r\n const state = this.getState(pName);\r\n if (state) {\r\n index = this.states.indexOf(state);\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Failed to remove state!');\r\n return this;\r\n }\r\n if (typeof(index) === 'number') {\r\n // Remove the state\r\n this.states.splice(index, 1);\r\n }\r\n return this;\r\n }\r\n /**\r\n * Adds a new frame to this icon.\r\n * @param {Object} pFrameData - The frame data to give this frame.\r\n * @returns {Frame|undefined} The frame that was added or undefined.\r\n */\r\n addFrame(pFrameData) {\r\n if (pFrameData) {\r\n if (pFrameData instanceof Object) {\r\n const frame = new Frame(pFrameData, this);\r\n // Add the frame to the frames array.\r\n this.frames.push(frame);\r\n // Re-index frames after a change\r\n this.indexFrames();\r\n return frame;\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid frame data passed!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('No frame data passed!');\r\n }\r\n }\r\n /**\r\n * Removes the frame from this icon via passed frame reference or via index passed.\r\n * @param {Frame} pFrame - The frame to remove from this icon. pIndex should be not be used in tandem with this method of removing.\r\n * @param {number} pIndex - The index of the frame to remove. pFrame must be undefined to use this method for removing.\r\n * @returns {self} This icon instance.\r\n */\r\n removeFrame(pFrame, pIndex) {\r\n // The index used to remove this frame.\r\n let index;\r\n // Remove via reference to frame.\r\n if (this.frames.includes(pFrame)) {\r\n index = this.frames.indexOf(pFrame);\r\n // Remove via index passed.\r\n } else if (pIndex || pIndex === 0) {\r\n if (typeof(pIndex) === 'number') {\r\n const frame = this.getFrame(pIndex);\r\n if (frame) {\r\n index = pIndex;\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid pIndex type!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Failed to remove frame!');\r\n }\r\n if (typeof(index) === 'number') {\r\n // Remove the frame\r\n this.frames.splice(index, 1);\r\n // Re-index frames after a change\r\n this.indexFrames();\r\n }\r\n return this;\r\n }\r\n /**\r\n * Index the frames properly.\r\n * @private\r\n */\r\n indexFrames() {\r\n // Reorder the frames after removing.\r\n this.frames.forEach((pFrame, pIndex) => {\r\n pFrame.index = pIndex;\r\n });\r\n }\r\n /**\r\n * Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\r\n * The \"first\" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.\r\n * pCurrentIndex must be set to -1 to match this icon.\r\n * @param {number} pCurrentIndex - The current index of the frame.\r\n * @param {number} pIndex - The index the frame will be moving to.\r\n * @returns {self} This icon instance.\r\n */\r\n reorderFrame(pCurrentIndex, pIndex) {\r\n if (typeof(pCurrentIndex) === 'number' && typeof(pIndex) === 'number') {\r\n let frameAtIndex;\r\n let currentFrame;\r\n // We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves\r\n // as the frame 0.\r\n if (pCurrentIndex === -1) {\r\n currentFrame = this;\r\n // Otherwise if the index passed can be found in the frames array, then we use that frame.\r\n } else if (this.frames[pCurrentIndex]) {\r\n currentFrame = this.frames[pCurrentIndex];\r\n }\r\n\r\n // We get the frame at the specified index.\r\n if (this.frames[pIndex]) {\r\n frameAtIndex = this.frames[pIndex];\r\n }\r\n\r\n // If both frames can be found, we can swap their data.\r\n if (currentFrame && frameAtIndex) {\r\n // Store frame data\r\n const currentFrameDataURL = currentFrame.getDataURL();\r\n const currentFrameDelay = currentFrame.getDelay();\r\n\r\n const frameAtIndexDataURL = frameAtIndex.getDataURL();\r\n const frameAtIndexDelay = frameAtIndex.getDelay();\r\n\r\n // Swap data from frame\r\n currentFrame.setDataURL(frameAtIndexDataURL);\r\n currentFrame.setDelay(frameAtIndexDelay);\r\n // Swap data to frame\r\n frameAtIndex.setDataURL(currentFrameDataURL);\r\n frameAtIndex.setDelay(currentFrameDelay);\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('There was no frame found at pCurrentIndex, or there was no frame found at pIndex!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type used!');\r\n }\r\n return this;\r\n }\r\n /**\r\n * Gets the frame existing at pIndex.\r\n * Frame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\r\n * If you are trying to get \"frame\" 1. Then you will need to use the icon's delay and data url. As that is frame 0.\r\n * @param {number} pIndex - The index of the frame to get.\r\n * @returns {Frame|undefined} The frame found at pIndex.\r\n */\r\n getFrame(pIndex) {\r\n if (typeof(pIndex) === 'number') {\r\n return this.frames[pIndex];\r\n } else {\r\n VYI.logger.prefix('VYI-Module').error('Invalid type used!');\r\n }\r\n }\r\n /**\r\n * Returns an array of all the frames this icons has.\r\n * @returns {Array} An array of frames this icon has.\r\n */\r\n getFrames() {\r\n return [ ...this.frames ];\r\n }\r\n /**\r\n * Gets all the frames belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the frame data of all frames.\r\n */\r\n getFramesData() {\r\n const frameDataArray = [];\r\n this.frames.forEach((pFrame) => {\r\n frameDataArray.push(pFrame.export());\r\n });\r\n return frameDataArray;\r\n }\r\n /**\r\n * Gets the state that has the name pName.\r\n * @param {string} pName - The name of the state to get.\r\n * @returns {Icon} The state that has the name of pName.\r\n */\r\n getState(pName) {\r\n for (const icon of this.states) {\r\n // If the state has the same name, return that state\r\n if (icon.getName() === pName) {\r\n return icon;\r\n }\r\n };\r\n }\r\n /**\r\n * Returns an array of all the states this icons has.\r\n * @returns {Array} An array of states this icon has.\r\n */\r\n getStates() {\r\n return [ ...this.states ];\r\n }\r\n /**\r\n * Gets all the states belonging to this icon.\r\n * @private\r\n * @returns {Array} An array containing the state data of all frames.\r\n */\r\n getStatesData() {\r\n const stateDataArray = [];\r\n // Loop state array to export relevant information.\r\n this.states.forEach((pState) => {\r\n stateDataArray.push(pState.exportAsState());\r\n });\r\n return stateDataArray; \r\n }\r\n /**\r\n * Exports this icon as if it was a state in the proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon as if it were a state.\r\n */\r\n exportAsState() {\r\n const stateData = [];\r\n // state name\r\n stateData[0] = this.getName();\r\n // state dataURL\r\n stateData[1] = this.getDataURL();\r\n // state frame delay\r\n stateData[2] = this.getDelay();\r\n // state frame array\r\n stateData[3] = [];\r\n\r\n // Loop frame array to export relevant information.\r\n this.frames.forEach((pFrame) => {\r\n stateData[3].push(pFrame.export());\r\n });\r\n return stateData;\r\n }\r\n /**\r\n * Exports this icon's data into proper vyi format.\r\n * @private\r\n * @returns {Array} An array of data related to this icon in the proper vyi format.\r\n */\r\n export() {\r\n const iconData = [];\r\n // icon name\r\n iconData[0] = this.getName();\r\n // Get the size of this icon.\r\n const size = this.getSize();\r\n // icon width\r\n iconData[1] = size.width;\r\n // icon height\r\n iconData[2] = size.height;\r\n // frame delay\r\n iconData[3] = this.getDelay();\r\n // icon DataURL\r\n iconData[4] = this.getDataURL();\r\n // frame array\r\n iconData[5] = this.getFramesData();\r\n\r\n // this is actually an optional data entry into the vyi, only used if states actually exist on this icon.\r\n // this will save data\r\n if (this.states.length) {\r\n // states array\r\n iconData[6] = this.getStatesData();\r\n }\r\n return iconData;\r\n }\r\n}",
"static": true,
"longname": "C:/Users/jared/Documents/Github/vyi/src/icon.mjs",
"access": "public",
@@ -958,7 +920,7 @@
"lineNumber": 1
},
{
- "__docId__": 67,
+ "__docId__": 66,
"kind": "class",
"name": "Icon",
"memberof": "src/icon.mjs",
@@ -974,7 +936,7 @@
"interface": false
},
{
- "__docId__": 68,
+ "__docId__": 67,
"kind": "member",
"name": "states",
"memberof": "src/icon.mjs~Icon",
@@ -993,7 +955,7 @@
}
},
{
- "__docId__": 69,
+ "__docId__": 68,
"kind": "member",
"name": "frames",
"memberof": "src/icon.mjs~Icon",
@@ -1012,7 +974,7 @@
}
},
{
- "__docId__": 70,
+ "__docId__": 69,
"kind": "member",
"name": "width",
"memberof": "src/icon.mjs~Icon",
@@ -1031,7 +993,7 @@
}
},
{
- "__docId__": 71,
+ "__docId__": 70,
"kind": "member",
"name": "height",
"memberof": "src/icon.mjs~Icon",
@@ -1050,7 +1012,7 @@
}
},
{
- "__docId__": 72,
+ "__docId__": 71,
"kind": "member",
"name": "dataURL",
"memberof": "src/icon.mjs~Icon",
@@ -1069,7 +1031,7 @@
}
},
{
- "__docId__": 73,
+ "__docId__": 72,
"kind": "member",
"name": "delay",
"memberof": "src/icon.mjs~Icon",
@@ -1088,7 +1050,7 @@
}
},
{
- "__docId__": 74,
+ "__docId__": 73,
"kind": "member",
"name": "name",
"memberof": "src/icon.mjs~Icon",
@@ -1107,7 +1069,7 @@
}
},
{
- "__docId__": 75,
+ "__docId__": 74,
"kind": "constructor",
"name": "constructor",
"memberof": "src/icon.mjs~Icon",
@@ -1132,66 +1094,7 @@
]
},
{
- "__docId__": 76,
- "kind": "method",
- "name": "swapArrayElements",
- "memberof": "src/icon.mjs~Icon",
- "generator": false,
- "async": false,
- "static": true,
- "longname": "src/icon.mjs~Icon.swapArrayElements",
- "access": "public",
- "description": "Swaps the positions of two elements in an array.",
- "lineNumber": 62,
- "unknown": [
- {
- "tagName": "@returns",
- "tagValue": "{void}"
- }
- ],
- "params": [
- {
- "nullable": null,
- "types": [
- "Array"
- ],
- "spread": false,
- "optional": false,
- "name": "pArray",
- "description": "The array in which to swap elements."
- },
- {
- "nullable": null,
- "types": [
- "number"
- ],
- "spread": false,
- "optional": false,
- "name": "pIndex1",
- "description": "The index of the first element to swap."
- },
- {
- "nullable": null,
- "types": [
- "number"
- ],
- "spread": false,
- "optional": false,
- "name": "pIndex2",
- "description": "The index of the second element to swap."
- }
- ],
- "return": {
- "nullable": null,
- "types": [
- "void"
- ],
- "spread": false,
- "description": ""
- }
- },
- {
- "__docId__": 77,
+ "__docId__": 75,
"kind": "method",
"name": "parse",
"memberof": "src/icon.mjs~Icon",
@@ -1201,7 +1104,7 @@
"longname": "src/icon.mjs~Icon#parse",
"access": "private",
"description": "parses through the icon data and adds data to this icon.",
- "lineNumber": 70,
+ "lineNumber": 60,
"params": [
{
"nullable": null,
@@ -1217,7 +1120,7 @@
"return": null
},
{
- "__docId__": 78,
+ "__docId__": 76,
"kind": "method",
"name": "setSize",
"memberof": "src/icon.mjs~Icon",
@@ -1227,7 +1130,7 @@
"longname": "src/icon.mjs~Icon#setSize",
"access": "public",
"description": "Sets the size of this icon.",
- "lineNumber": 129,
+ "lineNumber": 119,
"unknown": [
{
"tagName": "@returns",
@@ -1266,7 +1169,7 @@
}
},
{
- "__docId__": 81,
+ "__docId__": 79,
"kind": "method",
"name": "getSize",
"memberof": "src/icon.mjs~Icon",
@@ -1276,7 +1179,7 @@
"longname": "src/icon.mjs~Icon#getSize",
"access": "public",
"description": "Gets the width and height of this icon and returns it.",
- "lineNumber": 141,
+ "lineNumber": 131,
"unknown": [
{
"tagName": "@returns",
@@ -1294,7 +1197,7 @@
"params": []
},
{
- "__docId__": 82,
+ "__docId__": 80,
"kind": "method",
"name": "setDataURL",
"memberof": "src/icon.mjs~Icon",
@@ -1304,7 +1207,7 @@
"longname": "src/icon.mjs~Icon#setDataURL",
"access": "public",
"description": "Sets the data url of this icon.",
- "lineNumber": 149,
+ "lineNumber": 139,
"unknown": [
{
"tagName": "@returns",
@@ -1333,7 +1236,7 @@
}
},
{
- "__docId__": 84,
+ "__docId__": 82,
"kind": "method",
"name": "getDataURL",
"memberof": "src/icon.mjs~Icon",
@@ -1343,7 +1246,7 @@
"longname": "src/icon.mjs~Icon#getDataURL",
"access": "public",
"description": "Gets the data URL of this icon.",
- "lineNumber": 163,
+ "lineNumber": 153,
"unknown": [
{
"tagName": "@returns",
@@ -1361,7 +1264,7 @@
"params": []
},
{
- "__docId__": 85,
+ "__docId__": 83,
"kind": "method",
"name": "setDelay",
"memberof": "src/icon.mjs~Icon",
@@ -1371,7 +1274,7 @@
"longname": "src/icon.mjs~Icon#setDelay",
"access": "public",
"description": "Sets the frame delay of this icon.",
- "lineNumber": 171,
+ "lineNumber": 161,
"unknown": [
{
"tagName": "@returns",
@@ -1400,7 +1303,7 @@
}
},
{
- "__docId__": 87,
+ "__docId__": 85,
"kind": "method",
"name": "getDelay",
"memberof": "src/icon.mjs~Icon",
@@ -1410,7 +1313,7 @@
"longname": "src/icon.mjs~Icon#getDelay",
"access": "public",
"description": "Gets the delay of this icon.",
- "lineNumber": 185,
+ "lineNumber": 175,
"unknown": [
{
"tagName": "@returns",
@@ -1428,7 +1331,7 @@
"params": []
},
{
- "__docId__": 88,
+ "__docId__": 86,
"kind": "method",
"name": "rename",
"memberof": "src/icon.mjs~Icon",
@@ -1438,7 +1341,7 @@
"longname": "src/icon.mjs~Icon#rename",
"access": "public",
"description": "Changes the name of this icon.",
- "lineNumber": 193,
+ "lineNumber": 183,
"unknown": [
{
"tagName": "@returns",
@@ -1467,7 +1370,7 @@
}
},
{
- "__docId__": 90,
+ "__docId__": 88,
"kind": "method",
"name": "getName",
"memberof": "src/icon.mjs~Icon",
@@ -1477,7 +1380,7 @@
"longname": "src/icon.mjs~Icon#getName",
"access": "public",
"description": "Returns the name of this icon.",
- "lineNumber": 207,
+ "lineNumber": 197,
"unknown": [
{
"tagName": "@returns",
@@ -1495,7 +1398,7 @@
"params": []
},
{
- "__docId__": 91,
+ "__docId__": 89,
"kind": "method",
"name": "setAllFrameDelays",
"memberof": "src/icon.mjs~Icon",
@@ -1505,7 +1408,7 @@
"longname": "src/icon.mjs~Icon#setAllFrameDelays",
"access": "public",
"description": "Sets all the frames belonging to this icon to the same delay.",
- "lineNumber": 215,
+ "lineNumber": 205,
"unknown": [
{
"tagName": "@returns",
@@ -1534,7 +1437,7 @@
}
},
{
- "__docId__": 92,
+ "__docId__": 90,
"kind": "method",
"name": "addState",
"memberof": "src/icon.mjs~Icon",
@@ -1544,7 +1447,7 @@
"longname": "src/icon.mjs~Icon#addState",
"access": "public",
"description": "Adds this icon data as a state. A state is also an icon.",
- "lineNumber": 232,
+ "lineNumber": 222,
"unknown": [
{
"tagName": "@returns",
@@ -1574,7 +1477,7 @@
}
},
{
- "__docId__": 93,
+ "__docId__": 91,
"kind": "method",
"name": "removeState",
"memberof": "src/icon.mjs~Icon",
@@ -1584,7 +1487,7 @@
"longname": "src/icon.mjs~Icon#removeState",
"access": "public",
"description": "Removes the state with the name pName.",
- "lineNumber": 245,
+ "lineNumber": 235,
"unknown": [
{
"tagName": "@returns",
@@ -1623,7 +1526,7 @@
}
},
{
- "__docId__": 94,
+ "__docId__": 92,
"kind": "method",
"name": "addFrame",
"memberof": "src/icon.mjs~Icon",
@@ -1633,7 +1536,7 @@
"longname": "src/icon.mjs~Icon#addFrame",
"access": "public",
"description": "Adds a new frame to this icon.",
- "lineNumber": 272,
+ "lineNumber": 262,
"unknown": [
{
"tagName": "@returns",
@@ -1663,7 +1566,7 @@
}
},
{
- "__docId__": 95,
+ "__docId__": 93,
"kind": "method",
"name": "removeFrame",
"memberof": "src/icon.mjs~Icon",
@@ -1673,7 +1576,7 @@
"longname": "src/icon.mjs~Icon#removeFrame",
"access": "public",
"description": "Removes the frame from this icon via passed frame reference or via index passed.",
- "lineNumber": 294,
+ "lineNumber": 284,
"unknown": [
{
"tagName": "@returns",
@@ -1712,7 +1615,7 @@
}
},
{
- "__docId__": 96,
+ "__docId__": 94,
"kind": "method",
"name": "indexFrames",
"memberof": "src/icon.mjs~Icon",
@@ -1722,12 +1625,12 @@
"longname": "src/icon.mjs~Icon#indexFrames",
"access": "private",
"description": "Index the frames properly.",
- "lineNumber": 325,
+ "lineNumber": 315,
"params": [],
"return": null
},
{
- "__docId__": 97,
+ "__docId__": 95,
"kind": "method",
"name": "reorderFrame",
"memberof": "src/icon.mjs~Icon",
@@ -1736,8 +1639,8 @@
"static": false,
"longname": "src/icon.mjs~Icon#reorderFrame",
"access": "public",
- "description": "Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.",
- "lineNumber": 337,
+ "description": "Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.\nThe \"first\" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.\npCurrentIndex must be set to -1 to match this icon.",
+ "lineNumber": 329,
"unknown": [
{
"tagName": "@returns",
@@ -1776,7 +1679,7 @@
}
},
{
- "__docId__": 98,
+ "__docId__": 96,
"kind": "method",
"name": "getFrame",
"memberof": "src/icon.mjs~Icon",
@@ -1785,8 +1688,8 @@
"static": false,
"longname": "src/icon.mjs~Icon#getFrame",
"access": "public",
- "description": "Gets the frame existing at pIndex.",
- "lineNumber": 358,
+ "description": "Gets the frame existing at pIndex.\nFrame 0 will actually be frame \"1\" in the animation. As this icon will actually be frame 0.\nIf you are trying to get \"frame\" 1. Then you will need to use the icon's delay and data url. As that is frame 0.",
+ "lineNumber": 377,
"unknown": [
{
"tagName": "@returns",
@@ -1816,7 +1719,7 @@
}
},
{
- "__docId__": 99,
+ "__docId__": 97,
"kind": "method",
"name": "getFrames",
"memberof": "src/icon.mjs~Icon",
@@ -1826,7 +1729,7 @@
"longname": "src/icon.mjs~Icon#getFrames",
"access": "public",
"description": "Returns an array of all the frames this icons has.",
- "lineNumber": 370,
+ "lineNumber": 388,
"unknown": [
{
"tagName": "@returns",
@@ -1844,7 +1747,7 @@
"params": []
},
{
- "__docId__": 100,
+ "__docId__": 98,
"kind": "method",
"name": "getFramesData",
"memberof": "src/icon.mjs~Icon",
@@ -1854,7 +1757,7 @@
"longname": "src/icon.mjs~Icon#getFramesData",
"access": "private",
"description": "Gets all the frames belonging to this icon.",
- "lineNumber": 378,
+ "lineNumber": 396,
"unknown": [
{
"tagName": "@returns",
@@ -1872,7 +1775,7 @@
"params": []
},
{
- "__docId__": 101,
+ "__docId__": 99,
"kind": "method",
"name": "getState",
"memberof": "src/icon.mjs~Icon",
@@ -1882,7 +1785,7 @@
"longname": "src/icon.mjs~Icon#getState",
"access": "public",
"description": "Gets the state that has the name pName.",
- "lineNumber": 390,
+ "lineNumber": 408,
"unknown": [
{
"tagName": "@returns",
@@ -1911,7 +1814,7 @@
}
},
{
- "__docId__": 102,
+ "__docId__": 100,
"kind": "method",
"name": "getStates",
"memberof": "src/icon.mjs~Icon",
@@ -1921,7 +1824,7 @@
"longname": "src/icon.mjs~Icon#getStates",
"access": "public",
"description": "Returns an array of all the states this icons has.",
- "lineNumber": 402,
+ "lineNumber": 420,
"unknown": [
{
"tagName": "@returns",
@@ -1939,7 +1842,7 @@
"params": []
},
{
- "__docId__": 103,
+ "__docId__": 101,
"kind": "method",
"name": "getStatesData",
"memberof": "src/icon.mjs~Icon",
@@ -1949,7 +1852,7 @@
"longname": "src/icon.mjs~Icon#getStatesData",
"access": "private",
"description": "Gets all the states belonging to this icon.",
- "lineNumber": 410,
+ "lineNumber": 428,
"unknown": [
{
"tagName": "@returns",
@@ -1967,7 +1870,7 @@
"params": []
},
{
- "__docId__": 104,
+ "__docId__": 102,
"kind": "method",
"name": "exportAsState",
"memberof": "src/icon.mjs~Icon",
@@ -1977,7 +1880,7 @@
"longname": "src/icon.mjs~Icon#exportAsState",
"access": "private",
"description": "Exports this icon as if it was a state in the proper vyi format.",
- "lineNumber": 423,
+ "lineNumber": 441,
"unknown": [
{
"tagName": "@returns",
@@ -1995,7 +1898,7 @@
"params": []
},
{
- "__docId__": 105,
+ "__docId__": 103,
"kind": "method",
"name": "export",
"memberof": "src/icon.mjs~Icon",
@@ -2005,7 +1908,7 @@
"longname": "src/icon.mjs~Icon#export",
"access": "private",
"description": "Exports this icon's data into proper vyi format.",
- "lineNumber": 445,
+ "lineNumber": 463,
"unknown": [
{
"tagName": "@returns",
@@ -2023,7 +1926,7 @@
"params": []
},
{
- "__docId__": 106,
+ "__docId__": 104,
"kind": "file",
"name": "src/vyi.mjs",
"content": "import { Logger } from './vendor/logger.min.mjs';\r\nimport { Icon } from './icon.mjs';\r\n\r\nexport class VYI {\r\n\t/**\r\n\t * The version of the module.\r\n\t */\r\n\tstatic version = \"VERSION_REPLACE_ME\";\r\n /** The logger module this module uses to log errors / logs.\r\n * @private\r\n * @type {Object}\r\n */\r\n static logger = new Logger();\r\n /**\r\n * An array of icons that belong to this VYI\r\n * @private\r\n * @type {Array}\r\n */\r\n icons = [];\r\n /**\r\n * The name of this vyi.\r\n * @private\r\n * @type {string}\r\n */\r\n name = 'vyi-to-be-renamed';\r\n /**\r\n * The version of the VYI.\r\n * @private\r\n * @type {number}\r\n */\r\n formatVersion;\r\n /**\r\n * Initializes this module with the information from the VYI passed.\r\n * @param {Object} pVYIData - A JSON / Javascript object containing the vyi information.\r\n */\r\n constructor(pVYIData) {\r\n VYI.logger.registerType('VYI-Module', '#ff6600');\r\n if (pVYIData instanceof Object) {\r\n this.parse(pVYIData);\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid vyiData type! Cannot parse!');\r\n }\r\n }\r\n /**\r\n * Initializes this module with the information from the VYI passed.\r\n * Can call parse multiple times with different data to \"merge\" vyis.\r\n * @async\r\n * @param {Object|string} pVYIData - A string containing the path to the vyi json or a JSON / Javascript object containing the vyi information.\r\n */\r\n async parse(pVYIData) {\r\n try {\r\n if (pVYIData) {\r\n let vyi;\r\n // If the data is a path then we need to use fetch to acquire the data first\r\n if (typeof(pVYIData) === 'string') {\r\n const url = pVYIData;\r\n const response = await fetch(url);\r\n vyi = await response.json();\r\n } else if (pVYIData instanceof Object) {\r\n vyi = pVYIData;\r\n }\r\n // If there is data to parse\r\n // Then parse through it\r\n if (vyi) {\r\n /**\r\n * An array of icons that this vyi holds.\r\n * @type {Array}\r\n */\r\n const icons = vyi.i;\r\n /**\r\n * The version of the vyi. 1 for default if no version is found.\r\n * @type {number}\r\n */\r\n this.formatVersion = vyi.v || 1;\r\n\r\n if (Array.isArray(icons)) {\r\n // Loop through the icons and add them to the vyi module instance.\r\n icons.forEach((pIconData) => {\r\n this.addIcon(pIconData);\r\n });\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid .vyi file! Cannot parse.');\r\n }\r\n }\r\n }\r\n } catch (pError) {\r\n VYI.logger.prefix('VYI-module').error(`Error processing vyi data: ${pError}`);\r\n }\r\n }\r\n /**\r\n * Adds an icon to this VYI.\r\n * @param {Object} pIconData - The icon data to use.\r\n * @returns {Icon|undefined} - The Icon added or undefined.\r\n */\r\n addIcon(pIconData) {\r\n if (pIconData) {\r\n if (pIconData instanceof Object) {\r\n const icon = new Icon(pIconData);\r\n // Add the icon to the icons array.\r\n this.icons.push(icon);\r\n return icon;\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('Invalid icon data type passed!');\r\n }\r\n } else {\r\n VYI.logger.prefix('VYI-module').error('No icon data passed!');\r\n }\r\n }\r\n /**\r\n * Removes the icon from this VYI.\r\n * @param {Icon} - The icon to remove.\r\n */\r\n removeIcon(pIcon) {\r\n if (this.icons.includes(pIcon)) {\r\n this.icons.splice(this.icons.indexOf(pIcon), 1);\r\n }\r\n }\r\n /**\r\n * Returns all the icon names in this vyi.\r\n * @returns {Array} An array of icon names in this vyi.\r\n */\r\n getIconNames() {\r\n // Array to store the icon names.\r\n const iconNames = [];\r\n this.icons.forEach((pIcon) => {\r\n iconNames.push(pIcon.name);\r\n });\r\n return iconNames;\r\n }\r\n /**\r\n * Gets the icon that has the name pName.\r\n * @param {string} pName - The name of the icon to get.\r\n * @returns {Icon|undefined} The icon that has the name pName or undefined.\r\n */\r\n getIcon(pName) {\r\n for (const icon of this.icons) {\r\n // If the icon has the same name, return that icon\r\n if (icon.getName() === pName) {\r\n return icon;\r\n }\r\n };\r\n }\r\n /**\r\n * Exports this VYI into VYI format.\r\n * @returns {Object} Returns the vyi data.\r\n */\r\n export() {\r\n const vyi = {};\r\n // Set version\r\n vyi.v = this.formatVersion;\r\n // Set the icons array\r\n vyi.i = [];\r\n this.icons.forEach((pIcon) => {\r\n // Push the icon data to the vyi export object.\r\n vyi.i.push(pIcon.export());\r\n });\r\n return vyi;\r\n }\r\n}",
@@ -2034,7 +1937,7 @@
"lineNumber": 1
},
{
- "__docId__": 107,
+ "__docId__": 105,
"kind": "class",
"name": "VYI",
"memberof": "src/vyi.mjs",
@@ -2050,7 +1953,7 @@
"interface": false
},
{
- "__docId__": 108,
+ "__docId__": 106,
"kind": "member",
"name": "version",
"memberof": "src/vyi.mjs~VYI",
@@ -2066,7 +1969,7 @@
}
},
{
- "__docId__": 109,
+ "__docId__": 107,
"kind": "member",
"name": "logger",
"memberof": "src/vyi.mjs~VYI",
@@ -2085,7 +1988,7 @@
}
},
{
- "__docId__": 110,
+ "__docId__": 108,
"kind": "member",
"name": "icons",
"memberof": "src/vyi.mjs~VYI",
@@ -2104,7 +2007,7 @@
}
},
{
- "__docId__": 111,
+ "__docId__": 109,
"kind": "member",
"name": "name",
"memberof": "src/vyi.mjs~VYI",
@@ -2123,7 +2026,7 @@
}
},
{
- "__docId__": 112,
+ "__docId__": 110,
"kind": "member",
"name": "formatVersion",
"memberof": "src/vyi.mjs~VYI",
@@ -2142,7 +2045,7 @@
}
},
{
- "__docId__": 113,
+ "__docId__": 111,
"kind": "constructor",
"name": "constructor",
"memberof": "src/vyi.mjs~VYI",
@@ -2167,7 +2070,7 @@
]
},
{
- "__docId__": 114,
+ "__docId__": 112,
"kind": "method",
"name": "parse",
"memberof": "src/vyi.mjs~VYI",
@@ -2194,7 +2097,7 @@
"return": null
},
{
- "__docId__": 116,
+ "__docId__": 114,
"kind": "method",
"name": "addIcon",
"memberof": "src/vyi.mjs~VYI",
@@ -2234,7 +2137,7 @@
}
},
{
- "__docId__": 117,
+ "__docId__": 115,
"kind": "method",
"name": "removeIcon",
"memberof": "src/vyi.mjs~VYI",
@@ -2260,7 +2163,7 @@
"return": null
},
{
- "__docId__": 118,
+ "__docId__": 116,
"kind": "method",
"name": "getIconNames",
"memberof": "src/vyi.mjs~VYI",
@@ -2288,7 +2191,7 @@
"params": []
},
{
- "__docId__": 119,
+ "__docId__": 117,
"kind": "method",
"name": "getIcon",
"memberof": "src/vyi.mjs~VYI",
@@ -2328,7 +2231,7 @@
}
},
{
- "__docId__": 120,
+ "__docId__": 118,
"kind": "method",
"name": "export",
"memberof": "src/vyi.mjs~VYI",
@@ -2365,7 +2268,7 @@
},
{
"kind": "packageJSON",
- "content": "{\r\n \"name\": \"vyi\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"A lightweight module to read / manage .vyi extensions created in the Vylocity Game Engine.\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\r\n \"build\": \"npx webpack && npm run build:minify && node add-version-script.js && node add-banner-script.js\",\r\n \"build:minify\": \"uglifyjs dist/vyi.min.mjs -m -c --comments -o dist/vyi.min.mjs\",\r\n \"build:prod\": \"npx webpack --mode production && npm run build:minify && node add-version-script.js && node add-banner-script.js && npm run build:docs\",\r\n \"build:docs\": \"esdoc -c esdoc.json\"\r\n },\r\n \"keywords\": [],\r\n \"author\": \"https://github.com/doubleactii\",\r\n \"license\": \"\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"git+https://github.com/EvitcaStudio/vyi\"\r\n }\r\n}\r\n",
+ "content": "{\r\n \"name\": \"vyi\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"A lightweight module to read / manage .vyi extensions created in the Vylocity Game Engine.\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\r\n \"build\": \"npx webpack && npm run build:minify && node add-version-script.js && node add-banner-script.js\",\r\n \"build:minify\": \"uglifyjs dist/vyi.min.mjs -m -c --comments -o dist/vyi.min.mjs\",\r\n \"build:prod\": \"npx webpack --mode production && npm run build:minify && node add-version-script.js && node add-banner-script.js && npm run build:docs\",\r\n \"build:docs\": \"esdoc -c esdoc.json\"\r\n },\r\n \"keywords\": [],\r\n \"author\": \"https://github.com/doubleactii\",\r\n \"license\": \"\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/EvitcaStudio/vyi\"\r\n }\r\n}\r\n",
"longname": "C:\\Users\\jared\\Documents\\Github\\vyi\\package.json",
"name": "package.json",
"static": true,
diff --git a/docs/script/search_index.js b/docs/script/search_index.js
index dd41bb2..1845752 100644
--- a/docs/script/search_index.js
+++ b/docs/script/search_index.js
@@ -341,18 +341,18 @@ window.esdocSearchIndex = [
"src/frame.mjs~Frame#getDelay",
"method"
],
- [
- "src/frame.mjs~frame#getindex",
- "class/src/frame.mjs~Frame.html#instance-method-getIndex",
- "src/frame.mjs~Frame#getIndex",
- "method"
- ],
[
"src/frame.mjs~frame#index",
"class/src/frame.mjs~Frame.html#instance-member-index",
"src/frame.mjs~Frame#index",
"member"
],
+ [
+ "src/frame.mjs~frame#parent",
+ "class/src/frame.mjs~Frame.html#instance-member-parent",
+ "src/frame.mjs~Frame#parent",
+ "member"
+ ],
[
"src/frame.mjs~frame#parse",
"class/src/frame.mjs~Frame.html#instance-method-parse",
@@ -371,12 +371,6 @@ window.esdocSearchIndex = [
"src/frame.mjs~Frame#setDelay",
"method"
],
- [
- "src/frame.mjs~frame#setindex",
- "class/src/frame.mjs~Frame.html#instance-method-setIndex",
- "src/frame.mjs~Frame#setIndex",
- "method"
- ],
[
"src/frame.mjs~frame.defaultdelay",
"class/src/frame.mjs~Frame.html#static-member-defaultDelay",
@@ -581,12 +575,6 @@ window.esdocSearchIndex = [
"src/icon.mjs~Icon#width",
"member"
],
- [
- "src/icon.mjs~icon.swaparrayelements",
- "class/src/icon.mjs~Icon.html#static-method-swapArrayElements",
- "src/icon.mjs~Icon.swapArrayElements",
- "method"
- ],
[
"src/vyi.mjs",
"file/src/vyi.mjs.html",
diff --git a/docs/source.html b/docs/source.html
index a9f95c4..1aa1e36 100644
--- a/docs/source.html
+++ b/docs/source.html
@@ -55,17 +55,17 @@
src/frame.mjs |
Frame |
- |
-
3818 byte |
-
132 |
-
2024-02-01 21:44:01 (UTC) |
+
3433 byte |
+
118 |
+
2024-02-01 23:08:06 (UTC) |
src/icon.mjs |
Icon |
- |
- 16362 byte |
- 469 |
- 2024-02-01 21:44:21 (UTC) |
+ 17360 byte |
+ 487 |
+ 2024-02-01 23:10:42 (UTC) |
src/vyi.mjs |
@@ -73,7 +73,7 @@
- |
5345 byte |
158 |
- 2024-02-01 21:46:24 (UTC) |
+ 2024-02-01 21:53:20 (UTC) |
diff --git a/package.json b/package.json
index 0aa9fff..3eda13e 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,6 @@
"license": "",
"repository": {
"type": "git",
- "url": "git+https://github.com/EvitcaStudio/vyi"
+ "url": "https://github.com/EvitcaStudio/vyi"
}
}
diff --git a/src/frame.mjs b/src/frame.mjs
index d5fb108..2079aac 100644
--- a/src/frame.mjs
+++ b/src/frame.mjs
@@ -19,6 +19,12 @@ export class Frame {
* @type {number}
*/
index = 0;
+ /**
+ * The icon that owns this frame.
+ * @private
+ * @type {Icon}
+ */
+ parent;
/**
* The default delay in ms of frames.
* @private
@@ -28,9 +34,11 @@ export class Frame {
/**
* Create this frame class instance.
* @param {Object} pFrameData - The frame data that is used to build this frame.
+ * @param {Icon} pParentIcon - The icon that created this frame.
* @private
*/
- constructor(pFrameData) {
+ constructor(pFrameData, pParentIcon) {
+ this.parent = pParentIcon;
this.parse(pFrameData);
}
/**
@@ -91,29 +99,6 @@ export class Frame {
getDataURL() {
return this.dataURL;
}
- /**
- * Sets the index of the frame.
- * @private
- * @param {number} pIndex - The index to set the frame to.
- * @returns {self} This frame instance.
- */
- setIndex(pIndex) {
- if (pIndex) {
- if (typeof(pIndex) === 'number') {
- this.index = pIndex;
- } else {
- VYI.logger.prefix('VYI-module').error('Invalid index type!');
- }
- }
- return this;
- }
- /**
- * Gets the index of this frame.
- * @returns {number} The index of this frame.
- */
- getIndex() {
- return this.index;
- }
/**
* Exports this frame's data into proper vyi format.
* @private
diff --git a/src/icon.mjs b/src/icon.mjs
index d7326e7..07c8f3c 100644
--- a/src/icon.mjs
+++ b/src/icon.mjs
@@ -52,17 +52,6 @@ export class Icon {
constructor(pIconData) {
this.parse(pIconData);
}
- /**
- * Swaps the positions of two elements in an array.
- * @param {Array} pArray - The array in which to swap elements.
- * @param {number} pIndex1 - The index of the first element to swap.
- * @param {number} pIndex2 - The index of the second element to swap.
- * @private
- * @returns {void}
- */
- static swapArrayElements(pArray, pIndex1, pIndex2) {
- [pArray[pIndex1], pArray[pIndex2]] = [pArray[pIndex2], pArray[pIndex1]];
- }
/**
* parses through the icon data and adds data to this icon.
* @param {Object} pIconData - The icon data that is used to build this icon.
@@ -273,7 +262,7 @@ export class Icon {
addFrame(pFrameData) {
if (pFrameData) {
if (pFrameData instanceof Object) {
- const frame = new Frame(pFrameData);
+ const frame = new Frame(pFrameData, this);
// Add the frame to the frames array.
this.frames.push(frame);
// Re-index frames after a change
@@ -331,18 +320,45 @@ export class Icon {
}
/**
* Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.
+ * The "first" frame of the animation is technically this icon's dataURL. So if you are aiming to change the order of this icon and convert it into a frame.
+ * pCurrentIndex must be set to -1 to match this icon.
* @param {number} pCurrentIndex - The current index of the frame.
* @param {number} pIndex - The index the frame will be moving to.
* @returns {self} This icon instance.
*/
reorderFrame(pCurrentIndex, pIndex) {
if (typeof(pCurrentIndex) === 'number' && typeof(pIndex) === 'number') {
- // We check if there is a valid frame at the current index and at the index we want to swap with.
- if (this.frames[pCurrentIndex] && this.frames[pIndex]) {
- // Swaps the frames
- Icon.swapArrayElements(this.frames, pCurrentIndex, pIndex);
- // Re-index frames after a change
- this.indexFrames();
+ let frameAtIndex;
+ let currentFrame;
+ // We check if the current index is -1, if it is then it means we want to treat this icon as a frame. As the icon data and delay of this icon serves
+ // as the frame 0.
+ if (pCurrentIndex === -1) {
+ currentFrame = this;
+ // Otherwise if the index passed can be found in the frames array, then we use that frame.
+ } else if (this.frames[pCurrentIndex]) {
+ currentFrame = this.frames[pCurrentIndex];
+ }
+
+ // We get the frame at the specified index.
+ if (this.frames[pIndex]) {
+ frameAtIndex = this.frames[pIndex];
+ }
+
+ // If both frames can be found, we can swap their data.
+ if (currentFrame && frameAtIndex) {
+ // Store frame data
+ const currentFrameDataURL = currentFrame.getDataURL();
+ const currentFrameDelay = currentFrame.getDelay();
+
+ const frameAtIndexDataURL = frameAtIndex.getDataURL();
+ const frameAtIndexDelay = frameAtIndex.getDelay();
+
+ // Swap data from frame
+ currentFrame.setDataURL(frameAtIndexDataURL);
+ currentFrame.setDelay(frameAtIndexDelay);
+ // Swap data to frame
+ frameAtIndex.setDataURL(currentFrameDataURL);
+ frameAtIndex.setDelay(currentFrameDelay);
} else {
VYI.logger.prefix('VYI-Module').error('There was no frame found at pCurrentIndex, or there was no frame found at pIndex!');
}
@@ -353,11 +369,12 @@ export class Icon {
}
/**
* Gets the frame existing at pIndex.
+ * Frame 0 will actually be frame "1" in the animation. As this icon will actually be frame 0.
+ * If you are trying to get "frame" 1. Then you will need to use the icon's delay and data url. As that is frame 0.
* @param {number} pIndex - The index of the frame to get.
* @returns {Frame|undefined} The frame found at pIndex.
*/
getFrame(pIndex) {
- // Frame 0 will actually be frame "1" in the animation. As this icon will actually be frame 0.
if (typeof(pIndex) === 'number') {
return this.frames[pIndex];
} else {