client/js/renderer/baseeditor.js
changeset 433 e457ec945e50
parent 293 fba23fde14ba
child 434 0d5998b32a7c
equal deleted inserted replaced
432:24754fe4baaf 433:e457ec945e50
    11     _(_BaseEditor.prototype).extend({
    11     _(_BaseEditor.prototype).extend({
    12         _init: function() {
    12         _init: function() {
    13             this.renderer.buttons_layer.activate();
    13             this.renderer.buttons_layer.activate();
    14             this.type = "editor";
    14             this.type = "editor";
    15             this.editor_block = new paper.Path();
    15             this.editor_block = new paper.Path();
    16             var _pts = _(_.range(8)).map(function() {return [0,0];});
    16             var _pts = _.map(_.range(8), function() {return [0,0];});
    17             this.editor_block.add.apply(this.editor_block, _pts);
    17             this.editor_block.add.apply(this.editor_block, _pts);
    18             this.editor_block.strokeWidth = this.options.tooltip_border_width;
    18             this.editor_block.strokeWidth = this.options.tooltip_border_width;
    19             this.editor_block.strokeColor = this.options.tooltip_border_color;
    19             this.editor_block.strokeColor = this.options.tooltip_border_color;
    20             this.editor_block.opacity = 0.8;
    20             this.editor_block.opacity = 0.8;
    21             this.editor_$ = $('<div>')
    21             this.editor_$ = $('<div>')
    28         },
    28         },
    29         destroy: function() {
    29         destroy: function() {
    30             this.editor_block.remove();
    30             this.editor_block.remove();
    31             this.editor_$.remove();
    31             this.editor_$.remove();
    32         }
    32         }
    33     });
    33     }).value();
       
    34 //    });
    34 
    35 
    35     /* _BaseEditor End */
    36     /* _BaseEditor End */
    36 
    37 
    37     return _BaseEditor;
    38     return _BaseEditor;
    38 
    39