Home | History | Annotate | Download | only in docs

Lines Matching full:record

515         var record = [];
524 function canvas_fill_font(record) {
525 assert(record);
527 if (record.fillStyle) {
528 str += 'ctx.fillStyle = ' + record.fillStyle + ';\n';
533 function canvas_fill_text(record) {
534 assert(record);
535 assert(typeof record.fillText == 'string');
536 return 'ctx.fillText("' + record.fillText + '"';
539 function canvas_xy(record) {
540 var x = typeof record.x == "number" ? record.x : 400;
541 var y = typeof record.y == "number" ? record.y : 200;
545 function canvas_text_xy(record) {
546 return canvas_fill_text(record) + canvas_xy(record);
550 var record = {};
551 record.data = paths[id].funcBody;
552 record.style = 'ctx.strokeStyle = ' + (strokeStyle ? strokeStyle : '"black"') + ';\n';
553 record.draw = 'ctx.stroke();\n';
554 record.func = new Function('ctx', record.data + record.style + record.draw);
555 return data[id] = record;
558 function add_canvas_style(record, style) {
559 record.style += style;
560 record.func = new Function('ctx', record.data + record.style + record.draw);
564 var record = {};
565 record.data = paths[id].funcBody;
566 record.style = 'ctx.fillStyle = ' + (fillStyle ? fillStyle : '"black"') + ';\n';
567 record.draw = 'ctx.fill();\n';
568 record.func = new Function('ctx', record.data + record.style + record.draw);
569 return data[id] = record;
573 var record = {};
574 record.style = canvas_fill_font(params);
575 record.draw = canvas_fill_text(params);
576 record.position = canvas_xy(params);
577 record.x = params.x;
578 record.y = params.y;
579 record.func = new Function('ctx', record.style + record.draw + record.position);
580 return data[id] = record;
1010 var record = array[index];
1011 if (record.element == element) {
1317 var record = canvasData[text];
1319 record.x = x;
1322 record.y = y;
1324 record.position = canvas_xy(record);
1325 record.func = new Function('ctx', record.style + record.draw + record.position);