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 raised whenever a method attempts to modify any {Layout::Entity}
@@ -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 raised whenever a method attempts to modify any {Layout::Entity}
@@ -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
  # Class for a single page in a LayOut document.
@@ -173,11 +173,11 @@ class Layout::Page
173
173
  #
174
174
  # @param [Boolean] visible
175
175
  #
176
+ # @raise [ArgumentError] if layer and page are not in the same document
177
+ #
176
178
  # @raise [ArgumentError] if layer could not be hidden because there must be at
177
179
  # least one unlocked, visible layer on each page
178
180
  #
179
- # @raise [ArgumentError] if layer and page are not in the same document
180
- #
181
181
  # @return [Boolean]
182
182
  #
183
183
  # @version LayOut 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
  # This is the interface to a {Layout::Document}'s paper space information. 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
  # The Pages class is a container class for all pages in a {Layout::Document}.
@@ -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 path entity represents a continuous, multi-segment polyline or bezier
@@ -9,6 +9,10 @@ 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
+
12
16
  POINT_TYPE_ARC_CENTER = nil # Stub value.
13
17
  POINT_TYPE_BEZIER_CONTROL = nil # Stub value.
14
18
  POINT_TYPE_BEZIER_TO = nil # Stub value.
@@ -35,10 +39,10 @@ class Layout::Path < Layout::Entity
35
39
  #
36
40
  # @param [Float] end_angle
37
41
  #
38
- # @raise [ArgumentError] if start angle is equal to end angle
39
- #
40
42
  # @raise [ArgumentError] if radius is less than or equal to zero
41
43
  #
44
+ # @raise [ArgumentError] if start angle is equal to end angle
45
+ #
42
46
  # @return [Layout::Path] an arc path
43
47
  #
44
48
  # @version LayOut 2018
@@ -56,20 +60,20 @@ class Layout::Path < Layout::Entity
56
60
  #
57
61
  # @overload append_point(point)
58
62
  #
59
- # @param [Geom::Point2d] append_point
63
+ # @param [Geom::Point2d] point
60
64
  # @return [Layout::Path]
61
65
  #
62
- # @overload append_point(point, control_point1, control_point2)
66
+ # @overload append_point(control_point1, control_point2, point)
63
67
  #
64
- # @param [Geom::Point2d] point The point to append
65
68
  # @param [Geom::Point2d] control_point1 The first bezier control point
66
69
  # @param [Geom::Point2d] control_point2 The second bezier control point
70
+ # @param [Geom::Point2d] point The point to append
67
71
  # @return [Layout::Path]
68
72
  #
69
- # @raise [LockedEntityError] if the {Layout::Path} is locked
70
- #
71
73
  # @raise [LockedLayerError] if the {Layout::Path} is on a locked {Layout::Layer}
72
74
  #
75
+ # @raise [LockedEntityError] if the {Layout::Path} is locked
76
+ #
73
77
  # @version LayOut 2018
74
78
  def append_point(*args)
75
79
  end
@@ -107,11 +111,11 @@ class Layout::Path < Layout::Entity
107
111
  # @raise [LockedLayerError] if the {Layout::Path} is on a locked
108
112
  # {Layout::Layer}
109
113
  #
110
- # @raise [LockedEntityError] if the {Layout::Path} is locked
111
- #
112
114
  # @raise [ArgumentError] if the {Layout::Path} can not be closed becauase it
113
115
  # contains less than three points.
114
116
  #
117
+ # @raise [LockedEntityError] if the {Layout::Path} is locked
118
+ #
115
119
  # @version LayOut 2018
116
120
  def close
117
121
  end
@@ -161,43 +165,36 @@ class Layout::Path < Layout::Entity
161
165
  #
162
166
  # @example
163
167
  # start = Geom::Point2d.new(1, 1)
164
- # control_1 = Geom::Point2d.new(1.5, 1)
165
- # control_2 = Geom::Point2d.new(1, 1.5)
166
168
  # end = Geom::Point2d.new(2, 2)
167
- # new_path = Layout::Path.new(start, control_1, control_2, end)
169
+ # new_path = Layout::Path.new(start, end)
168
170
  #
169
171
  # @example
170
172
  # start = Geom::Point2d.new(1, 1)
173
+ # control_1 = Geom::Point2d.new(1.5, 1)
174
+ # control_2 = Geom::Point2d.new(1, 1.5)
171
175
  # end = Geom::Point2d.new(2, 2)
172
- # new_path = Layout::Path.new(start, end)
176
+ # new_path = Layout::Path.new(start, control_1, control_2, end)
173
177
  #
174
- # @overload initialize(start_point, control_point_1, control_point_2, end_point)
178
+ # @overload initialize(start_point, end_point)
175
179
  #
176
180
  # @param [Geom::Point2D] start_point
177
- # @param [Geom::Point2D] control_point_1 The first bezier control point
178
- # @param [Geom::Point2D] control_point_2 The second bezier control point
179
181
  # @param [Geom::Point2D] end_point
180
- # @return [Layout::Path] a bezier path
182
+ # @return [Layout::Path] a straight path
181
183
  #
182
184
  # @raise [ArgumentError] if the length between start point and end point is
183
185
  # zero
184
186
  #
185
- # @overload initialize(start_point, end_point)
187
+ # @overload initialize(start_point, control_point_1, control_point_2, end_point)
186
188
  #
187
189
  # @param [Geom::Point2D] start_point
190
+ # @param [Geom::Point2D] control_point_1 The first bezier control point
191
+ # @param [Geom::Point2D] control_point_2 The second bezier control point
188
192
  # @param [Geom::Point2D] end_point
189
- # @return [Layout::Path] a straight path
193
+ # @return [Layout::Path] a bezier path
190
194
  #
191
195
  # @raise [ArgumentError] if the length between start point and end point is
192
196
  # zero
193
197
  #
194
- # @overload initialize(ellipse)
195
- #
196
- # @param [Layout::Ellipse] ellipse
197
- # @return [Layout::Path] a path created from the {Layout::Ellipse}
198
- #
199
- # @raise [TypeError] if ellipse is not an {Layout::Ellipse}
200
- #
201
198
  # @overload initialize(rectangle)
202
199
  #
203
200
  # @param [Layout::Rectangle] rectangle
@@ -205,6 +202,13 @@ class Layout::Path < Layout::Entity
205
202
  #
206
203
  # @raise [TypeError] if rectangle is not a {Layout::Rectangle}
207
204
  #
205
+ # @overload initialize(ellipse)
206
+ #
207
+ # @param [Layout::Ellipse] ellipse
208
+ # @return [Layout::Path] a path created from the {Layout::Ellipse}
209
+ #
210
+ # @raise [TypeError] if ellipse is not an {Layout::Ellipse}
211
+ #
208
212
  # @version LayOut 2018
209
213
  def initialize(*args)
210
214
  end
@@ -323,4 +327,20 @@ class Layout::Path < Layout::Entity
323
327
  def tangent_at(parametric_value)
324
328
  end
325
329
 
330
+ # The {#winding} method returns the winding type of the {Layout::Path}.
331
+ #
332
+ # A point type can be one of the following values:
333
+ # [+PATH_WINDING_NONE+]
334
+ # [+PATH_WINDING_CLOCKWISE+]
335
+ # [+PATH_WINDING_COUNTER_CLOCKWISE+]
336
+ #
337
+ # @example
338
+ # winding = path.winding
339
+ #
340
+ # @return [Integer]
341
+ #
342
+ # @version LayOut 2019
343
+ def winding
344
+ end
345
+
326
346
  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
  # A simple rectangular shape entity.
@@ -59,14 +59,14 @@ class Layout::Rectangle < Layout::Entity
59
59
  # @param [Float] radius
60
60
  # @return [Layout::Rectangle]
61
61
  #
62
- # @raise [ArgumentError] if radius is a negative value
62
+ # @raise [ArgumentError] if type passed in does not match the number of
63
+ # arguments
63
64
  #
64
65
  # @raise [ArgumentError] if bounds is zero size
65
66
  #
66
67
  # @raise [ArgumentError] if type is not a valid type
67
68
  #
68
- # @raise [ArgumentError] if type passed in does not match the number of
69
- # arguments
69
+ # @raise [ArgumentError] if radius is a negative value
70
70
  #
71
71
  # @version LayOut 2018
72
72
  def initialize(*args)
@@ -107,12 +107,12 @@ class Layout::Rectangle < Layout::Entity
107
107
  # @raise [ArgumentError] if the {Layout::Rectangle} is not of type
108
108
  # +Layout::Rectangle::TYPE_BULGED+ or +Layout::Rectangle::TYPE_ROUNDED+
109
109
  #
110
- # @raise [LockedEntityError] if the {Layout::Rectangle} is locked
110
+ # @raise [ArgumentError] if radius is negative
111
111
  #
112
112
  # @raise [LockedLayerError] if the {Layout::Rectangle} is on a locked
113
113
  # {Layout::Layer}
114
114
  #
115
- # @raise [ArgumentError] if radius is negative
115
+ # @raise [LockedEntityError] if the {Layout::Rectangle} is locked
116
116
  #
117
117
  # @version LayOut 2018
118
118
  def radius=(radius)
@@ -163,10 +163,10 @@ class Layout::Rectangle < Layout::Entity
163
163
  # @raise [LockedLayerError] if the {Layout::Rectangle} is on a locked
164
164
  # {Layout::Layer}
165
165
  #
166
- # @raise [ArgumentError] if type is not a valid rectangle type
167
- #
168
166
  # @raise [LockedEntityError] if the {Layout::Rectangle} is locked
169
167
  #
168
+ # @raise [ArgumentError] if type is not a valid rectangle type
169
+ #
170
170
  # @version LayOut 2018
171
171
  def type=(type)
172
172
  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
  # A SketchUp Model entity. This is an instance of a SketchUp Model that is
@@ -18,11 +18,11 @@ class Layout::SketchUpModel < Layout::Entity
18
18
 
19
19
  # Constants
20
20
 
21
+ BACK_VIEW = nil # Stub value.
22
+
21
23
  BOTTOM_RELATIVE_VIEW = nil # Stub value.
22
24
  BOTTOM_VIEW = nil # Stub value.
23
25
 
24
- BACK_VIEW = nil # Stub value.
25
-
26
26
  CUSTOM_VIEW = nil # Stub value.
27
27
 
28
28
  FRONT_VIEW = nil # Stub value.
@@ -33,10 +33,10 @@ class Layout::SketchUpModel < Layout::Entity
33
33
 
34
34
  LEFT_VIEW = nil # Stub value.
35
35
 
36
- RIGHT_VIEW = nil # Stub value.
37
-
38
36
  RASTER_RENDER = nil # Stub value.
39
37
 
38
+ RIGHT_VIEW = nil # Stub value.
39
+
40
40
  TOP_RELATIVE_VIEW = nil # Stub value.
41
41
  TOP_VIEW = nil # Stub value.
42
42
 
@@ -73,13 +73,13 @@ class Layout::SketchUpModel < Layout::Entity
73
73
  #
74
74
  # @raise [ArgumentError] if clip_mask is already in a {Layout::Document}
75
75
  #
76
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
76
+ # @raise [ArgumentError] if clip_mask is not a {Layout::Rectangle},
77
+ # {Layout::Ellipse}, or {Layout::Path}
77
78
  #
78
79
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
79
80
  # {Layout::Layer}
80
81
  #
81
- # @raise [ArgumentError] if clip_mask is not a {Layout::Rectangle},
82
- # {Layout::Ellipse}, or {Layout::Path}
82
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
83
83
  #
84
84
  # @version LayOut 2018
85
85
  def clip_mask=(clip_mask)
@@ -113,11 +113,11 @@ class Layout::SketchUpModel < Layout::Entity
113
113
  #
114
114
  # @raise [IndexError] if index is out of range
115
115
  #
116
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
117
- #
118
116
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
119
117
  # {Layout::Layer}
120
118
  #
119
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
120
+ #
121
121
  # @version LayOut 2018
122
122
  def current_scene=(index)
123
123
  end
@@ -140,6 +140,41 @@ class Layout::SketchUpModel < Layout::Entity
140
140
  def current_scene_modified?
141
141
  end
142
142
 
143
+ # The {#dash_scale} method returns the dash scale for the
144
+ # {Layout::SketchUpModel}. A scale value of 0.0 means the dashes are scaled
145
+ # based on the line weight.
146
+ #
147
+ # @example
148
+ # bounds = Geom::Bounds2d.new(1, 1, 3, 3)
149
+ # model = Layout::SketchUpModel.new("C:/Path/to/model.skp", bounds)
150
+ # dash_scale = model.dash_scale
151
+ #
152
+ # @return [Float]
153
+ #
154
+ # @version LayOut 2019
155
+ def dash_scale
156
+ end
157
+
158
+ # The {#dash_scale=} method sets the dash scale for the {Layout::SketchUpModel}.
159
+ # A scale value of 0.0 or lower will "auto" scale the dashes based on the line
160
+ # weight.
161
+ #
162
+ # @example
163
+ # bounds = Geom::Bounds2d.new(1, 1, 3, 3)
164
+ # model = Layout::SketchUpModel.new("C:/Path/to/model.skp", bounds)
165
+ # model.dash_scale = 2.5
166
+ #
167
+ # @param [Float] dash_scale
168
+ #
169
+ # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
170
+ # {Layout::Layer}
171
+ #
172
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
173
+ #
174
+ # @version LayOut 2018
175
+ def dash_scale=(dash_scale)
176
+ end
177
+
143
178
  # The {#display_background=} method sets whether the background is displayed
144
179
  # for the {Layout::SketchUpModel}.
145
180
  #
@@ -150,11 +185,11 @@ class Layout::SketchUpModel < Layout::Entity
150
185
  #
151
186
  # @param [Boolean] display
152
187
  #
153
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
154
- #
155
188
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
156
189
  # {Layout::Layer}
157
190
  #
191
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
192
+ #
158
193
  # @version LayOut 2018
159
194
  def display_background=(display)
160
195
  end
@@ -203,10 +238,10 @@ class Layout::SketchUpModel < Layout::Entity
203
238
  #
204
239
  # @param [Geom::Bounds2d] bounds
205
240
  #
206
- # @raise [ArgumentError] if bounds is zero size
207
- #
208
241
  # @raise [ArgumentError] if path does not point to a valid SketchUp Model file
209
242
  #
243
+ # @raise [ArgumentError] if bounds is zero size
244
+ #
210
245
  # @return [Layout::SketchUpModel]
211
246
  #
212
247
  # @version LayOut 2018
@@ -239,11 +274,11 @@ class Layout::SketchUpModel < Layout::Entity
239
274
  #
240
275
  # @raise [ArgumentError] if line_weight is less than 0.01
241
276
  #
242
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
243
- #
244
277
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
245
278
  # {Layout::Layer}
246
279
  #
280
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
281
+ #
247
282
  # @version LayOut 2018
248
283
  def line_weight=(line_weight)
249
284
  end
@@ -275,11 +310,11 @@ class Layout::SketchUpModel < Layout::Entity
275
310
  #
276
311
  # @param [Boolean] perspective
277
312
  #
278
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
279
- #
280
313
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
281
314
  # {Layout::Layer}
282
315
  #
316
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
317
+ #
283
318
  # @version LayOut 2018
284
319
  def perspective=(perspective)
285
320
  end
@@ -310,11 +345,11 @@ class Layout::SketchUpModel < Layout::Entity
310
345
  #
311
346
  # @param [Boolean] preserve_scale
312
347
  #
313
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
314
- #
315
348
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
316
349
  # {Layout::Layer}
317
350
  #
351
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
352
+ #
318
353
  # @version LayOut 2018
319
354
  def preserve_scale_on_resize=(preserve_scale)
320
355
  end
@@ -387,11 +422,11 @@ class Layout::SketchUpModel < Layout::Entity
387
422
  #
388
423
  # @raise [ArgumentError] if render_mode is not a valid render mode
389
424
  #
390
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
391
- #
392
425
  # @raise [LockedLayertError] if the {Layout::SketchUpModel} is on a locked
393
426
  # {Layout::Layer}
394
427
  #
428
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
429
+ #
395
430
  # @version LayOut 2018
396
431
  def render_mode=(render_mode)
397
432
  end
@@ -437,12 +472,12 @@ class Layout::SketchUpModel < Layout::Entity
437
472
  #
438
473
  # @raise [ArgumentError] if the {Layout::SketchUpModel} view is not orthographic
439
474
  #
440
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
475
+ # @raise [ArgumentError] if scale is less than 0.0000001
441
476
  #
442
477
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
443
478
  # {Layout::Layer}
444
479
  #
445
- # @raise [ArgumentError] if scale is less than 0.0000001
480
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
446
481
  #
447
482
  # @version LayOut 2018
448
483
  def scale=(scale)
@@ -510,11 +545,11 @@ class Layout::SketchUpModel < Layout::Entity
510
545
  #
511
546
  # @raise [ArgumentError] if view is not a valid standard view
512
547
  #
513
- # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
514
- #
515
548
  # @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
516
549
  # {Layout::Layer}
517
550
  #
551
+ # @raise [LockedEntityError] if the {Layout::SketchUpModel} is locked
552
+ #
518
553
  # @version LayOut 2018
519
554
  def view=(view)
520
555
  end