awv3
Version:
⚡ AWV3 embedded CAD
36 lines (34 loc) • 1.8 kB
JavaScript
// TODO: This needs its own repo to work, otherwise awv3 would have to pull react along
/*import React from 'react';
export default (
<div>
Console commands help.<br />
The following commands are availabe in the console:
<ul>
<li>ln (line) - draw straight line segments</li>
<li>at (arctangent) - draw tangential arc segments</li>
<li>ac (arccenter) - draw arc segments specifying the center</li>
<li>am (arcmiddle) - draw arc segments specifying the middle point</li>
<li>cr (circle) - draw full circles</li>
<li>pt (point) - draw points</li>
<li>
cl - close the current polyline (draw a line segment from the last point to the first) and start drawing a new one
</li>
</ul>
Additionally, the following commands can be used to constraint drawn polyline segments:
<ul>
<li>x 10 - the next point is 10 units to the right from the last</li>
<li>y 10 - the next point is 10 units to the top from the last</li>
<li>ax 10 - the next point has absolute coordinate x = 10</li>
<li>ay 10 - the next point has absolute coordinate y = 10</li>
<li>l 10 - the length of the line segment is 10</li>
<li>
a 45 - the inclination of the line segment from OX is 45 degrees / the measure of the arc segment is 45 degrees
</li>
<li>r 10 - the radius of the circle or the arc segment is 10</li>
<li>cw - the arc segment is clockwise</li>
<li>ccw - the arc segment is counterclockwise</li>
</ul>
Escape key ends the current polyline or exits the drawing mode.
</div>
);*/