sketchup-api-stubs 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb +1 -1
  4. data/lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb +1 -1
  5. data/lib/sketchup-api-stubs/stubs/Geom/LatLong.rb +1 -1
  6. data/lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb +1 -1
  7. data/lib/sketchup-api-stubs/stubs/Geom/Point2d.rb +1 -1
  8. data/lib/sketchup-api-stubs/stubs/Geom/Point3d.rb +1 -1
  9. data/lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb +1 -1
  10. data/lib/sketchup-api-stubs/stubs/Geom/Transformation.rb +1 -1
  11. data/lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb +1 -1
  12. data/lib/sketchup-api-stubs/stubs/Geom/UTM.rb +1 -1
  13. data/lib/sketchup-api-stubs/stubs/Geom/Vector2d.rb +1 -1
  14. data/lib/sketchup-api-stubs/stubs/Geom/Vector3d.rb +1 -1
  15. data/lib/sketchup-api-stubs/stubs/Layout.rb +1 -1
  16. data/lib/sketchup-api-stubs/stubs/Layout/AngularDimension.rb +1 -1
  17. data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinition.rb +1 -1
  18. data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinitions.rb +1 -1
  19. data/lib/sketchup-api-stubs/stubs/Layout/ConnectionPoint.rb +1 -1
  20. data/lib/sketchup-api-stubs/stubs/Layout/Document.rb +5 -1
  21. data/lib/sketchup-api-stubs/stubs/Layout/Ellipse.rb +1 -1
  22. data/lib/sketchup-api-stubs/stubs/Layout/Entities.rb +1 -1
  23. data/lib/sketchup-api-stubs/stubs/Layout/Entity.rb +4 -10
  24. data/lib/sketchup-api-stubs/stubs/Layout/FormattedText.rb +1 -1
  25. data/lib/sketchup-api-stubs/stubs/Layout/Grid.rb +1 -1
  26. data/lib/sketchup-api-stubs/stubs/Layout/Group.rb +1 -1
  27. data/lib/sketchup-api-stubs/stubs/Layout/Image.rb +1 -1
  28. data/lib/sketchup-api-stubs/stubs/Layout/Label.rb +1 -1
  29. data/lib/sketchup-api-stubs/stubs/Layout/Layer.rb +2 -2
  30. data/lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb +1 -1
  31. data/lib/sketchup-api-stubs/stubs/Layout/Layers.rb +1 -1
  32. data/lib/sketchup-api-stubs/stubs/Layout/LinearDimension.rb +1 -1
  33. data/lib/sketchup-api-stubs/stubs/Layout/LockedEntityError.rb +1 -1
  34. data/lib/sketchup-api-stubs/stubs/Layout/LockedLayerError.rb +1 -1
  35. data/lib/sketchup-api-stubs/stubs/Layout/Page.rb +1 -1
  36. data/lib/sketchup-api-stubs/stubs/Layout/PageInfo.rb +1 -1
  37. data/lib/sketchup-api-stubs/stubs/Layout/Pages.rb +1 -1
  38. data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +1 -1
  39. data/lib/sketchup-api-stubs/stubs/Layout/Rectangle.rb +1 -1
  40. data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +5 -1
  41. data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +1 -1
  42. data/lib/sketchup-api-stubs/stubs/Layout/Table.rb +1 -1
  43. data/lib/sketchup-api-stubs/stubs/Layout/TableCell.rb +1 -1
  44. data/lib/sketchup-api-stubs/stubs/Layout/TableColumn.rb +1 -1
  45. data/lib/sketchup-api-stubs/stubs/Layout/TableRow.rb +1 -1
  46. data/lib/sketchup-api-stubs/stubs/Sketchup/Animation.rb +1 -1
  47. data/lib/sketchup-api-stubs/stubs/Sketchup/AppObserver.rb +1 -1
  48. data/lib/sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb +1 -1
  49. data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb +1 -1
  50. data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb +1 -1
  51. data/lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb +1 -1
  52. data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +1 -1
  53. data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +1 -1
  54. data/lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb +1 -1
  55. data/lib/sketchup-api-stubs/stubs/Sketchup/Classifications.rb +1 -1
  56. data/lib/sketchup-api-stubs/stubs/Sketchup/Color.rb +1 -1
  57. data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb +9 -1
  58. data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb +1 -1
  59. data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +1 -1
  60. data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb +1 -1
  61. data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionPoint.rb +1 -1
  62. data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +1 -1
  63. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionList.rb +1 -1
  64. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionObserver.rb +1 -1
  65. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionsObserver.rb +1 -1
  66. data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +1 -1
  67. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb +1 -1
  68. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionObserver.rb +1 -1
  69. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionRadial.rb +1 -1
  70. data/lib/sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb +1 -1
  71. data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +1 -1
  72. data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +1 -1
  73. data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +1 -1
  74. data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb +1 -1
  75. data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +4 -1
  76. data/lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb +1 -1
  77. data/lib/sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb +1 -1
  78. data/lib/sketchup-api-stubs/stubs/Sketchup/Face.rb +1 -1
  79. data/lib/sketchup-api-stubs/stubs/Sketchup/FrameChangeObserver.rb +1 -1
  80. data/lib/sketchup-api-stubs/stubs/Sketchup/Group.rb +1 -1
  81. data/lib/sketchup-api-stubs/stubs/Sketchup/Http.rb +1 -1
  82. data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Request.rb +1 -1
  83. data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb +1 -1
  84. data/lib/sketchup-api-stubs/stubs/Sketchup/Image.rb +1 -1
  85. data/lib/sketchup-api-stubs/stubs/Sketchup/ImageRep.rb +1 -1
  86. data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +1 -1
  87. data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +1 -1
  88. data/lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb +1 -1
  89. data/lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb +1 -1
  90. data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +25 -3
  91. data/lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb +1 -1
  92. data/lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb +1 -1
  93. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb +1 -1
  94. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +1 -1
  95. data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyle.rb +1 -1
  96. data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb +1 -1
  97. data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +1 -1
  98. data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +1 -1
  99. data/lib/sketchup-api-stubs/stubs/Sketchup/Materials.rb +1 -1
  100. data/lib/sketchup-api-stubs/stubs/Sketchup/MaterialsObserver.rb +1 -1
  101. data/lib/sketchup-api-stubs/stubs/Sketchup/Menu.rb +1 -1
  102. data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +129 -11
  103. data/lib/sketchup-api-stubs/stubs/Sketchup/ModelObserver.rb +1 -1
  104. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb +1 -1
  105. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +8 -6
  106. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb +1 -1
  107. data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +45 -1
  108. data/lib/sketchup-api-stubs/stubs/Sketchup/Pages.rb +1 -1
  109. data/lib/sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb +1 -1
  110. data/lib/sketchup-api-stubs/stubs/Sketchup/PickHelper.rb +1 -1
  111. data/lib/sketchup-api-stubs/stubs/Sketchup/RegionalSettings.rb +1 -1
  112. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +12 -4
  113. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptionsObserver.rb +1 -1
  114. data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +1 -1
  115. data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +1 -1
  116. data/lib/sketchup-api-stubs/stubs/Sketchup/SelectionObserver.rb +1 -1
  117. data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +1 -1
  118. data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb +1 -1
  119. data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb +1 -1
  120. data/lib/sketchup-api-stubs/stubs/Sketchup/Style.rb +1 -1
  121. data/lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb +1 -1
  122. data/lib/sketchup-api-stubs/stubs/Sketchup/Text.rb +1 -1
  123. data/lib/sketchup-api-stubs/stubs/Sketchup/Texture.rb +1 -1
  124. data/lib/sketchup-api-stubs/stubs/Sketchup/TextureWriter.rb +1 -1
  125. data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +1 -1
  126. data/lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb +1 -1
  127. data/lib/sketchup-api-stubs/stubs/Sketchup/ToolsObserver.rb +1 -1
  128. data/lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb +1 -1
  129. data/lib/sketchup-api-stubs/stubs/Sketchup/Vertex.rb +1 -1
  130. data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +364 -58
  131. data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +1 -1
  132. data/lib/sketchup-api-stubs/stubs/UI/Command.rb +1 -1
  133. data/lib/sketchup-api-stubs/stubs/UI/HtmlDialog.rb +1 -1
  134. data/lib/sketchup-api-stubs/stubs/UI/Notification.rb +1 -1
  135. data/lib/sketchup-api-stubs/stubs/UI/Toolbar.rb +1 -1
  136. data/lib/sketchup-api-stubs/stubs/UI/WebDialog.rb +1 -1
  137. data/lib/sketchup-api-stubs/stubs/_top_level.rb +7 -1
  138. data/lib/sketchup-api-stubs/stubs/array.rb +1 -1
  139. data/lib/sketchup-api-stubs/stubs/geom.rb +116 -1
  140. data/lib/sketchup-api-stubs/stubs/languagehandler.rb +1 -1
  141. data/lib/sketchup-api-stubs/stubs/length.rb +19 -3
  142. data/lib/sketchup-api-stubs/stubs/numeric.rb +1 -1
  143. data/lib/sketchup-api-stubs/stubs/sketchup.rb +2 -2
  144. data/lib/sketchup-api-stubs/stubs/sketchupextension.rb +1 -1
  145. data/lib/sketchup-api-stubs/stubs/string.rb +1 -1
  146. data/lib/sketchup-api-stubs/stubs/ui.rb +10 -3
  147. metadata +2 -2
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to view events. To implement
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Command class is the preferred class for adding tools to the menus and
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Ruby HtmlDialog class allows you to create and interact with HTML dialog
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # UI::Notification objects allows you to show native notifications in the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Toolbar class contains methods to create and manipulate SketchUp
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Ruby WebDialog class allows you to create and interact with DHTML dialog
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
 
@@ -66,6 +66,8 @@
66
66
  CMD_SHADED = nil # Stub value.
67
67
  CMD_SHOWGUIDES = nil # Stub value.
68
68
  CMD_SHOWHIDDEN = nil # Stub value.
69
+ CMD_SHOWHIDDENGEOMETRY = nil # Stub value.
70
+ CMD_SHOWHIDDENOBJECTS = nil # Stub value.
69
71
  CMD_SKETCHAXES = nil # Stub value.
70
72
  CMD_SKETCHCS = nil # Stub value.
71
73
  CMD_TEXT = nil # Stub value.
@@ -169,6 +171,10 @@
169
171
  TextAlignCenter = nil # Stub value.
170
172
  TextAlignLeft = nil # Stub value.
171
173
  TextAlignRight = nil # Stub value.
174
+ TextVerticalAlignBaseline = nil # Stub value.
175
+ TextVerticalAlignBoundsTop = nil # Stub value.
176
+ TextVerticalAlignCapHeight = nil # Stub value.
177
+ TextVerticalAlignCenter = nil # Stub value.
172
178
 
173
179
  VK_DELETE = nil # Stub value.
174
180
  VK_DOWN = nil # Stub value.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The SketchUp Array class adds additional methods to the standard Ruby Array
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Geom module defines a number of Module methods that let you perform
@@ -230,4 +230,119 @@ module Geom
230
230
  def self.point_in_polygon_2D(point, polygon, check_border)
231
231
  end
232
232
 
233
+ # Tessellates a polygon, represented as a collection of 3D points. Can include
234
+ # holes by providing collections of points describing the inner loops. This is
235
+ # intended to be used for planar polygons.
236
+ #
237
+ # Useful to draw concave polygons using {Sketchup::View#draw} or
238
+ # {Sketchup::View#draw2d}.
239
+ #
240
+ # It can also be useful for importers where the input format describes only the
241
+ # loops for a polygon and you want to work with a collection of triangles.
242
+ #
243
+ # <b>Polygon with two holes, one empty and one filled:</b>
244
+ #
245
+ # <i>(See "Drawing a polygon with holes from a custom tool" example)</i>
246
+ #
247
+ # rdoc-image:images/geom-tesselation-polygon-with-holes.png
248
+ #
249
+ # @example Iterate over each triangle in the returned set
250
+ # polygon = [
251
+ # Geom::Point3d.new(0, 0, 0),
252
+ # Geom::Point3d.new(90, 0, 0),
253
+ # Geom::Point3d.new(60, 40, 0),
254
+ # Geom::Point3d.new(90, 90, 0),
255
+ # Geom::Point3d.new(30, 70, 0),
256
+ # ]
257
+ # triangles = Geom.tesselate(polygon)
258
+ # triangles.each_slice(3) { |triangle|
259
+ # # Work with each triangle set...
260
+ # }
261
+ # # Or get an array of triangles:
262
+ # triangles_set = triangles.each_slice(3).to_a
263
+ #
264
+ # @example Drawing a polygon with holes from a custom tool
265
+ # class ExampleTool
266
+ #
267
+ # def initialize
268
+ # polygon = [
269
+ # Geom::Point3d.new(0, 0, 0),
270
+ # Geom::Point3d.new(90, 0, 0),
271
+ # Geom::Point3d.new(60, 40, 0),
272
+ # Geom::Point3d.new(90, 90, 0),
273
+ # Geom::Point3d.new(30, 70, 0),
274
+ # ] # Counter-clockwise order
275
+ # hole1 = [
276
+ # Geom::Point3d.new(20, 10, 0),
277
+ # Geom::Point3d.new(40, 10, 0),
278
+ # Geom::Point3d.new(45, 25, 0),
279
+ # Geom::Point3d.new(30, 20, 0),
280
+ # Geom::Point3d.new(25, 25, 0),
281
+ # ].reverse # Clockwise order - empty hole
282
+ # hole2 = [
283
+ # Geom::Point3d.new(30, 40, 0),
284
+ # Geom::Point3d.new(50, 40, 0),
285
+ # Geom::Point3d.new(50, 50, 0),
286
+ # Geom::Point3d.new(30, 50, 0),
287
+ # ].reverse # Counter-clockwise order - filled hole
288
+ # @triangles = Geom.tesselate(polygon, hole1, hole2)
289
+ # end
290
+ #
291
+ # def activate
292
+ # Sketchup.active_model.active_view.invalidate
293
+ # end
294
+ #
295
+ # def onMouseMove(flags, x, y, view)
296
+ # view.invalidate
297
+ # end
298
+ #
299
+ # def getExtents
300
+ # bounds = Geom::BoundingBox.new
301
+ # bounds.add(@triangles)
302
+ # bounds
303
+ # end
304
+ #
305
+ # def draw(view)
306
+ # view.drawing_color = Sketchup::Color.new(192, 0, 0)
307
+ # view.draw(GL_TRIANGLES, @triangles)
308
+ # end
309
+ #
310
+ # end
311
+ #
312
+ # Sketchup.active_model.select_tool(ExampleTool.new)
313
+ #
314
+ # @note The winding order of the polygons matter. The outer loop should be
315
+ # in counter-clockwise order. To cut an empty hole the inner loops should be
316
+ # in clockwise order, otherwise they will create a loop filled with
317
+ # triangles.
318
+ #
319
+ # @note The tesselation is using the same logic as SketchUp its rendering
320
+ # pipeline. But the exact result is an implementation detail which may change
321
+ # between versions. In particularly the results of degenerate polygons and
322
+ # non-planar polygons is undefined as part of the API contract. Such
323
+ # polygons are for example polygons where all points are colinear, polygons
324
+ # with duplicate points, non-planar polygons.
325
+ #
326
+ # @note If you want the triangles from an existing {Sketchup::Face} it's better
327
+ # to use {Sketchup::Face#mesh}.
328
+ #
329
+ # @param [Array<Geom::Point3d>] polygon_loop_points
330
+ #
331
+ # @param [Array<Array<Geom::Point3d>>] inner_loop_points
332
+ #
333
+ # @raise [ArgumentError] if any of the loops contain less than three points.
334
+ #
335
+ # @raise [RuntimeError] if the tesselator returned an error.
336
+ #
337
+ # @return [Array<Geom::Point3d>] an array of points with a stride of three
338
+ # representing a set of triangles.
339
+ #
340
+ # @see Sketchup::View#draw
341
+ #
342
+ # @see Sketchup::View#draw2d
343
+ #
344
+ # @version SketchUp 2020.0
345
+ def self.tesselate(polygon_loop_points, *inner_loop_points)
346
+ end
347
+
233
348
  end
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The LanguageHandler class contains methods used to help make SketchUp
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Because length units are used so often in SketchUp, a special class has been
@@ -28,22 +28,30 @@
28
28
  # - +Length::Millimeter+
29
29
  # - +Length::Centimeter+
30
30
  # - +Length::Meter+
31
+ # (Added in SketchUp 2020.0)
32
+ # - +Length::Yard+
31
33
  #
32
34
  # [Area Unit]
33
- # (Added in SketchUp 2019.1)
35
+ # (Added in SketchUp 2019.2)
34
36
  # - +Length::SquareInches+
35
37
  # - +Length::SquareFeet+
36
38
  # - +Length::SquareMillimeter+
37
39
  # - +Length::SquareCentimeter+
38
40
  # - +Length::SquareMeter+
41
+ # (Added in SketchUp 2020.0)
42
+ # - +Length::SquareYard+
39
43
  #
40
44
  # [Volume Unit]
41
- # (Added in SketchUp 2019.1)
45
+ # (Added in SketchUp 2019.2)
42
46
  # - +Length::CubicInches+
43
47
  # - +Length::CubicFeet+
44
48
  # - +Length::CubicMillimeter+
45
49
  # - +Length::CubicCentimeter+
46
50
  # - +Length::CubicMeter+
51
+ # (Added in SketchUp 2020.0)
52
+ # - +Length::CubicYard+
53
+ # - +Length::Liter+
54
+ # - +Length::USGallon+
47
55
  #
48
56
  # @note Prior to SketchUp 2015, +Length+ used to be derived from +Float+. This
49
57
  # is no longer the case.
@@ -62,6 +70,7 @@ class Length < Float
62
70
  CubicInches = nil # Stub value.
63
71
  CubicMeter = nil # Stub value.
64
72
  CubicMillimeter = nil # Stub value.
73
+ CubicYard = nil # Stub value.
65
74
 
66
75
  Decimal = nil # Stub value.
67
76
 
@@ -73,6 +82,8 @@ class Length < Float
73
82
 
74
83
  Inches = nil # Stub value.
75
84
 
85
+ Liter = nil # Stub value.
86
+
76
87
  Millimeter = nil # Stub value.
77
88
 
78
89
  Meter = nil # Stub value.
@@ -82,6 +93,11 @@ class Length < Float
82
93
  SquareInches = nil # Stub value.
83
94
  SquareMeter = nil # Stub value.
84
95
  SquareMillimeter = nil # Stub value.
96
+ SquareYard = nil # Stub value.
97
+
98
+ USGallon = nil # Stub value.
99
+
100
+ Yard = nil # Stub value.
85
101
 
86
102
  # Instance Methods
87
103
 
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # A number of methods have been added to the Ruby Numeric class to do units
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Sketchup module contains a number of important utility methods for use in
@@ -339,7 +339,7 @@ module Sketchup
339
339
  def self.format_degrees(number)
340
340
  end
341
341
 
342
- # The {#format_length} method formats a number as a length using the current
342
+ # The {.format_length} method formats a number as a length using the current
343
343
  # units settings.
344
344
  #
345
345
  # The default unit setting is inches. For example, 10 becomes 10".
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The SketchupExtension class contains methods allowing you to create and
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The String class contains a method used to parse a string as a length value.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2019 Trimble Inc.
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The UI module contains a number of methods for creating simple UI elements
@@ -246,7 +246,14 @@ module UI
246
246
  def self.model_info_pages
247
247
  end
248
248
 
249
- # The {.openURL} method is used to open the default Web browser to a URL.
249
+ # The {.openURL} method is used to open the default browser to a URL.
250
+ #
251
+ # @bug Before SketchUp 2019.3 the mac version would URL encode the given URL.
252
+ # This could inadvertently mangle some URLs, if for example if they had
253
+ # URL fragments (# character).
254
+ # The Windows version would not. As of SketchUp 2019.3 both platforms do
255
+ # not perform URL encoding and the API user is expected to provide a valid
256
+ # URL.
250
257
  #
251
258
  # @example
252
259
  # status = UI.openURL("http://www.sketchup.com")
@@ -419,7 +426,7 @@ module UI
419
426
  def self.scale_factor
420
427
  end
421
428
 
422
- # The {#select_directory} method is used to display the OS dialog for selecting
429
+ # The {.select_directory} method is used to display the OS dialog for selecting
423
430
  # one or several directories from the file system.
424
431
  #
425
432
  # @example
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sketchup-api-stubs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trimble Inc, SketchUp Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler