UNPKG

awv3

Version:
162 lines 8.13 kB
{ "type": "File", "start": 0, "end": 1773, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 37, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1773, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 37, "column": 0 } }, "sourceType": "module", "body": [], "directives": [], "leadingComments": null, "innerComments": [ { "type": "CommentLine", "value": " TODO: This needs its own repo to work, otherwise awv3 would have to pull react along", "start": 0, "end": 87, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 87 } } }, { "type": "CommentBlock", "value": "import React from 'react';\n\nexport default (\n <div>\n Console commands help.<br />\n The following commands are availabe in the console:\n <ul>\n <li>ln (line) - draw straight line segments</li>\n <li>at (arctangent) - draw tangential arc segments</li>\n <li>ac (arccenter) - draw arc segments specifying the center</li>\n <li>am (arcmiddle) - draw arc segments specifying the middle point</li>\n <li>cr (circle) - draw full circles</li>\n <li>pt (point) - draw points</li>\n <li>\n cl - close the current polyline (draw a line segment from the last point to the first) and start drawing a new one\n </li>\n </ul>\n Additionally, the following commands can be used to constraint drawn polyline segments:\n <ul>\n <li>x 10 - the next point is 10 units to the right from the last</li>\n <li>y 10 - the next point is 10 units to the top from the last</li>\n <li>ax 10 - the next point has absolute coordinate x = 10</li>\n <li>ay 10 - the next point has absolute coordinate y = 10</li>\n <li>l 10 - the length of the line segment is 10</li>\n <li>\n a 45 - the inclination of the line segment from OX is 45 degrees / the measure of the arc segment is 45 degrees\n </li>\n <li>r 10 - the radius of the circle or the arc segment is 10</li>\n <li>cw - the arc segment is clockwise</li>\n <li>ccw - the arc segment is counterclockwise</li>\n </ul>\n Escape key ends the current polyline or exits the drawing mode.\n </div>\n);", "start": 89, "end": 1772, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 36, "column": 4 } } } ] }, "comments": [ { "type": "CommentLine", "value": " TODO: This needs its own repo to work, otherwise awv3 would have to pull react along", "start": 0, "end": 87, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 87 } } }, { "type": "CommentBlock", "value": "import React from 'react';\n\nexport default (\n <div>\n Console commands help.<br />\n The following commands are availabe in the console:\n <ul>\n <li>ln (line) - draw straight line segments</li>\n <li>at (arctangent) - draw tangential arc segments</li>\n <li>ac (arccenter) - draw arc segments specifying the center</li>\n <li>am (arcmiddle) - draw arc segments specifying the middle point</li>\n <li>cr (circle) - draw full circles</li>\n <li>pt (point) - draw points</li>\n <li>\n cl - close the current polyline (draw a line segment from the last point to the first) and start drawing a new one\n </li>\n </ul>\n Additionally, the following commands can be used to constraint drawn polyline segments:\n <ul>\n <li>x 10 - the next point is 10 units to the right from the last</li>\n <li>y 10 - the next point is 10 units to the top from the last</li>\n <li>ax 10 - the next point has absolute coordinate x = 10</li>\n <li>ay 10 - the next point has absolute coordinate y = 10</li>\n <li>l 10 - the length of the line segment is 10</li>\n <li>\n a 45 - the inclination of the line segment from OX is 45 degrees / the measure of the arc segment is 45 degrees\n </li>\n <li>r 10 - the radius of the circle or the arc segment is 10</li>\n <li>cw - the arc segment is clockwise</li>\n <li>ccw - the arc segment is counterclockwise</li>\n </ul>\n Escape key ends the current polyline or exits the drawing mode.\n </div>\n);", "start": 89, "end": 1772, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 36, "column": 4 } } } ], "tokens": [ { "type": "CommentLine", "value": " TODO: This needs its own repo to work, otherwise awv3 would have to pull react along", "start": 0, "end": 87, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 87 } } }, { "type": "CommentBlock", "value": "import React from 'react';\n\nexport default (\n <div>\n Console commands help.<br />\n The following commands are availabe in the console:\n <ul>\n <li>ln (line) - draw straight line segments</li>\n <li>at (arctangent) - draw tangential arc segments</li>\n <li>ac (arccenter) - draw arc segments specifying the center</li>\n <li>am (arcmiddle) - draw arc segments specifying the middle point</li>\n <li>cr (circle) - draw full circles</li>\n <li>pt (point) - draw points</li>\n <li>\n cl - close the current polyline (draw a line segment from the last point to the first) and start drawing a new one\n </li>\n </ul>\n Additionally, the following commands can be used to constraint drawn polyline segments:\n <ul>\n <li>x 10 - the next point is 10 units to the right from the last</li>\n <li>y 10 - the next point is 10 units to the top from the last</li>\n <li>ax 10 - the next point has absolute coordinate x = 10</li>\n <li>ay 10 - the next point has absolute coordinate y = 10</li>\n <li>l 10 - the length of the line segment is 10</li>\n <li>\n a 45 - the inclination of the line segment from OX is 45 degrees / the measure of the arc segment is 45 degrees\n </li>\n <li>r 10 - the radius of the circle or the arc segment is 10</li>\n <li>cw - the arc segment is clockwise</li>\n <li>ccw - the arc segment is counterclockwise</li>\n </ul>\n Escape key ends the current polyline or exits the drawing mode.\n </div>\n);", "start": 89, "end": 1772, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 36, "column": 4 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1773, "end": 1773, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 0 } } } ] }