Class: Google::Apis::SlidesV1::PageElementProperties
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::PageElementProperties
- 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
Common properties for a page element. Note: When you initially create a
PageElement, the API may modify the values of both size
and transform
, but
the visual size will be unchanged.
Instance Attribute Summary collapse
-
#page_object_id ⇒ String
The object ID of the page where the element is located.
-
#size ⇒ Google::Apis::SlidesV1::Size
A width and height.
-
#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) ⇒ PageElementProperties
constructor
A new instance of PageElementProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PageElementProperties
Returns a new instance of PageElementProperties.
2162 2163 2164 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#page_object_id ⇒ String
The object ID of the page where the element is located.
Corresponds to the JSON property pageObjectId
2146 2147 2148 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2146 def page_object_id @page_object_id end |
#size ⇒ Google::Apis::SlidesV1::Size
A width and height.
Corresponds to the JSON property size
2151 2152 2153 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2151 def size @size 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
2160 2161 2162 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2160 def transform @transform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2167 2168 2169 2170 2171 |
# File 'generated/google/apis/slides_v1/classes.rb', line 2167 def update!(**args) @page_object_id = args[:page_object_id] if args.key?(:page_object_id) @size = args[:size] if args.key?(:size) @transform = args[:transform] if args.key?(:transform) end |