Skip to content

v13.31.0

Choose a tag to compare

@tomlyn tomlyn released this 01 Jul 22:03
a12eb69

Minor Release v13.31.0

Common Canvas

#2622 Disable the movement of nodes in the canvas

Nodes can now be prevented from being moved. This can be specified by setting the nodeMovable property of the enableNodeLayout field of the canvas config object to false. The application can specify that all nodes should not be movable like this:

    const config = {
        enableNodeLayout: {
            nodeMovable: false
        }
    };
     …
    render{
        return (<CommonCanvas … config={config} />);
    }

To prevent movement of nodes on a node-by-node basis, the application can return the nodeMovable setting from the layoutHandler, like this:

    layoutHandler(node) {
        if (node.id === “id81692345XW”) {
            return { nodeMovable: false };
        }

        return {};
    }

where “id81692345XW” is the ID of the node to be prevented from moving.

#2640 Animate zoom to fit

The canvasController.ZoomToFit function has been extended in this release to accept an optional parameter called animateTime. When the parameter is provided, the zoom operation will display an animation of the transition that takes the animateTime number of milliseconds.

    canvasController.zoomToFit(animateTime);

#2644 getZoomToReveal: calculate scale needed to fit specified nodes in screen

The canvasController.getZoomToReveal(objectIds, xPos, yPos) function behavior has changed slightly in this release. Now, if the objects specified in the objectIds array parameter, at the current scale amount, occupy a space that is bigger than the viewport, Common Canvas will return a zoom object that does the equivalent of a zoom to fit transition on those objects. That is it will move and scale them so they all appear within the viewport regardless of the xPos and yPos settings.

#2636 When comment is moved, move any nodes and comments positioned inside a comment

A prototype feature has been added in this release for assessment by designers. Please provide feedback if you have any thoughts about this feature. This feature is subject to change or removal.

If one or move nodes are positioned over a comment and the comment is moved, the nodes inside the comment will move with it. This feature could be useful for users of applications where comments are often used to highlight a grouping of nodes.

It can be activated by setting the enableMoveNodesInComment config property to true or in the harness by switching the "Enable Move Nodes In Comments" option in the Comments section of the Common Canvas right side flyout.

Jul-01-2025 14-46-19

Common Properties

#2632 Allow specifying a static width for structures in CommonProperties

Previously only a number was allowed as relative widths for each column within a table. Now you can specify a string of the exact pixel width the column should be, for example "40px".

Issues Resolved

  • #2618 Staring drag of right-flyout cuases very small reduction in pan… by @tomlyn in #2619
  • #2596 Slider track background does not reset on hide/unhide by @srikant-ch5 in #2597
  • #2605 Allow searchable oneofselect without treating typed input as selection by @veenas1 in #2606
  • #2585 Tearsheet- Pressing ESC closes the modal, but fails to reopen on clicking the btn again by @veenas1 in #2586
  • #2620 Refactor panels code for consistency by @tomlyn in #2621
  • Build failing with: error TS1205: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. by @mariyageorge01 in #2626
  • #2624 Double-clicking partially obscured node causes flash but no pro… by @tomlyn in #2625
  • #2622 Disable the movement of nodes in the canvas by @tomlyn in #2623
  • #2628 Fixed [WARNING]: Control not found for test-tabletoolbar: by @nmgokhale in #2629
  • #2630 Auto-create of node should not cause focus to move to canvas by @tomlyn in #2631
  • #2634 Dragging width of right flyout sluggish when left flyout under … by @tomlyn in #2635
  • #2600 Sub-panel should act as a modal dialog (keyboard accessibility)… by @Jerinjk14 in #2601
  • #2632 Allow specifying a static width for structures in common properties by @caritaou in #2633
  • #2638 Intermittent link display with displayLinkOnOverlap in canvas l… by @tomlyn in #2639
  • #2636 When comment is moved, move any nodes and comments positioned i… by @tomlyn in #2637
  • #2640 Animate zoom to fit by @tomlyn in #2641
  • #2646 Logging activation using keyboard no longer working by @tomlyn in #2647
  • #2644 getZoomToReveal: calculate scale needed to fit specified nodes … by @tomlyn in #2645

Full Changelog: v13.30.0...v13.31.0