addShape method

UDocShape addShape(
  1. UDocShape shape
)

Adds a drawing shape.

Implementation

UDocShape addShape(UDocShape shape) {
  _checkpoint();
  _shapes.add(shape);
  _commit();
  return shape;
}