pointlist
Meta Data
| dependencies | () |
| unused_keys | ('title',) |
| unknown_keys | ('files',) |
| files | ['', 'pointlistdraw.js', 'pointlistgradient.js', 'pointlistshape.js', 'pointlistgenerator.js', 'unpack.js'] |
| filepath_exists | True |
| path | pointlist |
| filepath | pointlist.js |
| clean_files | ('pointlistdraw.js', 'pointlistgradient.js', 'pointlistshape.js', 'pointlistgenerator.js', 'unpack.js') |
-
VariableDeclaration
-
VariableDeclaration
-
FunctionDeclaration
-
ClassDeclarationclass
LazyAccessArray
extends Arrayclass comments:drawClass = undefined-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Return in sibling pairs, where each node is paired with its neighbour for every item. Each node appears twice: [a,b,c,d,e,f,g] pairs() a,b b,c c,d d,e e,f f,g example: myitems.siblings().map(pair=>[pair[0].uuid, pair[1].uuid]);
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Return in pairs, where each node is paired with its next neighour once. Each node appears once: [a,b,c,d,e,f,g] pairs() a,b c,d e,f example: myitems.pairs().map((b)=>b[0].uuid);
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])The _each_ unit is a special accessor for the points, allowing the generic editing of points for all items in the array. Access a function on every point: points.each.rotate(10) points.each.rotate(10) set a value on every point points.each.rotation = 50
ClassDeclarationclassPointList
extends LazyAccessArrayclass comments:Copy: stage.points.copy() == stage.points false stage.points.copy()[0] == stage.points[0] true Deep Copy: stage.points.copy(true) == stage.points false stage.points.copy(true)[0] == stage.points[0] false-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Copy: stage.points.copy() == stage.points false stage.points.copy()[0] == stage.points[0] true Deep Copy: stage.points.copy(true) == stage.points false stage.points.copy(true)[0] == stage.points[0] false
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])shift the points within the list as per a growth method. If is a list of 2, the line will extend, If more than 2, the points will push away from the origin point. If the origin is undefined, the COM is used.
ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])