Class: Postsvg::Translation::Handlers::PathHandler::SmoothState

Inherits:
Struct
  • Object
show all
Defined in:
lib/postsvg/translation/handlers/path_handler.rb

Overview

Control-point reflection state for smooth curves. nil when the previous command wasn't a smooth-eligible curve.

Instance Attribute Summary collapse

Instance Attribute Details

#control_xObject

Returns the value of attribute control_x

Returns:

  • (Object)

    the current value of control_x



25
26
27
# File 'lib/postsvg/translation/handlers/path_handler.rb', line 25

def control_x
  @control_x
end

#control_yObject

Returns the value of attribute control_y

Returns:

  • (Object)

    the current value of control_y



25
26
27
# File 'lib/postsvg/translation/handlers/path_handler.rb', line 25

def control_y
  @control_y
end

#smoothableObject

Returns the value of attribute smoothable

Returns:

  • (Object)

    the current value of smoothable



25
26
27
# File 'lib/postsvg/translation/handlers/path_handler.rb', line 25

def smoothable
  @smoothable
end