Lines Matching refs:drawing

94 			drawing: {  class in AmCharts._this
110 var item = _this.drawing.undos.pop();
113 _this.drawing.redos.push( item );
123 _this.drawing.handler.change( {
134 _this.drawing.handler.undo( item, true );
139 var item = _this.drawing.redos.pop();
142 _this.drawing.undos.push( item );
153 _this.drawing.handler.change( {
164 _this.drawing.handler.redo();
169 _this.drawing.buffer.enabled = false;
170 _this.drawing.undos = [];
171 _this.drawing.redos = [];
211 fill: _this.drawing.color
219 var current = target || _this.drawing.buffer.target;
224 _this.drawing.mode = cfg.mode;
227 _this.drawing.width = cfg.width;
228 _this.drawing.fontSize = cfg.width * 3;
231 _this.drawing.fontSize = cfg.fontSize;
234 _this.drawing.color = cfg.color;
237 _this.drawing.opacity = cfg.opacity;
241 rgba = new fabric.Color( _this.drawing.color ).getSource();
243 rgba.push( _this.drawing.opacity );
244 _this.drawing.color = "rgba(" + rgba.join() + ")";
245 _this.setup.fabric.freeDrawingBrush.color = _this.drawing.color;
246 _this.setup.fabric.freeDrawingBrush.width = _this.drawing.width;
317 _this.drawing.redos = [];
318 _this.drawing.undos.push( {
333 fontSize: _this.drawing.fontSize,
335 fill: _this.drawing.color
357 strokeLineCap: _this.drawing.lineCap,
358 arrow: _this.drawing.arrow,
359 color: _this.drawing.color,
360 width: _this.drawing.width,
472 drawing: { class in AmCharts._this.defaults.fabric
775 _this.drawing.buffer.isPressed = true;
777 _this.drawing.buffer.isPressed = false;
779 return _this.drawing.buffer.isPressed;
956 var ref = _this.drawing.buffer.position;
1076 _this.drawing.buffer.enabled = cfg.action == "draw";
1125 _this.deepMerge( _this.setup.fabric.freeDrawingBrush, cfg.drawing );
1128 _this.deepMerge( _this.drawing, cfg.drawing );
1129 _this.drawing.handler.change( cfg.drawing );
1134 _this.drawing.buffer.pressedTS = Number( new Date() );
1142 if ( _this.drawing.buffer.isPressed && !_this.drawing.buffer.line ) {
1143 …if ( !_this.drawing.buffer.isSelected && _this.drawing.mode != "pencil" && ( p.xD > 5 || p.xD > 5 …
1144 _this.drawing.buffer.hasLine = true;
1147 _this.drawing.buffer.line = _this.drawing.handler.line( {
1152 arrow: _this.drawing.mode == "line" ? false : _this.drawing.arrow,
1159 if ( _this.drawing.buffer.line ) {
1161 var l = _this.drawing.buffer.line;
1200 if ( Number( new Date() ) - _this.drawing.buffer.pressedTS < 200 ) {
1208 if ( _this.drawing.buffer.line ) {
1209 for ( i1 = 0; i1 < _this.drawing.buffer.line.group.length; i1++ ) {
1210 _this.drawing.buffer.line.group[ i1 ].remove();
1212 delete _this.drawing.buffer.line.action;
1213 delete _this.drawing.buffer.line.group;
1214 _this.drawing.handler.line( _this.drawing.buffer.line );
1216 _this.drawing.buffer.line = false;
1217 _this.drawing.buffer.hasLine = false;
1218 _this.drawing.buffer.isPressed = false;
1223 _this.drawing.buffer.isSelected = true;
1224 _this.drawing.buffer.target = e.target;
1228 _this.drawing.buffer.onMouseDown = _this.setup.fabric.freeDrawingBrush.onMouseDown;
1229 _this.drawing.buffer.target = false;
1232 if ( _this.drawing.buffer.isSelected ) {
1239 _this.drawing.buffer.isSelected = false;
1241 _this.setup.fabric.freeDrawingBrush.onMouseDown = _this.drawing.buffer.onMouseDown;
1246 …if ( Number( new Date() ) - _this.drawing.buffer.pressedTS < 200 || _this.drawing.buffer.hasLine )…
1258 color: _this.drawing.color,
1259 width: _this.drawing.width,
1260 opacity: _this.drawing.opacity,
1261 fontSize: _this.drawing.fontSize
1265 if ( Number( new Date() ) - _this.drawing.buffer.pressedTS < 200 && !item.noUndo ) {
1275 _this.drawing.undos.push( {
1280 _this.drawing.undos.push( {
1285 _this.drawing.redos = [];
1301 _this.drawing.undos.push( {
1307 _this.drawing.redos = [];
1317 _this.drawing.redos = [];
1318 _this.drawing.undos.push( {
1327 if ( _this.drawing.buffer.enabled ) {
2281 if ( _this.drawing.buffer.enabled ) {
2298 _this.drawing.handler.add( {
2616 if ( _this.config.fabric.drawing.enabled ) {
2617 item.menu = item.menu ? item.menu : _this.config.fabric.drawing.menu;
2632 var items = item[ type ] || _this.config.fabric.drawing[ type ] || [];
2676 _this.drawing.mode = mode;
2688 if ( _this.drawing.handler[ action ] instanceof Function ) {
2692 this.drawing.handler[ item.action ]( item );
2697 } else if ( _this.drawing.buffer.enabled ) {
2700 if ( this.config.drawing.autoClose ) {
2701 this.drawing.handler.done();
2717 if ( this.config.drawing.autoClose ) {
2718 this.drawing.handler.done();
2752 …format == "PRINT" || ( item.format != "UNDEFINED" && item.capture ) ) && !_this.drawing.enabled ) {
2953 var current = _this.drawing.buffer.target;
2961 } else if ( e.keyCode == 27 && _this.drawing.enabled ) {
2963 _this.drawing.handler.done();
2967 _this.drawing.buffer.copy = current;
2971 _this.drawing.buffer.copy = current;
2976 if ( _this.drawing.buffer.copy ) {
2977 handleClone( _this.drawing.buffer.copy.clone( handleClone ) )
2984 _this.drawing.handler.redo();
2986 _this.drawing.handler.undo();
3034 _this.drawing.handler.cancel = _this.drawing.handler.done;
3045 _this.defaults.fabric.drawing.fontSize = _this.setup.chart.fontSize || 11;
3048 …_this.config.drawing = _this.deepMerge( _this.defaults.fabric.drawing, _this.config.drawing || {},…
3056 _this.config.drawing = _this.defaults.fabric.drawing;
3062 if ( _this.config.fabric.drawing.enabled ) {
3063 if ( _this.config.fabric.drawing.menu === undefined ) {
3064 _this.config.fabric.drawing.menu = [];
3065 _this.deepMerge( _this.config.fabric.drawing.menu, [ {
3115 menu: _this.config.fabric.drawing.menu