3.0.0 (2021-04-15)
- Allow HTML collage ellements to have attributes (#42, thanks to @georgefst)
2.0.3 (2020-12-14)
Only doc changes (thanks to @indique)
2.0.2 (2019-06-07)
- Support opacity for all collage types (thanks to @brainrape)
- Delete dead code in examples (thanks to @vvv)
2.0.1 (2019-01-14)
- Typo in documentation (@robx)
- Use avh4/elm-color instead of [the-sett/elm-color], as it is intended to become the next standard.
- Add link to module documentation in README.
2.0.0 (2018-09-03)
Updated for Elm 0.19!
Note: because Elm 0.19 removed the possibility to use native calls, Elm Collage now reverted to a simplistic width calculation of rendered text. Any ideas to overcome this are welcome!
Collage.Layout.opposite
in favour ofCollage.Layout.facing
- The fields of
Collage.Layout.Distances
are renamed to avoid name clashes with anchors defined in the same module:up
=>toTop
down
=>toBottom
left
=>toLeft
right
=>toRight
1.6.0 (2018-02-04)
- You can now shift a collage in the x- or y- direction only by using
shiftX
orshiftY
(thanks to @nikita-volkov) - You can pass explicit SVG attributes when rendering a collage by using
Collage.Render.svgExplicit
(thanks to @nikita-volkov)
1.5.0 (2017-10-23)
- Now you can name parts of your collage and refer to them later!
- This is very experimental!
- Use
name
to name a collage - Use
locate
to locate a point in a named part of a collage - Use
connect
to connect points in named parts of a collage - Use
names
to query all used names in a collage
- Anchors now calculate a point relative to the internal origin of a given collage (this used to be the negated point)
- Some internal renames and algorithms to fold collage trees
- Simplify the Svg renderer
1.4.0 (2017-10-19)
- Separate scaling in X and Y directions with
scaleX
andscaleY
thanks to @danfishgold!
- Refactored workflow example to reuse more code
- Fixed a bug with Svg rendering where paths automatically get filled with a uniform black color. Paths default to have a transparent fill again!
- Fixed some documentation and extra notes
1.3.1 (2017-10-12)
Collage.opposite
is no subject for depreciation, although the documentation said so
1.3.0 (2017-10-12)
- Create rectangles with rounded corners
- Internal changes:
- Use circles, technically not needed, but eases calculation of envelopes wrt using ellipses
- Simplify the renderer
- Speed up by using
(::)
instead of(++)
- Use builtin
foldl
instead of custom build function - Remove unused code for gradients and patterns (like id tracking)
- Use Svg's x and y attributes when generating Html tag instead of transformations
- Speed up by using
- Bug that caused miter line caps to render wrong
- Bug that forgot to take collage attributes into account for impositions
1.2.0 (2017-10-11)
- Collage.Layout
- A
facing
function to calculate the facing direction. Will replaceopposite
in the next major version to avoid name clash withCollage.opposite
- A
- Flowchart example
- Shows modular creation of collages
- Uses width and height calculations of subelements
- Table of contents to each exported module
- Collage.Layout
opposite
(in favour offacing
)
- Correct layout rules for line thickness of shapes
- Keep track of line thickness and correct for it when calculating the envelopes of shapes
- Idem for paths, but only if the line cap is not flat
- Rotation of triangle in axis example
- Description of arguments of dotted styles
- Rendering of origin and envelope for debugging
1.1.0 (2017-10-11)
- Collage.Layout
- Way to calculate all four envelope distances at once using
distances
- Result is a
Distances
record with up, down, right, and left fields debug
function which shows the envelope and the origin
- Way to calculate all four envelope distances at once using
- Html example
- More documentation
- Direction of rotation, all rotations are now counter clockwise
- New algorithm to calculate envelopes using distances
- Fix bug that handled ellipses incorrectly
- Fix bug that handled groups incorrectly
- Small optimisation in envelope calculation
1.0.2 (2017-10-10)
- More documentation
1.0.1 (2017-10-10)
- More documentation
Initial release!