Skip to content

Commit

Permalink
release 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Feb 18, 2020
1 parent 517e116 commit 4f11664
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
16 changes: 11 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# Changelog

## [v1.11.0] - perhaps February 2020
## [v1.11.0] - 2020 February 18

- changed compatibility versions in Project.toml (Colors/Cairo)

### Added

- add/subtract Point to BoundingBox
- `strokefunction` added to `brush()`
- error checking for `readpng()` #81
- add/subtract Point to BoundingBox to shift it by that amount
- `strokefunction` argument added to `brush()`
- error checking for `readpng()` #81 (thanks Avik!)

### Changed

- operation of @pdf/svg/png/eps macros should hopefully allow string interpolation in filenames, if my macro-fu has worked
- operation of @pdf/svg/png/eps macros should now hopefully allow string interpolation in filenames, if my macro-fu has worked. So this should work:

for i in 1:10
@png begin
circle(O, i, :fill)
end 300 300 "/tmp/circle-$(i).png"
end

- intersection2circles domain errors and negative output fixed (thanks casey & Júlio) 😊

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Luxor"
uuid = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc"
authors = ["cormullion <[email protected]>"]
version = "1.10.0"
version = "1.11.0"

[deps]
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175"
Expand Down
14 changes: 3 additions & 11 deletions src/drawings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,19 +292,11 @@ function preview()
end
return returnvalue
end
#
# function _add_ext(fname, ext)
# # TODO doesn't work if fname contains $(n) filename generator
# if match(Regex("[^\\\\]*\\.$(ext)"), fname) === nothing
# return join([fname, string(".", ext)])
# end
# return fname
# end

# for filename, the @pdf/png/svg macros may pass either

# for filenames, the @pdf/png/svg macros may pass either
# a string or an expression (with
# interpolation) which may or may not contain a valid
# extension
# extension ... yikes

function _add_ext(fname, ext)
if isa(fname, Expr)
Expand Down

0 comments on commit 4f11664

Please sign in to comment.