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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PageElementProperties
Returns a new instance of PageElementProperties
| 2204 2205 2206 | # File 'generated/google/apis/slides_v1/classes.rb', line 2204 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
| 2184 2185 2186 | # File 'generated/google/apis/slides_v1/classes.rb', line 2184 def page_object_id @page_object_id end | 
#size ⇒ Google::Apis::SlidesV1::Size
A width and height.
Corresponds to the JSON property size
| 2189 2190 2191 | # File 'generated/google/apis/slides_v1/classes.rb', line 2189 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
| 2202 2203 2204 | # File 'generated/google/apis/slides_v1/classes.rb', line 2202 def transform @transform end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2209 2210 2211 2212 2213 | # File 'generated/google/apis/slides_v1/classes.rb', line 2209 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 |