translated method

ResolvedTextStory translated(
  1. DiagramPoint delta, {
  2. int? revisionKey,
})

The same layout moved rigidly by delta, regions and clip included.

Implementation

ResolvedTextStory translated(DiagramPoint delta, {int? revisionKey}) =>
    ResolvedTextStory(
      storyId: storyId,
      revisionKey: revisionKey ?? this.revisionKey,
      clipBounds: clipBounds.translate(delta),
      lines: [
        for (final line in lines)
          line.translated(
            delta,
            regionBounds: line.regionBounds.translate(delta),
          ),
      ],
      contentHeight: contentHeight,
      overflowHeight: overflowHeight,
    );