sketchup-api-stubs 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
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
data/SketchUp/geom.rb CHANGED
@@ -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 Geom module defines a number of Module methods that let you perform
@@ -227,7 +227,7 @@ module Geom
227
227
  # @return [Boolean] +true+ if the point is inside the polygon.
228
228
  #
229
229
  # @version SketchUp 6.0
230
- def self.point_in_polygon_2D(point, *polygon, check_border)
230
+ def self.point_in_polygon_2D(point, polygon, check_border)
231
231
  end
232
232
 
233
233
  end
@@ -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 LanguageHandler class contains methods used to help make SketchUp
data/SketchUp/length.rb CHANGED
@@ -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
  # Because length units are used so often in SketchUp, a special class has been
data/SketchUp/numeric.rb CHANGED
@@ -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 number of methods have been added to the Ruby Numeric class to do units
@@ -71,7 +71,7 @@ class Numeric
71
71
  def km
72
72
  end
73
73
 
74
- # The m method is used to convert meters to inches.
74
+ # The m method is used to convert from meters to inches.
75
75
  #
76
76
  # @example
77
77
  # meters = 1
@@ -95,7 +95,7 @@ class Numeric
95
95
  def mile
96
96
  end
97
97
 
98
- # The mm method is used to convert a number to millimeters.
98
+ # The mm method is used to convert from millimeters to inches.
99
99
  #
100
100
  # It returns a Length value which is the same length as the given value. For
101
101
  # example len = 25.4.mm returns 1 inch.
data/SketchUp/sketchup.rb CHANGED
@@ -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 module contains a number of important utility methods for use in
@@ -386,14 +386,14 @@ module Sketchup
386
386
  def self.get_datfile_info(key, default_value)
387
387
  end
388
388
 
389
- # The get_i18ndatfile_info method is used to retrieve the value for the
389
+ # The {.get_i18n_datfile_info} method is used to retrieve the value for the
390
390
  # given key from the internationalization file that SketchUp uses to work
391
391
  # in multiple languages.
392
392
  #
393
- # If the key is not found, default_value is returned.
393
+ # If the +key+ is not found, +default_value+ is returned.
394
394
  #
395
395
  # @example
396
- # value = Sketchup.get_i18ndatfile_info(key, default_value)
396
+ # value = Sketchup.get_i18n_datfile_info(key, default_value)
397
397
  #
398
398
  # @param [String] key
399
399
  # The key whose value you want to retrieve.
@@ -402,7 +402,7 @@ module Sketchup
402
402
  # The default value you want returned if key is not
403
403
  # available.
404
404
  #
405
- # @return [String] a string value if successful.
405
+ # @return [String]
406
406
  #
407
407
  # @version SketchUp 6.0
408
408
  def self.get_i18n_datfile_info(key, default_value)
@@ -730,12 +730,12 @@ module Sketchup
730
730
  # @param [String] section
731
731
  # A section in an .INI or registry.
732
732
  #
733
- # @param [Object] default
734
- # A default value if the value is not found.
735
- #
736
733
  # @param [String] variable
737
734
  # A variable within the section.
738
735
  #
736
+ # @param [Object] default
737
+ # A default value if the value is not found.
738
+ #
739
739
  # @return [Object, nil] if unsuccessful, the value of the default
740
740
  # if successful.
741
741
  #
@@ -1286,12 +1286,12 @@ module Sketchup
1286
1286
  # A section in a .plist file (Mac) or the registry
1287
1287
  # (Windows).
1288
1288
  #
1289
- # @param [Object] value
1290
- # The value to store.
1291
- #
1292
1289
  # @param [String] key
1293
1290
  # A key within the section.
1294
1291
  #
1292
+ # @param [Object] value
1293
+ # The value to store.
1294
+ #
1295
1295
  # @return [Boolean] True if successful, false if unsuccessful.
1296
1296
  #
1297
1297
  # @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
  # The SketchupExtension class contains methods allowing you to create and
@@ -187,12 +187,16 @@ class SketchupExtension
187
187
  # @example
188
188
  # # Create an entry in the Extension list that loads a script called
189
189
  # # core.rb.
190
- # extension = SketchupExtension.new('Stair Tools', 'StairTools/core.rb')
190
+ # extension = SketchupExtension.new('Stair Tools', 'StairTools/core')
191
191
  #
192
192
  # # Then be sure to register it. By passing a 2nd param of true, you're
193
193
  # # telling SketchUp to load the extension by default.
194
194
  # Sketchup.register_extension(extension, true)
195
195
  #
196
+ # @note It is recommended to omit the file extension provided in the +path+
197
+ # argument. SketchUp will resolve the file extension to +.rbe+, +.rbs+
198
+ # or +.rb+.
199
+ #
196
200
  # @param [String] title
197
201
  # The name of the extension
198
202
  #
data/SketchUp/string.rb CHANGED
@@ -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 String class contains a method used to parse a string as a length value.
data/SketchUp/ui.rb CHANGED
@@ -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 UI module contains a number of methods for creating simple UI elements
@@ -73,6 +73,10 @@ module UI
73
73
  # @param [String] filename
74
74
  # Filename for an image.
75
75
  #
76
+ # @param [Integer] hot_x
77
+ # An x coordinate that is the "hotpoint" for the cursor
78
+ # computed from the left edge of your cursor image.
79
+ #
76
80
  # @param [Integer] hot_y
77
81
  # A y coordinate that is the "hotpoint" for the cursor
78
82
  # computed from the top edge of the of your cursor image.
@@ -81,10 +85,6 @@ module UI
81
85
  # the left edge of your cursor image and 10 pixels from
82
86
  # the top edge of your cursor image.
83
87
  #
84
- # @param [Integer] hot_x
85
- # An x coordinate that is the "hotpoint" for the cursor
86
- # computed from the left edge of your cursor image.
87
- #
88
88
  # @return [Integer] ID associated with the cursor
89
89
  #
90
90
  # @version SketchUp 6.0
@@ -278,6 +278,9 @@ module UI
278
278
  # @param [String] title
279
279
  # The title to apply to the open dialog box.
280
280
  #
281
+ # @param [String] directory
282
+ # The default directory for the open panel.
283
+ #
281
284
  # @param [String] filename
282
285
  # The default filename for the open panel. On Windows, you
283
286
  # can alternatively pass a wildcard filter using this
@@ -289,9 +292,6 @@ module UI
289
292
  # single line using a semicolon-separated list in the
290
293
  # filter field: ui_name|wildcard1;wildcard2||.
291
294
  #
292
- # @param [String] directory
293
- # The default directory for the open panel.
294
- #
295
295
  # @return [String] the full path and name of the file selected, or
296
296
  # nil if the dialog was canceled.
297
297
  #
@@ -377,6 +377,9 @@ module UI
377
377
  # @param [String] title
378
378
  # The title to apply to the save dialog box.
379
379
  #
380
+ # @param [String] directory
381
+ # The default directory for the save panel.
382
+ #
380
383
  # @param [String] filename
381
384
  # The default filename for the save panel. On Windows, you
382
385
  # can alternatively pass a mask, like "*.txt", to have all
@@ -385,9 +388,6 @@ module UI
385
388
  # filename and separate them with a semicolon, like this:
386
389
  # "*.txt;*.doc".
387
390
  #
388
- # @param [String] directory
389
- # The default directory for the save panel.
390
- #
391
391
  # @return [String] the full path and name of the file
392
392
  # selected or nil if the dialog was canceled.
393
393
  #
@@ -580,13 +580,13 @@ module UI
580
580
  # # Beep once after 10 seconds.
581
581
  # id = UI.start_timer(10, false) { UI.beep }
582
582
  #
583
+ # @param [Numeric] seconds
584
+ # The time in seconds before your code should be called.
585
+ #
583
586
  # @param [Boolean] repeat
584
587
  # true if you want the timer to repeat, false
585
588
  # (or omit) if you do not want it to repeat.
586
589
  #
587
- # @param [Numeric] seconds
588
- # The time in seconds before your code should be called.
589
- #
590
590
  # @return [Integer] a timer ID
591
591
  #
592
592
  # @version SketchUp 6.0
data/autoload/sketchup.rb CHANGED
@@ -95,6 +95,8 @@ require '../SketchUp/Sketchup/Layers.rb'
95
95
  require '../SketchUp/Sketchup/LayersObserver.rb'
96
96
  require '../SketchUp/Sketchup/Licensing/ExtensionLicense.rb'
97
97
  require '../SketchUp/Sketchup/Licensing.rb'
98
+ require '../SketchUp/Sketchup/LineStyle.rb'
99
+ require '../SketchUp/Sketchup/LineStyles.rb'
98
100
  require '../SketchUp/Sketchup/Loop.rb'
99
101
  require '../SketchUp/Sketchup/Material.rb'
100
102
  require '../SketchUp/Sketchup/Materials.rb'
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.3.1
4
+ version: 0.4.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: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -137,6 +137,8 @@ files:
137
137
  - SketchUp/Sketchup/LayersObserver.rb
138
138
  - SketchUp/Sketchup/Licensing.rb
139
139
  - SketchUp/Sketchup/Licensing/ExtensionLicense.rb
140
+ - SketchUp/Sketchup/LineStyle.rb
141
+ - SketchUp/Sketchup/LineStyles.rb
140
142
  - SketchUp/Sketchup/Loop.rb
141
143
  - SketchUp/Sketchup/Material.rb
142
144
  - SketchUp/Sketchup/Materials.rb
@@ -209,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
211
  version: '0'
210
212
  requirements: []
211
213
  rubyforge_project:
212
- rubygems_version: 2.7.3
214
+ rubygems_version: 2.6.14
213
215
  signing_key:
214
216
  specification_version: 4
215
217
  summary: SketchUp Ruby API stubs.