Class: Imagekitio::Models::OverlayPosition
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::OverlayPosition
- Defined in:
- lib/imagekitio/models/overlay_position.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#focus ⇒ Symbol, ...
Specifies the position of the overlay relative to the parent image or video.
-
#x ⇒ Float, ...
Specifies the x-coordinate of the top-left corner of the base asset where the overlay’s top-left corner will be positioned.
-
#y_ ⇒ Float, ...
Specifies the y-coordinate of the top-left corner of the base asset where the overlay’s top-left corner will be positioned.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(focus: nil, x: nil, y_: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see OverlayPosition for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(focus: nil, x: nil, y_: nil) ⇒ Object
Some parameter documentations has been truncated, see Imagekitio::Models::OverlayPosition for more details.
|
|
# File 'lib/imagekitio/models/overlay_position.rb', line 33
|
Instance Attribute Details
#focus ⇒ Symbol, ...
Specifies the position of the overlay relative to the parent image or video. Maps to ‘lfo` in the URL.
11 |
# File 'lib/imagekitio/models/overlay_position.rb', line 11 optional :focus, enum: -> { Imagekitio::OverlayPosition::Focus } |
#x ⇒ Float, ...
Specifies the x-coordinate of the top-left corner of the base asset where the overlay’s top-left corner will be positioned. It also accepts arithmetic expressions such as ‘bw_mul_0.4` or `bw_sub_cw`. Maps to `lx` in the URL. Learn about [Arithmetic expressions](imagekit.io/docs/arithmetic-expressions-in-transformations).
21 |
# File 'lib/imagekitio/models/overlay_position.rb', line 21 optional :x, union: -> { Imagekitio::OverlayPosition::X } |
#y_ ⇒ Float, ...
Specifies the y-coordinate of the top-left corner of the base asset where the overlay’s top-left corner will be positioned. It also accepts arithmetic expressions such as ‘bh_mul_0.4` or `bh_sub_ch`. Maps to `ly` in the URL. Learn about [Arithmetic expressions](imagekit.io/docs/arithmetic-expressions-in-transformations).
31 |
# File 'lib/imagekitio/models/overlay_position.rb', line 31 optional :y_, union: -> { Imagekitio::OverlayPosition::Y }, api_name: :y |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/imagekitio/models/overlay_position.rb', line 60
|
.variants ⇒ Array(Float, String)
|
|
# File 'lib/imagekitio/models/overlay_position.rb', line 78
|