@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/index.js
CHANGED
|
@@ -95,7 +95,7 @@ var DEFAULT_LINE_ATTRS = {
|
|
|
95
95
|
strokeLinecap: "round",
|
|
96
96
|
strokeLinejoin: "round"
|
|
97
97
|
};
|
|
98
|
-
var DEFAULT_RADIUS =
|
|
98
|
+
var DEFAULT_RADIUS = import_document2.DEFAULT_SPACING[import_document2.DefaultSpacingKey.ROUNDED_LINE_RADIUS];
|
|
99
99
|
var DEFAULT_LABEL_ACTIVATE_HEIGHT = 32;
|
|
100
100
|
function getHorizontalVertices(line, xRadius = 16, yRadius = 20) {
|
|
101
101
|
const { from, to, type } = line || {};
|
|
@@ -1259,6 +1259,7 @@ var CustomLine_default = CustomLine;
|
|
|
1259
1259
|
function createLines(props) {
|
|
1260
1260
|
const { data, rendererRegistry, linesSave, dragService } = props;
|
|
1261
1261
|
const { lines, entity } = data || {};
|
|
1262
|
+
const radius = (0, import_document8.getDefaultSpacing)(entity, import_document7.DefaultSpacingKey.ROUNDED_LINE_RADIUS);
|
|
1262
1263
|
const xRadius = (0, import_document8.getDefaultSpacing)(entity, import_document7.DefaultSpacingKey.ROUNDED_LINE_X_RADIUS);
|
|
1263
1264
|
const yRadius = (0, import_document8.getDefaultSpacing)(entity, import_document7.DefaultSpacingKey.ROUNDED_LINE_Y_RADIUS);
|
|
1264
1265
|
const renderLine = (line, index) => {
|
|
@@ -1289,6 +1290,7 @@ function createLines(props) {
|
|
|
1289
1290
|
lineId: data.entity.id,
|
|
1290
1291
|
isHorizontal: !isVertical,
|
|
1291
1292
|
activated: lineActivated || draggingLineActivated,
|
|
1293
|
+
radius,
|
|
1292
1294
|
...line,
|
|
1293
1295
|
xRadius,
|
|
1294
1296
|
yRadius,
|
|
@@ -2762,7 +2764,9 @@ var FlowSelectorBoundsLayer = class extends import_core18.Layer {
|
|
|
2762
2764
|
if (this.options.backgroundClassName) {
|
|
2763
2765
|
this.selectBoundsBackground.classList.add(this.options.backgroundClassName);
|
|
2764
2766
|
}
|
|
2765
|
-
const selectorBoundsLayer = import_utils24.domUtils.createDivWithClass(
|
|
2767
|
+
const selectorBoundsLayer = import_utils24.domUtils.createDivWithClass(
|
|
2768
|
+
"gedit-selector-bounds-background-layer gedit-playground-layer"
|
|
2769
|
+
);
|
|
2766
2770
|
selectorBoundsLayer.appendChild(this.selectBoundsBackground);
|
|
2767
2771
|
this.pipelineNode.insertBefore(selectorBoundsLayer, firstChild);
|
|
2768
2772
|
}
|