Subversion Repositories wimsdev

Compare Revisions

Ignore whitespace Rev 17576 → Rev 17581

/trunk/wims/src/Misc/canvasdraw/Changelog.md
3,6 → 3,7
- sort out the global/local variable mess...and reorganize headerfile
: zooming and grid: scaling needs to be more adaptive! (use constant amount of grid lines)
## 2023
* 22/2/2023: increase the limit MAX_INT to 256
* 21/2/2023: canvasmultidraw now place object with relative coords (%) instead of absolute (px)
* 13/1/2023: corrected flaw in external images 'copy & drag/drop'
## 2022
9,7 → 10,7
* 28/8/2022: added command "newrange xmin,xmax,ymin,ymax" see https://wimsedu.info/?topic=dessiner-des-portions-de-fonctions-sur-un-meme-graphe
* 01/8/2022: getMouse(),latest improvements related to 'reponsiveness' will fatally lockup browsers in the pixel-by-pixel filling...at least in userdraw clickfill
* 19/7/2022: checked and corrected 'dashed' objects like arc,arrowarc,ellipse...
* 16/7/2022: solved long standing issue of dashed arrow(s) and dashed arrow(s)2
* 16/7/2022: solved long standing issue of dashed arrow(s) and dashed arrow(s)2
* 06/7/2022: clearbutton preserves div's with '<' && '/>' and objects placed with `placed_image_on_canvas(id)` e.g. with `id = placed*`
* 05/7/2022: corrected flaw in 'clearbutton' https://wimsedu.info/?topic=geometrie-interactive-avec-canvasdraw
* 05/7/2022: command 'group' :
57,9 → 58,9
for multiple function input fields, use multiple keywords 'function', e.g. something like:
multidraw text,line,function,function,function,points
* 27/5/2022: added subsup to userdraw and multidraw 'text' (which is always 'centered' e.g use_offset=4)
* 26/5/2022: corrected replyformat 100
* 26/5/2022: corrected replyformat 100
* 23/5/2022: overriding fontfamily and use Helvetica as font for _sub ^sup strings: all inline numbers are in script-size (80% eg the same as strings+numbers for sub/sup)
* 21/5/2022: using 'scriptsize' imitation on sub / sup
* 21/5/2022: using 'scriptsize' imitation on sub / sup
* 20/5/2022: added a sub / sup imitation to the canvas 'string' command family
 
size 400,400
76,7 → 77,7
## 2021
* 14/4/2021: added flydraw command 'range xmin,xmax,ymin,ymax'
* 6/4/2021: corrected 'text objects' (from cmd's text/string) were not added to 'noreset', e.g. keyword 'noreset' was ignored...
added a live example from E3/number/oefgraduation.fr
added a live example from E3/number/oefgraduation.fr
* 4/4/2021: corrected use of precompiler directive "KATEX_INSTALLED" (was not working...)
* 12/3/2021: add "version 0.5" to canvasdraw include file
* 23/2/2021:
93,7 → 94,7
* 2/2/2021:
added command 'arcarrow|arrowarc', left,right,left/right
added commands 'arc','angle','arcarrow' to onclick and drag&drop
* 17/1/2021:
* 17/1/2021:
corrected syntax issue in canvasmultidraw.c signalled by Opera Presto : 'forbidden function user_drawstop(evt) declaration in statement'*/
 
can not correct centering in case of MathJaX, in commands like
125,7 → 126,7
if( typeof fun === 'function'){ return fun();};
};
function read_dragdrop(){
var fun = eval("read_dragdrop"+canvas_scripts[0]);
var fun = eval("read_dragdrop"+canvas_scripts[0]);
if(typeof fun === 'function'){return fun();};
};
 
181,7 → 182,7
corrected long standing flaw regarding "centered" on external stuff...tested: bitmap,svg,TeX [on KaTeX]
corrected 'onclick' for 'draw_xml()'
 
* 14/1/2021:
* 14/1/2021:
only on KaTeX enabled wims, a slider title may use TeX produced by command "mathmlmath"
 
* 13/1/2021:
225,7 → 226,7
}
\statement{
canvas = \canvas
}
}
```
 
* 8/1/2021:
266,7 → 267,7
 
* 22/12/2020:
command "fillpattern image_url" was gone fishing! `get_image_from_url()` needs to be called after function definition..
* 16/11/2020:
* 16/11/2020:
- added 'affine' to curve evaluation
 
```
283,7 → 284,7
curve red,sin(x)
```
 
* 13/11/2020:
* 13/11/2020:
- added `safe_eval()` to userinput (using inputfields)
 
* 8/7/2020:
312,7 → 313,7
yrange -6,6
fontsize 40
linewidth 1
slider -10,10,300,28,angle active degree,
slider -10,10,300,28,angle active degree,
centered
html 0,0,<img src="modules/U2/geometry/oefrosoni.it/images/273x273/fig4.png" />
killslider
368,7 → 369,7
dragstuff library objects with slider...eg. 'first click'=select for sliders, 'second click' unselect sliders
e.g.: `slidergroup[object_cnt] = obj or slidergroup[object_cnt] = null`
selected sliders until 'killslider'
 
```
######################################################
size 500,500
647,12 → 648,12
```
##############
performance/size_reductions:
 
U1/logic/oefmap.fr&+cmd=new&defaultlist=free01&+exo=free01&+qnum=1&+scoredelay=&+seedrepeat=0&+qcmlevel=1
- old canvasdraw version approx 40 kb
- new canvasdraw version approx 20 kb
- latest canvasdraw version approx 18 kb
 
H5/analysis/gebieden-1.nl&subject=4&level=0&total_exos=3&rounding=-1&usage=2&taal=nl
- old canvasdraw version approx 83 kb
- new canvasdraw version approx 38 kb
697,7 → 698,7
- "stringup" now can be "onclick & dragdrop"
eg: stringup == string+angle+mouse_rotation-code
note: no need to reset rotation through 'killrotate'
 
```
onclick
rotate 45
705,9 → 706,9
killrotate
string red,4,4,BBBBBB
```
 
is identical with:
 
```
onclick
stringup red,0,0,45,AAAAAA
1557,7 → 1558,7
frect -3,3,0,0,red
slider -5,5,120,10,x function display,some_text
sliderfunction_x 5*sin(x)
 
'sliderfunction_y some_operation_on_y'
'sliderfunction_x some_operation_on_x'
added command