release_12.33.0
Feature Enhancements
Common-Canvas
#1540 Improve SVG file load performance (This was actually added in release 12.32.2)
A new canvas config property called enableImageDisplay
has been added which allows the application to control the way in which images are retrieved for display on the canvas. In particular, it can be used to improve performance of the display of images when the browser cache is disabled and there are a large number of repeated images on the canvas.
Details here: https://github.com/elyra-ai/canvas/wiki/2.1-Config-Objects#enableimagedisplay
#1549 Provide field to differentiate different updateLink gestures
With detachable links enabled, that is, with the config field enableLinkSelection
set to "Detachable", the user can perform a number of different gestures with the link handles which are at the ends of the link. For each gesture, the editActionHandler
callback is called with the editType
property of the data
parameter (first parameter) set to ”updateLink”
. This however is not suffcient for the host application to detect what specific gesture the user performed on the link.
For the updateLink
action, a new field has been added to the data
parameter called editSubType
which will be set to one of the following strings:
"detachFromSrcNode"
The source end of the link was dragged from a node onto the canvas background.
"detachFromTrgNode"
The target end of the link was dragged from a node onto the canvas background.
"attachToSrcNode"
The source end of the link was dragged from the canvas background to a source node.
"attachToTrgNode"
The target end of the link was dragged from the canvas background to a target node.
"moveSrcPosition"
The source end of the link was dragged from one position on the canvas background to another.
"moveTrgPosition"
The target end of the link was dragged from one position on the canvas background to another.
"switchSrcNode"
The source end of the link was dragged from the source node to a different source node.
"switchTrgNode"
The target end of the link was dragged from the target node to a different target node
"switchSrcNodePort"
The source end of the link was dragged from a port on the source node to a different port on that node.
"switchTrgNodePort"
The target end of the link was dragged from a port on the target node to a different port on that node.
Note:
The link objects, referenced in the updateLink
action, can have a number of fields that are used to indicate the source end of the link’s source node or position. For the source end of the link these are:
srcPos - an object with two fields x_pos and y_pos.
or
srcNodeId - ID of the source node
srcNodePortId - ID of the source port
srcObj - the source object (either a node or comment)
If the srcPos
field exists, this indicates that the source end of the link is detached and is drawn from a point on the canvas background described by the x_pos
and y_pos
values. If the srcPos
field does not exist, then the other fields describe the source node (and optionally) source port that the link’s source end is attached to. If the source port ID is undefined, this indicates that the link is attached to the first input port of the source node.
The same rules apply for the target node and position except, of course, ‘src’ in the field names is ‘trg’.
The code has been tided up in this area so now, in the debugger, you should see either srcPos/trgPos OR the other fields to identify node and port info. Previously, both sets of fields were in the link even though some srcNodeId, srcNodePortId and srcObj are redundant when srcPos exists.
Also, previously, there was a duplication of fields in that links had srcNodePortId and srcPortId as well as trgNodePortId and trgPortId. This has also been tided up so that now only srcNodePortId and trgNodePortId are provided on the link.
Common-Properties
Just bug fixes
Issues Resolved
#1551 Disabled numberfield controls should not remain in error state (#1552)
#1549 Provide field to differentiate different updateLink gestures (#1550)
#1547 Set flexible table height in ‘px’ instead of ‘rem’ (#1548)
#1545 Set month in Datefield sub_panel, on_panel control (#1546)
#1543 Fixed properties editor crashes when using numberfield cell condition (#1544)