Rev 18555 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18555 | Rev 18558 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #include "../../Lib/libwims.h" |
2 | #include "../../Lib/libwims.h" |
3 | #define MAX_INT 128 |
3 | #define MAX_INT 128 |
4 | #define MAX_BUFFER |
4 | #define MAX_BUFFER 65536 |
5 | #define MAX_DRAGSTUFF |
5 | #define MAX_DRAGSTUFF 27 |
6 | #define MAX_MULTI_PRIMITIVES |
6 | #define MAX_MULTI_PRIMITIVES 29 |
7 | /* wims : MAX_FWRITE_SIZE 64*1024=65536 == 2*MAX_BUFFER */ |
7 | /* wims : MAX_FWRITE_SIZE 64*1024=65536 == 2*MAX_BUFFER */ |
8 | #define MAX_COLOR_STRING |
8 | #define MAX_COLOR_STRING 32 |
9 | #define MAX_SLIDERS |
9 | #define MAX_SLIDERS 16 |
10 | /* the commmand / keyword name collection */ |
10 | /* the commmand / keyword name collection */ |
11 | #define END -1 |
- | |
12 | #define COMMENT -2 |
- | |
13 |
|
11 | typedef enum { |
14 | #define XRANGE 2 |
- | |
15 | #define YRANGE 3 |
- | |
16 |
|
12 | COMMENT=-2,END,SIZE=1,XRANGE,YRANGE,FONTFAMILY,MATHML,INPUT,TEXTAREA,LINEWIDTH,POLYLINE,POLY, |
17 | #define MATHML 5 |
- | |
18 | #define INPUT 6 |
- | |
19 | #define TEXTAREA 7 |
- | |
20 | #define LINEWIDTH 8 |
- | |
21 | #define POLYLINE 9 |
- | |
22 | #define POLY 10 |
- | |
23 | #define SEGMENT 15 |
- | |
24 | #define LINE 16 |
- | |
25 | #define DLINE 17 |
- | |
26 | #define RECT 18 |
- | |
27 | #define ARC 19 |
- | |
28 | #define NEW 20 |
- | |
29 | #define STRING 21 |
- | |
30 | #define STRINGUP 22 |
- | |
31 | #define COPY 23 |
- | |
32 |
|
13 | SEGMENT=15,LINE,DLINE,RECT,ARC,NEW,STRING,STRINGUP,COPY,COPYRESIZED,TRANSPARENT,POINT,CIRCLE, |
33 |
|
14 | GETPIXEL,SQUARE,ELLIPSE=31,ROTATE,TYPE,QUALITY,CSS,POINTS,TRIANGLE,HLINE,VLINE,GRID,ZOOM,ARROW, |
34 | #define POINT 26 |
- | |
35 | #define CIRCLE 27 |
- | |
36 | #define GETPIXEL 28 |
- | |
37 | #define SQUARE 29 |
- | |
38 | #define ELLIPSE 31 |
- | |
39 | #define ROTATE 32 |
- | |
40 | #define TYPE 33 |
- | |
41 | #define QUALITY 34 |
- | |
42 | #define CSS 35 |
- | |
43 | #define POINTS 36 |
- | |
44 | #define TRIANGLE 37 |
- | |
45 | #define HLINE 38 |
- | |
46 | #define VLINE 39 |
- | |
47 | #define GRID 40 |
- | |
48 | #define ZOOM 41 |
- | |
49 | #define ARROW 42 |
- | |
50 | #define DARROW 43 |
- | |
51 | #define AXIS 44 |
- | |
52 | #define FONTSIZE 46 |
- | |
53 | #define CURVE 50 |
- | |
54 | #define PLOTSTEPS 51 |
- | |
55 | #define TRANGE 53 |
- | |
56 |
|
15 | DARROW,AXIS,FONTSIZE=46,CURVE=50,PLOTSTEPS,TRANGE=53,MOUSE_PRECISION,FLY_TEXT,FLY_TEXTUP,BGIMAGE, |
57 | #define FLY_TEXT 55 |
- | |
58 | #define FLY_TEXTUP 56 |
- | |
59 | #define BGIMAGE 57 |
- | |
60 | #define DASHED 58 |
- | |
61 | #define PARALLEL 59 |
- | |
62 | #define LATTICE 60 |
- | |
63 | #define OPACITY 61 |
- | |
64 |
|
16 | DASHED,PARALLEL,LATTICE,OPACITY,AXIS_NUMBERING,RAYS,OUTPUT,CLOCK,STYLE,USERDRAW,MOUSE,AUDIO, |
65 | #define RAYS 63 |
- | |
66 | #define OUTPUT 64 |
- | |
67 | #define CLOCK 65 |
- | |
68 | #define STYLE 66 |
- | |
69 | #define USERDRAW 67 |
- | |
70 | #define MOUSE 68 |
- | |
71 | #define AUDIO 69 |
- | |
72 | #define AUDIOOBJECT 70 |
- | |
73 | #define STOP 71 |
- | |
74 | #define RESTART 72 |
- | |
75 | #define FILLCOLOR 73 |
- | |
76 | #define CUBE 74 |
- | |
77 | #define CLEARBUTTON 75 |
- | |
78 | #define ONCLICK 76 |
- | |
79 | #define CROSSHAIR 77 |
- | |
80 | #define CROSSHAIRS 78 |
- | |
81 | #define BLINK 79 |
- | |
82 | #define DASHTYPE 80 |
- | |
83 | #define HTML 81 |
- | |
84 |
|
17 | AUDIOOBJECT,STOP,RESTART,FILLCOLOR,CUBE,CLEARBUTTON,ONCLICK,CROSSHAIR,CROSSHAIRS,BLINK,DASHTYPE, |
85 | #define ARROWHEAD 83 |
- | |
86 | #define DRAG 84 |
- | |
87 | #define HTTP 85 |
- | |
88 | #define SLIDER 86 |
- | |
89 | #define CLICKTILE 88 |
- | |
90 |
|
18 | HTML,CROSSHAIRSIZE,ARROWHEAD,DRAG,HTTP,SLIDER,CLICKTILE=88,CLICKTILE_COLORS,TRANSLATION, |
91 | #define TRANSLATION 90 |
- | |
92 |
|
19 | KILLTRANSLATION,ARROW2,DARROW2,SVGCODE=95,ROUNDRECT,HATCHFILL,PATTERNFILL,DIAMONDFILL,DOTFILL, |
93 | #define ARROW2 92 |
- | |
94 | #define DARROW2 93 |
- | |
95 | #define SVGCODE 95 |
- | |
96 | #define ROUNDRECT 96 |
- | |
97 | #define HATCHFILL 97 |
- | |
98 | #define PATTERNFILL 98 |
- | |
99 | #define DIAMONDFILL 99 |
- | |
100 | #define DOTFILL 100 |
- | |
101 | #define GRIDFILL 101 |
- | |
102 | #define IMAGEFILL 102 |
- | |
103 | #define FILL 103 |
- | |
104 | #define FILLED 104 |
- | |
105 | #define XYLOGSCALE 105 |
- | |
106 | #define XLOGSCALE 106 |
- | |
107 | #define YLOGSCALE 107 |
- | |
108 | #define XLOGBASE 108 |
- | |
109 | #define INTOOLTIP 109 |
- | |
110 | #define REPLYFORMAT 110 |
- | |
111 | #define VIDEO 111 |
- | |
112 | #define BGCOLOR 112 |
- | |
113 | #define FLOODFILL 113 |
- | |
114 |
|
20 | GRIDFILL,IMAGEFILL,FILL,FILLED,XYLOGSCALE,XLOGSCALE,YLOGSCALE,XLOGBASE,INTOOLTIP,REPLYFORMAT, |
115 | #define SETPIXEL 117 |
- | |
116 | #define PIXELS 118 |
- | |
117 | #define PIXELSIZE 119 |
- | |
118 |
|
21 | VIDEO,BGCOLOR,FLOODFILL,FILLTOBORDER,SETPIXEL,PIXELS,PIXELSIZE,X_AXIS_STRINGS=121,Y_AXIS_STRINGS, |
119 | #define Y_AXIS_STRINGS 122 |
- | |
120 | #define FONTCOLOR 123 |
- | |
121 | #define PIECHART 124 |
- | |
122 | #define LEGEND 125 |
- | |
123 | #define BARCHART 126 |
- | |
124 | #define LINEGRAPH 127 |
- | |
125 | #define STROKECOLOR 128 |
- | |
126 | #define XLABEL 129 |
- | |
127 | #define YLABEL 130 |
- | |
128 |
|
22 | FONTCOLOR,PIECHART,LEGEND,BARCHART,LINEGRAPH,STROKECOLOR,XLABEL,YLABEL,LEGENDCOLORS,ANIMATE,STATUS, |
129 | #define ANIMATE 132 |
- | |
130 | #define STATUS 133 |
- | |
131 | #define SNAPTOGRID 134 |
- | |
132 | #define XSNAPTOGRID 135 |
- | |
133 | #define YSNAPTOGRID 136 |
- | |
134 |
|
23 | SNAPTOGRID,XSNAPTOGRID,YSNAPTOGRID,USERINPUT_XY,SGRAPH=139,YLOGBASE,AFFINE,KILLAFFINE,LEVELCURVE, |
135 | #define SGRAPH 139 |
- | |
136 | #define YLOGBASE 140 |
- | |
137 | #define AFFINE 141 |
- | |
138 | #define KILLAFFINE 142 |
- | |
139 | #define LEVELCURVE 143 |
- | |
140 | #define JSMATH 144 |
- | |
141 | #define TRACE_JSCURVE 145 |
- | |
142 | #define SETLIMITS 146 |
- | |
143 | #define JSCURVE 147 |
- | |
144 | #define CENTERSTRING 148 |
- | |
145 | #define MOUSEX 149 |
- | |
146 | #define MOUSEY 150 |
- | |
147 | #define MOUSE_DEGREE 151 |
- | |
148 |
|
24 | JSMATH,TRACE_JSCURVE,SETLIMITS,JSCURVE,CENTERSTRING,MOUSEX,MOUSEY,MOUSE_DEGREE,MOUSE_DISPLAY,XUNIT, |
149 | #define XUNIT 153 |
- | |
150 | #define YUNIT 154 |
- | |
151 | #define KILLSLIDER 155 |
- | |
152 | #define ANGLE 156 |
- | |
153 |
|
25 | YUNIT,KILLSLIDER,ANGLE,USERINPUT_FUNCTION,USERINPUT,HALFLINE,FUNCTION_LABEL,SEGMENTS,ARROWS, |
154 | #define USERINPUT 158 |
- | |
155 | #define HALFLINE 159 |
- | |
156 | #define FUNCTION_LABEL 160 |
- | |
157 | #define SEGMENTS 161 |
- | |
158 | #define ARROWS 162 |
- | |
159 | #define CIRCLES 163 |
- | |
160 | #define ARROWS2 164 |
- | |
161 | #define LINES 165 |
- | |
162 | #define RECTS 166 |
- | |
163 | #define HALFLINES 167 |
- | |
164 | #define HLINES 168 |
- | |
165 | #define VLINES 169 |
- | |
166 | #define ROUNDRECTS 170 |
- | |
167 | #define BEZIER 171 |
- | |
168 | #define SNAPTOPOINTS 172 |
- | |
169 | #define GROUP 173 |
- | |
170 | #define SNAPTOFUNCTION 175 |
- | |
171 | #define MULTIDRAW 176 |
- | |
172 | #define MULTILINEWIDTH 177 |
- | |
173 |
|
26 | CIRCLES,ARROWS2,LINES,RECTS,HALFLINES,HLINES,VLINES,ROUNDRECTS,BEZIER,SNAPTOPOINTS,GROUP, |
174 |
|
27 | SNAPTOFUNCTION=175,MULTIDRAW,MULTILINEWIDTH,MULTISTROKECOLORS,MULTISTROKEOPACITY,MULTIFILLCOLORS, |
175 | #define MULTIFILLCOLORS 180 |
- | |
176 | #define MULTIFILLOPACITY 181 |
- | |
177 | #define MULTIFILL 182 |
- | |
178 | #define MULTILABEL 183 |
- | |
179 | #define MULTIDASH 184 |
- | |
180 |
|
28 | MULTIFILLOPACITY,MULTIFILL,MULTILABEL,MULTIDASH,MULTISNAPTOGRID,MULTIUSERINPUT,PROTRACTOR,RULER, |
181 | #define MULTIUSERINPUT 186 |
- | |
182 | #define PROTRACTOR 187 |
- | |
183 | #define RULER 188 |
- | |
184 | #define TRIANGLES 189 |
- | |
185 | #define POPUP 190 |
- | |
186 |
|
29 | TRIANGLES, POPUP,X_AXIS_STRINGS_UP,CURSOR,XERRORBARS,YERRORBARS, BOXPLOTDATA=196,USERBOXPLOT, |
187 | #define CURSOR 192 |
- | |
188 | #define XERRORBARS 193 |
- | |
189 | #define YERRORBARS 194 |
- | |
190 | #define BOXPLOTDATA 196 |
- | |
191 | #define USERBOXPLOT 197 |
- | |
192 | #define USERBOXPLOTDATA 198 |
- | |
193 |
|
30 | USERBOXPLOTDATA, ROTATION_CENTER,KILLROTATE,CANVASTYPE, NOXAXIS,NOYAXIS,BOXPLOT,COLORPALETTE, |
194 | #define KILLROTATE 200 |
- | |
195 | #define CANVASTYPE 201 |
- | |
196 | #define NOXAXIS 202 |
- | |
197 | #define NOYAXIS 203 |
- | |
198 | #define BOXPLOT 204 |
- | |
199 | #define COLORPALETTE 205 |
- | |
200 | #define FILLALL 206 |
- | |
201 | #define XYOFFSET 207 |
- | |
202 | #define XOFFSET 208 |
- | |
203 | #define YOFFSET 209 |
- | |
204 | #define CENTERED 210 |
- | |
205 | #define RESETOFFSET 211 |
- | |
206 | #define TEXTFILL 212 |
- | |
207 |
|
31 | FILLALL,XYOFFSET, XOFFSET,YOFFSET,CENTERED,RESETOFFSET,TEXTFILL,FILLPATTERN,NUMBERLINE,ELLIPSES, |
208 | #define NUMBERLINE 214 |
- | |
209 | #define ELLIPSES 215 |
- | |
210 | #define IMAGEPALETTE 216 |
- | |
211 | #define CURVEDARROW2 217 |
- | |
212 | #define CURVEDARROW 218 |
- | |
213 | #define CURVEDARROWS 219 |
- | |
214 | #define CURVEDARROWS2 220 |
- | |
215 | #define LATEX 221 |
- | |
216 |
|
32 | IMAGEPALETTE, CURVEDARROW2,CURVEDARROW,CURVEDARROWS,CURVEDARROWS2,LATEX,ALLOW_DUPLICATES=223, |
217 | #define LINEAR 224 |
- | |
218 |
|
33 | LINEAR,KILLLINEAR, OBABEL,CHEMTEX,NORESET,ARCARROW,KILL,RANGE,NEWRANGE,RESET, |
219 | #define OBABEL 226 |
- | |
220 | #define CHEMTEX 227 |
- | |
221 | #define NORESET 228 |
- | |
222 | #define ARCARROW 229 |
- | |
223 | #define KILL 230 |
- | |
224 | #define RANGE 231 |
- | |
225 | #define NEWRANGE 232 |
- | |
226 | #define RESET 233 |
- | |
227 | #define HYPCIRCLES 234 |
- | |
228 |
|
34 | HYPCIRCLES,HYPSEGMENTS,HYPLINES,HYPPOLY,HYPRAYS} keyword; |
229 | #define HYPLINES 236 |
- | |
230 | #define HYPPOLY 237 |
- | |
231 | #define HYPRAYS 238 |
- | |
- | 35 | ||
232 | /* the js_function[] dcollection : js-code without configurable argumens see canvasutil.c */ |
36 | /* the js_function[] dcollection : js-code without configurable argumens see canvasutil.c */ |
233 | #define MAX_JS_FUNCTIONS 52 |
- | |
234 | - | ||
235 | #define DRAW_GRID 0 |
- | |
236 |
|
37 | enum {DRAW_GRID, DRAW_CROSSHAIRS,DRAW_GRIDFILL,DRAW_XML,DRAW_ARCS,DRAW_LATTICE,DRAW_INPUTS, |
237 | #define DRAW_GRIDFILL 2 |
- | |
238 | #define DRAW_XML 3 |
- | |
239 | #define DRAW_ARCS 4 |
- | |
240 | #define DRAW_LATTICE 5 |
- | |
241 | #define DRAW_INPUTS 6 |
- | |
242 | #define DRAW_TEXTAREAS 7 |
- | |
243 | #define DRAW_HTTP 8 |
- | |
244 | #define DRAW_AUDIO 9 |
- | |
245 | #define DRAW_VIDEO 10 |
- | |
246 | #define DRAW_DOTFILL 11 |
- | |
247 |
|
38 | DRAW_TEXTAREAS,DRAW_HTTP,DRAW_AUDIO,DRAW_VIDEO,DRAW_DOTFILL,DRAW_HATCHFILL,DRAW_IMAGEFILL, |
248 | #define DRAW_IMAGEFILL 13 |
- | |
249 | #define DRAW_FLOODFILL 14 |
- | |
250 | #define DRAW_FILLTOBORDER 15 |
- | |
251 | #define DRAW_PIXELS 16 |
- | |
252 | #define DRAW_LINES 17 |
- | |
253 | #define DRAW_PIECHART 18 |
- | |
254 | #define DRAW_CLOCK 19 |
- | |
255 |
|
39 | DRAW_FLOODFILL,DRAW_FILLTOBORDER,DRAW_PIXELS,DRAW_LINES,DRAW_PIECHART,DRAW_CLOCK,DRAW_EXTERNAL_IMAGE, |
256 | #define DRAW_DIAMONDFILL 21 |
- | |
257 | #define DRAW_SGRAPH 22 |
- | |
258 | #define DRAW_YLOGSCALE 23 |
- | |
259 | #define DRAW_XLOGSCALE 24 |
- | |
260 | #define DRAW_XYLOGSCALE 25 |
- | |
261 |
|
40 | DRAW_DIAMONDFILL,DRAW_SGRAPH,DRAW_YLOGSCALE,DRAW_XLOGSCALE,DRAW_XYLOGSCALE,DRAW_CENTERSTRING, |
262 | #define DRAW_JSFUNCTION 27 |
- | |
263 | #define DRAW_BEZIER 28 |
- | |
264 | #define DRAW_BOXPLOT 29 |
- | |
265 | #define DRAW_JSBOXPLOT 30 |
- | |
266 |
|
41 | DRAW_JSFUNCTION,DRAW_BEZIER,DRAW_BOXPLOT,DRAW_JSBOXPLOT,DRAW_NUMBERLINE,JS_FIND_ANGLE,DRAW_TEXTFILL, |
267 | #define JS_FIND_ANGLE 32 |
- | |
268 | #define DRAW_TEXTFILL 33 |
- | |
269 | #define INTERACTIVE 34 |
- | |
270 | #define JS_ROTATE_MOUSE 35 |
- | |
271 |
|
42 | INTERACTIVE,JS_ROTATE_MOUSE,JS_TRANSFORM_MOUSE,DRAW_FILL_PATTERN,JS_ZOOM,DRAG_AND_ZOOM, |
272 | #define DRAW_FILL_PATTERN 37 |
- | |
273 | #define JS_ZOOM 38 |
- | |
274 | #define DRAG_AND_ZOOM 39 |
- | |
275 |
|
43 | USERDRAW_AND_ZOOM,JS_RAWMATH,JS_LOAD_IMAGE,JS_SAFE_EVAL,JS_PLOT,JS_MATH,DRAW_TEXTS, |
276 | #define JS_RAWMATH 41 |
- | |
277 | #define JS_LOAD_IMAGE 42 |
- | |
278 | #define JS_SAFE_EVAL 43 |
- | |
279 | #define JS_PLOT 44 |
- | |
280 | #define JS_MATH 45 |
- | |
281 | #define DRAW_TEXTS 46 |
- | |
282 |
|
44 | DRAG_EXTERNAL_IMAGE,ADD_USER_INPUTS,JSPLOT_AND_ZOOM,JS_ARROWHEAD,DRAW_SUBSUP,MAX_JS_FUNCTIONS}; |
283 | #define ADD_USER_INPUTS 48 |
- | |
284 | #define JSPLOT_AND_ZOOM 49 |
- | |
285 | #define JS_ARROWHEAD 50 |
- | |
286 | #define DRAW_SUBSUP 51 |
- | |
287 | /* end js_function[] */ |
45 | /* end js_function[] */ |
288 | /* default canvasses, eg png images xsize x ysize */ |
46 | /* default canvasses, eg png images xsize x ysize */ |
289 |
|
47 | enum{EXTERNAL_IMAGE_CANVAS, /* this is created first !!! in order to draw on it */ |
290 | #define BG_CANVAS 1 |
- | |
291 | #define STATIC_CANVAS 2 |
- | |
292 | #define MOUSE_CANVAS 3 |
- | |
293 | #define GRID_CANVAS 4 |
- | |
294 | #define DRAG_CANVAS 5 |
- | |
295 | #define DRAW_CANVAS 6 |
- | |
296 | #define TEXT_CANVAS 7 |
- | |
297 | #define CLOCK_CANVAS 8 |
- | |
298 |
|
48 | BG_CANVAS,STATIC_CANVAS,MOUSE_CANVAS,GRID_CANVAS,DRAG_CANVAS,DRAW_CANVAS,TEXT_CANVAS,CLOCK_CANVAS,ANIMATE_CANVAS,TRACE_CANVAS, |
299 |
|
49 | JSPLOT_CANVAS=100, |
300 |
|
50 | /* JSPLOT_canvas will be increased with every added inputfield...should not conflict with other images*/ |
- | 51 | FILL_CANVAS=200, |
|
301 |
|
52 | /* will be increase with every fill */ |
- | 53 | USERDRAW_JSPLOT=300, |
|
302 |
|
54 | /* USERDRAW_JSPLOT will be increased with every added inputfield...should not conflict with other images*/ |
303 |
|
55 | CLICKFILL_CANVAS=400, /* will be increase with every click fill */ |
304 |
|
56 | BOXPLOT_CANVAS=500, /* will increase with every new boxplot */ |
305 |
|
57 | NUMBERLINE_CANVAS=600, |
306 |
|
58 | MULTIDRAW_CANVAS=1000, /* + >25 draw types... 1001=points*/ |
307 |
|
59 | ZOOM_CANVAS=1100, |
308 |
|
60 | STATIC_IMAGE_CANVAS=700}; |
- | 61 | ||
309 | #ifndef STD_H |
62 | #ifndef STD_H |
310 | #define STD_H |
63 | #define STD_H |
311 | 64 | ||
312 | #ifndef bool |
65 | #ifndef bool |
313 | #define bool char |
66 | #define bool char |
Line 318... | Line 71... | ||
318 | #ifndef FALSE |
71 | #ifndef FALSE |
319 | #define FALSE 0 |
72 | #define FALSE 0 |
320 | #endif |
73 | #endif |
321 | 74 | ||
322 | #endif |
75 | #endif |
323 | void |
76 | void add_to_buffer(char *tmp); /* add tmp_buffer to the buffer */ |
324 | void |
77 | void check_string_length(int length); |
325 | extern void *tmp_buffer; |
78 | extern void *tmp_buffer; |
326 | 79 | ||
327 | void rotate(int num,double angle,double center[],int incr); |
80 | void rotate(int num,double angle,double center[],int incr); |
328 | void transform(int num,int incr); |
81 | void transform(int num,int incr); |
329 | void add_read_canvas(int type_reply,int reply_precision); |
82 | void add_read_canvas(int type_reply,int reply_precision); |
Line 374... | Line 127... | ||
374 | void add_input_jsfunction(char *css_class,char *input_label,int input_cnt,char *stroke_color,float stroke_opacity,int line_width,int use_dashed,int dashtype0,int dashtype1,int font_size); |
127 | void add_input_jsfunction(char *css_class,char *input_label,int input_cnt,char *stroke_color,float stroke_opacity,int line_width,int use_dashed,int dashtype0,int dashtype1,int font_size); |
375 | void add_js_protractor(int type,double xcenter,double ycenter,int size,char *font,char *stroke_color,double stroke_opacity,char *fill_color,double fill_opacity,int line_width,int use_scale,int dynamic,int use_snap); |
128 | void add_js_protractor(int type,double xcenter,double ycenter,int size,char *font,char *stroke_color,double stroke_opacity,char *fill_color,double fill_opacity,int line_width,int use_scale,int dynamic,int use_snap); |
376 | void add_js_ruler(double x,double y,double sizex,double sizey,char *font,char *stroke_color,double stroke_opacity,char *fill_color,double fill_opacity,int line_width,int dynamic,int use_snap); |
129 | void add_js_ruler(double x,double y,double sizex,double sizey,char *font,char *stroke_color,double stroke_opacity,char *fill_color,double fill_opacity,int line_width,int dynamic,int use_snap); |
377 | void add_color_palette(char *css_class); |
130 | void add_color_palette(char *css_class); |
378 | void add_js_images(int use_offset,int snap); |
131 | void add_js_images(int use_offset,int snap); |
379 | int hypgeodaux(double *q, double* res, int full); |
- | |
380 | int count_substring(char* string, char* substring); |
132 | int count_substring(char* string, char* substring); |
381 | extern int NUMBER_OF_COLORNAMES; |
133 | extern int NUMBER_OF_COLORNAMES; |
382 | extern struct colors { char *hex; char *name; char *rgb; } colors[]; |
134 | extern struct colors { char *hex; char *name; char *rgb; } colors[]; |
383 | extern int js_function[MAX_JS_FUNCTIONS]; |
135 | extern int js_function[MAX_JS_FUNCTIONS]; |
384 | extern int reply_format; |
136 | extern int reply_format; |
Line 398... | Line 150... | ||
398 | extern int barchart_cnt; |
150 | extern int barchart_cnt; |
399 | extern int legend_cnt; |
151 | extern int legend_cnt; |
400 | extern int use_axis; |
152 | extern int use_axis; |
401 | extern int use_axis_numbering; |
153 | extern int use_axis_numbering; |
402 | 154 | ||
403 | extern FILE |
155 | extern FILE *js_include_file; |
404 | /* used multidraw primitives : identifier in canvasmultidraw.c is index of this array |
156 | /* used multidraw primitives : identifier in canvasmultidraw.c is index of this array |
405 | static char multidraw_primitives[MAX_MULTI_PRIMITIVES][32] = {"point","points","circle","circles", |
157 | static char multidraw_primitives[MAX_MULTI_PRIMITIVES][32] = {"point","points","circle","circles", |
406 | "line","lines","segment","segments", |
158 | "line","lines","segment","segments", |
407 | "arrow","arrows","triangle","triangles", |
159 | "arrow","arrows","triangle","triangles", |
408 | "closedpoly","text","rect","rects", |
160 | "closedpoly","text","rect","rects", |