Class: Google::Apis::SlidesV1::UpdatePageElementTransformRequest

Inherits:
Object
  • Object
show all
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. Updating the transform of a group will change the absolute transform of the page elements in that group, which can change their visual appearance. See the documentation for PageElement.transform for more details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdatePageElementTransformRequest

Returns a new instance of UpdatePageElementTransformRequest



4542
4543
4544
# File 'generated/google/apis/slides_v1/classes.rb', line 4542

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#apply_modeString

The apply mode of the transform update. Corresponds to the JSON property applyMode

Returns:

  • (String)


4522
4523
4524
# File 'generated/google/apis/slides_v1/classes.rb', line 4522

def apply_mode
  @apply_mode
end

#object_id_propString

The object ID of the page element to update. Corresponds to the JSON property objectId

Returns:

  • (String)


4527
4528
4529
# File 'generated/google/apis/slides_v1/classes.rb', line 4527

def object_id_prop
  @object_id_prop
end

#transformGoogle::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



4540
4541
4542
# File 'generated/google/apis/slides_v1/classes.rb', line 4540

def transform
  @transform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4547
4548
4549
4550
4551
# File 'generated/google/apis/slides_v1/classes.rb', line 4547

def update!(**args)
  @apply_mode = args[:apply_mode] if args.key?(:apply_mode)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @transform = args[:transform] if args.key?(:transform)
end