sketchup-api-stubs 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. checksums.yaml +5 -5
  2. data/.yardopts +7 -7
  3. data/SketchUp/Geom/BoundingBox.rb +7 -15
  4. data/SketchUp/Geom/Bounds2d.rb +18 -18
  5. data/SketchUp/Geom/LatLong.rb +6 -6
  6. data/SketchUp/Geom/OrientedBounds2d.rb +1 -1
  7. data/SketchUp/Geom/Point2d.rb +42 -6
  8. data/SketchUp/Geom/Point3d.rb +32 -21
  9. data/SketchUp/Geom/PolygonMesh.rb +22 -17
  10. data/SketchUp/Geom/Transformation.rb +35 -35
  11. data/SketchUp/Geom/Transformation2d.rb +153 -13
  12. data/SketchUp/Geom/UTM.rb +1 -1
  13. data/SketchUp/Geom/Vector2d.rb +45 -9
  14. data/SketchUp/Geom/Vector3d.rb +11 -11
  15. data/SketchUp/Layout.rb +1 -1
  16. data/SketchUp/Layout/AngularDimension.rb +25 -25
  17. data/SketchUp/Layout/AutoTextDefinition.rb +5 -5
  18. data/SketchUp/Layout/AutoTextDefinitions.rb +1 -1
  19. data/SketchUp/Layout/ConnectionPoint.rb +1 -1
  20. data/SketchUp/Layout/Document.rb +6 -5
  21. data/SketchUp/Layout/Ellipse.rb +1 -1
  22. data/SketchUp/Layout/Entities.rb +1 -1
  23. data/SketchUp/Layout/Entity.rb +16 -16
  24. data/SketchUp/Layout/FormattedText.rb +21 -21
  25. data/SketchUp/Layout/Grid.rb +1 -1
  26. data/SketchUp/Layout/Group.rb +18 -18
  27. data/SketchUp/Layout/Image.rb +6 -6
  28. data/SketchUp/Layout/Label.rb +15 -15
  29. data/SketchUp/Layout/Layer.rb +5 -5
  30. data/SketchUp/Layout/LayerInstance.rb +3 -3
  31. data/SketchUp/Layout/Layers.rb +1 -1
  32. data/SketchUp/Layout/LinearDimension.rb +25 -25
  33. data/SketchUp/Layout/LockedEntityError.rb +1 -1
  34. data/SketchUp/Layout/LockedLayerError.rb +1 -1
  35. data/SketchUp/Layout/Page.rb +3 -3
  36. data/SketchUp/Layout/PageInfo.rb +1 -1
  37. data/SketchUp/Layout/Pages.rb +1 -1
  38. data/SketchUp/Layout/Path.rb +47 -27
  39. data/SketchUp/Layout/Rectangle.rb +8 -8
  40. data/SketchUp/Layout/SketchUpModel.rb +61 -26
  41. data/SketchUp/Layout/Style.rb +18 -17
  42. data/SketchUp/Layout/Table.rb +14 -14
  43. data/SketchUp/Layout/TableCell.rb +5 -5
  44. data/SketchUp/Layout/TableColumn.rb +7 -7
  45. data/SketchUp/Layout/TableRow.rb +7 -7
  46. data/SketchUp/Sketchup/Animation.rb +1 -1
  47. data/SketchUp/Sketchup/AppObserver.rb +1 -1
  48. data/SketchUp/Sketchup/ArcCurve.rb +1 -1
  49. data/SketchUp/Sketchup/AttributeDictionaries.rb +1 -1
  50. data/SketchUp/Sketchup/AttributeDictionary.rb +7 -7
  51. data/SketchUp/Sketchup/Axes.rb +4 -4
  52. data/SketchUp/Sketchup/Behavior.rb +1 -1
  53. data/SketchUp/Sketchup/Camera.rb +30 -41
  54. data/SketchUp/Sketchup/ClassificationSchema.rb +1 -1
  55. data/SketchUp/Sketchup/Classifications.rb +1 -1
  56. data/SketchUp/Sketchup/Color.rb +1 -1
  57. data/SketchUp/Sketchup/ComponentDefinition.rb +3 -3
  58. data/SketchUp/Sketchup/ComponentInstance.rb +10 -10
  59. data/SketchUp/Sketchup/Console.rb +5 -5
  60. data/SketchUp/Sketchup/ConstructionLine.rb +11 -11
  61. data/SketchUp/Sketchup/ConstructionPoint.rb +1 -1
  62. data/SketchUp/Sketchup/Curve.rb +1 -1
  63. data/SketchUp/Sketchup/DefinitionList.rb +12 -9
  64. data/SketchUp/Sketchup/DefinitionObserver.rb +6 -7
  65. data/SketchUp/Sketchup/DefinitionsObserver.rb +3 -3
  66. data/SketchUp/Sketchup/Dimension.rb +1 -1
  67. data/SketchUp/Sketchup/DimensionLinear.rb +81 -1
  68. data/SketchUp/Sketchup/DimensionObserver.rb +1 -1
  69. data/SketchUp/Sketchup/DimensionRadial.rb +1 -1
  70. data/SketchUp/Sketchup/Drawingelement.rb +1 -1
  71. data/SketchUp/Sketchup/Edge.rb +13 -16
  72. data/SketchUp/Sketchup/EdgeUse.rb +1 -1
  73. data/SketchUp/Sketchup/Entities.rb +181 -100
  74. data/SketchUp/Sketchup/EntitiesObserver.rb +1 -1
  75. data/SketchUp/Sketchup/Entity.rb +29 -26
  76. data/SketchUp/Sketchup/EntityObserver.rb +1 -1
  77. data/SketchUp/Sketchup/ExtensionsManager.rb +1 -1
  78. data/SketchUp/Sketchup/Face.rb +7 -7
  79. data/SketchUp/Sketchup/FrameChangeObserver.rb +4 -4
  80. data/SketchUp/Sketchup/Group.rb +1 -1
  81. data/SketchUp/Sketchup/Http.rb +1 -1
  82. data/SketchUp/Sketchup/Http/Request.rb +3 -3
  83. data/SketchUp/Sketchup/Http/Response.rb +1 -1
  84. data/SketchUp/Sketchup/Image.rb +1 -1
  85. data/SketchUp/Sketchup/ImageRep.rb +16 -16
  86. data/SketchUp/Sketchup/Importer.rb +1 -1
  87. data/SketchUp/Sketchup/InputPoint.rb +8 -4
  88. data/SketchUp/Sketchup/InstanceObserver.rb +1 -1
  89. data/SketchUp/Sketchup/InstancePath.rb +15 -12
  90. data/SketchUp/Sketchup/Layer.rb +27 -1
  91. data/SketchUp/Sketchup/Layers.rb +1 -1
  92. data/SketchUp/Sketchup/LayersObserver.rb +1 -1
  93. data/SketchUp/Sketchup/Licensing.rb +1 -1
  94. data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +1 -1
  95. data/SketchUp/Sketchup/LineStyle.rb +24 -0
  96. data/SketchUp/Sketchup/LineStyles.rb +123 -0
  97. data/SketchUp/Sketchup/Loop.rb +1 -1
  98. data/SketchUp/Sketchup/Material.rb +16 -10
  99. data/SketchUp/Sketchup/Materials.rb +9 -1
  100. data/SketchUp/Sketchup/MaterialsObserver.rb +3 -3
  101. data/SketchUp/Sketchup/Menu.rb +1 -1
  102. data/SketchUp/Sketchup/Model.rb +47 -21
  103. data/SketchUp/Sketchup/ModelObserver.rb +3 -3
  104. data/SketchUp/Sketchup/OptionsManager.rb +1 -1
  105. data/SketchUp/Sketchup/OptionsProvider.rb +5 -5
  106. data/SketchUp/Sketchup/OptionsProviderObserver.rb +1 -1
  107. data/SketchUp/Sketchup/Page.rb +1 -1
  108. data/SketchUp/Sketchup/Pages.rb +13 -8
  109. data/SketchUp/Sketchup/PagesObserver.rb +1 -1
  110. data/SketchUp/Sketchup/PickHelper.rb +49 -50
  111. data/SketchUp/Sketchup/RegionalSettings.rb +1 -1
  112. data/SketchUp/Sketchup/RenderingOptions.rb +4 -4
  113. data/SketchUp/Sketchup/RenderingOptionsObserver.rb +3 -3
  114. data/SketchUp/Sketchup/SectionPlane.rb +1 -1
  115. data/SketchUp/Sketchup/Selection.rb +3 -3
  116. data/SketchUp/Sketchup/SelectionObserver.rb +3 -3
  117. data/SketchUp/Sketchup/Set.rb +1 -1
  118. data/SketchUp/Sketchup/ShadowInfo.rb +3 -3
  119. data/SketchUp/Sketchup/ShadowInfoObserver.rb +1 -1
  120. data/SketchUp/Sketchup/Style.rb +1 -1
  121. data/SketchUp/Sketchup/Styles.rb +1 -1
  122. data/SketchUp/Sketchup/Text.rb +28 -1
  123. data/SketchUp/Sketchup/Texture.rb +1 -1
  124. data/SketchUp/Sketchup/TextureWriter.rb +13 -13
  125. data/SketchUp/Sketchup/Tool.rb +68 -64
  126. data/SketchUp/Sketchup/Tools.rb +13 -1
  127. data/SketchUp/Sketchup/ToolsObserver.rb +13 -13
  128. data/SketchUp/Sketchup/UVHelper.rb +1 -1
  129. data/SketchUp/Sketchup/Vertex.rb +1 -1
  130. data/SketchUp/Sketchup/View.rb +57 -56
  131. data/SketchUp/Sketchup/ViewObserver.rb +2 -2
  132. data/SketchUp/UI/Command.rb +4 -1
  133. data/SketchUp/UI/HtmlDialog.rb +23 -14
  134. data/SketchUp/UI/Notification.rb +10 -10
  135. data/SketchUp/UI/Toolbar.rb +1 -1
  136. data/SketchUp/UI/WebDialog.rb +38 -20
  137. data/SketchUp/_top_level.rb +32 -34
  138. data/SketchUp/array.rb +125 -112
  139. data/SketchUp/geom.rb +2 -2
  140. data/SketchUp/languagehandler.rb +1 -1
  141. data/SketchUp/length.rb +1 -1
  142. data/SketchUp/numeric.rb +3 -3
  143. data/SketchUp/sketchup.rb +11 -11
  144. data/SketchUp/sketchupextension.rb +6 -2
  145. data/SketchUp/string.rb +1 -1
  146. data/SketchUp/ui.rb +14 -14
  147. data/autoload/sketchup.rb +2 -0
  148. metadata +5 -3
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This is the base class for all SketchUp entities. Entities are basically
@@ -121,17 +121,12 @@ class Sketchup::Entity
121
121
  def attribute_dictionary(name, create)
122
122
  end
123
123
 
124
- # The delete_attribute method is used to delete an attribute from an entity.
124
+ # The {#delete_attribute} method is used to delete an attribute from an entity.
125
125
  #
126
126
  # If only the dictionary_name is given, then it deletes the entire
127
- # AttributeDictionary. Otherwise, delete_attribute deletes the attribute with
127
+ # AttributeDictionary. Otherwise, {#delete_attribute} deletes the attribute with
128
128
  # the given key from the given dictionary.
129
129
  #
130
- # In SketchUp 2018, special attribute dictionaries have been added. The name
131
- # of these dictionaries are "SU_InstanceSet" and "SU_DefinitionSet". The
132
- # dictionaries cannot be deleted via ruby and an ArgumentError will be raised.
133
- # The key/value pairs in the dictionary can be deleted safely.
134
- #
135
130
  # @example
136
131
  # depth = 100
137
132
  # width = 100
@@ -151,16 +146,23 @@ class Sketchup::Entity
151
146
  # status = entity1.set_attribute "testdictionary", "test", 115
152
147
  # status = entity1.delete_attribute "testdictionary"
153
148
  #
149
+ # @note In SketchUp 2018, special attribute dictionaries have been added.
150
+ # The name of these dictionaries are "SU_InstanceSet" and "SU_DefinitionSet".
151
+ # The dictionaries cannot be deleted via ruby and an ArgumentError will be
152
+ # raised. The key/value pairs in the dictionary can be deleted safely.
153
+ #
154
+ # @note The return values are fixed in SketchUp 2019 M0.
155
+ #
154
156
  # @overload delete_attribute(dictionary_name)
155
157
  #
156
158
  # @param dictionary_name [String] The name of an attribute dictionary.
157
- # @return [nil]
159
+ # @return [Boolean]
158
160
  #
159
161
  # @overload delete_attribute(dictionary_name, key)
160
162
  #
161
163
  # @param dictionary_name [String] The name of an attribute dictionary.
162
164
  # @param key [String] An attribute key.
163
- # @return [nil]
165
+ # @return [Boolean]
164
166
  #
165
167
  # @version SketchUp 6.0
166
168
  def delete_attribute(*args)
@@ -241,12 +243,12 @@ class Sketchup::Entity
241
243
  # @param [String] dict_name
242
244
  # The name of an attribute dictionary.
243
245
  #
244
- # @param [Object] default_value
245
- # A default value to return if no attribute is found.
246
- #
247
246
  # @param [String] key
248
247
  # An attribute key.
249
248
  #
249
+ # @param [Object] default_value
250
+ # A default value to return if no attribute is found.
251
+ #
250
252
  # @return [Object] the retrieved value
251
253
  #
252
254
  # @version SketchUp 6.0
@@ -344,14 +346,9 @@ class Sketchup::Entity
344
346
  #
345
347
  # The persistent id persistent between sessions.
346
348
  #
347
- # Note that only a subset of entity types support PIDs. Refer to the table
348
- # below for which and when support was added.
349
- #
350
349
  # [SketchUp 2018]
351
350
  # - {Sketchup::Page}
352
351
  # [SketchUp 2017]
353
- # - {Sketchup::Axes}
354
- # - {Sketchup::ComponentDefinition}
355
352
  # - {Sketchup::ComponentInstance}
356
353
  # - {Sketchup::ConstructionLine}
357
354
  # - {Sketchup::ConstructionPoint}
@@ -359,21 +356,23 @@ class Sketchup::Entity
359
356
  # - {Sketchup::Dimension}
360
357
  # - {Sketchup::Edge}
361
358
  # - {Sketchup::Face}
359
+ # - {Sketchup::Group}
360
+ # - {Sketchup::Image}
362
361
  # - {Sketchup::SectionPlane}
363
362
  # - {Sketchup::Text}
364
363
  # - {Sketchup::Vertex}
365
364
  # - Polyline3d entities exposed only as {Sketchup::Drawingelement} Use
366
365
  # {#typename} to determine if a {Sketchup::Drawingelement} is
367
- # a <tt>"Polyline3d"</tt>.
366
+ # a +"Polyline3d"+.
368
367
  #
369
368
  # @example
370
369
  # model = Sketchup.active_model
371
370
  # entities = model.active_entities
372
371
  # pts = [
373
- # Geom::Point3d.new(0, 0, 0)
374
- # Geom::Point3d.new(9, 0, 0)
375
- # Geom::Point3d.new(9, 9, 0)
376
- # Geom::Point3d.new(0, 9, 0)
372
+ # Geom::Point3d.new(0, 0, 0),
373
+ # Geom::Point3d.new(9, 0, 0),
374
+ # Geom::Point3d.new(9, 9, 0),
375
+ # Geom::Point3d.new(0, 9, 0),
377
376
  # ]
378
377
  #
379
378
  # # Add the face to the entities in the model
@@ -383,6 +382,10 @@ class Sketchup::Entity
383
382
  # # Exploding the group will preserve the pid.
384
383
  # pid == face.persistent_id # Should return true
385
384
  #
385
+ # @note Only a subset of entity types support PIDs. Refer to the table
386
+ # below for which and when support was added. In general it is entities that
387
+ # you can iterate over in a {Sketchup::Entities} collection.
388
+ #
386
389
  # @return [Integer] the id for the {Sketchup::Entity} object
387
390
  #
388
391
  # @version SketchUp 2017
@@ -438,12 +441,12 @@ class Sketchup::Entity
438
441
  # @param [String] dict_name
439
442
  # The name of an attribute dictionary.
440
443
  #
441
- # @param [Object] value
442
- # The value for the attribute.
443
- #
444
444
  # @param [String] key
445
445
  # An attribute key.
446
446
  #
447
+ # @param [Object] value
448
+ # The value for the attribute.
449
+ #
447
450
  # @return [Object] the newly set value if successful
448
451
  #
449
452
  # @version SketchUp 6.0
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to entity events. To
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The ExtensionsManager class provides a way of accessing the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Faces in SketchUp are flat, 2-sided polygons with 3 or more sides.
@@ -281,13 +281,13 @@ class Sketchup::Face < Sketchup::Drawingelement
281
281
  # True if you want the texture coordinates for the front
282
282
  # face, false if not. Defaults to true.
283
283
  #
284
- # @param [Sketchup::TextureWriter] texturewriter
285
- # An optional TextureWriter object.
286
- #
287
284
  # @param [Boolean] back
288
285
  # True if you want the texture coordinates for the back
289
286
  # face, false if not. Defaults to true.
290
287
  #
288
+ # @param [Sketchup::TextureWriter] texturewriter
289
+ # An optional TextureWriter object.
290
+ #
291
291
  # @return [Sketchup::UVHelper] a UVHelper object
292
292
  #
293
293
  # @version SketchUp 6.0
@@ -596,13 +596,13 @@ class Sketchup::Face < Sketchup::Drawingelement
596
596
  # @param [Sketchup::Material] material
597
597
  # a Material object.
598
598
  #
599
+ # @param [Array<Geom::Point3d>] pt_array
600
+ # An array of Point3d objects used to position the material.
601
+ #
599
602
  # @param [Boolean] o_front
600
603
  # true to position the texture on the front of the Face or
601
604
  # false to position it on the back of the Face.
602
605
  #
603
- # @param [Array<Geom::Point3d>] pt_array
604
- # An array of Point3d objects used to position the material.
605
- #
606
606
  # @return [Sketchup::Face, false] the face upon success, false upon failure.
607
607
  #
608
608
  # @version SketchUp 6.0
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to changes in camera
@@ -86,12 +86,12 @@ class Sketchup::FrameChangeObserver
86
86
  # the +to_scene+ and then use that on a subsequent Scene selection to
87
87
  # determine the last Page that the user was on.
88
88
  #
89
- # @param [Sketchup::Page] to_scene
90
- # The selected scene page the view is transitioning towards.
91
- #
92
89
  # @param [Sketchup::Page, nil] from_scene
93
90
  # The previous scene page the view is transitioning from.
94
91
  #
92
+ # @param [Sketchup::Page] to_scene
93
+ # The selected scene page the view is transitioning towards.
94
+ #
95
95
  # @param [Float] percent_done
96
96
  # The percentage of transition between the two scene pages.
97
97
  #
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # A Group class contains methods for manipulating groups of entities.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The {Sketchup::Http} module provides interfaces to create asynchronous HTTP
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Http::Request objects allows you to send HTTP request to HTTP servers.
@@ -240,8 +240,8 @@ class Sketchup::Http::Request
240
240
  #
241
241
  # @yield A block that is invoked when the request has finished.
242
242
  #
243
- # @yieldparam [FileUploadRequest] request
244
- # The FileUploadRequest object.
243
+ # @yieldparam [Request] request
244
+ # The request object.
245
245
  #
246
246
  # @yieldparam [Response] response
247
247
  # The response object, use this to read the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Http::Response objects allows you to get the response information from the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # An Image object represents a raster image placed in the Model.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # References an image representation object.
@@ -30,6 +30,9 @@ class Sketchup::ImageRep
30
30
  # image_rep.load_file("/path/to/image.jpg")
31
31
  # color = image_rep.color_at_uv(0.7, 0.5, false)
32
32
  #
33
+ # @param [Float] u
34
+ # The U texture coordinate.
35
+ #
33
36
  # @param [Float] v
34
37
  # The V texture coordinate.
35
38
  #
@@ -38,9 +41,6 @@ class Sketchup::ImageRep
38
41
  # interpolates the colors instead of picking
39
42
  # the nearest neighbor.
40
43
  #
41
- # @param [Float] u
42
- # The U texture coordinate.
43
- #
44
44
  # @return [Sketchup::Color, nil]
45
45
  #
46
46
  # @version SketchUp 2018
@@ -97,12 +97,12 @@ class Sketchup::ImageRep
97
97
  # @example Construct from file
98
98
  # image_rep = Sketchup::ImageRep.new("/path/to/image.jpg")
99
99
  #
100
- # @overload initialize(filepath)
100
+ # @overload initialize
101
101
  #
102
- # @param [String] filepath
103
102
  #
104
- # @overload initialize
103
+ # @overload initialize(filepath)
105
104
  #
105
+ # @param [String] filepath
106
106
  #
107
107
  # @raise [ArgumentError] if the file path or image is invalid.
108
108
  #
@@ -165,32 +165,32 @@ class Sketchup::ImageRep
165
165
  # @note The encoding of the pixel_data {String} parameter should be ASCII-8BIT.
166
166
  # Any other encoding could corrupt the binary data.
167
167
  #
168
+ # @param [Integer] width
169
+ # The width of the pixel data. Must be greater than 0.
170
+ #
168
171
  # @param [Integer] height
169
172
  # The height of the pixel data.
170
173
  # Must be greater than 0.
171
174
  #
172
- # @param [Integer] width
173
- # The width of the pixel data. Must be greater than 0.
175
+ # @param [Integer] bits_per_pixel
176
+ # The bits per pixel for the pixel data.
177
+ # Must be either 8/24/32.
174
178
  #
175
179
  # @param [Integer] row_padding
176
180
  # The row padding for the pixel data which is
177
181
  # sized in bytes. Row padding is used to pad each row with zeros so that each
178
182
  # scanline on the pixel data will end on the data-type boundry.
179
183
  #
180
- # @param [Integer] bits_per_pixel
181
- # The bits per pixel for the pixel data.
182
- # Must be either 8/24/32.
183
- #
184
184
  # @param [String] pixel_data
185
185
  # The binary string containing the pixel data
186
186
  # representing the new image.
187
187
  #
188
- # @raise [TypeError] If width, height, bits_per_pixel or pixel_data are wrong
189
- # data types.
190
- #
191
188
  # @raise [ArgumentError] If width, height, bits_per_pixel or pixel_data are
192
189
  # invalid.
193
190
  #
191
+ # @raise [TypeError] If width, height, bits_per_pixel or pixel_data are wrong
192
+ # data types.
193
+ #
194
194
  # @return [Sketchup::ImageRep]
195
195
  #
196
196
  # @version SketchUp 2018
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Importer interface lets you build your own importers for SketchUp. To
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The InputPoint used to pick entities that reside under the current cursor
@@ -218,6 +218,10 @@ class Sketchup::InputPoint
218
218
  # starting_point = Geom::Point3d.new(100, 200, 300)
219
219
  # ip2 = Sketchup::InputPoint.new(starting_point)
220
220
  #
221
+ # @note Prior to SketchUp 2019 it was not possible to
222
+ # sub-class {Sketchup::InputPoint} due to a bug in how SketchUp initialized
223
+ # the class.
224
+ #
221
225
  # @param pt_or_vertex
222
226
  # An optional Point3d or Vertex where the new InputPoint
223
227
  # should be created.
@@ -276,13 +280,13 @@ class Sketchup::InputPoint
276
280
  # @param x
277
281
  # A x value.
278
282
  #
283
+ # @param y
284
+ # A y value.
285
+ #
279
286
  # @param [optional] inputpoint
280
287
  # A second input point used as a reference
281
288
  # for the pick.
282
289
  #
283
- # @param y
284
- # A y value.
285
- #
286
290
  # @return status - true if a valid InputPoint was picked and it
287
291
  # is different than it was before.
288
292
  #
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to component instance
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2017 Trimble Inc.
1
+ # Copyright:: Copyright 2019 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The {Sketchup::InstancePath} class represent the instance path to a given
@@ -42,11 +42,11 @@ class Sketchup::InstancePath
42
42
  #
43
43
  # @param [Integer] index
44
44
  #
45
- # @raise [TypeError] if the instance path refer to deleted entities.
45
+ # @raise [IndexError] if the given index is out of bounds
46
46
  #
47
47
  # @raise [TypeError] if the index is not of integer type
48
48
  #
49
- # @raise [IndexError] if the given index is out of bounds
49
+ # @raise [TypeError] if the instance path refer to deleted entities.
50
50
  #
51
51
  # @return [Sketchup::Entity]
52
52
  #
@@ -251,9 +251,6 @@ class Sketchup::InstancePath
251
251
  def to_a
252
252
  end
253
253
 
254
- # overload transformation
255
- # @return [Sketchup::Transformation] the combined transformation up to the
256
- # the leaf entity.
257
254
  #
258
255
  # @example
259
256
  # model = Sketchup.active_model
@@ -262,19 +259,25 @@ class Sketchup::InstancePath
262
259
  # path = Sketchup::InstancePath.new([group, edge])
263
260
  # tr = path.transformation
264
261
  #
265
- # @param [Integer] index
262
+ # @overload transformation
266
263
  #
267
- # @raise [TypeError] if the index is not of integer type
264
+ # @return [Geom::Transformation] the combined transformation up to the
265
+ # the leaf entity.
266
+ #
267
+ # @overload transformation(index)
268
+ #
269
+ # @param [Integer] index
270
+ # @return [Geom::Transformation] the combined transformation up to the
271
+ # the given index.
268
272
  #
269
273
  # @raise [IndexError] if the given index is out of bounds
270
274
  #
271
- # @raise [TypeError] if the instance path refer to deleted entities.
275
+ # @raise [TypeError] if the index is not of integer type
272
276
  #
273
- # @return [Sketchup::Transformation] the combined transformation up to the
274
- # the given index.
277
+ # @raise [TypeError] if the instance path refer to deleted entities.
275
278
  #
276
279
  # @version SketchUp 2017
277
- def transformation(index)
280
+ def transformation(*args)
278
281
  end
279
282
 
280
283
  # An instance path is valid if it has at least one element and consist of