Subversion Repositories wimsdev

Rev

Rev 8357 | Rev 8359 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8357 Rev 8358
Line 1156... Line 1156...
1156
            reset();
1156
            reset();
1157
            break;
1157
            break;
1158
        case SNAPTOGRID:
1158
        case SNAPTOGRID:
1159
        /*
1159
        /*
1160
         @ snaptogrid
1160
         @ snaptogrid
1161
         @ keyword (no arguments rewquired) needs to be defined before command 'userdraw' and after command 'grid'
1161
         @ keyword (no arguments required) needs to be defined before command 'userdraw' and after command 'grid'
1162
         @ in case of userdraw the drawn points will snap to xmajor / ymajor grid
1162
         @ in case of userdraw the drawn points will snap to xmajor / ymajor grid
-
 
1163
         @ if you do not want a visible grid, but you only want a 'snaptogrid' with some value...define this grid with opacity 0.
1163
         @ if xminor / yminor is defined, the drawing will snap to xminor and yminor<br />use only even dividers in x/y-minor...for example<br />snaptogrid<br />axis<br />grid 2,1,grey,4,4,7,red<br /> will snap on x=0, x=0.5, x=1, x=1.5 ....<br /> will snap on y=0, y=0.25 y=0.5 y=0.75 ...<br />
1164
         @ if xminor / yminor is defined, the drawing will snap to xminor and yminor<br />use only even dividers in x/y-minor...for example<br />snaptogrid<br />axis<br />grid 2,1,grey,4,4,7,red<br /> will snap on x=0, x=0.5, x=1, x=1.5 ....<br /> will snap on y=0, y=0.25 y=0.5 y=0.75 ...<br />
1164
        */
1165
        */
1165
        fprintf(js_include_file,"\nx_use_snap_to_grid = 1;y_use_snap_to_grid = 1;");
1166
        fprintf(js_include_file,"\nx_use_snap_to_grid = 1;y_use_snap_to_grid = 1;");
1166
        break;
1167
        break;
1167
        case XSNAPTOGRID:
1168
        case XSNAPTOGRID:
1168
        /*
1169
        /*
1169
         @ xsnaptogrid
1170
         @ xsnaptogrid
1170
         @ keyword (no arguments rewquired) needs to be defined before command 'userdraw' and after command 'grid'
1171
         @ keyword (no arguments required) needs to be defined before command 'userdraw' and after command 'grid'
1171
         @ in case of userdraw the drawn points will snap to xmajor grid
1172
         @ in case of userdraw the drawn points will snap to xmajor grid
-
 
1173
         @ if you do not want a visible grid, but you only want a 'snaptogrid' with some value...define this grid with opacity 0.
1172
         @ if xminor is defined, the drawing will snap to xminor <br />use only even dividers in x-minor...for example<br />xsnaptogrid<br />axis<br />grid 2,1,grey,4,4,7,red<br /> will snap on x=0, x=0.5, x=1, x=1.5 ....<br /> will snap on y=0, y=0.25 y=0.5 y=0.75 ...<br />
1174
         @ if xminor is defined, the drawing will snap to xminor <br />use only even dividers in x-minor...for example<br />xsnaptogrid<br />axis<br />grid 2,1,grey,4,4,7,red<br /> will snap on x=0, x=0.5, x=1, x=1.5 ....<br /> will snap on y=0, y=0.25 y=0.5 y=0.75 ...<br />
1173
        */
1175
        */
1174
        fprintf(js_include_file,"\nx_use_snap_to_grid = 1;y_use_snap_to_grid = 0;");
1176
        fprintf(js_include_file,"\nx_use_snap_to_grid = 1;y_use_snap_to_grid = 0;");
1175
        break;
1177
        break;
1176
        case YSNAPTOGRID:
1178
        case YSNAPTOGRID:
1177
        /*
1179
        /*
1178
         @ ysnaptogrid
1180
         @ ysnaptogrid
1179
         @ keyword (no arguments rewquired) needs to be defined before command 'userdraw' and after command 'grid'
1181
         @ keyword (no arguments required) needs to be defined before command 'userdraw' and after command 'grid'
1180
         @ in case of userdraw the drawn points will snap to ymajor grid
1182
         @ in case of userdraw the drawn points will snap to ymajor grid
-
 
1183
         @ if you do not want a visible grid, but you only want a 'snaptogrid' with some value...define this grid with opacity 0.
1181
         @ if yminor is defined, the drawing will snap to yminor <br />use only even dividers in y-minor...for example<br />ysnaptogrid<br />axis<br />grid 2,1,grey,4,4,7,red<br /> will snap on x=0, x=0.5, x=1, x=1.5 ....<br /> will snap on y=0, y=0.25 y=0.5 y=0.75 ...<br />
1184
         @ if yminor is defined, the drawing will snap to yminor <br />use only even dividers in y-minor...for example<br />ysnaptogrid<br />axis<br />grid 2,1,grey,4,4,7,red<br /> will snap on x=0, x=0.5, x=1, x=1.5 ....<br /> will snap on y=0, y=0.25 y=0.5 y=0.75 ...<br />
1182
        */
1185
        */
1183
        fprintf(js_include_file,"\nx_use_snap_to_grid = 0;y_use_snap_to_grid = 1;");
1186
        fprintf(js_include_file,"\nx_use_snap_to_grid = 0;y_use_snap_to_grid = 1;");
1184
        break;
1187
        break;
1185
        case USERINPUT:
1188
        case USERINPUT: