|
|
@ -97,7 +97,7 @@ window.canvas = canvas;
|
|
|
|
var updateBrushWidth = function () {
|
|
|
|
var updateBrushWidth = function () {
|
|
|
|
var val = $width.val();
|
|
|
|
var val = $width.val();
|
|
|
|
canvas.freeDrawingBrush.width = Number(val);
|
|
|
|
canvas.freeDrawingBrush.width = Number(val);
|
|
|
|
$widthLabel.text(val);
|
|
|
|
$widthLabel.text(Cryptpad.Messages._getKey("canvas_widthLabel", [val]));
|
|
|
|
createCursor();
|
|
|
|
createCursor();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
updateBrushWidth();
|
|
|
|
updateBrushWidth();
|
|
|
@ -108,7 +108,7 @@ window.canvas = canvas;
|
|
|
|
var val = $opacity.val();
|
|
|
|
var val = $opacity.val();
|
|
|
|
brush.opacity = Number(val);
|
|
|
|
brush.opacity = Number(val);
|
|
|
|
canvas.freeDrawingBrush.color = Colors.hex2rgba(brush.color, brush.opacity);
|
|
|
|
canvas.freeDrawingBrush.color = Colors.hex2rgba(brush.color, brush.opacity);
|
|
|
|
$opacityLabel.text(val);
|
|
|
|
$opacityLabel.text(Cryptpad.Messages._getKey("canvas_opacityLabel", [val]));
|
|
|
|
createCursor();
|
|
|
|
createCursor();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
updateBrushOpacity();
|
|
|
|
updateBrushOpacity();
|
|
|
|