Revert "move operation definitions for pct to PlotMeasures module"

This reverts commit 8e85bdb32f20e1c7e0d508e04e9442caa92bfc8a.
This commit is contained in:
Daniel Schwabeneder 2020-09-27 22:47:25 +02:00
parent 721b4b1312
commit 63d9363505

View File

@ -154,12 +154,6 @@ const BBox = Measures.Absolute2DBox
# allow pixels and percentages # allow pixels and percentages
const px = AbsoluteLength(0.254) const px = AbsoluteLength(0.254)
const pct = Length{:pct, Float64}(1.0) const pct = Length{:pct, Float64}(1.0)
Base.:*(m1::AbsoluteLength, m2::Length{:pct}) = AbsoluteLength(m1.value * m2.value)
Base.:*(m1::Length{:pct}, m2::AbsoluteLength) = AbsoluteLength(m2.value * m1.value)
Base.:/(m1::AbsoluteLength, m2::Length{:pct}) = AbsoluteLength(m1.value / m2.value)
Base.:/(m1::Length{:pct}, m2::AbsoluteLength) = AbsoluteLength(m2.value / m1.value)
export BBox, BoundingBox, mm, cm, inch, px, pct, pt, w, h export BBox, BoundingBox, mm, cm, inch, px, pct, pt, w, h
end end