@flowgram.ai/document 0.1.0-alpha.21 → 0.1.0-alpha.23
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 +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -699,8 +699,9 @@ var drawLineToNext = (transition) => {
|
|
|
699
699
|
var drawLineToBottom = (transition) => {
|
|
700
700
|
const { transform } = transition;
|
|
701
701
|
const currentOutput = transform.outputPoint;
|
|
702
|
+
const isParentRoot = transform.parent?.entity.flowNodeType === "root" /* ROOT */;
|
|
702
703
|
const parentOutput = transform.parent?.outputPoint;
|
|
703
|
-
if (!transform.next && parentOutput && !new Point().copyFrom(currentOutput).equals(parentOutput) && !transition.isNodeEnd) {
|
|
704
|
+
if (!isParentRoot && !transform.next && parentOutput && !new Point().copyFrom(currentOutput).equals(parentOutput) && !transition.isNodeEnd) {
|
|
704
705
|
return [
|
|
705
706
|
{
|
|
706
707
|
type: 0 /* STRAIGHT_LINE */,
|