Class: Google::Apis::SlidesV1::UpdatePageElementTransformRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::UpdatePageElementTransformRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb
Overview
Updates the transform of a page element.
Instance Attribute Summary collapse
-
#apply_mode ⇒ String
The apply mode of the transform update.
-
#object_id_prop ⇒ String
The object ID of the page element to update.
-
#transform ⇒ Google::Apis::SlidesV1::AffineTransform
AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ] to transform source coordinates (x,y) into destination coordinates (x', y') according to: x' x = shear_y scale_y translate_y 1 [ 1 ] After transformation, x' = scale_x * x + shear_x * y + translate_x; y' = scale_y * y + shear_y * x + translate_y; This message is therefore composed of these six matrix elements.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdatePageElementTransformRequest
constructor
A new instance of UpdatePageElementTransformRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdatePageElementTransformRequest
Returns a new instance of UpdatePageElementTransformRequest
481 482 483 |
# File 'generated/google/apis/slides_v1/classes.rb', line 481 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apply_mode ⇒ String
The apply mode of the transform update.
Corresponds to the JSON property applyMode
479 480 481 |
# File 'generated/google/apis/slides_v1/classes.rb', line 479 def apply_mode @apply_mode end |
#object_id_prop ⇒ String
The object ID of the page element to update.
Corresponds to the JSON property objectId
461 462 463 |
# File 'generated/google/apis/slides_v1/classes.rb', line 461 def object_id_prop @object_id_prop end |
#transform ⇒ Google::Apis::SlidesV1::AffineTransform
AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
to transform source coordinates (x,y) into destination coordinates (x', y')
according to:
x' x = shear_y scale_y translate_y
1 [ 1 ]
After transformation,
x' = scale_x * x + shear_x * y + translate_x;
y' = scale_y * y + shear_y * x + translate_y;
This message is therefore composed of these six matrix elements.
Corresponds to the JSON property transform
474 475 476 |
# File 'generated/google/apis/slides_v1/classes.rb', line 474 def transform @transform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
486 487 488 489 490 |
# File 'generated/google/apis/slides_v1/classes.rb', line 486 def update!(**args) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @transform = args[:transform] if args.key?(:transform) @apply_mode = args[:apply_mode] if args.key?(:apply_mode) end |