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

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: wtk-media
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: