Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-296

Determine a Drawing's bounds from its Canvas rather than explicit width and height properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • wtk-media
    • None

    Description

      Currently, a Drawing's bounds must be explicitly specified. They should instead be inferred from the bounds of the drawing's canvas:

      drawing width = Math.max(canvas.x + canvas.width, 0);
      drawing height = Math.max(canvas.y + canvas.height, 0);

      This will allow us to eliminate the validation callback in Canvas, and will eliminate some potential confusion about the meaning of a drawing's size.

      Attachments

        Activity

          People

            gbrown Gregory K. Brown
            gbrown Gregory K. Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: