Subversion Repositories wimsdev

Rev

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

Rev 14057 Rev 14208
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 16384
4
#define MAX_BUFFER 16384
5
#define MAX_COLOR_STRING        32
5
#define MAX_COLOR_STRING        32
6
#define MAX_JS_FUNCTIONS 64
6
#define MAX_JS_FUNCTIONS 64
7
 
-
 
-
 
7
#define MAX_SLIDERS     16
8
/* the commmand / keyword name collecton */
8
/* the commmand / keyword name collecton */
9
#define END             -1
9
#define END             -1
10
#define COMMENT         -2
10
#define COMMENT         -2
11
#define SIZE            1
11
#define SIZE            1
12
#define XRANGE          2
12
#define XRANGE          2
Line 300... Line 300...
300
void add_setlimits(FILE *js_include_file, int canvas_root_id,int font_size,char *input_style);
300
void add_setlimits(FILE *js_include_file, int canvas_root_id,int font_size,char *input_style);
301
void add_safe_eval(FILE *js_include_file);
301
void add_safe_eval(FILE *js_include_file);
302
void add_to_js_math(FILE *js_include_file);
302
void add_to_js_math(FILE *js_include_file);
303
void add_calc_y(FILE *js_include_file,int canvas_root_id,char *jsmath,int font_size,char *input_style);
303
void add_calc_y(FILE *js_include_file,int canvas_root_id,char *jsmath,int font_size,char *input_style);
304
void add_jsplot(FILE *js_include_file,int canvas_root_id);
304
void add_jsplot(FILE *js_include_file,int canvas_root_id);
305
void add_slider(FILE *js_include_file, int canvas_root_id,double v1,double v2,int width,int height,int type,char *label,int slider_cnt,char *stroke_color,char *fill_color,int line_width,double opacity,char *font_family,char *font_color,int use_slider_display);
305
void add_slider(FILE *js_include_file,int canvas_root_id);
306
void add_slider_display(FILE *js_include_file, int canvas_root_id,int precision,int font_size,char *font_color,double stroke_opacity);
306
void add_slider_display(FILE *js_include_file, int canvas_root_id,int precision,int font_size,char *font_color,double stroke_opacity);
307
void add_xyslider(FILE *js_include_file, int canvas_root_id,double v1,double v2,int width,int height,int type,char *label,int slider_cnt,char *stroke_color,char *fill_color,int line_width,double opacity,char *font_family,char *font_color,int use_slider_display);
307
void add_xyslider(FILE *js_include_file, int canvas_root_id,double v1,double v2,int width,int height,char *use_slider,char *label,int slider_cnt,char *stroke_color,char *fill_color,int line_width,double opacity,char *font_family,char *font_color,int use_slider_display);
308
void *my_newmem(size_t size);
308
void *my_newmem(size_t size);
309
void canvas_error(char *msg);
309
void canvas_error(char *msg);
310
char *eval(int xsize,int ysize,char *fun,double xmin,double xmax,double ymin,double ymax,int xsteps,int precision);
310
char *eval(int xsize,int ysize,char *fun,double xmin,double xmax,double ymin,double ymax,int xsteps,int precision);
311
char *eval_parametric(int xsize,int ysize,char *fun1,char* fun2,double xmin,double xmax,double ymin,double ymax, double tmin,double tmax,int plotsteps,int precision);
311
char *eval_parametric(int xsize,int ysize,char *fun1,char* fun2,double xmin,double xmax,double ymin,double ymax, double tmin,double tmax,int plotsteps,int precision);
312
char *eval_levelcurve(int xsize,int ysize,char *fun,double xmin,double xmax,double ymin,double ymax,int plotsteps,int precision,double level);
312
char *eval_levelcurve(int xsize,int ysize,char *fun,double xmin,double xmax,double ymin,double ymax,int plotsteps,int precision,double level);
313
 
313
 
-
 
314
char *data2js_array(int data[],int len);
314
char *double_xy2js_array(double xy[],int len,int decimals);
315
char *double_xy2js_array(double xy[],int len,int decimals);
315
int find_number_of_digits(int i);
316
int find_number_of_digits(int i);
316
int x2px(double x);
317
int x2px(double x);
317
int y2px(double y);
318
int y2px(double y);
318
 
319