@flowgram.ai/renderer 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var DEFAULT_LINE_ATTRS = {
|
|
|
45
45
|
strokeLinecap: "round",
|
|
46
46
|
strokeLinejoin: "round"
|
|
47
47
|
};
|
|
48
|
-
var DEFAULT_RADIUS =
|
|
48
|
+
var DEFAULT_RADIUS = DEFAULT_SPACING[DefaultSpacingKey.ROUNDED_LINE_RADIUS];
|
|
49
49
|
var DEFAULT_LABEL_ACTIVATE_HEIGHT = 32;
|
|
50
50
|
function getHorizontalVertices(line, xRadius = 16, yRadius = 20) {
|
|
51
51
|
const { from, to, type } = line || {};
|
|
@@ -1240,6 +1240,7 @@ var CustomLine_default = CustomLine;
|
|
|
1240
1240
|
function createLines(props) {
|
|
1241
1241
|
const { data, rendererRegistry, linesSave, dragService } = props;
|
|
1242
1242
|
const { lines, entity } = data || {};
|
|
1243
|
+
const radius = getDefaultSpacing(entity, DefaultSpacingKey2.ROUNDED_LINE_RADIUS);
|
|
1243
1244
|
const xRadius = getDefaultSpacing(entity, DefaultSpacingKey2.ROUNDED_LINE_X_RADIUS);
|
|
1244
1245
|
const yRadius = getDefaultSpacing(entity, DefaultSpacingKey2.ROUNDED_LINE_Y_RADIUS);
|
|
1245
1246
|
const renderLine = (line, index) => {
|
|
@@ -1270,6 +1271,7 @@ function createLines(props) {
|
|
|
1270
1271
|
lineId: data.entity.id,
|
|
1271
1272
|
isHorizontal: !isVertical,
|
|
1272
1273
|
activated: lineActivated || draggingLineActivated,
|
|
1274
|
+
radius,
|
|
1273
1275
|
...line,
|
|
1274
1276
|
xRadius,
|
|
1275
1277
|
yRadius,
|
|
@@ -2802,7 +2804,9 @@ var FlowSelectorBoundsLayer = class extends Layer9 {
|
|
|
2802
2804
|
if (this.options.backgroundClassName) {
|
|
2803
2805
|
this.selectBoundsBackground.classList.add(this.options.backgroundClassName);
|
|
2804
2806
|
}
|
|
2805
|
-
const selectorBoundsLayer = domUtils8.createDivWithClass(
|
|
2807
|
+
const selectorBoundsLayer = domUtils8.createDivWithClass(
|
|
2808
|
+
"gedit-selector-bounds-background-layer gedit-playground-layer"
|
|
2809
|
+
);
|
|
2806
2810
|
selectorBoundsLayer.appendChild(this.selectBoundsBackground);
|
|
2807
2811
|
this.pipelineNode.insertBefore(selectorBoundsLayer, firstChild);
|
|
2808
2812
|
}
|