if (attrs != null) {
      function attr(selection, attrs) {
        for (const [attr, value] of objectEntries(attrs)) {
          selection.attr(attr, value ?? null);
        }
      }
      attr(this.new, attrs);
      attr(
        this.update
          .transition('attrs')
          .duration(this.options.animationDurationMS),
        attrs,
      );
    }
(c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

@flow strict-local
@format
@oncall obviz