used default step values for SpinButtons
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2404 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
a851e70c6e
commit
dd6b28d886
|
@ -1038,7 +1038,7 @@
|
||||||
if (ext.context_tools) {
|
if (ext.context_tools) {
|
||||||
$.each(ext.context_tools, function(i, tool) {
|
$.each(ext.context_tools, function(i, tool) {
|
||||||
// Add select tool
|
// Add select tool
|
||||||
var cont_id = tool.container_id?(' id="' + tool.container_id + '"') : '';
|
var cont_id = tool.container_id ? (' id="' + tool.container_id + '"') : '';
|
||||||
var panel = $('#' + tool.panel);
|
var panel = $('#' + tool.panel);
|
||||||
|
|
||||||
// create the panel if it doesn't exist
|
// create the panel if it doesn't exist
|
||||||
|
@ -4204,12 +4204,13 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#rect_rx').SpinButton({ min: 0, max: 1000, step: 1, callback: changeRectRadius });
|
// init SpinButtons
|
||||||
$('#stroke_width').SpinButton({ min: 0, max: 99, step: 1, smallStep: 0.1, callback: changeStrokeWidth });
|
$('#rect_rx').SpinButton({ min: 0, max: 1000, callback: changeRectRadius });
|
||||||
|
$('#stroke_width').SpinButton({ min: 0, max: 99, smallStep: 0.1, callback: changeStrokeWidth });
|
||||||
$('#angle').SpinButton({ min: -180, max: 180, step: 5, callback: changeRotationAngle });
|
$('#angle').SpinButton({ min: -180, max: 180, step: 5, callback: changeRotationAngle });
|
||||||
$('#font_size').SpinButton({ step: 1, min: 0.001, stepfunc: stepFontSize, callback: changeFontSize });
|
$('#font_size').SpinButton({ min: 0.001, stepfunc: stepFontSize, callback: changeFontSize });
|
||||||
$('#group_opacity').SpinButton({ step: 5, min: 0, max: 100, callback: changeOpacity });
|
$('#group_opacity').SpinButton({ min: 0, max: 100, step: 5, callback: changeOpacity });
|
||||||
$('#blur').SpinButton({ step: .1, min: 0, max: 10, callback: changeBlur });
|
$('#blur').SpinButton({ min: 0, max: 10, step: .1, callback: changeBlur });
|
||||||
$('#zoom').SpinButton({ min: 0.001, max: 10000, step: 50, stepfunc: stepZoom, callback: changeZoom })
|
$('#zoom').SpinButton({ min: 0.001, max: 10000, step: 50, stepfunc: stepZoom, callback: changeZoom })
|
||||||
// Set default zoom
|
// Set default zoom
|
||||||
.val(svgCanvas.getZoom() * 100);
|
.val(svgCanvas.getZoom() * 100);
|
||||||
|
|
Loading…
Reference in New Issue