Skip to content

Commit dbc3a62

Browse files
committed
6.5.2 release
Former-commit-id: 94b77da
1 parent b15ba2a commit dbc3a62

File tree

10 files changed

+45
-33
lines changed

10 files changed

+45
-33
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
13-APR-2017: 6.5.2
2+
3+
- Adds missing supercall in Editor.resetGraph override
4+
15
13-APR-2017: 6.5.1
26

37
- Fixes dependency on mxSettings in viewer.min.js

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.1
1+
6.5.2

src/com/mxgraph/io/vsdx/Shape.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public class Shape extends Style
7575

7676
protected int themeVariant = 0;
7777

78+
private final static String UNICODE_LINE_SEP = new String(new char[]{(char)226, (char)128, (char)168});
79+
7880
public mxPathDebug debug = null;
7981

8082
public Shape(Element shape, mxVsdxModel model)
@@ -377,22 +379,22 @@ public boolean hasGeomList()
377379
/**
378380
* Last cp IX referenced in the Text Element.
379381
*/
380-
String cp = "";
382+
String cp = "0";
381383

382384
/**
383385
* Last pp IX referenced in the Text Element.
384386
*/
385-
String pp = "";
387+
String pp = "0";
386388

387389
/**
388390
* Last tp IX referenced in the Text Element.
389391
*/
390-
String tp = "";
392+
String tp = "0";
391393

392394
/**
393395
* Last fld IX referenced in the Text Element.
394396
*/
395-
String fld = "";
397+
String fld = "0";
396398

397399

398400

@@ -465,10 +467,10 @@ else if (node.getNodeName().equals("#text"))
465467
.replaceAll("'", "′")
466468
.replaceAll("<", "&lt;")
467469
.replaceAll(">", "&gt;");
468-
470+
469471
text = textToList(text, pp);
470-
471-
text = text.replaceAll("\n", "<br/>");
472+
473+
text = text.replaceAll("\n", "<br/>").replaceAll(UNICODE_LINE_SEP, "<br/>");
472474

473475
ret += getTextCharFormated(text);
474476
// }

src/com/mxgraph/io/vsdx/VsdxShape.java

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -314,24 +314,28 @@ public String getTextLabel()
314314
{
315315
// Collect text into same formatting paragraphs. If there's one paragraph, use the new system, otherwise
316316
// leave it to the old one.
317-
if (this.paragraphs == null)
318-
{
319-
initLabels(txtChildren);
320-
}
321-
322-
if (this.paragraphs.size() == 0)
323-
{
324-
// valid way to have an empty label override a master value "<text />"
325-
return "";
326-
}
327-
else if (this.paragraphs.size() == 1)
328-
{
329-
return createHybridLabel(this.paragraphs.keySet().iterator().next());
330-
}
331-
else
332-
{
317+
// if (this.paragraphs == null)
318+
// {
319+
// initLabels(txtChildren);
320+
// }
321+
//
322+
// if (this.paragraphs.size() == 0)
323+
// {
324+
// // valid way to have an empty label override a master value "<text />"
325+
// return "";
326+
// }
327+
// else if (this.paragraphs.size() == 1)
328+
// {
329+
// return createHybridLabel(this.paragraphs.keySet().iterator().next());
330+
// }
331+
// else
332+
// {
333+
//Sometimes one paragraph also contains mix of styles which are not supported by hybrid labels, so, use the old style for all html labels
334+
this.styleMap.put(mxConstants.STYLE_VERTICAL_ALIGN, getAlignVertical());
335+
this.styleMap.put(mxConstants.STYLE_ALIGN, getHorizontalAlign("0", false));
336+
333337
return getHtmlTextContent(txtChildren);
334-
}
338+
// }
335339
}
336340
}
337341
else
@@ -2149,7 +2153,7 @@ public mxPoint getLblEdgeOffset(mxPoint beginXY, mxPoint endXY, List<mxPoint> po
21492153
{
21502154
//currently, edges with multiple segments are not supported
21512155
//TODO use the code from https://github.com/jgraph/mxgraph/blob/master/javascript/src/js/view/mxGraphView.js#L1953 to calculate mxGraph label offset instead of the default mid point (width/2, height/2)
2152-
if (points == null || points.isEmpty() || (points.size() == 1 && points.get(0).equals(endXY)))
2156+
if (points == null || points.isEmpty() || points.size() == 2) //points can hold two points representing begin and end point
21532157
{
21542158
//Calculate the text offset
21552159
double txtWV = getScreenNumericalValue(getShapeNode(mxVsdxConstants.TXT_WIDTH), getWidth());

war/cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CACHE MANIFEST
22

33
# THIS FILE WAS GENERATED. DO NOT MODIFY!
4-
# 04/13/2017 06:34 PM
4+
# 04/13/2017 10:19 PM
55

66
app.html
77
index.html?offline=1

war/js/app.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)