client/js/renderer/baseeditor.js
changeset 503 18cb4c4c4e5e
parent 434 0d5998b32a7c
equal deleted inserted replaced
502:e410fcc078ee 503:18cb4c4c4e5e
    15             this.editor_block = new paper.Path();
    15             this.editor_block = new paper.Path();
    16             var _pts = _.map(_.range(8), 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 = this.options.tooltip_opacity;
    21             this.editor_$ = $('<div>')
    21             this.editor_$ = $('<div>')
    22             .appendTo(this.renderer.editor_$)
    22                 .appendTo(this.renderer.editor_$)
    23             .css({
    23                 .css({
    24                 position: "absolute",
    24                     position: "absolute",
    25                 opacity: 0.8
    25                     opacity: this.options.tooltip_opacity
    26             })
    26                 })
    27             .hide();
    27                 .hide();
    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         }