Class: Ea::Model::DiagramElement

Inherits:
Base
  • Object
show all
Defined in:
lib/ea/model/diagram_element.rb

Overview

A single placed element on a diagram. References the model element it visualizes (by id), carries pixel bounds and a parsed style map (fill color, line color, font, etc.).

Carries two distinct bounds:

  • bounds — logical rect (EA's Left/Top/Right/Bottom)
  • image_bounds — visual rect including padding (EA's imgL/imgT/imgR/imgB); used by EA's SVG renderer for the actual <rect> width/height