frameOrigin property

bool frameOrigin

Returns true when the artboard will shift the origin from the top left to the relative width/height of the artboard itself. This is what the editor does visually when you change the origin value to give context as to where the origin lies within the framed bounds.

Implementation

bool get frameOrigin => _frameOrigin;
void frameOrigin=(bool value)

When composing multiple artboards together in a common world-space, it may be desireable to have them share the same space regardless of origin offset from the bounding artboard. Set frameOrigin to false to move the bounds relative to the origin instead of the origin relative to the bounds.

Implementation

set frameOrigin(bool value) {
  if (_frameOrigin == value) {
    return;
  }
  _frameOrigin = value;
  addDirt(ComponentDirt.paint);
}