sketchup-api-stubs 0.5.0 → 0.6.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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sketchup-api-stubs/{autoload.rb → sketchup.rb} +5 -4
  3. data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +4 -4
  4. data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +2 -2
  5. data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +23 -23
  6. data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +5 -5
  7. data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +3 -3
  8. data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +1 -1
  9. data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +1 -1
  10. data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +1 -1
  11. data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +0 -2
  12. data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +1 -1
  13. data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +8 -5
  14. data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +2 -2
  15. data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +1 -1
  16. data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +2 -2
  17. data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +1 -1
  18. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +1 -1
  19. data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +2 -2
  20. data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +18 -0
  21. data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +4 -2
  22. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +8 -4
  23. data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +8 -8
  24. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +3 -1
  25. data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +1 -1
  26. data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +21 -2
  27. data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +1 -5
  28. data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +208 -189
  29. data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +55 -34
  30. data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +3 -0
  31. data/lib/sketchup-api-stubs/stubs/_top_level.rb +11 -11
  32. data/lib/sketchup-api-stubs/stubs/array.rb +0 -2
  33. data/lib/sketchup-api-stubs/stubs/length.rb +69 -17
  34. data/lib/sketchup-api-stubs/stubs/sketchup.rb +36 -13
  35. data/lib/sketchup-api-stubs/stubs/ui.rb +3 -3
  36. metadata +13 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d86e54229a57ebb19147e5205870f8fe3145754609c969ce71b427b308c12c5
4
- data.tar.gz: 9b38cf484d344ed8339a669c53d7094e3516cbae7e18180db4aa950706041187
3
+ metadata.gz: 3ddc727e8b70fc96911cd671ce1e7b2b8a2d44722d5b22799c75b8d2c6adfd3b
4
+ data.tar.gz: d34bf87fa30222d20dd603784a24c8eb0eb2d9b7736a264e64cb767c5aec39be
5
5
  SHA512:
6
- metadata.gz: a594517036b927e330b114a0337ab953f4de1b629f94a7cb910179233055a67a6fcf929dd14ee32f1dacb63607c15486bfa008d3d546d3c8a7a7e20ae71fc583
7
- data.tar.gz: 0c21036a0ab3dc68b1f36a3ef6b5fbc942ef359c991fcbc2eb9d1e96aa064f44a457ca5aad6074093f3c43c1ef3a309b52ca49c304c36ff9c383dfdc790fe78d
6
+ metadata.gz: ddc5bf5358352f5a15b9dc148a7d820bbb89509173a31444602f29ed7885b373201d927d47d5e21d80ff1bb4676d701d1b69c1d8b86359b4796b99dba6b54822
7
+ data.tar.gz: c8756870501af4a053a6f64d231f9fcc3545945181aed1239e756a8f6663ec3b4b30f7476014efbe3f56952a7f6c44d69add8a239542ddf2f25306294f5e4356
@@ -1,3 +1,5 @@
1
+ # This file is auto-generated by the `thor stubs` command.
2
+ require 'sketchup-api-stubs/stubs/_top_level.rb'
1
3
  require 'sketchup-api-stubs/stubs/Array.rb'
2
4
  require 'sketchup-api-stubs/stubs/Geom.rb'
3
5
  require 'sketchup-api-stubs/stubs/Geom/BoundingBox.rb'
@@ -47,10 +49,9 @@ require 'sketchup-api-stubs/stubs/Layout/TableRow.rb'
47
49
  require 'sketchup-api-stubs/stubs/Length.rb'
48
50
  require 'sketchup-api-stubs/stubs/Numeric.rb'
49
51
  require 'sketchup-api-stubs/stubs/Sketchup.rb'
50
- require 'sketchup-api-stubs/stubs/Sketchup/Entity.rb'
51
- require 'sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb'
52
52
  require 'sketchup-api-stubs/stubs/Sketchup/Animation.rb'
53
53
  require 'sketchup-api-stubs/stubs/Sketchup/AppObserver.rb'
54
+ require 'sketchup-api-stubs/stubs/Sketchup/Entity.rb'
54
55
  require 'sketchup-api-stubs/stubs/Sketchup/Curve.rb'
55
56
  require 'sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb'
56
57
  require 'sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb'
@@ -58,9 +59,10 @@ require 'sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb'
58
59
  require 'sketchup-api-stubs/stubs/Sketchup/Axes.rb'
59
60
  require 'sketchup-api-stubs/stubs/Sketchup/Behavior.rb'
60
61
  require 'sketchup-api-stubs/stubs/Sketchup/Camera.rb'
61
- require 'sketchup-api-stubs/stubs/Sketchup/Classifications.rb'
62
62
  require 'sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb'
63
+ require 'sketchup-api-stubs/stubs/Sketchup/Classifications.rb'
63
64
  require 'sketchup-api-stubs/stubs/Sketchup/Color.rb'
65
+ require 'sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb'
64
66
  require 'sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb'
65
67
  require 'sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb'
66
68
  require 'sketchup-api-stubs/stubs/Sketchup/Console.rb'
@@ -141,4 +143,3 @@ require 'sketchup-api-stubs/stubs/UI/HtmlDialog.rb'
141
143
  require 'sketchup-api-stubs/stubs/UI/Notification.rb'
142
144
  require 'sketchup-api-stubs/stubs/UI/Toolbar.rb'
143
145
  require 'sketchup-api-stubs/stubs/UI/WebDialog.rb'
144
- require 'sketchup-api-stubs/stubs/_top_level.rb'
@@ -9,10 +9,6 @@ class Layout::Path < Layout::Entity
9
9
 
10
10
  # Constants
11
11
 
12
- PATH_WINDING_CLOCKWISE = nil # Stub value.
13
- PATH_WINDING_COUNTER_CLOCKWISE = nil # Stub value.
14
- PATH_WINDING_NONE = nil # Stub value.
15
-
16
12
  POINT_TYPE_ARC_CENTER = nil # Stub value.
17
13
  POINT_TYPE_BEZIER_CONTROL = nil # Stub value.
18
14
  POINT_TYPE_BEZIER_TO = nil # Stub value.
@@ -20,6 +16,10 @@ class Layout::Path < Layout::Entity
20
16
  POINT_TYPE_LINE_TO = nil # Stub value.
21
17
  POINT_TYPE_MOVE_TO = nil # Stub value.
22
18
 
19
+ PATH_WINDING_CLOCKWISE = nil # Stub value.
20
+ PATH_WINDING_COUNTER_CLOCKWISE = nil # Stub value.
21
+ PATH_WINDING_NONE = nil # Stub value.
22
+
23
23
  # Class Methods
24
24
 
25
25
  # The {.new_arc} method creates a new arc-shaped {Layout::Path}.
@@ -18,11 +18,11 @@ class Layout::SketchUpModel < Layout::Entity
18
18
 
19
19
  # Constants
20
20
 
21
- BACK_VIEW = nil # Stub value.
22
-
23
21
  BOTTOM_RELATIVE_VIEW = nil # Stub value.
24
22
  BOTTOM_VIEW = nil # Stub value.
25
23
 
24
+ BACK_VIEW = nil # Stub value.
25
+
26
26
  CUSTOM_VIEW = nil # Stub value.
27
27
 
28
28
  FRONT_VIEW = nil # Stub value.
@@ -15,6 +15,14 @@ class Layout::Style
15
15
 
16
16
  # Constants
17
17
 
18
+ ALIGN_CENTER = nil # Stub value.
19
+ ALIGN_LEFT = nil # Stub value.
20
+ ALIGN_RIGHT = nil # Stub value.
21
+
22
+ ANCHOR_BOTTOM = nil # Stub value.
23
+ ANCHOR_CENTER = nil # Stub value.
24
+ ANCHOR_TOP = nil # Stub value.
25
+
18
26
  ARCHITECTURAL_INCHES = nil # Stub value.
19
27
 
20
28
  ARROW_FILLED_CIRCLE = nil # Stub value.
@@ -37,23 +45,18 @@ class Layout::Style
37
45
  ARROW_T = nil # Stub value.
38
46
  ARROW_UNDERRUN = nil # Stub value.
39
47
 
40
- ALIGN_CENTER = nil # Stub value.
41
- ALIGN_LEFT = nil # Stub value.
42
- ALIGN_RIGHT = nil # Stub value.
43
-
44
- ANCHOR_BOTTOM = nil # Stub value.
45
- ANCHOR_CENTER = nil # Stub value.
46
- ANCHOR_TOP = nil # Stub value.
47
-
48
48
  CAP_STYLE_FLAT = nil # Stub value.
49
49
  CAP_STYLE_ROUND = nil # Stub value.
50
50
  CAP_STYLE_SQUARE = nil # Stub value.
51
51
 
52
- DIMENSION_END_EXTENSION_LINE = nil # Stub value.
53
- DIMENSION_LEADER_LINE = nil # Stub value.
54
- DIMENSION_LINE = nil # Stub value.
55
- DIMENSION_START_EXTENSION_LINE = nil # Stub value.
56
- DIMENSION_TEXT = nil # Stub value.
52
+ DIMENSION_TEXT_ABOVE = nil # Stub value.
53
+ DIMENSION_TEXT_BELOW = nil # Stub value.
54
+ DIMENSION_TEXT_CENTER = nil # Stub value.
55
+ DIMENSION_TEXT_HORIZONTAL = nil # Stub value.
56
+ DIMENSION_TEXT_OFFSET = nil # Stub value.
57
+ DIMENSION_TEXT_PARALLEL = nil # Stub value.
58
+ DIMENSION_TEXT_PERPENDICULAR = nil # Stub value.
59
+ DIMENSION_TEXT_VERTICAL = nil # Stub value.
57
60
 
58
61
  DECIMAL_CENTIMETERS = nil # Stub value.
59
62
  DECIMAL_FEET = nil # Stub value.
@@ -64,14 +67,11 @@ class Layout::Style
64
67
 
65
68
  DEGREES = nil # Stub value.
66
69
 
67
- DIMENSION_TEXT_ABOVE = nil # Stub value.
68
- DIMENSION_TEXT_BELOW = nil # Stub value.
69
- DIMENSION_TEXT_CENTER = nil # Stub value.
70
- DIMENSION_TEXT_HORIZONTAL = nil # Stub value.
71
- DIMENSION_TEXT_OFFSET = nil # Stub value.
72
- DIMENSION_TEXT_PARALLEL = nil # Stub value.
73
- DIMENSION_TEXT_PERPENDICULAR = nil # Stub value.
74
- DIMENSION_TEXT_VERTICAL = nil # Stub value.
70
+ DIMENSION_END_EXTENSION_LINE = nil # Stub value.
71
+ DIMENSION_LEADER_LINE = nil # Stub value.
72
+ DIMENSION_LINE = nil # Stub value.
73
+ DIMENSION_START_EXTENSION_LINE = nil # Stub value.
74
+ DIMENSION_TEXT = nil # Stub value.
75
75
 
76
76
  ENGINEERING_FEET = nil # Stub value.
77
77
 
@@ -102,10 +102,10 @@ class Layout::Style
102
102
  STROKE_PATTERN_SHORT_DASH = nil # Stub value.
103
103
  STROKE_PATTERN_SOLID = nil # Stub value.
104
104
 
105
- SUB_SCRIPT = nil # Stub value.
106
-
107
105
  SUPER_SCRIPT = nil # Stub value.
108
106
 
107
+ SUB_SCRIPT = nil # Stub value.
108
+
109
109
  UNDERLINE_DOUBLE = nil # Stub value.
110
110
  UNDERLINE_NONE = nil # Stub value.
111
111
  UNDERLINE_SINGLE = nil # Stub value.
@@ -74,7 +74,7 @@ class Sketchup::Behavior < Sketchup::Entity
74
74
  # UI.messagebox "Failure"
75
75
  # end
76
76
  #
77
- # @return behavior - true if the component is set to always face
77
+ # @return [Boolean] behavior - true if the component is set to always face
78
78
  # the camera, false if the component is not set to always
79
79
  # face camera.
80
80
  #
@@ -119,7 +119,7 @@ class Sketchup::Behavior < Sketchup::Entity
119
119
  # # if status is false, do something else
120
120
  # end
121
121
  #
122
- # @return status - the status of the cuts_opening behavior
122
+ # @return [Boolean] status - the status of the cuts_opening behavior
123
123
  # (either true or false)
124
124
  #
125
125
  # @version SketchUp 6.0
@@ -162,7 +162,7 @@ class Sketchup::Behavior < Sketchup::Entity
162
162
  # # if status is false, do something else
163
163
  # end
164
164
  #
165
- # @return status - the status of the 2D behavior (either true or
165
+ # @return [Boolean] status - the status of the 2D behavior (either true or
166
166
  # false)
167
167
  #
168
168
  # @version SketchUp 6.0
@@ -216,7 +216,7 @@ class Sketchup::Behavior < Sketchup::Entity
216
216
  # behavior = definition.behavior
217
217
  # no_scale_mask = behavior.no_scale_mask?
218
218
  #
219
- # @return scale_mask - an integer describing which scale tool
219
+ # @return [Boolean] scale_mask - an integer describing which scale tool
220
220
  # handles are hidden.
221
221
  #
222
222
  # @version SketchUp 7.0
@@ -262,7 +262,7 @@ class Sketchup::Behavior < Sketchup::Entity
262
262
  # UI.messagebox $!.message
263
263
  # end
264
264
  #
265
- # @return status - true if the component's is to be cast from the
265
+ # @return [Boolean] status - true if the component's is to be cast from the
266
266
  # component's current position as though the component
267
267
  # were facing the sun. False to cause the shadow to be
268
268
  # cast from the component's current position.
@@ -256,7 +256,7 @@ class Sketchup::Camera
256
256
  # # Compute the vertical FOV.
257
257
  # end
258
258
  #
259
- # @return bool - true if vertical, false otherwise
259
+ # @return [Boolean] bool - true if vertical, false otherwise
260
260
  #
261
261
  # @version SketchUp 2015
262
262
  def fov_is_height?
@@ -385,7 +385,7 @@ class Sketchup::Camera
385
385
  # @example
386
386
  # Sketchup.active_model.active_view.camera.is_2d?
387
387
  #
388
- # @return Boolean - true if camera is in 2d mode, false otherwise
388
+ # @return [Boolean] Boolean - true if camera is in 2d mode, false otherwise
389
389
  #
390
390
  # @version SketchUp 2015
391
391
  def is_2d?
@@ -424,7 +424,7 @@ class Sketchup::Camera
424
424
  # UI.messagebox "Orthographic"
425
425
  # end
426
426
  #
427
- # @return status - true if perspective, false if orthographic
427
+ # @return [Boolean] status - true if perspective, false if orthographic
428
428
  #
429
429
  # @version SketchUp 6.0
430
430
  def perspective?
@@ -67,7 +67,7 @@ class Sketchup::Console
67
67
  # @example
68
68
  # puts SKETCHUP_CONSOLE.visible?
69
69
  #
70
- # @return true if visible, false if not.
70
+ # @return [Boolean] true if visible, false if not.
71
71
  #
72
72
  # @version SketchUp 2014
73
73
  def visible?
@@ -109,7 +109,7 @@ class Sketchup::Curve < Sketchup::Entity
109
109
  # ents.each { |e| curve = e.curve if e.is_a? Sketchup::Edge }
110
110
  # is_poly = curve.is_polygon?
111
111
  #
112
- # @return True if this edge was originally created by the polygon
112
+ # @return [Boolean] True if this edge was originally created by the polygon
113
113
  # tool, otherwise false.
114
114
  #
115
115
  # @version SketchUp 7.1 M1
@@ -98,7 +98,7 @@ class Sketchup::Dimension < Sketchup::Drawingelement
98
98
  # @example
99
99
  # aligned = dim.has_aligned_text?
100
100
  #
101
- # @return status - true if text is aligned to the dimension.
101
+ # @return [Boolean] status - true if text is aligned to the dimension.
102
102
  # False if dimension text is aligned to the screen.
103
103
  #
104
104
  # @version SketchUp 2014
@@ -311,8 +311,6 @@ class Sketchup::Edge < Sketchup::Drawingelement
311
311
  # @param [Sketchup::Face] face
312
312
  # The face that is bounded by the edge.
313
313
  #
314
- # @return [Boolean]
315
- #
316
314
  # @return [Boolean] +true+ if the edge is reversed, +false+ if it is not
317
315
  # reversed. +nil+ if the edge and face is not connected.
318
316
  #
@@ -180,7 +180,7 @@ class Sketchup::EdgeUse < Sketchup::Entity
180
180
  # edgeuse = edgeuses[0]
181
181
  # reversed = edgeuse.reversed?
182
182
  #
183
- # @return boolean - true if reversed, false if not reversed.
183
+ # @return [Boolean] boolean - true if reversed, false if not reversed.
184
184
  #
185
185
  # @version SketchUp 6.0
186
186
  def reversed?
@@ -691,7 +691,7 @@ class Sketchup::Entities
691
691
  def add_section_plane(plane)
692
692
  end
693
693
 
694
- # The {#add_text} method adds a note or label text entity to the entities
694
+ # The {#add_text} method adds a note or label text entity to the entities.
695
695
  #
696
696
  # @example
697
697
  # coordinates = [10, 10, 10]
@@ -718,14 +718,17 @@ class Sketchup::Entities
718
718
  #
719
719
  # @overload add_text(text, point, vector)
720
720
  #
721
+ # @bug SketchUp 2019.0 had a regression bug where an error was thrown if
722
+ # +point+ was provided as a {Sketchup::Vertex} or {Sketchup::InputPoint}.
723
+ # This was fixed in SketchUp 2019.1.
721
724
  # @param [String] text The text string to add.
722
- # @param [Geom::Point3d] point A Point3d object representing the insertion
723
- # point.
725
+ # @param [Geom::Point3d, Sketchup::Vertex, Sketchup::InputPoint] point
726
+ # A Point3d object representing the insertion point.
724
727
  # @param [Geom::Vector3d] vector The Vector representing an arrow leader.
725
728
  #
726
729
  # @overload add_text(text, instance_path_and_pt, vector)
727
730
  #
728
- # @note Added in SketchUp 2019.
731
+ # @version SketchUp 2019
729
732
  # @param [String] text The text to add.
730
733
  # @param [Array<Sketchup::InstancePath, Geom::Point3d>] instance_path_and_pt
731
734
  # The array containing a {Sketchup::InstancePath} and a {Geom::Point3d}.
@@ -733,7 +736,7 @@ class Sketchup::Entities
733
736
  #
734
737
  # @overload add_text(text, instance_array_and_pt, vector)
735
738
  #
736
- # @note Added in SketchUp 2019.
739
+ # @version SketchUp 2019
737
740
  # @param [String] text The text to add.
738
741
  # @param [Array(Array<Sketchup::Entity>, Geom::Point3d)] instance_array_with_pt
739
742
  # The array containing one or more {Sketchup::ComponentInstance}'s and a
@@ -127,6 +127,8 @@ class Sketchup::Entity
127
127
  # AttributeDictionary. Otherwise, {#delete_attribute} deletes the attribute with
128
128
  # the given key from the given dictionary.
129
129
  #
130
+ # @bug Prior to SketchUp 2019.0 the return values was always +true+.
131
+ #
130
132
  # @example
131
133
  # depth = 100
132
134
  # width = 100
@@ -151,8 +153,6 @@ class Sketchup::Entity
151
153
  # The dictionaries cannot be deleted via ruby and an ArgumentError will be
152
154
  # raised. The key/value pairs in the dictionary can be deleted safely.
153
155
  #
154
- # @note The return values are fixed in SketchUp 2019 M0.
155
- #
156
156
  # @overload delete_attribute(dictionary_name)
157
157
  #
158
158
  # @param dictionary_name [String] The name of an attribute dictionary.
@@ -181,7 +181,7 @@ class Sketchup::Importer
181
181
  # return true
182
182
  # end
183
183
  #
184
- # @return supports_options - a boolean
184
+ # @return [Boolean] supports_options - a boolean
185
185
  #
186
186
  # @version SketchUp 6.0
187
187
  def supports_options?
@@ -142,7 +142,7 @@ class Sketchup::InputPoint
142
142
  # ip1 = view.inputpoint x,y
143
143
  # status = ip1.display
144
144
  #
145
- # @return status - true if the draw method will draw something,
145
+ # @return [Boolean] status - true if the draw method will draw something,
146
146
  # false if the draw method has nothing to draw
147
147
  #
148
148
  # @version SketchUp 6.0
@@ -365,7 +365,7 @@ class Sketchup::InputPoint
365
365
  # ip1 = view.inputpoint x,y
366
366
  # status = ip1.valid?
367
367
  #
368
- # @return status - true if the input point has valid data, false
368
+ # @return [Boolean] status - true if the input point has valid data, false
369
369
  # if it does not have valid data.
370
370
  #
371
371
  # @version SketchUp 6.0
@@ -253,7 +253,7 @@ class Sketchup::Layer < Sketchup::Entity
253
253
  # new_layer = layers.add "test layer"
254
254
  # UI.messagebox(new_layer.visible?)
255
255
  #
256
- # @return true if the layer is visible
256
+ # @return [Boolean] true if the layer is visible
257
257
  #
258
258
  # @version SketchUp 6.0
259
259
  def visible?
@@ -56,7 +56,7 @@ class Sketchup::Licensing::ExtensionLicense
56
56
  # puts "Extension is licensed."
57
57
  # end
58
58
  #
59
- # @return Boolean - true if the extension is allowed to run, false
59
+ # @return [Boolean] Boolean - true if the extension is allowed to run, false
60
60
  # if it is not licensed and should quit.
61
61
  #
62
62
  # @version SketchUp 2015
@@ -26,7 +26,7 @@ class Sketchup::Loop < Sketchup::Entity
26
26
  # puts "Loop is not convex."
27
27
  # end
28
28
  #
29
- # @return status - true if convex, false if not convex.
29
+ # @return [Boolean] status - true if convex, false if not convex.
30
30
  #
31
31
  # @version SketchUp 6.0
32
32
  def convex?
@@ -108,7 +108,7 @@ class Sketchup::Loop < Sketchup::Entity
108
108
  # puts "Loop is not an outer loop."
109
109
  # end
110
110
  #
111
- # @return status - true if the loop is an outer loop, false if it
111
+ # @return [Boolean] status - true if the loop is an outer loop, false if it
112
112
  # is not an outer loop.
113
113
  #
114
114
  # @version SketchUp 6.0
@@ -31,6 +31,10 @@ class Sketchup::Material < Sketchup::Entity
31
31
  MATERIAL_SOLID = nil # Stub value.
32
32
  MATERIAL_TEXTURED = nil # Stub value.
33
33
 
34
+ OWNER_IMAGE = nil # Stub value.
35
+ OWNER_LAYER = nil # Stub value.
36
+ OWNER_MANAGER = nil # Stub value.
37
+
34
38
  # Instance Methods
35
39
 
36
40
  # The <=> method is used to compare two materials based on name. The number
@@ -291,6 +295,20 @@ class Sketchup::Material < Sketchup::Entity
291
295
  def name=(str)
292
296
  end
293
297
 
298
+ # The {#owner_type} method is used to determine if the material is owned
299
+ # by a {Sketchup::Materials}.
300
+ #
301
+ # Returned value is one of:
302
+ # * +Sketchup::Material::OWNER_MANAGER+
303
+ # * +Sketchup::Material::OWNER_IMAGE+
304
+ # * +Sketchup::Material::OWNER_LAYER+
305
+ #
306
+ # @return [Integer]
307
+ #
308
+ # @version SketchUp 2019.2
309
+ def owner_type
310
+ end
311
+
294
312
  # The {#save_as} method is used to write a material to a SKM file.
295
313
  #
296
314
  # You must remember to append ".skm" to the filename as this will not be done
@@ -1149,7 +1149,8 @@ class Sketchup::Model
1149
1149
  # Sketchup::Model::VERSION_2015,
1150
1150
  # Sketchup::Model::VERSION_2016,
1151
1151
  # Sketchup::Model::VERSION_2017,
1152
- # Sketchup::Model::VERSION_2018
1152
+ # Sketchup::Model::VERSION_2018,
1153
+ # Sketchup::Model::VERSION_2019
1153
1154
  #
1154
1155
  # @return [Boolean] true if successful, false if unsuccessful
1155
1156
  #
@@ -1184,7 +1185,8 @@ class Sketchup::Model
1184
1185
  # Sketchup::Model::VERSION_2015,
1185
1186
  # Sketchup::Model::VERSION_2016,
1186
1187
  # Sketchup::Model::VERSION_2017,
1187
- # Sketchup::Model::VERSION_2018
1188
+ # Sketchup::Model::VERSION_2018,
1189
+ # Sketchup::Model::VERSION_2019
1188
1190
  #
1189
1191
  # @return [Boolean] true if successful, false if unsuccessful
1190
1192
  #