Sha256: a9ba2d426f30be534266c256383d436002780966727602b192e25885422f1f85
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
module Savage module Directions class VerticalTo < CoordinateTarget def command_code (absolute?) ? 'V' : 'v' end def transform(scale_x, skew_x, skew_y, scale_y, tx, ty) unless skew_x.zero? raise 'rotating or skewing (in X axis) an "vertical_to" direction is not supported yet.' end self.target *= scale_y self.target += ty if absolute? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
text2path-0.0.2 | lib/ext/savage/lib/savage/directions/vertical_to.rb |
text2path-0.0.1 | lib/ext/savage/lib/savage/directions/vertical_to.rb |