{"id":1092,"date":"2015-03-03T13:55:29","date_gmt":"2015-03-03T13:55:29","guid":{"rendered":"http:\/\/mindfusion.eu\/blog\/?p=1092"},"modified":"2021-01-15T15:30:57","modified_gmt":"2021-01-15T15:30:57","slug":"diagramming-for-javascript-v2-3","status":"publish","type":"post","link":"https:\/\/mindfusion.dev\/blog\/diagramming-for-javascript-v2-3\/","title":{"rendered":"Diagramming for JavaScript, V2.3"},"content":{"rendered":"<p>We are happy to share the newly added features to the latest version of MindFusion JavaScript diagramming library:<\/p>\n<p><strong>Styled text in nodes<\/strong><br \/>\nYou can use HTML-like formatting tags with the ShapeNode.EnableStyledText and apply various attributes to the node&#8217;s text. Currently JsDiagram supports:<\/p>\n<ul>\n<li>&lt;b&gt; specifies bold text<\/li>\n<li>&lt;i&gt; specifies italic text<\/li>\n<li>&lt;u&gt; specifies underlined text<\/li>\n<li>&lt;color=value&gt; specifies text color<\/li>\n<li>&lt;br \/&gt; specifies line break<\/li>\n<\/ul>\n<div id=\"attachment_1094\" style=\"width: 751px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/03\/javascript_diagram_styled_text.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1094\" class=\"size-full wp-image-1094\" src=\"http:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/03\/javascript_diagram_styled_text.png\" alt=\"Diagramming for JavaScript Library: Styled Text\" width=\"741\" height=\"469\" srcset=\"https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/03\/javascript_diagram_styled_text.png 741w, https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/03\/javascript_diagram_styled_text-300x190.png 300w, https:\/\/mindfusion.dev\/blog\/wp-content\/uploads\/2015\/03\/javascript_diagram_styled_text-474x300.png 474w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/a><p id=\"caption-attachment-1094\" class=\"wp-caption-text\">Diagramming for JavaScript Library: Styled Text<\/p><\/div>\n<p><strong>Text rendering improvements<\/strong><\/p>\n<ul>\n<li>We have greatly improved the general text rendering quality. The component now removes scale transformations applied for MeasureUnit and ZoomFactor before drawing text on the canvas, and instead specifies a scaled font size, which helps improve text appearance in Firefox and older versions of Chrome.<\/li>\n<li>You can draw the items&#8217; text underlined. To enable this, set the underline attribute of the Font class.<\/li>\n<li>You can specify Font styles via the Style instance by calling its setFontStyle() method with a combination of MindFusion.Drawing.FontStyle enumeration members (Bold, Italic, Underline).<\/li>\n<\/ul>\n<p><strong>Miscellaneous<\/strong><\/p>\n<ul>\n<li>You can draw items with dashed lines in browsers that support the setLineDash function. To enable this, set the StrokeDashStyle property of DiagramItem or Style to a member of the MindFusion.Drawing.DashStyle enumeration (Solid, Dash, Dot, DashDot, DashDotDot).<\/li>\n<li>TreeLayout supports organizational charts with assistant nodes as in Microsoft Office diagrams. To mark nodes as assistants, set node.getLayoutTraits().treeLayoutAssistant to a member of the MindFusion.Graphs.AssistantType enumeration (Normal, Left, Right). Set treeLayout.enableAssistants = true; to arrange assistant nodes in a separate branch between the main node levels.<\/li>\n<li>You can specify if separate connected components of a graph should be arranged horizontally or vertically relatively to each other by setting the multipleGraphsPlacement attribute of layout classes.<\/li>\n<li>The type of LinkLabel.Margin property has been changed from number to Thickness, letting you specify different margin sizes at each side of the label.<\/li>\n<\/ul>\n<p>You can download the trial version directly from the following link:<\/p>\n<p align=\"center\"><a href=\"https:\/\/mindfusion.dev\/JsDiagramTrial.zip\" target=\"_parent\" rel=\"noopener noreferrer\">Download Diagramming for JavaScript, V2.3 Trial Version<\/a><\/p>\n<p>We shall be glad to receive any comments, suggestions and feedback. You can write us at e-mail <a href=\"mailto:support@mindfusion.dev?subject=contact information from web site&amp;body=Please, remember to add mindfusion.dev to your email whitelist. We usually reply to all contact inquiries within 3 to 4 hours. In case you have not received an answer in 24 hours, the email most likely has been filtered by an anti-spam software running at your mail server. Thank you for the understanding!\" target=\"_parent\" rel=\"noopener noreferrer\">support@mindfusion.dev<\/a> or use the <a title=\"Help Desk\" href=\"http:\/\/www.mindfusion.dev\/HelpDesk\/index.php\" target=\"_parent\" rel=\"noopener noreferrer\">help desk.<\/a> You can use the JsDiagram section on <a href=\"http:\/\/mindfusion.dev\/Forum\/YaBB.pl?\nboard=jsdiag_disc\" target=\"_parent\" rel=\"noopener noreferrer\">MindFusion forum<\/a> to post questions about the tool.<\/p>\n<p><em>About Diagramming for JavaScript Library:<\/em> Written 100% in JavaScript, this tool uses HTML5 Canvas to draw impressive diagrams, schemes, flowcharts, trees and many more. It is browser independent, easy to use and integrate into any web application. JsDiagram supports a variety of predefined node shapes, customizable links, rich event set and many appearance options.<\/p>\n<p>The user interaction model includes resizing \/ moving \/ selecting and modifying any diagram element. The tool boasts an elegant API, which is documented in details as well numerous step-by-step guides and tutorials. Various samples are provided to let you learn quickly how to use the most important features of the library &#8211; check them <a href=\"http:\/\/mindfusion.dev\/onlinedemo-jsdiagram.html\">here.<\/a> JsDiagram is not only the perfect choice for creating any type of diagram in the browser &#8211; it can also arrange it the way you wish with a mouse click using one of its automatic graph layout algorithms. For more details about the features of the component, please visit the <a href=\"http:\/\/mindfusion.dev\/jsdiagram.html\">JsDiagram page.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to share the newly added features to the latest version of MindFusion JavaScript diagramming library: Styled text in nodes You can use HTML-like formatting tags with the ShapeNode.EnableStyledText and apply various attributes to the node&#8217;s text. Currently &hellip; <a href=\"https:\/\/mindfusion.dev\/blog\/diagramming-for-javascript-v2-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[95,2],"tags":[35,80,44,286,287],"class_list":["post-1092","post","type-post","status-publish","format-standard","hentry","category-diagramming-2","category-product-releases","tag-diagramming","tag-javascript","tag-library","tag-styled-text","tag-text-rendering"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3RlKs-hC","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts\/1092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/comments?post=1092"}],"version-history":[{"count":4,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts\/1092\/revisions"}],"predecessor-version":[{"id":2532,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/posts\/1092\/revisions\/2532"}],"wp:attachment":[{"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/media?parent=1092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/categories?post=1092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindfusion.dev\/blog\/wp-json\/wp\/v2\/tags?post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}