Lines Matching defs:shape

377 	// Prioritize path editing over shape selection.
381 // Do not try to change shape of non-sizeable object.
471 // If so, clear the selection and select the new shape.
480 // Single click always selects a single shape.
482 // Forget point selection in pathedit tool if shape selection is changed.
810 /// Draw a shape on the canvas.
934 // When pathedit tool is selected, draw handles on the shape's control points
938 function pathEditSelectDraw(shape){
939 var pts = shape.points;
943 if(toolmap[shape.tool].isArc){
966 shape === this.selectPointShape && i === this.selectPointIdx ? '#7f7fff' : '#7f7f7f');
969 if(shape !== this.selectPointShape || i < this.selectPointIdx || this.selectPointIdx + 1 < i)
1812 /// draw: A function(mode,str) to actually draw a shape.
1819 // The path tool shares the same shape type identifier among multiple
1841 /// Append a point to the shape by mouse click
1883 // Live preview of the shape being added.
1915 Tool.prototype.selectDraw = function(shape){
1916 var bounds = objBounds(shape);
1930 ctx.fillStyle = sizing === shape && i === sizedir ? '#7fff7f' : '#ffff7f';
2318 // If a shape is clicked, alter its value instead of adding a new one.
2360 textLayer.dobj = dobjs[i]; // Remember the shape being clicked on.
2497 onNewShape: function(shape){}, /// Virtual event handler on creation of a new shape
2570 // Live preview of the shape being added.
2599 onNewShape: function(shape){shape.arrow = {"tail": null}},
2617 onNewShape: function(shape){shape.arrow = {head: null, "tail": null}},