@flowgram.ai/document 0.1.0-alpha.22 → 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/index.js CHANGED
@@ -758,8 +758,9 @@ var drawLineToNext = (transition) => {
758
758
  var drawLineToBottom = (transition) => {
759
759
  const { transform } = transition;
760
760
  const currentOutput = transform.outputPoint;
761
+ const isParentRoot = transform.parent?.entity.flowNodeType === "root" /* ROOT */;
761
762
  const parentOutput = transform.parent?.outputPoint;
762
- if (!transform.next && parentOutput && !new import_utils3.Point().copyFrom(currentOutput).equals(parentOutput) && !transition.isNodeEnd) {
763
+ if (!isParentRoot && !transform.next && parentOutput && !new import_utils3.Point().copyFrom(currentOutput).equals(parentOutput) && !transition.isNodeEnd) {
763
764
  return [
764
765
  {
765
766
  type: 0 /* STRAIGHT_LINE */,