Rev 18157 | Rev 18160 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18157 | Rev 18158 | ||
---|---|---|---|
Line 2068... | Line 2068... | ||
2068 | @ draws a halfline starting in (x1:y1) and through (x2:y2) in color 'color' (colorname or hex) |
2068 | @ draws a halfline starting in (x1:y1) and through (x2:y2) in color 'color' (colorname or hex) |
2069 | @ may be set <a href="#drag">draggable</a> / <a href="#onclick">onclick</a> |
2069 | @ may be set <a href="#drag">draggable</a> / <a href="#onclick">onclick</a> |
2070 | @%halfline%size 400,400%xrange -10,10%yrange -10,10%halfline -5,5,0,0,red%halfline -5,-5,0,0,blue |
2070 | @%halfline%size 400,400%xrange -10,10%yrange -10,10%halfline -5,5,0,0,red%halfline -5,-5,0,0,blue |
2071 | */ |
2071 | */ |
2072 | for(i=0; i<13;i++){double_data[i]=0;} |
2072 | for(i=0; i<13;i++){double_data[i]=0;} |
2073 | 2073 | ||
2074 | for(i=0;i<5;i++){ |
2074 | for(i=0;i<5;i++){ |
2075 | switch(i){ |
2075 | switch(i){ |
2076 | case 0: double_data[0]= get_real(infile,0);break; /* x-values */ |
2076 | case 0: double_data[0]= get_real(infile,0);break; /* x-values */ |
2077 | case 1: double_data[1]= get_real(infile,0);break; /* y-values */ |
2077 | case 1: double_data[1]= get_real(infile,0);break; /* y-values */ |
2078 | case 2: double_data[10]= get_real(infile,0);break; /* x-values */ |
2078 | case 2: double_data[10]= get_real(infile,0);break; /* x-values */ |
Line 7010... | Line 7010... | ||
7010 | if (c == '\n' || c == '\r' || c == '\t' ){ line_number++; } |
7010 | if (c == '\n' || c == '\r' || c == '\t' ){ line_number++; } |
7011 | if (c == EOF) {finished=1;return 0;} |
7011 | if (c == EOF) {finished=1;return 0;} |
7012 | 7012 | ||
7013 | temp[i]='\0'; |
7013 | temp[i]='\0'; |
7014 | if(strstr(temp,"dash") !=0 && strlen(temp) > 4 ){ |
7014 | if(strstr(temp,"dash") !=0 && strlen(temp) > 4 ){ |
- | 7015 | int p; |
|
7015 | /* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */ |
7016 | /* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */ |
7016 | use_dashed = TRUE;int idx=0; |
7017 | use_dashed = TRUE;int idx=0; |
7017 | for( |
7018 | for(p = 4; p < strlen(temp); p++){temp[idx] = temp[p];idx++;} |
7018 | input_type = (char*)my_newmem(idx); snprintf(input_type,idx+1,"%s",temp); |
7019 | input_type = (char*)my_newmem(idx); snprintf(input_type,idx+1,"%s",temp); |
7019 | }else{ |
7020 | }else{ |
7020 | input_type=(char*)my_newmem(strlen(temp)); |
7021 | input_type=(char*)my_newmem(strlen(temp)); |
7021 | snprintf(input_type,sizeof(temp),"%s",temp); |
7022 | snprintf(input_type,sizeof(temp),"%s",temp); |
7022 | } |
7023 | } |
Line 7340... | Line 7341... | ||
7340 | if( strcmp(input_type, fontfamily) == 0 ){ |
7341 | if( strcmp(input_type, fontfamily) == 0 ){ |
7341 | free(input_type); |
7342 | free(input_type); |
7342 | return FONTFAMILY; |
7343 | return FONTFAMILY; |
7343 | } |
7344 | } |
7344 | if( strcmp(input_type, polyline) == 0 || strcmp(input_type, dpolyline) == 0 || strcmp(input_type, path) == 0 || strcmp(input_type, brokenline) == 0 ){ |
7345 | if( strcmp(input_type, polyline) == 0 || strcmp(input_type, dpolyline) == 0 || strcmp(input_type, path) == 0 || strcmp(input_type, brokenline) == 0 ){ |
7345 | if(strcmp(input_type, dpolyline) == 0 ){use_dashed = TRUE;} |
7346 | if(strcmp(input_type, dpolyline) == 0 ){use_dashed = TRUE;} |
7346 | free(input_type); |
7347 | free(input_type); |
7347 | return POLYLINE; |
7348 | return POLYLINE; |
7348 | } |
7349 | } |
7349 | if( strcmp(input_type, lines) == 0 ){ |
7350 | if( strcmp(input_type, lines) == 0 ){ |
7350 | free(input_type); |
7351 | free(input_type); |