An Open Source library for multi-touch, WebGL powered applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

5192 lines
131 KiB

{
"type": "Program",
"start": 0,
"end": 5750,
"range": [0, 5750],
"body": [{
"type": "ClassDeclaration",
"start": 1,
"end": 5682,
"range": [1, 5682],
"id": {
"type": "Identifier",
"start": 7,
"end": 13,
"range": [7, 13],
"name": "Events"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 14,
"end": 5682,
"range": [14, 5682],
"body": [{
"type": "MethodDefinition",
"start": 21,
"end": 468,
"range": [21, 468],
"computed": false,
"key": {
"type": "Identifier",
"start": 28,
"end": 39,
"range": [28, 39],
"name": "isMouseDown"
},
"static": true,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 39,
"end": 468,
"range": [39, 468],
"id": null,
"generator": false,
"expression": false,
"params": [{
"type": "Identifier",
"start": 40,
"end": 45,
"range": [40, 45],
"name": "event"
}],
"body": {
"type": "BlockStatement",
"start": 47,
"end": 468,
"range": [47, 468],
"body": [{
"type": "IfStatement",
"start": 327,
"end": 418,
"range": [327, 418],
"test": {
"type": "CallExpression",
"start": 331,
"end": 372,
"range": [331, 372],
"callee": {
"type": "MemberExpression",
"start": 331,
"end": 342,
"range": [331, 342],
"object": {
"type": "Identifier",
"start": 331,
"end": 338,
"range": [331, 338],
"name": "Reflect"
},
"property": {
"type": "Identifier",
"start": 339,
"end": 342,
"range": [339, 342],
"name": "has"
},
"computed": false
},
"arguments": [{
"type": "Identifier",
"start": 343,
"end": 348,
"range": [343, 348],
"name": "event"
}, {
"type": "Literal",
"start": 350,
"end": 371,
"range": [350, 371],
"value": "mouseDownSubstitute",
"raw": "'mouseDownSubstitute'"
}]
},
"consequent": {
"type": "ReturnStatement",
"start": 386,
"end": 418,
"range": [386, 418],
"argument": {
"type": "MemberExpression",
"start": 393,
"end": 418,
"range": [393, 418],
"object": {
"type": "Identifier",
"start": 393,
"end": 398,
"range": [393, 398],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 399,
"end": 418,
"range": [399, 418],
"name": "mouseDownSubstitute"
},
"computed": false
}
},
"alternate": null
}, {
"type": "ReturnStatement",
"start": 427,
"end": 462,
"range": [427, 462],
"argument": {
"type": "LogicalExpression",
"start": 434,
"end": 462,
"range": [434, 462],
"left": {
"type": "MemberExpression",
"start": 434,
"end": 447,
"range": [434, 447],
"object": {
"type": "Identifier",
"start": 434,
"end": 439,
"range": [434, 439],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 440,
"end": 447,
"range": [440, 447],
"name": "buttons"
},
"computed": false
},
"operator": "||",
"right": {
"type": "MemberExpression",
"start": 451,
"end": 462,
"range": [451, 462],
"object": {
"type": "Identifier",
"start": 451,
"end": 456,
"range": [451, 456],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 457,
"end": 462,
"range": [457, 462],
"name": "which"
},
"computed": false
}
}
}]
}
}
}, {
"type": "MethodDefinition",
"start": 474,
"end": 996,
"range": [474, 996],
"computed": false,
"key": {
"type": "Identifier",
"start": 481,
"end": 495,
"range": [481, 495],
"name": "extractTouches"
},
"static": true,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 495,
"end": 996,
"range": [495, 996],
"id": null,
"generator": false,
"expression": false,
"params": [{
"type": "Identifier",
"start": 496,
"end": 503,
"range": [496, 503],
"name": "targets"
}],
"body": {
"type": "BlockStatement",
"start": 505,
"end": 996,
"range": [505, 996],
"body": [{
"type": "VariableDeclaration",
"start": 515,
"end": 531,
"range": [515, 531],
"declarations": [{
"type": "VariableDeclarator",
"start": 519,
"end": 531,
"range": [519, 531],
"id": {
"type": "Identifier",
"start": 519,
"end": 526,
"range": [519, 526],
"name": "touches"
},
"init": {
"type": "ArrayExpression",
"start": 529,
"end": 531,
"range": [529, 531],
"elements": []
}
}],
"kind": "let"
}, {
"type": "ForStatement",
"start": 540,
"end": 967,
"range": [540, 967],
"init": {
"type": "VariableDeclaration",
"start": 545,
"end": 552,
"range": [545, 552],
"declarations": [{
"type": "VariableDeclarator",
"start": 549,
"end": 552,
"range": [549, 552],
"id": {
"type": "Identifier",
"start": 549,
"end": 550,
"range": [549, 550],
"name": "i"
},
"init": {
"type": "Literal",
"start": 551,
"end": 552,
"range": [551, 552],
"value": 0,
"raw": "0"
}
}],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 554,
"end": 570,
"range": [554, 570],
"left": {
"type": "Identifier",
"start": 554,
"end": 555,
"range": [554, 555],
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 556,
"end": 570,
"range": [556, 570],
"object": {
"type": "Identifier",
"start": 556,
"end": 563,
"range": [556, 563],
"name": "targets"
},
"property": {
"type": "Identifier",
"start": 564,
"end": 570,
"range": [564, 570],
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 572,
"end": 575,
"range": [572, 575],
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 572,
"end": 573,
"range": [572, 573],
"name": "i"
}
},
"body": {
"type": "BlockStatement",
"start": 577,
"end": 967,
"range": [577, 967],
"body": [{
"type": "VariableDeclaration",
"start": 591,
"end": 609,
"range": [591, 609],
"declarations": [{
"type": "VariableDeclarator",
"start": 595,
"end": 609,
"range": [595, 609],
"id": {
"type": "Identifier",
"start": 595,
"end": 596,
"range": [595, 596],
"name": "t"
},
"init": {
"type": "MemberExpression",
"start": 599,
"end": 609,
"range": [599, 609],
"object": {
"type": "Identifier",
"start": 599,
"end": 606,
"range": [599, 606],
"name": "targets"
},
"property": {
"type": "Identifier",
"start": 607,
"end": 608,
"range": [607, 608],
"name": "i"
},
"computed": true
}
}],
"kind": "let"
}, {
"type": "ExpressionStatement",
"start": 622,
"end": 957,
"range": [622, 957],
"expression": {
"type": "CallExpression",
"start": 622,
"end": 957,
"range": [622, 957],
"callee": {
"type": "MemberExpression",
"start": 622,
"end": 634,
"range": [622, 634],
"object": {
"type": "Identifier",
"start": 622,
"end": 629,
"range": [622, 629],
"name": "touches"
},
"property": {
"type": "Identifier",
"start": 630,
"end": 634,
"range": [630, 634],
"name": "push"
},
"computed": false
},
"arguments": [{
"type": "ObjectExpression",
"start": 635,
"end": 956,
"range": [635, 956],
"properties": [{
"type": "Property",
"start": 653,
"end": 692,
"range": [653, 692],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 653,
"end": 667,
"range": [653, 667],
"name": "targetSelector"
},
"value": {
"type": "CallExpression",
"start": 669,
"end": 692,
"range": [669, 692],
"callee": {
"type": "MemberExpression",
"start": 669,
"end": 682,
"range": [669, 682],
"object": {
"type": "ThisExpression",
"start": 669,
"end": 673,
"range": [669, 673]
},
"property": {
"type": "Identifier",
"start": 674,
"end": 682,
"range": [674, 682],
"name": "selector"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 683,
"end": 691,
"range": [683, 691],
"object": {
"type": "Identifier",
"start": 683,
"end": 684,
"range": [683, 684],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 685,
"end": 691,
"range": [685, 691],
"name": "target"
},
"computed": false
}]
},
"kind": "init"
}, {
"type": "Property",
"start": 710,
"end": 734,
"range": [710, 734],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 710,
"end": 720,
"range": [710, 720],
"name": "identifier"
},
"value": {
"type": "MemberExpression",
"start": 722,
"end": 734,
"range": [722, 734],
"object": {
"type": "Identifier",
"start": 722,
"end": 723,
"range": [722, 723],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 724,
"end": 734,
"range": [724, 734],
"name": "identifier"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 752,
"end": 770,
"range": [752, 770],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 752,
"end": 759,
"range": [752, 759],
"name": "screenX"
},
"value": {
"type": "MemberExpression",
"start": 761,
"end": 770,
"range": [761, 770],
"object": {
"type": "Identifier",
"start": 761,
"end": 762,
"range": [761, 762],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 763,
"end": 770,
"range": [763, 770],
"name": "screenX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 788,
"end": 806,
"range": [788, 806],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 788,
"end": 795,
"range": [788, 795],
"name": "screenY"
},
"value": {
"type": "MemberExpression",
"start": 797,
"end": 806,
"range": [797, 806],
"object": {
"type": "Identifier",
"start": 797,
"end": 798,
"range": [797, 798],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 799,
"end": 806,
"range": [799, 806],
"name": "screenY"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 824,
"end": 842,
"range": [824, 842],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 824,
"end": 831,
"range": [824, 831],
"name": "clientX"
},
"value": {
"type": "MemberExpression",
"start": 833,
"end": 842,
"range": [833, 842],
"object": {
"type": "Identifier",
"start": 833,
"end": 834,
"range": [833, 834],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 835,
"end": 842,
"range": [835, 842],
"name": "clientX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 860,
"end": 878,
"range": [860, 878],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 860,
"end": 867,
"range": [860, 867],
"name": "clientY"
},
"value": {
"type": "MemberExpression",
"start": 869,
"end": 878,
"range": [869, 878],
"object": {
"type": "Identifier",
"start": 869,
"end": 870,
"range": [869, 870],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 871,
"end": 878,
"range": [871, 878],
"name": "clientY"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 896,
"end": 910,
"range": [896, 910],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 896,
"end": 901,
"range": [896, 901],
"name": "pageX"
},
"value": {
"type": "MemberExpression",
"start": 903,
"end": 910,
"range": [903, 910],
"object": {
"type": "Identifier",
"start": 903,
"end": 904,
"range": [903, 904],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 905,
"end": 910,
"range": [905, 910],
"name": "pageX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 928,
"end": 942,
"range": [928, 942],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 928,
"end": 933,
"range": [928, 933],
"name": "pageY"
},
"value": {
"type": "MemberExpression",
"start": 935,
"end": 942,
"range": [935, 942],
"object": {
"type": "Identifier",
"start": 935,
"end": 936,
"range": [935, 936],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 937,
"end": 942,
"range": [937, 942],
"name": "pageY"
},
"computed": false
},
"kind": "init"
}]
}]
}
}]
}
}, {
"type": "ReturnStatement",
"start": 976,
"end": 990,
"range": [976, 990],
"argument": {
"type": "Identifier",
"start": 983,
"end": 990,
"range": [983, 990],
"name": "touches"
}
}]
}
}
}, {
"type": "MethodDefinition",
"start": 1002,
"end": 1449,
"range": [1002, 1449],
"computed": false,
"key": {
"type": "Identifier",
"start": 1009,
"end": 1024,
"range": [1009, 1024],
"name": "createTouchList"
},
"static": true,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 1024,
"end": 1449,
"range": [1024, 1449],
"id": null,
"generator": false,
"expression": false,
"params": [{
"type": "Identifier",
"start": 1025,
"end": 1032,
"range": [1025, 1032],
"name": "targets"
}],
"body": {
"type": "BlockStatement",
"start": 1034,
"end": 1449,
"range": [1034, 1449],
"body": [{
"type": "VariableDeclaration",
"start": 1044,
"end": 1060,
"range": [1044, 1060],
"declarations": [{
"type": "VariableDeclarator",
"start": 1048,
"end": 1060,
"range": [1048, 1060],
"id": {
"type": "Identifier",
"start": 1048,
"end": 1055,
"range": [1048, 1055],
"name": "touches"
},
"init": {
"type": "ArrayExpression",
"start": 1058,
"end": 1060,
"range": [1058, 1060],
"elements": []
}
}],
"kind": "let"
}, {
"type": "ForStatement",
"start": 1069,
"end": 1402,
"range": [1069, 1402],
"init": {
"type": "VariableDeclaration",
"start": 1074,
"end": 1081,
"range": [1074, 1081],
"declarations": [{
"type": "VariableDeclarator",
"start": 1078,
"end": 1081,
"range": [1078, 1081],
"id": {
"type": "Identifier",
"start": 1078,
"end": 1079,
"range": [1078, 1079],
"name": "i"
},
"init": {
"type": "Literal",
"start": 1080,
"end": 1081,
"range": [1080, 1081],
"value": 0,
"raw": "0"
}
}],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 1083,
"end": 1099,
"range": [1083, 1099],
"left": {
"type": "Identifier",
"start": 1083,
"end": 1084,
"range": [1083, 1084],
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 1085,
"end": 1099,
"range": [1085, 1099],
"object": {
"type": "Identifier",
"start": 1085,
"end": 1092,
"range": [1085, 1092],
"name": "targets"
},
"property": {
"type": "Identifier",
"start": 1093,
"end": 1099,
"range": [1093, 1099],
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 1101,
"end": 1104,
"range": [1101, 1104],
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 1101,
"end": 1102,
"range": [1101, 1102],
"name": "i"
}
},
"body": {
"type": "BlockStatement",
"start": 1106,
"end": 1402,
"range": [1106, 1402],
"body": [{
"type": "VariableDeclaration",
"start": 1120,
"end": 1138,
"range": [1120, 1138],
"declarations": [{
"type": "VariableDeclarator",
"start": 1124,
"end": 1138,
"range": [1124, 1138],
"id": {
"type": "Identifier",
"start": 1124,
"end": 1125,
"range": [1124, 1125],
"name": "t"
},
"init": {
"type": "MemberExpression",
"start": 1128,
"end": 1138,
"range": [1128, 1138],
"object": {
"type": "Identifier",
"start": 1128,
"end": 1135,
"range": [1128, 1135],
"name": "targets"
},
"property": {
"type": "Identifier",
"start": 1136,
"end": 1137,
"range": [1136, 1137],
"name": "i"
},
"computed": true
}
}],
"kind": "let"
}, {
"type": "VariableDeclaration",
"start": 1151,
"end": 1212,
"range": [1151, 1212],
"declarations": [{
"type": "VariableDeclarator",
"start": 1155,
"end": 1212,
"range": [1155, 1212],
"id": {
"type": "Identifier",
"start": 1155,
"end": 1166,
"range": [1155, 1166],
"name": "touchTarget"
},
"init": {
"type": "CallExpression",
"start": 1169,
"end": 1212,
"range": [1169, 1212],
"callee": {
"type": "MemberExpression",
"start": 1169,
"end": 1194,
"range": [1169, 1194],
"object": {
"type": "Identifier",
"start": 1169,
"end": 1177,
"range": [1169, 1177],
"name": "document"
},
"property": {
"type": "Identifier",
"start": 1178,
"end": 1194,
"range": [1178, 1194],
"name": "elementFromPoint"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 1195,
"end": 1202,
"range": [1195, 1202],
"object": {
"type": "Identifier",
"start": 1195,
"end": 1196,
"range": [1195, 1196],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1197,
"end": 1202,
"range": [1197, 1202],
"name": "pageX"
},
"computed": false
}, {
"type": "MemberExpression",
"start": 1204,
"end": 1211,
"range": [1204, 1211],
"object": {
"type": "Identifier",
"start": 1204,
"end": 1205,
"range": [1204, 1205],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1206,
"end": 1211,
"range": [1206, 1211],
"name": "pageY"
},
"computed": false
}]
}
}],
"kind": "let"
}, {
"type": "VariableDeclaration",
"start": 1225,
"end": 1360,
"range": [1225, 1360],
"declarations": [{
"type": "VariableDeclarator",
"start": 1229,
"end": 1360,
"range": [1229, 1360],
"id": {
"type": "Identifier",
"start": 1229,
"end": 1234,
"range": [1229, 1234],
"name": "touch"
},
"init": {
"type": "NewExpression",
"start": 1237,
"end": 1360,
"range": [1237, 1360],
"callee": {
"type": "Identifier",
"start": 1241,
"end": 1246,
"range": [1241, 1246],
"name": "Touch"
},
"arguments": [{
"type": "Identifier",
"start": 1247,
"end": 1256,
"range": [1247, 1256],
"name": "undefined"
}, {
"type": "Identifier",
"start": 1258,
"end": 1269,
"range": [1258, 1269],
"name": "touchTarget"
}, {
"type": "MemberExpression",
"start": 1271,
"end": 1283,
"range": [1271, 1283],
"object": {
"type": "Identifier",
"start": 1271,
"end": 1272,
"range": [1271, 1272],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1273,
"end": 1283,
"range": [1273, 1283],
"name": "identifier"
},
"computed": false
}, {
"type": "MemberExpression",
"start": 1321,
"end": 1328,
"range": [1321, 1328],
"object": {
"type": "Identifier",
"start": 1321,
"end": 1322,
"range": [1321, 1322],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1323,
"end": 1328,
"range": [1323, 1328],
"name": "pageX"
},
"computed": false
}, {
"type": "MemberExpression",
"start": 1330,
"end": 1337,
"range": [1330, 1337],
"object": {
"type": "Identifier",
"start": 1330,
"end": 1331,
"range": [1330, 1331],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1332,
"end": 1337,
"range": [1332, 1337],
"name": "pageY"
},
"computed": false
}, {
"type": "MemberExpression",
"start": 1339,
"end": 1348,
"range": [1339, 1348],
"object": {
"type": "Identifier",
"start": 1339,
"end": 1340,
"range": [1339, 1340],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1341,
"end": 1348,
"range": [1341, 1348],
"name": "screenX"
},
"computed": false
}, {
"type": "MemberExpression",
"start": 1350,
"end": 1359,
"range": [1350, 1359],
"object": {
"type": "Identifier",
"start": 1350,
"end": 1351,
"range": [1350, 1351],
"name": "t"
},
"property": {
"type": "Identifier",
"start": 1352,
"end": 1359,
"range": [1352, 1359],
"name": "screenY"
},
"computed": false
}]
}
}],
"kind": "let"
}, {
"type": "ExpressionStatement",
"start": 1373,
"end": 1392,
"range": [1373, 1392],
"expression": {
"type": "CallExpression",
"start": 1373,
"end": 1392,
"range": [1373, 1392],
"callee": {
"type": "MemberExpression",
"start": 1373,
"end": 1385,
"range": [1373, 1385],
"object": {
"type": "Identifier",
"start": 1373,
"end": 1380,
"range": [1373, 1380],
"name": "touches"
},
"property": {
"type": "Identifier",
"start": 1381,
"end": 1385,
"range": [1381, 1385],
"name": "push"
},
"computed": false
},
"arguments": [{
"type": "Identifier",
"start": 1386,
"end": 1391,
"range": [1386, 1391],
"name": "touch"
}]
}
}]
}
}, {
"type": "ReturnStatement",
"start": 1411,
"end": 1443,
"range": [1411, 1443],
"argument": {
"type": "NewExpression",
"start": 1418,
"end": 1443,
"range": [1418, 1443],
"callee": {
"type": "Identifier",
"start": 1422,
"end": 1431,
"range": [1422, 1431],
"name": "TouchList"
},
"arguments": [{
"type": "SpreadElement",
"start": 1432,
"end": 1442,
"range": [1432, 1442],
"argument": {
"type": "Identifier",
"start": 1435,
"end": 1442,
"range": [1435, 1442],
"name": "touches"
}
}]
}
}]
}
}
}, {
"type": "MethodDefinition",
"start": 1455,
"end": 2891,
"range": [1455, 2891],
"computed": false,
"key": {
"type": "Identifier",
"start": 1462,
"end": 1474,
"range": [1462, 1474],
"name": "extractEvent"
},
"static": true,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 1474,
"end": 2891,
"range": [1474, 2891],
"id": null,
"generator": false,
"expression": false,
"params": [{
"type": "Identifier",
"start": 1475,
"end": 1484,
"range": [1475, 1484],
"name": "timestamp"
}, {
"type": "Identifier",
"start": 1486,
"end": 1491,
"range": [1486, 1491],
"name": "event"
}],
"body": {
"type": "BlockStatement",
"start": 1493,
"end": 2891,
"range": [1493, 2891],
"body": [{
"type": "VariableDeclaration",
"start": 1503,
"end": 2392,
"range": [1503, 2392],
"declarations": [{
"type": "VariableDeclarator",
"start": 1507,
"end": 2392,
"range": [1507, 2392],
"id": {
"type": "Identifier",
"start": 1507,
"end": 1512,
"range": [1507, 1512],
"name": "infos"
},
"init": {
"type": "ObjectExpression",
"start": 1515,
"end": 2392,
"range": [1515, 2392],
"properties": [{
"type": "Property",
"start": 1517,
"end": 1533,
"range": [1517, 1533],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1517,
"end": 1521,
"range": [1517, 1521],
"name": "type"
},
"value": {
"type": "MemberExpression",
"start": 1523,
"end": 1533,
"range": [1523, 1533],
"object": {
"type": "Identifier",
"start": 1523,
"end": 1528,
"range": [1523, 1528],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1529,
"end": 1533,
"range": [1529, 1533],
"name": "type"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 1547,
"end": 1562,
"range": [1547, 1562],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1547,
"end": 1551,
"range": [1547, 1551],
"name": "time"
},
"value": {
"type": "Identifier",
"start": 1553,
"end": 1562,
"range": [1553, 1562],
"name": "timestamp"
},
"kind": "init"
}, {
"type": "Property",
"start": 1576,
"end": 1606,
"range": [1576, 1606],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1576,
"end": 1587,
"range": [1576, 1587],
"name": "constructor"
},
"value": {
"type": "MemberExpression",
"start": 1589,
"end": 1606,
"range": [1589, 1606],
"object": {
"type": "Identifier",
"start": 1589,
"end": 1594,
"range": [1589, 1594],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1595,
"end": 1606,
"range": [1595, 1606],
"name": "constructor"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 1620,
"end": 2378,
"range": [1620, 2378],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1620,
"end": 1624,
"range": [1620, 1624],
"name": "data"
},
"value": {
"type": "ObjectExpression",
"start": 1626,
"end": 2378,
"range": [1626, 2378],
"properties": [{
"type": "Property",
"start": 1644,
"end": 1687,
"range": [1644, 1687],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1644,
"end": 1658,
"range": [1644, 1658],
"name": "targetSelector"
},
"value": {
"type": "CallExpression",
"start": 1660,
"end": 1687,
"range": [1660, 1687],
"callee": {
"type": "MemberExpression",
"start": 1660,
"end": 1673,
"range": [1660, 1673],
"object": {
"type": "ThisExpression",
"start": 1660,
"end": 1664,
"range": [1660, 1664]
},
"property": {
"type": "Identifier",
"start": 1665,
"end": 1673,
"range": [1665, 1673],
"name": "selector"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 1674,
"end": 1686,
"range": [1674, 1686],
"object": {
"type": "Identifier",
"start": 1674,
"end": 1679,
"range": [1674, 1679],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1680,
"end": 1686,
"range": [1680, 1686],
"name": "target"
},
"computed": false
}]
},
"kind": "init"
}, {
"type": "Property",
"start": 1705,
"end": 1721,
"range": [1705, 1721],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1705,
"end": 1709,
"range": [1705, 1709],
"name": "view"
},
"value": {
"type": "MemberExpression",
"start": 1711,
"end": 1721,
"range": [1711, 1721],
"object": {
"type": "Identifier",
"start": 1711,
"end": 1716,
"range": [1711, 1716],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1717,
"end": 1721,
"range": [1717, 1721],
"name": "view"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 1739,
"end": 1788,
"range": [1739, 1788],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1739,
"end": 1758,
"range": [1739, 1758],
"name": "mouseDownSubstitute"
},
"value": {
"type": "LogicalExpression",
"start": 1760,
"end": 1788,
"range": [1760, 1788],
"left": {
"type": "MemberExpression",
"start": 1760,
"end": 1773,
"range": [1760, 1773],
"object": {
"type": "Identifier",
"start": 1760,
"end": 1765,
"range": [1760, 1765],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1766,
"end": 1773,
"range": [1766, 1773],
"name": "buttons"
},
"computed": false
},
"operator": "||",
"right": {
"type": "MemberExpression",
"start": 1777,
"end": 1788,
"range": [1777, 1788],
"object": {
"type": "Identifier",
"start": 1777,
"end": 1782,
"range": [1777, 1782],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1783,
"end": 1788,
"range": [1783, 1788],
"name": "which"
},
"computed": false
}
},
"kind": "init"
}, {
"type": "Property",
"start": 1841,
"end": 1863,
"range": [1841, 1863],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1841,
"end": 1848,
"range": [1841, 1848],
"name": "bubbles"
},
"value": {
"type": "MemberExpression",
"start": 1850,
"end": 1863,
"range": [1850, 1863],
"object": {
"type": "Identifier",
"start": 1850,
"end": 1855,
"range": [1850, 1855],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1856,
"end": 1863,
"range": [1856, 1863],
"name": "bubbles"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 1881,
"end": 1909,
"range": [1881, 1909],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1881,
"end": 1891,
"range": [1881, 1891],
"name": "cancelable"
},
"value": {
"type": "MemberExpression",
"start": 1893,
"end": 1909,
"range": [1893, 1909],
"object": {
"type": "Identifier",
"start": 1893,
"end": 1898,
"range": [1893, 1898],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1899,
"end": 1909,
"range": [1899, 1909],
"name": "cancelable"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 1927,
"end": 1949,
"range": [1927, 1949],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1927,
"end": 1934,
"range": [1927, 1934],
"name": "screenX"
},
"value": {
"type": "MemberExpression",
"start": 1936,
"end": 1949,
"range": [1936, 1949],
"object": {
"type": "Identifier",
"start": 1936,
"end": 1941,
"range": [1936, 1941],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1942,
"end": 1949,
"range": [1942, 1949],
"name": "screenX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 1967,
"end": 1989,
"range": [1967, 1989],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1967,
"end": 1974,
"range": [1967, 1974],
"name": "screenY"
},
"value": {
"type": "MemberExpression",
"start": 1976,
"end": 1989,
"range": [1976, 1989],
"object": {
"type": "Identifier",
"start": 1976,
"end": 1981,
"range": [1976, 1981],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1982,
"end": 1989,
"range": [1982, 1989],
"name": "screenY"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2007,
"end": 2029,
"range": [2007, 2029],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2007,
"end": 2014,
"range": [2007, 2014],
"name": "clientX"
},
"value": {
"type": "MemberExpression",
"start": 2016,
"end": 2029,
"range": [2016, 2029],
"object": {
"type": "Identifier",
"start": 2016,
"end": 2021,
"range": [2016, 2021],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2022,
"end": 2029,
"range": [2022, 2029],
"name": "clientX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2047,
"end": 2069,
"range": [2047, 2069],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2047,
"end": 2054,
"range": [2047, 2054],
"name": "clientY"
},
"value": {
"type": "MemberExpression",
"start": 2056,
"end": 2069,
"range": [2056, 2069],
"object": {
"type": "Identifier",
"start": 2056,
"end": 2061,
"range": [2056, 2061],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2062,
"end": 2069,
"range": [2062, 2069],
"name": "clientY"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2087,
"end": 2107,
"range": [2087, 2107],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2087,
"end": 2093,
"range": [2087, 2093],
"name": "layerX"
},
"value": {
"type": "MemberExpression",
"start": 2095,
"end": 2107,
"range": [2095, 2107],
"object": {
"type": "Identifier",
"start": 2095,
"end": 2100,
"range": [2095, 2100],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2101,
"end": 2107,
"range": [2101, 2107],
"name": "layerX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2125,
"end": 2145,
"range": [2125, 2145],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2125,
"end": 2131,
"range": [2125, 2131],
"name": "layerY"
},
"value": {
"type": "MemberExpression",
"start": 2133,
"end": 2145,
"range": [2133, 2145],
"object": {
"type": "Identifier",
"start": 2133,
"end": 2138,
"range": [2133, 2138],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2139,
"end": 2145,
"range": [2139, 2145],
"name": "layerY"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2163,
"end": 2181,
"range": [2163, 2181],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2163,
"end": 2168,
"range": [2163, 2168],
"name": "pageX"
},
"value": {
"type": "MemberExpression",
"start": 2170,
"end": 2181,
"range": [2170, 2181],
"object": {
"type": "Identifier",
"start": 2170,
"end": 2175,
"range": [2170, 2175],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2176,
"end": 2181,
"range": [2176, 2181],
"name": "pageX"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2199,
"end": 2217,
"range": [2199, 2217],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2199,
"end": 2204,
"range": [2199, 2204],
"name": "pageY"
},
"value": {
"type": "MemberExpression",
"start": 2206,
"end": 2217,
"range": [2206, 2217],
"object": {
"type": "Identifier",
"start": 2206,
"end": 2211,
"range": [2206, 2211],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2212,
"end": 2217,
"range": [2212, 2217],
"name": "pageY"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2235,
"end": 2257,
"range": [2235, 2257],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2235,
"end": 2242,
"range": [2235, 2242],
"name": "ctrlKey"
},
"value": {
"type": "MemberExpression",
"start": 2244,
"end": 2257,
"range": [2244, 2257],
"object": {
"type": "Identifier",
"start": 2244,
"end": 2249,
"range": [2244, 2249],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2250,
"end": 2257,
"range": [2250, 2257],
"name": "ctrlKey"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2275,
"end": 2295,
"range": [2275, 2295],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2275,
"end": 2281,
"range": [2275, 2281],
"name": "altKey"
},
"value": {
"type": "MemberExpression",
"start": 2283,
"end": 2295,
"range": [2283, 2295],
"object": {
"type": "Identifier",
"start": 2283,
"end": 2288,
"range": [2283, 2288],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2289,
"end": 2295,
"range": [2289, 2295],
"name": "altKey"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2313,
"end": 2337,
"range": [2313, 2337],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2313,
"end": 2321,
"range": [2313, 2321],
"name": "shiftKey"
},
"value": {
"type": "MemberExpression",
"start": 2323,
"end": 2337,
"range": [2323, 2337],
"object": {
"type": "Identifier",
"start": 2323,
"end": 2328,
"range": [2323, 2328],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2329,
"end": 2337,
"range": [2329, 2337],
"name": "shiftKey"
},
"computed": false
},
"kind": "init"
}, {
"type": "Property",
"start": 2355,
"end": 2377,
"range": [2355, 2377],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2355,
"end": 2362,
"range": [2355, 2362],
"name": "metaKey"
},
"value": {
"type": "MemberExpression",
"start": 2364,
"end": 2377,
"range": [2364, 2377],
"object": {
"type": "Identifier",
"start": 2364,
"end": 2369,
"range": [2364, 2369],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2370,
"end": 2377,
"range": [2370, 2377],
"name": "metaKey"
},
"computed": false
},
"kind": "init"
}]
},
"kind": "init"
}]
}
}],
"kind": "let"
}, {
"type": "IfStatement",
"start": 2401,
"end": 2772,
"range": [2401, 2772],
"test": {
"type": "CallExpression",
"start": 2405,
"end": 2435,
"range": [2405, 2435],
"callee": {
"type": "MemberExpression",
"start": 2405,
"end": 2426,
"range": [2405, 2426],
"object": {
"type": "MemberExpression",
"start": 2405,
"end": 2415,
"range": [2405, 2415],
"object": {
"type": "Identifier",
"start": 2405,
"end": 2410,
"range": [2405, 2410],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2411,
"end": 2415,
"range": [2411, 2415],
"name": "type"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2416,
"end": 2426,
"range": [2416, 2426],
"name": "startsWith"
},
"computed": false
},
"arguments": [{
"type": "Literal",
"start": 2427,
"end": 2434,
"range": [2427, 2434],
"value": "touch",
"raw": "'touch'"
}]
},
"consequent": {
"type": "BlockStatement",
"start": 2437,
"end": 2772,
"range": [2437, 2772],
"body": [{
"type": "VariableDeclaration",
"start": 2529,
"end": 2550,
"range": [2529, 2550],
"declarations": [{
"type": "VariableDeclarator",
"start": 2533,
"end": 2550,
"range": [2533, 2550],
"id": {
"type": "Identifier",
"start": 2533,
"end": 2537,
"range": [2533, 2537],
"name": "data"
},
"init": {
"type": "MemberExpression",
"start": 2540,
"end": 2550,
"range": [2540, 2550],
"object": {
"type": "Identifier",
"start": 2540,
"end": 2545,
"range": [2540, 2545],
"name": "infos"
},
"property": {
"type": "Identifier",
"start": 2546,
"end": 2550,
"range": [2546, 2550],
"name": "data"
},
"computed": false
}
}],
"kind": "let"
}, {
"type": "ExpressionStatement",
"start": 2563,
"end": 2624,
"range": [2563, 2624],
"expression": {
"type": "AssignmentExpression",
"start": 2563,
"end": 2624,
"range": [2563, 2624],
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2563,
"end": 2581,
"range": [2563, 2581],
"object": {
"type": "Identifier",
"start": 2563,
"end": 2567,
"range": [2563, 2567],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 2568,
"end": 2581,
"range": [2568, 2581],
"name": "targetTouches"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 2584,
"end": 2624,
"range": [2584, 2624],
"callee": {
"type": "MemberExpression",
"start": 2584,
"end": 2603,
"range": [2584, 2603],
"object": {
"type": "ThisExpression",
"start": 2584,
"end": 2588,
"range": [2584, 2588]
},
"property": {
"type": "Identifier",
"start": 2589,
"end": 2603,
"range": [2589, 2603],
"name": "extractTouches"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 2604,
"end": 2623,
"range": [2604, 2623],
"object": {
"type": "Identifier",
"start": 2604,
"end": 2609,
"range": [2604, 2609],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2610,
"end": 2623,
"range": [2610, 2623],
"name": "targetTouches"
},
"computed": false
}]
}
}
}, {
"type": "ExpressionStatement",
"start": 2637,
"end": 2700,
"range": [2637, 2700],
"expression": {
"type": "AssignmentExpression",
"start": 2637,
"end": 2700,
"range": [2637, 2700],
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2637,
"end": 2656,
"range": [2637, 2656],
"object": {
"type": "Identifier",
"start": 2637,
"end": 2641,
"range": [2637, 2641],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 2642,
"end": 2656,
"range": [2642, 2656],
"name": "changedTouches"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 2659,
"end": 2700,
"range": [2659, 2700],
"callee": {
"type": "MemberExpression",
"start": 2659,
"end": 2678,
"range": [2659, 2678],
"object": {
"type": "ThisExpression",
"start": 2659,
"end": 2663,
"range": [2659, 2663]
},
"property": {
"type": "Identifier",
"start": 2664,
"end": 2678,
"range": [2664, 2678],
"name": "extractTouches"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 2679,
"end": 2699,
"range": [2679, 2699],
"object": {
"type": "Identifier",
"start": 2679,
"end": 2684,
"range": [2679, 2684],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2685,
"end": 2699,
"range": [2685, 2699],
"name": "changedTouches"
},
"computed": false
}]
}
}
}, {
"type": "ExpressionStatement",
"start": 2713,
"end": 2762,
"range": [2713, 2762],
"expression": {
"type": "AssignmentExpression",
"start": 2713,
"end": 2762,
"range": [2713, 2762],
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2713,
"end": 2725,
"range": [2713, 2725],
"object": {
"type": "Identifier",
"start": 2713,
"end": 2717,
"range": [2713, 2717],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 2718,
"end": 2725,
"range": [2718, 2725],
"name": "touches"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 2728,
"end": 2762,
"range": [2728, 2762],
"callee": {
"type": "MemberExpression",
"start": 2728,
"end": 2747,
"range": [2728, 2747],
"object": {
"type": "ThisExpression",
"start": 2728,
"end": 2732,
"range": [2728, 2732]
},
"property": {
"type": "Identifier",
"start": 2733,
"end": 2747,
"range": [2733, 2747],
"name": "extractTouches"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 2748,
"end": 2761,
"range": [2748, 2761],
"object": {
"type": "Identifier",
"start": 2748,
"end": 2753,
"range": [2748, 2753],
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2754,
"end": 2761,
"range": [2754, 2761],
"name": "touches"
},
"computed": false
}]
}
}
}]
},
"alternate": null
}, {
"type": "IfStatement",
"start": 2781,
"end": 2864,
"range": [2781, 2864],
"test": {
"type": "MemberExpression",
"start": 2785,
"end": 2797,
"range": [2785, 2797],
"object": {
"type": "Identifier",
"start": 2785,
"end": 2791,
"range": [2785, 2791],
"name": "Events"
},
"property": {
"type": "Identifier",
"start": 2792,
"end": 2797,
"range": [2792, 2797],
"name": "debug"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 2799,
"end": 2864,
"range": [2799, 2864],
"body": [{
"type": "ExpressionStatement",
"start": 2813,
"end": 2854,
"range": [2813, 2854],
"expression": {
"type": "CallExpression",
"start": 2813,
"end": 2854,
"range": [2813, 2854],
"callee": {
"type": "MemberExpression",
"start": 2813,
"end": 2834,
"range": [2813, 2834],
"object": {
"type": "MemberExpression",
"start": 2813,
"end": 2829,
"range": [2813, 2829],
"object": {
"type": "Identifier",
"start": 2813,
"end": 2819,
"range": [2813, 2819],
"name": "Events"
},
"property": {
"type": "Identifier",
"start": 2820,
"end": 2829,
"range": [2820, 2829],
"name": "extracted"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2830,
"end": 2834,
"range": [2830, 2834],
"name": "push"
},
"computed": false
},
"arguments": [{
"type": "CallExpression",
"start": 2835,
"end": 2853,
"range": [2835, 2853],
"callee": {
"type": "MemberExpression",
"start": 2835,
"end": 2846,
"range": [2835, 2846],
"object": {
"type": "ThisExpression",
"start": 2835,
"end": 2839,
"range": [2835, 2839]
},
"property": {
"type": "Identifier",
"start": 2840,
"end": 2846,
"range": [2840, 2846],
"name": "toLine"
},
"computed": false
},
"arguments": [{
"type": "Identifier",
"start": 2847,
"end": 2852,
"range": [2847, 2852],
"name": "event"
}]
}]
}
}]
},
"alternate": null
}, {
"type": "ReturnStatement",
"start": 2873,
"end": 2885,
"range": [2873, 2885],
"argument": {
"type": "Identifier",
"start": 2880,
"end": 2885,
"range": [2880, 2885],
"name": "infos"
}
}]
}
}
}, {
"type": "MethodDefinition",
"start": 2897,
"end": 3714,
"range": [2897, 3714],
"computed": false,
"key": {
"type": "Identifier",
"start": 2904,
"end": 2914,
"range": [2904, 2914],
"name": "cloneEvent"
},
"static": true,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 2914,
"end": 3714,
"range": [2914, 3714],
"id": null,
"generator": false,
"expression": false,
"params": [{
"type": "Identifier",
"start": 2915,
"end": 2919,
"range": [2915, 2919],
"name": "type"
}, {
"type": "Identifier",
"start": 2921,
"end": 2932,
"range": [2921, 2932],
"name": "constructor"
}, {
"type": "Identifier",
"start": 2934,
"end": 2938,
"range": [2934, 2938],
"name": "data"
}],
"body": {
"type": "BlockStatement",
"start": 2940,
"end": 3714,
"range": [2940, 3714],
"body": [{
"type": "IfStatement",
"start": 2950,
"end": 3425,
"range": [2950, 3425],
"test": {
"type": "CallExpression",
"start": 2954,
"end": 2978,
"range": [2954, 2978],
"callee": {
"type": "MemberExpression",
"start": 2954,
"end": 2969,
"range": [2954, 2969],
"object": {
"type": "Identifier",
"start": 2954,
"end": 2958,
"range": [2954, 2958],
"name": "type"
},
"property": {
"type": "Identifier",
"start": 2959,
"end": 2969,
"range": [2959, 2969],
"name": "startsWith"
},
"computed": false
},
"arguments": [{
"type": "Literal",
"start": 2970,
"end": 2977,
"range": [2970, 2977],
"value": "touch",
"raw": "'touch'"
}]
},
"consequent": {
"type": "BlockStatement",
"start": 2980,
"end": 3425,
"range": [2980, 3425],
"body": [{
"type": "ExpressionStatement",
"start": 3216,
"end": 3277,
"range": [3216, 3277],
"expression": {
"type": "AssignmentExpression",
"start": 3216,
"end": 3277,
"range": [3216, 3277],
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3216,
"end": 3234,
"range": [3216, 3234],
"object": {
"type": "Identifier",
"start": 3216,
"end": 3220,
"range": [3216, 3220],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 3221,
"end": 3234,
"range": [3221, 3234],
"name": "targetTouches"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 3237,
"end": 3277,
"range": [3237, 3277],
"callee": {
"type": "MemberExpression",
"start": 3237,
"end": 3257,
"range": [3237, 3257],
"object": {
"type": "ThisExpression",
"start": 3237,
"end": 3241,
"range": [3237, 3241]
},
"property": {
"type": "Identifier",
"start": 3242,
"end": 3257,
"range": [3242, 3257],
"name": "createTouchList"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 3258,
"end": 3276,
"range": [3258, 3276],
"object": {
"type": "Identifier",
"start": 3258,
"end": 3262,
"range": [3258, 3262],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 3263,
"end": 3276,
"range": [3263, 3276],
"name": "targetTouches"
},
"computed": false
}]
}
}
}, {
"type": "ExpressionStatement",
"start": 3290,
"end": 3353,
"range": [3290, 3353],
"expression": {
"type": "AssignmentExpression",
"start": 3290,
"end": 3353,
"range": [3290, 3353],
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3290,
"end": 3309,
"range": [3290, 3309],
"object": {
"type": "Identifier",
"start": 3290,
"end": 3294,
"range": [3290, 3294],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 3295,
"end": 3309,
"range": [3295, 3309],
"name": "changedTouches"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 3312,
"end": 3353,
"range": [3312, 3353],
"callee": {
"type": "MemberExpression",
"start": 3312,
"end": 3332,
"range": [3312, 3332],
"object": {
"type": "ThisExpression",
"start": 3312,
"end": 3316,
"range": [3312, 3316]
},
"property": {
"type": "Identifier",
"start": 3317,
"end": 3332,
"range": [3317, 3332],
"name": "createTouchList"
},
"computed": false
},
"arguments": [{
"type": "MemberExpression",
"start": 3333,
"end": 3352,
"range": [3333, 3352],
"object": {
"type": "Identifier",
"start": 3333,
"end": 3337,
"range": [3333, 3337],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 3338,
"end": 3352,
"range": [3338, 3352],
"name": "changedTouches"
},
"computed": false
}]
}
}
}, {
"type": "ExpressionStatement",
"start": 3366,
"end": 3415,
"range": [3366, 3415],
"expression": {
"type": "AssignmentExpression",
"start": 3366,
"end": 3415,
"range": [3366, 3415],
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3366,
"end": 3378,
"range": [3366, 3378],
"object": {
"type": "Identifier",
"start": 3366,
"end": 3370,
"range": [3366, 3370],
"name": "data"
},
"property": {
"type": "Identifier",
"start": 3371,
"end": 3378,
"range": [3371, 3378],
"name": "touches"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 3381,
"end": 3415,
"range": [3381, 3415],
"callee": {
"type": "MemberExpression",
"start": 3381,
"end": 3401,
"range": [3381, 3401],
"object": {
"type": "ThisExpression",
"start": 3381,