mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-09 00:43:23 +01:00
Editor HTML 5.0 compliant.
This commit is contained in:
parent
6c9e057503
commit
08daec0092
@ -589,15 +589,16 @@ function fontFamilyPanel()
|
|||||||
|
|
||||||
function shapeTypePanel()
|
function shapeTypePanel()
|
||||||
{
|
{
|
||||||
var shapeTypePanel = ['rectagle','rounded rectagle','line','elipse'];
|
var shapeTypePanel = ['rectagle','rounded_rectagle','line','elipse'];
|
||||||
var updateFunction = function(value)
|
var updateFunction = function(value)
|
||||||
{
|
{
|
||||||
designer.setShape2SelectedNode(value);
|
designer.setShape2SelectedNode(value.replace('_',' '));
|
||||||
};
|
};
|
||||||
|
|
||||||
var onFocusValue = function(selectedNode)
|
var onFocusValue = function(selectedNode)
|
||||||
{
|
{
|
||||||
return selectedNode.getShapeType();
|
|
||||||
|
return selectedNode.getShapeType().replace(' ','_');
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPanel('topicShape', 'topicShapePanel', shapeTypePanel, updateFunction, onFocusValue);
|
buildPanel('topicShape', 'topicShapePanel', shapeTypePanel, updateFunction, onFocusValue);
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
<div id="topicShapePanel" class="toolbarPanel">
|
<div id="topicShapePanel" class="toolbarPanel">
|
||||||
<!--<div id="automatic" class="toolbarPanelLink">Automatic</div>-->
|
<!--<div id="automatic" class="toolbarPanelLink">Automatic</div>-->
|
||||||
<div id="rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle.png" alt="Rectangle" width="40" height="25"></div>
|
<div id="rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle.png" alt="Rectangle" width="40" height="25"></div>
|
||||||
<div id="rounded rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle-rounded.png" alt="Rounded Rectangle" width="40" height="25"></div>
|
<div id="rounded_rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle-rounded.png" alt="Rounded Rectangle" width="40" height="25"></div>
|
||||||
<div id="line" class="toolbarPanelLink"><img src="../images/shape-line.png" alt="Line" width="40" height="7"></div>
|
<div id="line" class="toolbarPanelLink"><img src="../images/shape-line.png" alt="Line" width="40" height="7"></div>
|
||||||
<div id="elipse" class="toolbarPanelLink"><img src="../images/shape-elipse.png" alt="Elipse" width="40" height="25"></div>
|
<div id="elipse" class="toolbarPanelLink"><img src="../images/shape-elipse.png" alt="Elipse" width="40" height="25"></div>
|
||||||
</div>
|
</div>
|
||||||
|
0
wise-webapp/src/test/data/svg/map4.png
Normal file
0
wise-webapp/src/test/data/svg/map4.png
Normal file
Loading…
Reference in New Issue
Block a user