We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Flowchart connectors, shape height and text transform issues

Hi,

This post is mainly a placeholder for the follow up of the resolved issues expected in version 17.6 and the pending issues- since the old data is not migrated to your new support system.

Resolved issues- expected in version 17.6 of Aspose Diagram for Java API.

  1. DIAGRAMJAVA-50492: Maintain height and width formula of a shape dropped from stencil
  2. DIAGRAMJAVA-50494: Output VSDX - the connecting lines are not connecting in the mid of process shapes
  3. DIAGRAMJAVA-50500: Aspose generated vsdx file does not allow resizing of new manually added shape via Visio
    You can notify on this issue when the new release is published.

Unresolved issues-

  1. DIAGRAMJAVA-50495: Output VSDX - incorrect layout of connector line when adding text to shapes
  2. DIAGRAMJAVA-50496: Output VSDX - all connectors are drifted upward
  3. DIAGRAMJAVA-50497: Output VSDX - incorrect layout of all connecting lines
  4. DIAGRAMJAVA-50491: problem of not retrieving the new formulated height value
  5. DIAGRAMJAVA-50503: Values for ‘Text transform’ section not copied from master shape leading to overflowing text
  6. DIAGRAMJAVA-50498: Output VSDX - the vertical text display of shapes instead of the horizontal
  7. DIAGRAMJAVA-50490: Problem of crunched side bars and incorrect text display on predefined process

Related posts-


Thanks,
Astha

Hi Astha,

Thank you for sharing a list of tickets. The ticket ID DIAGRAMJAVA-50503 has also been resolved. We will include its fix in the upcoming version 17.6 of Aspose.Diagram for Java API. We have linked all above tickets to this new thread and will keep you informed regarding any available updates.

Hi Imran,

I believe the fix for DIAGRAMJAVA-50503 should also fix DIAGRAMJAVA-50498 (when I manually fixed the shapesheet to be exactly same as the master’s, the vertical text issue was not there).
Please confirm this.

Hi Astha,

Thank you for the inquiry. We have published the new version 17.6 of Aspose.Diagram for Java API and also re-evaluated your ticket ID DIAGRAMJAVA-50498 (with version 17.6), it is not resolved. We will notify you once it is fixed.

Thanks & Regards,
Imran Rafique

Hi Astha,

Thank you for being patient. The ticket IDs DIAGRAMJAVA-50495, DIAGRAMJAVA-50496 and DIAGRAMJAVA-50490 have been resolved. If there is no issue in the quality assurance phase, then their fixes will be included in the next version 17.7 of Aspose.Diagram for Java API. We will notify you as soon as the new release is published.

Hi Astha,

In reference to the ticket IDs DIAGRAMJAVA-50500 and DIAGRAMJAVA-50503, after adding the text to a shape, please call refreshData method of the shape class. It refreshes shape’s position, including XForm, TextXForm, connection and geom data when changing the shape’s text.

Thanks & Regards,
Imran Rafique

Hi Imran,

I tested with version 17.6 and also added shape.refreshData() call after adding text, but the text is still rendering incorrectly.

Seems the ‘Text transform’ section has hardcoded values and not formulae copied from the stencil.

Same is that state with DIAGRAMJAVA-50500.

Please check these.

PFA the current state for various chapes -

TextOverflow_17_6_RefreshData.zip (160.8 KB)

Also, PFA the expected state (in this shapesheet’s Text Transform section is manually set via API methods)-

TextTransformManualChanges.zip (161.1 KB)

Thanks,
Astha

@asthac,
We managed to replicate the problem of text overflow in your both test cases. We have logged tickets in our bug tracking system as below:

Test case: TextOverflow_17_6_RefreshData.zip1 (160.8 KB)
DIAGRAMJAVA-50507: Output VSDX - the text overflow when adding multi-line text

Test case: TextTransformManualChanges.zip1 (161.1 KB)
DIAGRAMJAVA-50508: Output VSDX - the text overflow when adding multi-line text

We have linked your post to these tickets and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Best Regards,
Imran Rafique

@imran.rafique
Can you please clarify what DIAGRAMJAVA-50508 is about because the text of both the issues are same.
Also, the vsdx file in ‘Test case: TextTransformManualChanges.zip’ is the expected state - this does not have any issues.

Just to be clear, the issues not fixed in version 17.6 are-
DIAGRAMJAVA-50500: Aspose generated vsdx file does not allow resizing of new manually added shape via Visio
DIAGRAMJAVA-50503: Values for ‘Text transform’ section not copied from master shape leading to overflowing text

Also, please provide us a hotfix for testing when a couple of issues get fixed.

Thanks.

@asthac,

This issue was about the text overflow in the shape, the multi-line text was starting from the center and going out from the bottom boundary of the shape. It has been fixed in the new version 17.6. Please refer to the output VSDX and code: CodewithOutputVSDX.zip (80.3 KB). However, we can notice the text overflow problem when running your new scenario and it has been logged under the ticket ID DIAGRAMJAVA-50507.

We can replicate this behavior after calling the refreshData method of shape class. It has been reopened and we will let you once a significant progress has been made in this regard. We can notice the same behavior in your new scenario which has been logged under the ticket ID DIAGRAMJAVA-50508. It is about when we add a new shape in the drawing manually using Microsoft Visio and assign multi-line text, the text goes outside the boundary of shape and shape’s size is not being changed accordingly (Process type shape is an example). It is not the case with all shapes.

@imran.rafique
Unable to download the attachment.
Message says-
“Sorry, this file is private. Only visible to post creator and staff members.”

@asthac,
Please download the attachment from this link: CodewithOutputVSDX.zip

@asthac,

Thank you for being patient. The ticket IDs DIAGRAMJAVA-50508 and DIAGRAMJAVA-50491 have been resolved. If there is no issue in the quality assurance phase, then their fixes will be included in the next version 17.7 of Aspose.Diagram for Java API. We will notify you as soon as the new release is published.

Best Regards,
Imran Rafique

@asthac,
Thank you for being patient. In reference to the ticket IDs DIAGRAMJAVA-50491, DIAGRAMJAVA-50495, DIAGRAMJAVA-50496 and DIAGRAMJAVA-50508, please download and try the latest Hotfix version 17.6.1 of Aspose.Diagram for Java API (download link: Aspose.Diagram for Java 17.6.1) and let us know how that goes on your side.

Best Regards,
Imran Rafique

@imran.rafique
Thanks for the hotfix.

Below are the results-
All the above mentioned ticket ids (DIAGRAMJAVA-50491, DIAGRAMJAVA-50495, DIAGRAMJAVA-50496 and DIAGRAMJAVA-50508) are resolved in the hotfix.

However, one issue is visible in this hotfix - the text on decision shape is completely out of the shape.
Earlier the text on decision shape was vertical for which there is already an issue-
DIAGRAMJAVA-50498: Output VSDX - the vertical text display of shapes instead of the horizontal
Now instead of completely vertical text, the text is horizontal but it is out of the shape.
Please confirm if DIAGRAMJAVA-50498 is in the hotfix as well.

NOTE:
This issue may be related to DIAGRAMJAVA-50507 (copying text transform from stencil).
Please confirm.

PFA test case.

DecisionTextOutOfShape.zip (152.1 KB)

@asthac,
We managed to replicate the problem of displaced text. It has been logged under the ticket ID DIAGRAMJAVA-50515 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

It has been resolved and will be released in the next version 17.7 of Aspose.Diagram for Java API. However, it is not the part of Hotfix version 17.6.1.

Best Regards,
Imran Rafique

The issues you have found earlier (filed as DIAGRAMJAVA-50495) have been fixed in Aspose.Diagram for Java 17.7. This message was posted using BugNotificationTool from Downloads module by imran.rafique

The issues you have found earlier (filed as DIAGRAMJAVA-50496) have been fixed in Aspose.Diagram for Java 17.7. This message was posted using BugNotificationTool from Downloads module by imran.rafique

The issues you have found earlier (filed as DIAGRAMJAVA-50491) have been fixed in Aspose.Diagram for Java 17.7. This message was posted using BugNotificationTool from Downloads module by imran.rafique

The issues you have found earlier (filed as DIAGRAMJAVA-50498) have been fixed in Aspose.Diagram for Java 17.7. This message was posted using BugNotificationTool from Downloads module by imran.rafique