ObjectProfile / Roassal3Exporters

PDF Exporter for Roassal3
MIT License
8 stars 3 forks source link

The floor shouldn't hide elements of the visualization #12

Closed tinchodias closed 3 years ago

tinchodias commented 4 years ago

When a visualization has elements close enough to position y=0, the floor hides them.

I propose this solution: When the HTML is writtten, calculate the initial y position of the floor in with the min y position of all elements.

ThisIsAntonio commented 3 years ago

Update the code and now we can see the canvas up the floor.

image

image

visitCanvas: aRSCanvas
    | rec |
    scale := 0.006.
    rec := aRSCanvas encompassingRectangle.
    translation := (rec floatCenter negated * scale) + (0@rec height negated * scale).
    aRSCanvas shapes
        do: [ :shape | shape accept: self ]
        separatedBy: [ stream crlf ]
akevalion commented 3 years ago

Nice!