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
@@ -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 Vector3d class is used to represent vectors in a 3 dimensional space.
@@ -321,9 +321,9 @@ class Geom::Vector3d
321
321
  # @param [Numeric] z
322
322
  # @return [Geom::Vector3d]
323
323
  #
324
- # @overload initialize(vector)
324
+ # @overload initialize(array3d)
325
325
  #
326
- # @param vector [Geom::Vector3d] A Vector3d object.
326
+ # @param [Array(Numeric, Numeric, Numeric)] array3d
327
327
  # @return [Geom::Vector3d]
328
328
  #
329
329
  # @overload initialize(array2d)
@@ -331,9 +331,9 @@ class Geom::Vector3d
331
331
  # @param [Array(Numeric, Numeric)] array2d
332
332
  # @return [Geom::Vector3d]
333
333
  #
334
- # @overload initialize(array3d)
334
+ # @overload initialize(vector)
335
335
  #
336
- # @param [Array(Numeric, Numeric, Numeric)] array3d
336
+ # @param vector [Geom::Vector3d] A Vector3d object.
337
337
  # @return [Geom::Vector3d]
338
338
  #
339
339
  # @version SketchUp 6.0
@@ -508,11 +508,9 @@ class Geom::Vector3d
508
508
  # vector = Geom::Vector3d.new(0,0,1)
509
509
  # vector.set! 1,0,0
510
510
  #
511
- # @overload set!(x, y, z)
511
+ # @overload set!(array3d)
512
512
  #
513
- # @param [Numeric] x
514
- # @param [Numeric] y
515
- # @param [Numeric] z
513
+ # @param array3d [Array(Numeric, Numeric, Numeric)]
516
514
  # @return [Geom::Vector3d]
517
515
  #
518
516
  # @overload set!(vector)
@@ -520,9 +518,11 @@ class Geom::Vector3d
520
518
  # @param vector [Geom::Vector3d]
521
519
  # @return [Geom::Vector3d]
522
520
  #
523
- # @overload set!(array3d)
521
+ # @overload set!(x, y, z)
524
522
  #
525
- # @param array3d [Array(Numeric, Numeric, Numeric)]
523
+ # @param [Numeric] x
524
+ # @param [Numeric] y
525
+ # @param [Numeric] z
526
526
  # @return [Geom::Vector3d]
527
527
  #
528
528
  # @version SketchUp 6.0
data/SketchUp/Layout.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 LayOut module is the root of the LayOut Ruby API. Many of the classes in
@@ -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 angular dimension entity. An {Layout::AngularDimension} is
@@ -83,11 +83,11 @@ class Layout::AngularDimension < Layout::Entity
83
83
  #
84
84
  # @param [Boolean] uses_custom_text
85
85
  #
86
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
87
- #
88
86
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
89
87
  # {Layout::Layer}
90
88
  #
89
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
90
+ #
91
91
  # @version LayOut 2018
92
92
  def custom_text=(uses_custom_text)
93
93
  end
@@ -145,11 +145,11 @@ class Layout::AngularDimension < Layout::Entity
145
145
  #
146
146
  # @param [Geom::Point2d] end_point
147
147
  #
148
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
149
- #
150
148
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
151
149
  # {Layout::Layer}
152
150
  #
151
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
152
+ #
153
153
  # @version LayOut 2018
154
154
  def end_connection_point=(end_point)
155
155
  end
@@ -187,11 +187,11 @@ class Layout::AngularDimension < Layout::Entity
187
187
  #
188
188
  # @param [Geom::Point2d] end_extent
189
189
  #
190
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
191
- #
192
190
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
193
191
  # {Layout::Layer}
194
192
  #
193
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
194
+ #
195
195
  # @version LayOut 2018
196
196
  def end_extent_point=(end_extent)
197
197
  end
@@ -212,11 +212,11 @@ class Layout::AngularDimension < Layout::Entity
212
212
  #
213
213
  # @param [Numeric] offset_length
214
214
  #
215
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
216
- #
217
215
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
218
216
  # {Layout::Layer}
219
217
  #
218
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
219
+ #
220
220
  # @version LayOut 2018
221
221
  def end_offset_length=(offset_length)
222
222
  end
@@ -284,14 +284,14 @@ class Layout::AngularDimension < Layout::Entity
284
284
  # The extent point where the
285
285
  # dimension line should start
286
286
  #
287
- # @param [Boolean] inner_angle
288
- # Whether or not the {Layout::AngularDimension}
289
- # should measure the inner angle. If +false+, it will measure the outer angle.
290
- #
291
287
  # @param [Geom::Point2d] end_extent_point
292
288
  # The extent point where the dimension
293
289
  # line should end
294
290
  #
291
+ # @param [Boolean] inner_angle
292
+ # Whether or not the {Layout::AngularDimension}
293
+ # should measure the inner angle. If +false+, it will measure the outer angle.
294
+ #
295
295
  # @return [Layout::AngularDimension]
296
296
  #
297
297
  # @version LayOut 2018
@@ -345,11 +345,11 @@ class Layout::AngularDimension < Layout::Entity
345
345
  #
346
346
  # @raise [ArgumentError] if type is not a valid leader line type
347
347
  #
348
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
349
- #
350
348
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
351
349
  # {Layout::Layer}
352
350
  #
351
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
352
+ #
353
353
  # @version LayOut 2018
354
354
  def leader_line_type=(type)
355
355
  end
@@ -388,11 +388,11 @@ class Layout::AngularDimension < Layout::Entity
388
388
  #
389
389
  # @raise [ArgumentError] is radius is negative
390
390
  #
391
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
392
- #
393
391
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
394
392
  # {Layout::Layer}
395
393
  #
394
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
395
+ #
396
396
  # @version LayOut 2018
397
397
  def radius=(radius)
398
398
  end
@@ -429,11 +429,11 @@ class Layout::AngularDimension < Layout::Entity
429
429
  #
430
430
  # @param [Geom::Point2d] start_point
431
431
  #
432
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
433
- #
434
432
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
435
433
  # {Layout::Layer}
436
434
  #
435
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
436
+ #
437
437
  # @version LayOut 2018
438
438
  def start_connection_point=(start_point)
439
439
  end
@@ -471,11 +471,11 @@ class Layout::AngularDimension < Layout::Entity
471
471
  #
472
472
  # @param [Geom::Point2d] start_extent
473
473
  #
474
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
475
- #
476
474
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
477
475
  # {Layout::Layer}
478
476
  #
477
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
478
+ #
479
479
  # @version LayOut 2018
480
480
  def start_extent_point=(start_extent)
481
481
  end
@@ -496,11 +496,11 @@ class Layout::AngularDimension < Layout::Entity
496
496
  #
497
497
  # @param [Numeric] offset_length
498
498
  #
499
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
500
- #
501
499
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
502
500
  # {Layout::Layer}
503
501
  #
502
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
503
+ #
504
504
  # @version LayOut 2018
505
505
  def start_offset_length=(offset_length)
506
506
  end
@@ -557,11 +557,11 @@ class Layout::AngularDimension < Layout::Entity
557
557
  #
558
558
  # @param [Layout::FormattedText] formatted_text
559
559
  #
560
- # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
561
- #
562
560
  # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
563
561
  # {Layout::Layer}
564
562
  #
563
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
564
+ #
565
565
  # @version LayOut 2018
566
566
  def text=(formatted_text)
567
567
  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
  # References an auto text definition. Some auto text definitions are mandatory.
@@ -273,11 +273,11 @@ class Layout::AutoTextDefinition
273
273
  #
274
274
  # @raise [ArgumentError] if the {Layout::AutoTextDefinition} is a mandatory type
275
275
  #
276
- # @raise [ArgumentError] if name is an empty string
277
- #
278
276
  # @raise [ArgumentError] if name matches an existing
279
277
  # {Layout::AutoTextDefinition}
280
278
  #
279
+ # @raise [ArgumentError] if name is an empty string
280
+ #
281
281
  # @version LayOut 2018
282
282
  def name=(name)
283
283
  end
@@ -325,11 +325,11 @@ class Layout::AutoTextDefinition
325
325
  #
326
326
  # @param [Integer] number_style
327
327
  #
328
- # @raise [ArgumentError] if number_style is not a valid page numbering style
329
- #
330
328
  # @raise [ArgumentError] if the {Layout::AutoTextDefinition}'s type is not
331
329
  # +Layout::AutoTextDefinition::TYPE_PAGE_NUMBER+.
332
330
  #
331
+ # @raise [ArgumentError] if number_style is not a valid page numbering style
332
+ #
333
333
  # @version LayOut 2018
334
334
  def page_number_style=(number_style)
335
335
  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 AutoTextDefinitions class is a container class for all
@@ -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 Connection Point. A
@@ -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. A {Layout::Document} is the 2D
@@ -44,6 +44,7 @@ class Layout::Document
44
44
  VERSION_2016 = nil # Stub value.
45
45
  VERSION_2017 = nil # Stub value.
46
46
  VERSION_2018 = nil # Stub value.
47
+ VERSION_2019 = nil # Stub value.
47
48
  VERSION_3 = nil # Stub value.
48
49
  VERSION_CURRENT = nil # Stub value.
49
50
 
@@ -118,11 +119,11 @@ class Layout::Document
118
119
  # @raise [ArgumentError] if no {Layout::Page} is passed in and layer is
119
120
  # non-shared
120
121
  #
121
- # @raise [ArgumentError] if entity already belongs to a {Layout::Document}
122
+ # @raise [ArgumentError] if page does not belong to the {Layout::Document}
122
123
  #
123
124
  # @raise [ArgumentError] if layer does not belong to the {Layout::Document}
124
125
  #
125
- # @raise [ArgumentError] if page does not belong to the {Layout::Document}
126
+ # @raise [ArgumentError] if entity already belongs to a {Layout::Document}
126
127
  #
127
128
  # @version LayOut 2018
128
129
  def add_entity(*args)
@@ -202,10 +203,10 @@ class Layout::Document
202
203
  # @return [Layout::Document] an unsaved {Layout::Document} based on the
203
204
  # template
204
205
  #
205
- # @raise [ArgumentError] if the template file could not be found
206
- #
207
206
  # @raise [RuntimeError] if there was an error reading the template file
208
207
  #
208
+ # @raise [ArgumentError] if the template file could not be found
209
+ #
209
210
  # @version LayOut 2018
210
211
  def initialize(*args)
211
212
  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 elliptical shape 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
  # The Entities class is a container class for {Layout::Entity}s. A
@@ -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 entity is an object shown on a page of a LayOut document.
@@ -159,17 +159,17 @@ class Layout::Entity
159
159
  #
160
160
  # @param [Layout::Group] group
161
161
  #
162
- # @raise [ArgumentError] if entity and group are not in the same
163
- # {Layout::Document}
164
- #
165
162
  # @raise [LockedLayerError] if the {Layout::Entity} is on a locked
166
163
  # {Layout::Layer}
167
164
  #
168
- # @raise [LockedEntityError] if the {Layout::Entity} is locked
165
+ # @raise [ArgumentError] if entity and group are not in the same
166
+ # {Layout::Document}
167
+ #
168
+ # @raise [ArgumentError] if entity and group are not on the same {Layout::Page}
169
169
  #
170
170
  # @raise [ArgumentError] if of entity and group one is shared and one is not
171
171
  #
172
- # @raise [ArgumentError] if entity and group are not on the same {Layout::Page}
172
+ # @raise [LockedEntityError] if the {Layout::Entity} is locked
173
173
  #
174
174
  # @version LayOut 2018
175
175
  def move_to_group(group)
@@ -201,15 +201,15 @@ class Layout::Entity
201
201
  # @raise [ArgumentError] if layer is shared and a valid array of non-duplicate
202
202
  # {Layout::Page}s is not passed in
203
203
  #
204
- # @raise [LockedEntityError] if the {Layout::Entity} is locked
204
+ # @raise [ArgumentError] if entity, layer, and pages are not all in the same
205
+ # {Layout::Document}
205
206
  #
206
207
  # @raise [LockedLayerError] if the {Layout::Entity} is on a locked
207
208
  # {Layout::Layer}
208
209
  #
209
210
  # @raise [LockedLayerError] if layer is locked
210
211
  #
211
- # @raise [ArgumentError] if entity, layer, and pages are not all in the same
212
- # {Layout::Document}
212
+ # @raise [LockedEntityError] if the {Layout::Entity} is locked
213
213
  #
214
214
  # @version LayOut 2018
215
215
  def move_to_layer(*args)
@@ -272,11 +272,11 @@ class Layout::Entity
272
272
  #
273
273
  # @param [Layout::Style] style
274
274
  #
275
- # @raise [LockedEntityError] if the {Layout::Entity} is locked
276
- #
277
275
  # @raise [LockedLayerError] if the {Layout::Entity} is on a locked
278
276
  # {Layout::Layer}
279
277
  #
278
+ # @raise [LockedEntityError] if the {Layout::Entity} is locked
279
+ #
280
280
  # @version LayOut 2018
281
281
  def style=(style)
282
282
  end
@@ -292,11 +292,11 @@ class Layout::Entity
292
292
  #
293
293
  # @param [Geom::Transformation2d] transformation
294
294
  #
295
- # @raise [LockedEntityError] if the {Layout::Entity} is locked
296
- #
297
295
  # @raise [LockedLayerError] if the {Layout::Entity} is on a locked
298
296
  # {Layout::Layer}
299
297
  #
298
+ # @raise [LockedEntityError] if the {Layout::Entity} is locked
299
+ #
300
300
  # @version LayOut 2018
301
301
  def transform!(transformation)
302
302
  end
@@ -349,12 +349,12 @@ class Layout::Entity
349
349
  # @raise [ArgumentError] if the {Layout::Entity} does not have an explicit
350
350
  # {Geom::Transformation2d}
351
351
  #
352
- # @raise [ArgumentError] if the bounds are of zero size
352
+ # @raise [LockedLayerError] if the {Layout::Entity} is on a locked
353
+ # {Layout::Layer}
353
354
  #
354
355
  # @raise [LockedEntityError] if the {Layout::Entity} is locked
355
356
  #
356
- # @raise [LockedLayerError] if the {Layout::Entity} is on a locked
357
- # {Layout::Layer}
357
+ # @raise [ArgumentError] if the bounds are of zero size
358
358
  #
359
359
  # @version LayOut 2018
360
360
  def untransformed_bounds=(bounds)
@@ -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 formatted text entity.
@@ -56,11 +56,11 @@ class Layout::FormattedText < Entity
56
56
  # {Layout::FormattedText} is set by anchor_point.
57
57
  # @return [Layout::FormattedText]
58
58
  #
59
- # @raise [ArgumentError] if path does not refer to a valid file
59
+ # @raise [ArgumentError] if the passed in string is empty
60
60
  #
61
61
  # @raise [ArgumentError] if bounds is zero size
62
62
  #
63
- # @raise [ArgumentError] if the passed in string is empty
63
+ # @raise [ArgumentError] if path does not refer to a valid file
64
64
  #
65
65
  # @version LayOut 2018
66
66
  def self.new_from_file(*args)
@@ -84,11 +84,11 @@ class Layout::FormattedText < Entity
84
84
  #
85
85
  # @param [Layout::Style] style
86
86
  #
87
+ # @raise [ArgumentError] if plain_text is empty
88
+ #
87
89
  # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
88
90
  # {Layout::Layer}
89
91
  #
90
- # @raise [ArgumentError] if plain_text is empty
91
- #
92
92
  # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
93
93
  #
94
94
  # @version LayOut 2018
@@ -105,18 +105,18 @@ class Layout::FormattedText < Entity
105
105
  # style.text_bold = true
106
106
  # text.apply_style(style, 2, 4)
107
107
  #
108
- # @param [Integer] length
108
+ # @param [Layout::Style] style
109
109
  #
110
110
  # @param [Integer] index
111
111
  #
112
- # @param [Layout::Style] style
112
+ # @param [Integer] length
113
113
  #
114
- # @raise [RangeError] if the range specified by index and length is not
115
- # valid for this {Layout::FormattedText}
114
+ # @raise [IndexError] if index is out of range
116
115
  #
117
116
  # @raise [ArgumentError] if length is not greater than zero
118
117
  #
119
- # @raise [IndexError] if index is out of range
118
+ # @raise [RangeError] if the range specified by index and length is not
119
+ # valid for this {Layout::FormattedText}
120
120
  #
121
121
  # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
122
122
  # {Layout::Layer}
@@ -182,13 +182,13 @@ class Layout::FormattedText < Entity
182
182
  # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
183
183
  # text.grow_mode = GROW_MODE_UNBOUNDED
184
184
  #
185
- # @raise [ArgumentError] if grow_mode is not a valid grow mode
186
- #
187
185
  # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
188
186
  # {Layout::Layer}
189
187
  #
190
188
  # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
191
189
  #
190
+ # @raise [ArgumentError] if grow_mode is not a valid grow mode
191
+ #
192
192
  # @return [Integer] grow_mode
193
193
  #
194
194
  # @version LayOut 2018
@@ -227,10 +227,10 @@ class Layout::FormattedText < Entity
227
227
  # {Layout::FormattedText} is set by anchor_point.
228
228
  # @return [Layout::FormattedText]
229
229
  #
230
- # @raise [ArgumentError] if bounds is zero size
231
- #
232
230
  # @raise [ArgumentError] if the passed in string is empty
233
231
  #
232
+ # @raise [ArgumentError] if bounds is zero size
233
+ #
234
234
  # @version LayOut 2018
235
235
  def initialize(*args)
236
236
  end
@@ -261,11 +261,11 @@ class Layout::FormattedText < Entity
261
261
  #
262
262
  # @raise [ArgumentError] if plain_text is empty
263
263
  #
264
- # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
265
- #
266
264
  # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
267
265
  # {Layout::Layer}
268
266
  #
267
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
268
+ #
269
269
  # @version LayOut 2018
270
270
  def plain_text=(plain_text)
271
271
  end
@@ -312,11 +312,11 @@ class Layout::FormattedText < Entity
312
312
  #
313
313
  # @raise [ArgumentError] if rtf_text is an empty string
314
314
  #
315
- # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
316
- #
317
315
  # @raise [LockedLayerError] if the {Layout::FormattedText} is on a locked
318
316
  # {Layout::Layer}
319
317
  #
318
+ # @raise [LockedEntityError] if the {Layout::FormattedText} is locked
319
+ #
320
320
  # @version LayOut 2018
321
321
  def rtf=(rtf_text)
322
322
  end
@@ -329,14 +329,14 @@ class Layout::FormattedText < Entity
329
329
  # text = Layout::FormattedText.new("Test", anchor, Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT)
330
330
  # style = text.style(0)
331
331
  #
332
- # @param [Integer] length
333
- #
334
332
  # @param [Integer] index
335
333
  #
336
- # @raise [ArgumentError] if length is not greater than zero
334
+ # @param [Integer] length
337
335
  #
338
336
  # @raise [IndexError] if index is out of range
339
337
  #
338
+ # @raise [ArgumentError] if length is not greater than zero
339
+ #
340
340
  # @raise [RangeError] if the range specified by index and length is not
341
341
  # valid for this {Layout::FormattedText}
342
342
  #