|
@@ -351,6 +351,7 @@ Format.prototype.immediateRefresh = function()
|
|
|
{
|
|
|
mxUtils.write(label, mxResources.get('text'));
|
|
|
div.appendChild(label);
|
|
|
+ label.style.borderLeftStyle = 'none';
|
|
|
this.panels.push(new TextFormatPanel(this, ui, div));
|
|
|
}
|
|
|
else
|
|
@@ -1220,73 +1221,43 @@ BaseFormatPanel.prototype.createCellColorOption = function(label, colorKey, defa
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
-BaseFormatPanel.prototype.addArrow = function(elt, height, topAlign)
|
|
|
+BaseFormatPanel.prototype.addArrow = function(elt)
|
|
|
{
|
|
|
- height = (height != null) ? height : 10;
|
|
|
-
|
|
|
+ elt.className = 'geColorBtn';
|
|
|
+ elt.style.display = 'inline-flex';
|
|
|
+ elt.style.alignItems = 'top';
|
|
|
+ elt.style.boxSizing = 'border-box';
|
|
|
+ elt.style.width = '64px';
|
|
|
+ elt.style.height = '22px';
|
|
|
+ elt.style.borderWidth = '1px';
|
|
|
+ elt.style.borderStyle = 'solid';
|
|
|
+ elt.style.margin = '2px 2px 2px 3px';
|
|
|
+
|
|
|
var arrow = document.createElement('div');
|
|
|
- arrow.style.borderLeft = '1px solid #a0a0a0';
|
|
|
+ arrow.className = 'geAdaptiveAsset';
|
|
|
arrow.style.display = 'inline-block';
|
|
|
- arrow.style.height = height + 'px';
|
|
|
- arrow.style.paddingRight = '4px';
|
|
|
- arrow.style.padding = '6px';
|
|
|
-
|
|
|
- if (topAlign)
|
|
|
- {
|
|
|
- arrow.style.verticalAlign = 'top';
|
|
|
- arrow.style.marginLeft = '1px';
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- var m = (10 - height);
|
|
|
-
|
|
|
- if (m == 2)
|
|
|
- {
|
|
|
- arrow.style.paddingTop = 6 + 'px';
|
|
|
- }
|
|
|
- else if (m > 0)
|
|
|
- {
|
|
|
- arrow.style.paddingTop = (6 - m) + 'px';
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- arrow.style.marginTop = '-2px';
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- var img = document.createElement('img');
|
|
|
- img.setAttribute('border', '0');
|
|
|
- img.setAttribute('valign', 'middle');
|
|
|
- img.setAttribute('src', Toolbar.prototype.dropDownImage);
|
|
|
- arrow.appendChild(img);
|
|
|
-
|
|
|
- var img = arrow.getElementsByTagName('img')[0];
|
|
|
- img.style.position = 'relative';
|
|
|
- img.style.left = '1px';
|
|
|
- img.style.top = (mxClient.IS_FF) ? '0px' : '-4px';
|
|
|
- mxUtils.setOpacity(arrow, 70);
|
|
|
+ arrow.style.backgroundImage = 'url(' + Editor.thinExpandImage + ')';
|
|
|
+ arrow.style.backgroundRepeat = 'no-repeat';
|
|
|
+ arrow.style.backgroundPosition = '-2px 1px';
|
|
|
+ arrow.style.backgroundSize = '18px 18px';
|
|
|
+ arrow.style.opacity = '0.5';
|
|
|
+ arrow.style.height = '100%';
|
|
|
+ arrow.style.width = '14px';
|
|
|
|
|
|
+ elt.appendChild(arrow);
|
|
|
+
|
|
|
var symbol = elt.getElementsByTagName('div')[0];
|
|
|
|
|
|
if (symbol != null)
|
|
|
{
|
|
|
- symbol.style.paddingRight = '6px';
|
|
|
- symbol.style.marginLeft = '4px';
|
|
|
- symbol.style.marginTop = '-1px';
|
|
|
symbol.style.display = 'inline-block';
|
|
|
- mxUtils.setOpacity(symbol, 60);
|
|
|
+ symbol.style.backgroundPositionX = 'center';
|
|
|
+ symbol.style.textAlign = 'center';
|
|
|
+ symbol.style.height = '100%';
|
|
|
+ symbol.style.flexGrow = '1';
|
|
|
+ symbol.style.opacity = '0.6';
|
|
|
}
|
|
|
|
|
|
- mxUtils.setOpacity(elt, 100);
|
|
|
- elt.style.border = '1px solid #a0a0a0';
|
|
|
- elt.style.backgroundColor = this.buttonBackgroundColor;
|
|
|
- elt.style.backgroundImage = 'none';
|
|
|
- elt.style.width = 'auto';
|
|
|
- elt.className += ' geColorBtn';
|
|
|
- mxUtils.setPrefixedStyle(elt.style, 'borderRadius', '3px');
|
|
|
-
|
|
|
- elt.appendChild(arrow);
|
|
|
-
|
|
|
return symbol;
|
|
|
};
|
|
|
|
|
@@ -1376,7 +1347,7 @@ BaseFormatPanel.prototype.createRelativeOption = function(label, key, width, han
|
|
|
var graph = ui.editor.graph;
|
|
|
var div = this.createPanel();
|
|
|
div.style.paddingTop = '10px';
|
|
|
- div.style.paddingBottom = '10px';
|
|
|
+ div.style.paddingBottom = '12px';
|
|
|
mxUtils.write(div, label);
|
|
|
div.style.fontWeight = 'bold';
|
|
|
|
|
@@ -2026,7 +1997,7 @@ ArrangePanel.prototype.addAngle = function(div)
|
|
|
var graph = editor.graph;
|
|
|
var ss = ui.getSelectionState();
|
|
|
|
|
|
- div.style.paddingBottom = '8px';
|
|
|
+ div.style.paddingBottom = '12px';
|
|
|
|
|
|
var span = document.createElement('div');
|
|
|
span.style.position = 'absolute';
|
|
@@ -2895,16 +2866,18 @@ TextFormatPanel.prototype.addFont = function(container)
|
|
|
|
|
|
var cssMenu = this.editorUi.toolbar.addMenu(mxResources.get('style'),
|
|
|
mxResources.get('style'), true, 'formatBlock', cssPanel, null, true);
|
|
|
- cssMenu.style.color = 'rgb(112, 112, 112)';
|
|
|
+ this.addArrow(cssMenu);
|
|
|
+ cssMenu.style.width = '211px';
|
|
|
+ cssMenu.style.alignItems = 'center';
|
|
|
+ cssMenu.style.justifyContent = 'center';
|
|
|
cssMenu.style.whiteSpace = 'nowrap';
|
|
|
cssMenu.style.overflow = 'hidden';
|
|
|
cssMenu.style.margin = '0px';
|
|
|
- this.addArrow(cssMenu);
|
|
|
- cssMenu.style.width = '200px';
|
|
|
- cssMenu.style.height = '15px';
|
|
|
-
|
|
|
+ cssMenu.style.position = 'relative';
|
|
|
+
|
|
|
var arrow = cssMenu.getElementsByTagName('div')[0];
|
|
|
- arrow.style.cssFloat = 'right';
|
|
|
+ arrow.style.position = 'absolute';
|
|
|
+ arrow.style.right = '2px';
|
|
|
container.appendChild(cssPanel);
|
|
|
}
|
|
|
|
|
@@ -2919,14 +2892,19 @@ TextFormatPanel.prototype.addFont = function(container)
|
|
|
|
|
|
var fontMenu = this.editorUi.toolbar.addMenu('Helvetica', mxResources.get('fontFamily'),
|
|
|
true, 'fontFamily', stylePanel, null, true);
|
|
|
- fontMenu.style.color = 'rgb(112, 112, 112)';
|
|
|
+
|
|
|
+ this.addArrow(fontMenu);
|
|
|
+ fontMenu.style.width = '211px';
|
|
|
+ fontMenu.style.alignItems = 'center';
|
|
|
+ fontMenu.style.justifyContent = 'center';
|
|
|
fontMenu.style.whiteSpace = 'nowrap';
|
|
|
fontMenu.style.overflow = 'hidden';
|
|
|
fontMenu.style.margin = '0px';
|
|
|
-
|
|
|
- this.addArrow(fontMenu);
|
|
|
- fontMenu.style.width = '200px';
|
|
|
- fontMenu.style.height = '15px';
|
|
|
+ fontMenu.style.position = 'relative';
|
|
|
+
|
|
|
+ var arrow = fontMenu.getElementsByTagName('div')[0];
|
|
|
+ arrow.style.position = 'absolute';
|
|
|
+ arrow.style.right = '2px';
|
|
|
|
|
|
var stylePanel2 = stylePanel.cloneNode(false);
|
|
|
stylePanel2.style.marginLeft = '-3px';
|
|
@@ -3101,6 +3079,7 @@ TextFormatPanel.prototype.addFont = function(container)
|
|
|
|
|
|
// Label position
|
|
|
var stylePanel4 = stylePanel.cloneNode(false);
|
|
|
+ stylePanel4.removeAttribute('class');
|
|
|
stylePanel4.style.marginLeft = '0px';
|
|
|
stylePanel4.style.paddingTop = '8px';
|
|
|
stylePanel4.style.paddingBottom = '4px';
|
|
@@ -3140,6 +3119,7 @@ TextFormatPanel.prototype.addFont = function(container)
|
|
|
|
|
|
// Writing direction
|
|
|
var stylePanel5 = stylePanel.cloneNode(false);
|
|
|
+ stylePanel5.removeAttribute('class');
|
|
|
stylePanel5.style.marginLeft = '0px';
|
|
|
stylePanel5.style.paddingTop = '4px';
|
|
|
stylePanel5.style.paddingBottom = '4px';
|
|
@@ -4371,12 +4351,13 @@ StyleFormatPanel.prototype.init = function()
|
|
|
this.container.appendChild(this.addLineJumps(this.createPanel()));
|
|
|
var opacityPanel = this.createRelativeOption(mxResources.get('opacity'), mxConstants.STYLE_OPACITY);
|
|
|
opacityPanel.style.paddingTop = '8px';
|
|
|
- opacityPanel.style.paddingBottom = '8px';
|
|
|
+ opacityPanel.style.paddingBottom = '10px';
|
|
|
this.container.appendChild(opacityPanel);
|
|
|
this.container.appendChild(this.addEffects(this.createPanel()));
|
|
|
}
|
|
|
|
|
|
var opsPanel = this.createPanel();
|
|
|
+ opsPanel.style.paddingTop = '8px';
|
|
|
|
|
|
if (ss.cells.length == 1)
|
|
|
{
|
|
@@ -4867,9 +4848,10 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
styleSelect.style.height = '22px';
|
|
|
styleSelect.style.padding = '0px';
|
|
|
styleSelect.style.marginTop = '-3px';
|
|
|
+ styleSelect.style.textAlign = 'center';
|
|
|
styleSelect.style.boxSizing = 'border-box';
|
|
|
- styleSelect.style.left = '94px';
|
|
|
- styleSelect.style.width = '80px';
|
|
|
+ styleSelect.style.left = '90px';
|
|
|
+ styleSelect.style.width = '83px';
|
|
|
styleSelect.style.borderWidth = '1px';
|
|
|
styleSelect.style.borderStyle = 'solid';
|
|
|
|
|
@@ -4956,15 +4938,15 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
|
|
|
// Used if only edges selected
|
|
|
var stylePanel = colorPanel.cloneNode(false);
|
|
|
+ stylePanel.style.display = 'inline-flex';
|
|
|
+ stylePanel.style.alignItems = 'top';
|
|
|
stylePanel.style.fontWeight = 'normal';
|
|
|
stylePanel.style.whiteSpace = 'nowrap';
|
|
|
stylePanel.style.position = 'relative';
|
|
|
- stylePanel.style.paddingLeft = '0px';
|
|
|
- stylePanel.style.marginBottom = '2px';
|
|
|
+ stylePanel.style.paddingLeft = '5px';
|
|
|
stylePanel.style.overflow = 'hidden';
|
|
|
stylePanel.style.marginTop = '2px';
|
|
|
stylePanel.style.width = '220px';
|
|
|
- stylePanel.className = 'geToolbarContainer';
|
|
|
|
|
|
var addItem = mxUtils.bind(this, function(menu, width, cssName, keys, values)
|
|
|
{
|
|
@@ -4996,7 +4978,7 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
|
|
|
// Used for mixed selection (vertices and edges)
|
|
|
var altStylePanel = stylePanel.cloneNode(false);
|
|
|
-
|
|
|
+
|
|
|
var edgeShape = this.editorUi.toolbar.addMenuFunctionInContainer(altStylePanel, 'geSprite-connection', mxResources.get('connection'), false, mxUtils.bind(this, function(menu)
|
|
|
{
|
|
|
this.editorUi.menus.styleChange(menu, '', [mxConstants.STYLE_SHAPE, mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE, 'width'],
|
|
@@ -5028,7 +5010,7 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
input.style.textAlign = 'right';
|
|
|
input.style.marginTop = '2px';
|
|
|
input.style.width = '52px';
|
|
|
- input.style.height = '21px';
|
|
|
+ input.style.height = '22px';
|
|
|
input.style.left = '146px';
|
|
|
input.style.borderWidth = '1px';
|
|
|
input.style.borderStyle = 'solid';
|
|
@@ -5076,14 +5058,14 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
|
|
|
var stepper = this.createStepper(input, update, 1, 9);
|
|
|
stepper.style.display = input.style.display;
|
|
|
- stepper.style.marginTop = '2px';
|
|
|
+ stepper.style.top = '2px';
|
|
|
stepper.style.left = '198px';
|
|
|
stylePanel.appendChild(stepper);
|
|
|
|
|
|
var altStepper = this.createStepper(altInput, altUpdate, 1, 9);
|
|
|
altStepper.style.display = altInput.style.display;
|
|
|
- altStepper.style.marginTop = '2px';
|
|
|
altInput.style.position = 'absolute';
|
|
|
+ altStepper.style.top = '2px';
|
|
|
altStepper.style.left = '198px';
|
|
|
altStylePanel.appendChild(altStepper);
|
|
|
|
|
@@ -5120,8 +5102,8 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
var item = this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_STARTARROW, 'startFill'], [mxConstants.NONE, 0], 'geIcon', null, false);
|
|
|
item.setAttribute('title', mxResources.get('none'));
|
|
|
|
|
|
- var font = document.createElement('font');
|
|
|
- font.style.fontSize = '10px';
|
|
|
+ var font = document.createElement('span');
|
|
|
+ font.style.fontSize = '11px';
|
|
|
mxUtils.write(font, mxResources.get('none'));
|
|
|
item.firstChild.firstChild.appendChild(font);
|
|
|
|
|
@@ -5186,8 +5168,8 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
var item = this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_ENDARROW, 'endFill'], [mxConstants.NONE, 0], 'geIcon', null, false);
|
|
|
item.setAttribute('title', mxResources.get('none'));
|
|
|
|
|
|
- var font = document.createElement('font');
|
|
|
- font.style.fontSize = '10px';
|
|
|
+ var font = document.createElement('span');
|
|
|
+ font.style.fontSize = '11px';
|
|
|
mxUtils.write(font, mxResources.get('none'));
|
|
|
item.firstChild.firstChild.appendChild(font);
|
|
|
|
|
@@ -5245,66 +5227,51 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
}
|
|
|
}));
|
|
|
|
|
|
- var elt = this.addArrow(edgeShape, 8);
|
|
|
- elt.nextSibling.style.position = 'relative';
|
|
|
- elt.nextSibling.style.top = '-2px';
|
|
|
- elt = this.addArrow(edgeStyle, 10);
|
|
|
- elt.nextSibling.style.position = 'relative';
|
|
|
- elt.nextSibling.style.top = '-3px';
|
|
|
- edgeStyle.getElementsByTagName('img')[0].style.top = '-1px';
|
|
|
- this.addArrow(lineStart, null, true);
|
|
|
- this.addArrow(lineEnd, null, true);
|
|
|
-
|
|
|
- var symbol = this.addArrow(pattern, 9);
|
|
|
- symbol.className = 'geIcon';
|
|
|
- symbol.style.width = 'auto';
|
|
|
+ this.addArrow(edgeShape);
|
|
|
+ this.addArrow(edgeStyle).style.marginTop = '-1px';
|
|
|
+ this.addArrow(lineStart);
|
|
|
+ this.addArrow(lineEnd);
|
|
|
|
|
|
- var altSymbol = this.addArrow(altPattern, 9);
|
|
|
+ var symbol = this.addArrow(pattern);
|
|
|
+ symbol.className = 'geIcon';
|
|
|
+ pattern.style.width = '134px';
|
|
|
+
|
|
|
+ var altSymbol = this.addArrow(altPattern);
|
|
|
altSymbol.className = 'geIcon';
|
|
|
altSymbol.style.width = '22px';
|
|
|
|
|
|
var solid = document.createElement('div');
|
|
|
- solid.style.width = '84px';
|
|
|
- solid.style.height = '1px';
|
|
|
+ solid.style.width = '102px';
|
|
|
+ solid.style.height = '10px';
|
|
|
solid.style.borderBottom = '1px solid ' + this.defaultStrokeColor;
|
|
|
- solid.style.marginBottom = '7px';
|
|
|
+ solid.style.marginLeft = '10px';
|
|
|
symbol.appendChild(solid);
|
|
|
|
|
|
var altSolid = document.createElement('div');
|
|
|
- altSolid.style.width = '23px';
|
|
|
- altSolid.style.height = '1px';
|
|
|
+ altSolid.style.width = '30px';
|
|
|
+ altSolid.style.height = '10px';
|
|
|
altSolid.style.borderBottom = '1px solid ' + this.defaultStrokeColor;
|
|
|
- altSolid.style.marginBottom = '7px';
|
|
|
+ altSolid.style.marginLeft = '10px';
|
|
|
altSymbol.appendChild(altSolid);
|
|
|
|
|
|
- pattern.style.height = '15px';
|
|
|
- pattern.style.marginLeft = '16px';
|
|
|
- altPattern.style.height = '15px';
|
|
|
- altPattern.style.marginLeft = '3px';
|
|
|
- edgeShape.style.marginLeft = '10px';
|
|
|
- edgeShape.style.height = '15px';
|
|
|
- edgeStyle.style.marginLeft = '10px';
|
|
|
- edgeStyle.style.height = '17px';
|
|
|
- lineStart.style.marginLeft = '3px';
|
|
|
- lineStart.style.height = '17px';
|
|
|
- lineEnd.style.marginLeft = '3px';
|
|
|
- lineEnd.style.height = '17px';
|
|
|
-
|
|
|
container.appendChild(colorPanel);
|
|
|
container.appendChild(altStylePanel);
|
|
|
container.appendChild(stylePanel);
|
|
|
|
|
|
var arrowPanel = stylePanel.cloneNode(false);
|
|
|
+ arrowPanel.style.display = 'block';
|
|
|
arrowPanel.style.padding = '5px 4px 6px 0px';
|
|
|
arrowPanel.style.fontWeight = 'normal';
|
|
|
|
|
|
var span = document.createElement('div');
|
|
|
span.style.position = 'absolute';
|
|
|
+ span.style.maxWidth = '78px';
|
|
|
+ span.style.overflow = 'hidden';
|
|
|
+ span.style.textOverflow = 'ellipsis';
|
|
|
span.style.marginLeft = '0px';
|
|
|
span.style.marginBottom = '12px';
|
|
|
span.style.marginTop = '2px';
|
|
|
span.style.fontWeight = 'normal';
|
|
|
- span.style.width = '76px';
|
|
|
|
|
|
mxUtils.write(span, mxResources.get('lineend'));
|
|
|
arrowPanel.appendChild(span);
|
|
@@ -5340,8 +5307,10 @@ StyleFormatPanel.prototype.addStroke = function(container)
|
|
|
});
|
|
|
|
|
|
mxUtils.br(arrowPanel);
|
|
|
- this.addLabel(arrowPanel, mxResources.get('spacing'), 98, 52);
|
|
|
- this.addLabel(arrowPanel, mxResources.get('size'), 30, 52);
|
|
|
+ this.addLabel(arrowPanel, mxResources.get('spacing'),
|
|
|
+ 98, 64).style.fontSize = '11px';
|
|
|
+ this.addLabel(arrowPanel, mxResources.get('size'),
|
|
|
+ 30, 64).style.fontSize = '11px';
|
|
|
mxUtils.br(arrowPanel);
|
|
|
|
|
|
var perimeterPanel = colorPanel.cloneNode(false);
|
|
@@ -5623,7 +5592,7 @@ StyleFormatPanel.prototype.addLineJumps = function(container)
|
|
|
|
|
|
var span = document.createElement('div');
|
|
|
span.style.position = 'absolute';
|
|
|
- span.style.maxWidth = '82px';
|
|
|
+ span.style.maxWidth = '78px';
|
|
|
span.style.overflow = 'hidden';
|
|
|
span.style.textOverflow = 'ellipsis';
|
|
|
|
|
@@ -5636,8 +5605,9 @@ StyleFormatPanel.prototype.addLineJumps = function(container)
|
|
|
styleSelect.style.padding = '0px';
|
|
|
styleSelect.style.marginTop = '-2px';
|
|
|
styleSelect.style.boxSizing = 'border-box';
|
|
|
- styleSelect.style.right = '76px';
|
|
|
- styleSelect.style.width = '54px';
|
|
|
+ styleSelect.style.textAlign = 'center';
|
|
|
+ styleSelect.style.right = '84px';
|
|
|
+ styleSelect.style.width = '64px';
|
|
|
styleSelect.style.borderWidth = '1px';
|
|
|
styleSelect.style.borderStyle = 'solid';
|
|
|
|
|
@@ -5678,7 +5648,7 @@ StyleFormatPanel.prototype.addLineJumps = function(container)
|
|
|
|
|
|
var jumpSizeUpdate;
|
|
|
|
|
|
- var jumpSize = this.addUnitInput(container, 'pt', 16, 42, function()
|
|
|
+ var jumpSize = this.addUnitInput(container, 'pt', 16, 52, function()
|
|
|
{
|
|
|
jumpSizeUpdate.apply(this, arguments);
|
|
|
});
|
|
@@ -5965,8 +5935,6 @@ DiagramStylePanel.prototype.addView = function(div)
|
|
|
var defaultStyles = ['fillColor', 'strokeColor', 'fontColor', 'gradientColor'];
|
|
|
|
|
|
div.style.whiteSpace = 'normal';
|
|
|
- div.style.borderStyle = 'none';
|
|
|
- div.style.paddingBottom = '0px';
|
|
|
div.style.paddingLeft = '18px';
|
|
|
div.style.paddingTop = '6px';
|
|
|
|
|
@@ -6096,7 +6064,7 @@ DiagramStylePanel.prototype.addView = function(div)
|
|
|
{
|
|
|
// Wrapper needed to catch events
|
|
|
var div = document.createElement('div');
|
|
|
- div.style.background = (Editor.isDarkMode()) ? Editor.darkColor : '#ffffff';
|
|
|
+ div.style.background = (Editor.isDarkMode() ? '#2a252f' : '#f1f3f4');
|
|
|
div.style.position = 'absolute';
|
|
|
div.style.display = 'inline-block';
|
|
|
div.style.overflow = 'hidden';
|
|
@@ -6106,6 +6074,7 @@ DiagramStylePanel.prototype.addView = function(div)
|
|
|
container.appendChild(div);
|
|
|
|
|
|
var graph2 = new Graph(div, null, null, graph.getStylesheet());
|
|
|
+ graph2.shapeBackgroundColor = div.style.background;
|
|
|
graph2.resetViewOnRootChange = false;
|
|
|
graph2.foldingEnabled = false;
|
|
|
graph2.gridEnabled = false;
|
|
@@ -6658,10 +6627,6 @@ DiagramFormatPanel.prototype.addView = function(div)
|
|
|
return Editor.sketchMode;
|
|
|
}, function(checked)
|
|
|
{
|
|
|
- graph.updateCellStyles({'sketch': (checked) ? '1' : null,
|
|
|
- 'curveFitting': (checked) ? Editor.sketchDefaultCurveFitting : null,
|
|
|
- 'jiggle': (checked) ? Editor.sketchDefaultJiggle : null},
|
|
|
- graph.getVerticesAndEdges());
|
|
|
ui.setSketchMode(checked);
|
|
|
},
|
|
|
{
|
|
@@ -6934,6 +6899,7 @@ DiagramFormatPanel.prototype.addPaperSize = function(div)
|
|
|
{
|
|
|
accessor.set(graph.pageFormat);
|
|
|
});
|
|
|
+
|
|
|
this.addKeyHandler(accessor.heightInput, function()
|
|
|
{
|
|
|
accessor.set(graph.pageFormat);
|