User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
jscad_quick_reference [2018/02/23 13:12]
z3dev
jscad_quick_reference [2018/03/24 13:06]
z3dev
Line 1: Line 1:
-====== ​JSCAD - Quick Reference ====== +====== Quick Reference ====== 
-The following sections provide quick reference to the JSCAD application programming interface (API).+ 
 +The following sections provide quick reference to the JSCAD application programming interface (API), the heart of making designs.
  
 //Note: **Default values** and **notes** are highlighted in **bold fonts**.// //Note: **Default values** and **notes** are highlighted in **bold fonts**.//
  
 {{page>​quick_reference_intro}} {{page>​quick_reference_intro}}
- 
-===== General Usage ===== 
-^  OpenJSCAD Functions ​ ^  JavaScript Statements ​ ^ 
-| function main(parameters) { ...; return var; } **/* required */** | var name = my_box( {attribute: 1, ...} ); | 
-| function getParameterDefinitions() {return [ definition... ]; } **/* optional */**  | function my_box( param ) { ...; return shape; } **/* create a function */**  | 
-| OpenJsCad.log("​message"​); ​ **/* display message and time stamp */** | console.log("​message"​);​ /* display message */  | 
-| include... ​ | for (index = 0; index < array.length;​ index--;) { ... };  | 
- 
-//Note: Messages are displayed in the Javascript console in browsers.// 
  
 {{page>​quick_reference_shapes}} {{page>​quick_reference_shapes}}