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.
- checksums.yaml +5 -5
- data/.yardopts +7 -7
- data/SketchUp/Geom/BoundingBox.rb +7 -15
- data/SketchUp/Geom/Bounds2d.rb +18 -18
- data/SketchUp/Geom/LatLong.rb +6 -6
- data/SketchUp/Geom/OrientedBounds2d.rb +1 -1
- data/SketchUp/Geom/Point2d.rb +42 -6
- data/SketchUp/Geom/Point3d.rb +32 -21
- data/SketchUp/Geom/PolygonMesh.rb +22 -17
- data/SketchUp/Geom/Transformation.rb +35 -35
- data/SketchUp/Geom/Transformation2d.rb +153 -13
- data/SketchUp/Geom/UTM.rb +1 -1
- data/SketchUp/Geom/Vector2d.rb +45 -9
- data/SketchUp/Geom/Vector3d.rb +11 -11
- data/SketchUp/Layout.rb +1 -1
- data/SketchUp/Layout/AngularDimension.rb +25 -25
- data/SketchUp/Layout/AutoTextDefinition.rb +5 -5
- data/SketchUp/Layout/AutoTextDefinitions.rb +1 -1
- data/SketchUp/Layout/ConnectionPoint.rb +1 -1
- data/SketchUp/Layout/Document.rb +6 -5
- data/SketchUp/Layout/Ellipse.rb +1 -1
- data/SketchUp/Layout/Entities.rb +1 -1
- data/SketchUp/Layout/Entity.rb +16 -16
- data/SketchUp/Layout/FormattedText.rb +21 -21
- data/SketchUp/Layout/Grid.rb +1 -1
- data/SketchUp/Layout/Group.rb +18 -18
- data/SketchUp/Layout/Image.rb +6 -6
- data/SketchUp/Layout/Label.rb +15 -15
- data/SketchUp/Layout/Layer.rb +5 -5
- data/SketchUp/Layout/LayerInstance.rb +3 -3
- data/SketchUp/Layout/Layers.rb +1 -1
- data/SketchUp/Layout/LinearDimension.rb +25 -25
- data/SketchUp/Layout/LockedEntityError.rb +1 -1
- data/SketchUp/Layout/LockedLayerError.rb +1 -1
- data/SketchUp/Layout/Page.rb +3 -3
- data/SketchUp/Layout/PageInfo.rb +1 -1
- data/SketchUp/Layout/Pages.rb +1 -1
- data/SketchUp/Layout/Path.rb +47 -27
- data/SketchUp/Layout/Rectangle.rb +8 -8
- data/SketchUp/Layout/SketchUpModel.rb +61 -26
- data/SketchUp/Layout/Style.rb +18 -17
- data/SketchUp/Layout/Table.rb +14 -14
- data/SketchUp/Layout/TableCell.rb +5 -5
- data/SketchUp/Layout/TableColumn.rb +7 -7
- data/SketchUp/Layout/TableRow.rb +7 -7
- data/SketchUp/Sketchup/Animation.rb +1 -1
- data/SketchUp/Sketchup/AppObserver.rb +1 -1
- data/SketchUp/Sketchup/ArcCurve.rb +1 -1
- data/SketchUp/Sketchup/AttributeDictionaries.rb +1 -1
- data/SketchUp/Sketchup/AttributeDictionary.rb +7 -7
- data/SketchUp/Sketchup/Axes.rb +4 -4
- data/SketchUp/Sketchup/Behavior.rb +1 -1
- data/SketchUp/Sketchup/Camera.rb +30 -41
- data/SketchUp/Sketchup/ClassificationSchema.rb +1 -1
- data/SketchUp/Sketchup/Classifications.rb +1 -1
- data/SketchUp/Sketchup/Color.rb +1 -1
- data/SketchUp/Sketchup/ComponentDefinition.rb +3 -3
- data/SketchUp/Sketchup/ComponentInstance.rb +10 -10
- data/SketchUp/Sketchup/Console.rb +5 -5
- data/SketchUp/Sketchup/ConstructionLine.rb +11 -11
- data/SketchUp/Sketchup/ConstructionPoint.rb +1 -1
- data/SketchUp/Sketchup/Curve.rb +1 -1
- data/SketchUp/Sketchup/DefinitionList.rb +12 -9
- data/SketchUp/Sketchup/DefinitionObserver.rb +6 -7
- data/SketchUp/Sketchup/DefinitionsObserver.rb +3 -3
- data/SketchUp/Sketchup/Dimension.rb +1 -1
- data/SketchUp/Sketchup/DimensionLinear.rb +81 -1
- data/SketchUp/Sketchup/DimensionObserver.rb +1 -1
- data/SketchUp/Sketchup/DimensionRadial.rb +1 -1
- data/SketchUp/Sketchup/Drawingelement.rb +1 -1
- data/SketchUp/Sketchup/Edge.rb +13 -16
- data/SketchUp/Sketchup/EdgeUse.rb +1 -1
- data/SketchUp/Sketchup/Entities.rb +181 -100
- data/SketchUp/Sketchup/EntitiesObserver.rb +1 -1
- data/SketchUp/Sketchup/Entity.rb +29 -26
- data/SketchUp/Sketchup/EntityObserver.rb +1 -1
- data/SketchUp/Sketchup/ExtensionsManager.rb +1 -1
- data/SketchUp/Sketchup/Face.rb +7 -7
- data/SketchUp/Sketchup/FrameChangeObserver.rb +4 -4
- data/SketchUp/Sketchup/Group.rb +1 -1
- data/SketchUp/Sketchup/Http.rb +1 -1
- data/SketchUp/Sketchup/Http/Request.rb +3 -3
- data/SketchUp/Sketchup/Http/Response.rb +1 -1
- data/SketchUp/Sketchup/Image.rb +1 -1
- data/SketchUp/Sketchup/ImageRep.rb +16 -16
- data/SketchUp/Sketchup/Importer.rb +1 -1
- data/SketchUp/Sketchup/InputPoint.rb +8 -4
- data/SketchUp/Sketchup/InstanceObserver.rb +1 -1
- data/SketchUp/Sketchup/InstancePath.rb +15 -12
- data/SketchUp/Sketchup/Layer.rb +27 -1
- data/SketchUp/Sketchup/Layers.rb +1 -1
- data/SketchUp/Sketchup/LayersObserver.rb +1 -1
- data/SketchUp/Sketchup/Licensing.rb +1 -1
- data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +1 -1
- data/SketchUp/Sketchup/LineStyle.rb +24 -0
- data/SketchUp/Sketchup/LineStyles.rb +123 -0
- data/SketchUp/Sketchup/Loop.rb +1 -1
- data/SketchUp/Sketchup/Material.rb +16 -10
- data/SketchUp/Sketchup/Materials.rb +9 -1
- data/SketchUp/Sketchup/MaterialsObserver.rb +3 -3
- data/SketchUp/Sketchup/Menu.rb +1 -1
- data/SketchUp/Sketchup/Model.rb +47 -21
- data/SketchUp/Sketchup/ModelObserver.rb +3 -3
- data/SketchUp/Sketchup/OptionsManager.rb +1 -1
- data/SketchUp/Sketchup/OptionsProvider.rb +5 -5
- data/SketchUp/Sketchup/OptionsProviderObserver.rb +1 -1
- data/SketchUp/Sketchup/Page.rb +1 -1
- data/SketchUp/Sketchup/Pages.rb +13 -8
- data/SketchUp/Sketchup/PagesObserver.rb +1 -1
- data/SketchUp/Sketchup/PickHelper.rb +49 -50
- data/SketchUp/Sketchup/RegionalSettings.rb +1 -1
- data/SketchUp/Sketchup/RenderingOptions.rb +4 -4
- data/SketchUp/Sketchup/RenderingOptionsObserver.rb +3 -3
- data/SketchUp/Sketchup/SectionPlane.rb +1 -1
- data/SketchUp/Sketchup/Selection.rb +3 -3
- data/SketchUp/Sketchup/SelectionObserver.rb +3 -3
- data/SketchUp/Sketchup/Set.rb +1 -1
- data/SketchUp/Sketchup/ShadowInfo.rb +3 -3
- data/SketchUp/Sketchup/ShadowInfoObserver.rb +1 -1
- data/SketchUp/Sketchup/Style.rb +1 -1
- data/SketchUp/Sketchup/Styles.rb +1 -1
- data/SketchUp/Sketchup/Text.rb +28 -1
- data/SketchUp/Sketchup/Texture.rb +1 -1
- data/SketchUp/Sketchup/TextureWriter.rb +13 -13
- data/SketchUp/Sketchup/Tool.rb +68 -64
- data/SketchUp/Sketchup/Tools.rb +13 -1
- data/SketchUp/Sketchup/ToolsObserver.rb +13 -13
- data/SketchUp/Sketchup/UVHelper.rb +1 -1
- data/SketchUp/Sketchup/Vertex.rb +1 -1
- data/SketchUp/Sketchup/View.rb +57 -56
- data/SketchUp/Sketchup/ViewObserver.rb +2 -2
- data/SketchUp/UI/Command.rb +4 -1
- data/SketchUp/UI/HtmlDialog.rb +23 -14
- data/SketchUp/UI/Notification.rb +10 -10
- data/SketchUp/UI/Toolbar.rb +1 -1
- data/SketchUp/UI/WebDialog.rb +38 -20
- data/SketchUp/_top_level.rb +32 -34
- data/SketchUp/array.rb +125 -112
- data/SketchUp/geom.rb +2 -2
- data/SketchUp/languagehandler.rb +1 -1
- data/SketchUp/length.rb +1 -1
- data/SketchUp/numeric.rb +3 -3
- data/SketchUp/sketchup.rb +11 -11
- data/SketchUp/sketchupextension.rb +6 -2
- data/SketchUp/string.rb +1 -1
- data/SketchUp/ui.rb +14 -14
- data/autoload/sketchup.rb +2 -0
- metadata +5 -3
data/SketchUp/Layout/Grid.rb
CHANGED
data/SketchUp/Layout/Group.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2019 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# A group is a special type of {Layout::Entity} that does not belong to a
|
@@ -47,19 +47,19 @@ class Layout::Group < Layout::Entity
|
|
47
47
|
#
|
48
48
|
# @raise [ArgumentError] if entities is empty.
|
49
49
|
#
|
50
|
-
# @raise [ArgumentError] if entities contains
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# @raise [ArgumentError] if entities contains {Layout::Entity}s on both shared
|
54
|
-
# and non-shared {Layout::Layer}s, or on non-shared {Layout::Layer}s
|
55
|
-
# belonging to different {Layout::Page}s
|
50
|
+
# @raise [ArgumentError] if entities contains {Layout::Entity}s that belong to
|
51
|
+
# different {Layout::Document}s
|
56
52
|
#
|
57
53
|
# @raise [ArgumentError] if entities contains a mix of {Layout::Entity}s that
|
58
54
|
# belong to a {Layout::Document} and {Layout::Entity}s that don't belong to a
|
59
55
|
# {Layout::Document}
|
60
56
|
#
|
61
|
-
# @raise [ArgumentError] if entities contains {Layout::Entity}s
|
62
|
-
#
|
57
|
+
# @raise [ArgumentError] if entities contains {Layout::Entity}s on both shared
|
58
|
+
# and non-shared {Layout::Layer}s, or on non-shared {Layout::Layer}s
|
59
|
+
# belonging to different {Layout::Page}s
|
60
|
+
#
|
61
|
+
# @raise [ArgumentError] if entities contains the same {Layout::Entity} more
|
62
|
+
# than once
|
63
63
|
#
|
64
64
|
# @return [Layout::Group]
|
65
65
|
#
|
@@ -84,10 +84,10 @@ class Layout::Group < Layout::Entity
|
|
84
84
|
#
|
85
85
|
# @raise [ArgumentError] if the {Layout::Group} does not have a scale factor
|
86
86
|
#
|
87
|
-
# @raise [Layout::LockedLayerError] if the {Layout::Group} is on a locked layer
|
88
|
-
#
|
89
87
|
# @raise [Layout::LockedEntityError] if the {Layout::Group} is locked
|
90
88
|
#
|
89
|
+
# @raise [Layout::LockedLayerError] if the {Layout::Group} is on a locked layer
|
90
|
+
#
|
91
91
|
# @version LayOut 2018
|
92
92
|
def remove_scale_factor(resize_behavior)
|
93
93
|
end
|
@@ -187,11 +187,11 @@ class Layout::Group < Layout::Entity
|
|
187
187
|
#
|
188
188
|
# @raise [ArgumentError] if the {Layout::Group} does not have a scale factor
|
189
189
|
#
|
190
|
-
# @raise [
|
190
|
+
# @raise [Layout::LockedEntityError] if the {Layout::Group} is locked
|
191
191
|
#
|
192
192
|
# @raise [Layout::LockedLayerError] if the {Layout::Group} is on a locked layer
|
193
193
|
#
|
194
|
-
# @raise [
|
194
|
+
# @raise [ArgumentError] if scale_units is not a valid value
|
195
195
|
#
|
196
196
|
# @version LayOut 2018
|
197
197
|
def scale_units=(units_format)
|
@@ -219,24 +219,24 @@ class Layout::Group < Layout::Entity
|
|
219
219
|
# group = doc.shared_entities.first
|
220
220
|
# group.set_scale_factor(2.0, Layout::Group::RESIZE_BEHAVIOR_BOUNDS)
|
221
221
|
#
|
222
|
-
# @param [Integer] units_format
|
223
|
-
#
|
224
222
|
# @param [Float] scale_factor
|
225
223
|
#
|
224
|
+
# @param [Integer] units_format
|
225
|
+
#
|
226
226
|
# @param [Integer] resize_behavior
|
227
227
|
#
|
228
228
|
# @raise [LockedLayerError] if the {Layout::Group} is on a locked
|
229
229
|
# {Layout::Layer}
|
230
230
|
#
|
231
|
-
# @raise [
|
232
|
-
# {Layout::Group}
|
231
|
+
# @raise [LockedEntityError] if the {Layout::Group} is locked
|
233
232
|
#
|
234
233
|
# @raise [ArgumentError] if scale_factor is an invalid value
|
235
234
|
#
|
236
235
|
# @raise [ArgumentError] if the {Layout::Group} cannot be assigned a scale
|
237
236
|
# factor because it is already inheriting a scale factor from its parent
|
238
237
|
#
|
239
|
-
# @raise [
|
238
|
+
# @raise [ArgumentError] if a scale factor cannot be set for the
|
239
|
+
# {Layout::Group}
|
240
240
|
#
|
241
241
|
# @version LayOut 2018
|
242
242
|
def set_scale_factor(scale_factor, units_format, resize_behavior)
|
data/SketchUp/Layout/Image.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2019 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# A raster image entity.
|
@@ -48,12 +48,12 @@ class Layout::Image < Layout::Entity
|
|
48
48
|
#
|
49
49
|
# @raise [ArgumentError] if clip mask is already in a document
|
50
50
|
#
|
51
|
-
# @raise [
|
51
|
+
# @raise [ArgumentError] if clip mask is not a {Layout::Path},
|
52
|
+
# {Layout::Rectangle}, or {Layout::Ellipse}
|
52
53
|
#
|
53
54
|
# @raise [LockedLayerError] if the {Layout::Image} is on a locked {Layout::Layer}
|
54
55
|
#
|
55
|
-
# @raise [
|
56
|
-
# {Layout::Rectangle}, or {Layout::Ellipse}
|
56
|
+
# @raise [LockedEntityError] if the {Layout::Image} is locked
|
57
57
|
#
|
58
58
|
# @version LayOut 2018
|
59
59
|
def clip_mask=(clip_mask)
|
@@ -72,11 +72,11 @@ class Layout::Image < Layout::Entity
|
|
72
72
|
#
|
73
73
|
# @raise [ArgumentError] if bounds are zero size
|
74
74
|
#
|
75
|
-
# @raise [RuntimeError] if there was an error allocating memory for the image
|
76
|
-
#
|
77
75
|
# @raise [ArgumentError] if there was an error reading the image file, such as
|
78
76
|
# the file name being invalid
|
79
77
|
#
|
78
|
+
# @raise [RuntimeError] if there was an error allocating memory for the image
|
79
|
+
#
|
80
80
|
# @return [Layout::Image]
|
81
81
|
#
|
82
82
|
# @version LayOut 2018
|
data/SketchUp/Layout/Label.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2019 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# This is an interface to a label entity. A {Layout::Label} consists of a
|
@@ -57,14 +57,14 @@ class Layout::Label < Layout::Entity
|
|
57
57
|
# @raise [LockedLayerError] if the {Layout::Label} is on a locked
|
58
58
|
# {Layout::Layer}
|
59
59
|
#
|
60
|
-
# @raise [
|
61
|
-
# {Layout::ConnectionPoint} are on non-shared {Layout::Layers}, but are not
|
62
|
-
# on the same {Layout::Page}.
|
60
|
+
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
63
61
|
#
|
64
62
|
# @raise [ArgumentError] if the {Layout::Label} is not in the same
|
65
63
|
# {Layout::Document} as the {Layout::ConnectionPoint}
|
66
64
|
#
|
67
|
-
# @raise [
|
65
|
+
# @raise [ArgumentError] if both the {Layout::Label} and the
|
66
|
+
# {Layout::ConnectionPoint} are on non-shared {Layout::Layers}, but are not
|
67
|
+
# on the same {Layout::Page}.
|
68
68
|
#
|
69
69
|
# @version LayOut 2018
|
70
70
|
def connect(connection_point)
|
@@ -127,11 +127,11 @@ class Layout::Label < Layout::Entity
|
|
127
127
|
# @raise [LockedLayerError] if the {Layout::Label} is on a locked
|
128
128
|
# {Layout::Layer}
|
129
129
|
#
|
130
|
+
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
131
|
+
#
|
130
132
|
# @raise [ArgumentError] if the connection_type is not a valid text connection
|
131
133
|
# type
|
132
134
|
#
|
133
|
-
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
134
|
-
#
|
135
135
|
# @version LayOut 2018
|
136
136
|
def connection_type=(connection_type)
|
137
137
|
end
|
@@ -219,11 +219,11 @@ class Layout::Label < Layout::Entity
|
|
219
219
|
#
|
220
220
|
# @raise [ArgumentError] if anchor_type is not a valid anchor type
|
221
221
|
#
|
222
|
-
# @raise [ArgumentError] if
|
222
|
+
# @raise [ArgumentError] if leader_type is not a valid leader line type
|
223
223
|
#
|
224
224
|
# @raise [ArgumentError] if bounds is zero size
|
225
225
|
#
|
226
|
-
# @raise [ArgumentError] if
|
226
|
+
# @raise [ArgumentError] if plain_text is an empty string
|
227
227
|
#
|
228
228
|
# @version LayOut 2018
|
229
229
|
def initialize(*args)
|
@@ -260,11 +260,11 @@ class Layout::Label < Layout::Entity
|
|
260
260
|
#
|
261
261
|
# @param [Layout::Path] leader_path
|
262
262
|
#
|
263
|
-
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
264
|
-
#
|
265
263
|
# @raise [LockedLayerError] if the {Layout::Label} is on a locked
|
266
264
|
# {Layout::Layer}
|
267
265
|
#
|
266
|
+
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
267
|
+
#
|
268
268
|
# @version LayOut 2018
|
269
269
|
def leader_line=(leader_path)
|
270
270
|
end
|
@@ -316,11 +316,11 @@ class Layout::Label < Layout::Entity
|
|
316
316
|
# @raise [LockedLayerError] if the {Layout::Label} is on a locked
|
317
317
|
# {Layout::Layer}
|
318
318
|
#
|
319
|
+
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
320
|
+
#
|
319
321
|
# @raise [ArgumentError] if leader_type is
|
320
322
|
# +Layout::Label::LEADER_LINE_TYPE_UNKNOWN+ or not a valid leader line type
|
321
323
|
#
|
322
|
-
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
323
|
-
#
|
324
324
|
# @version LayOut 2018
|
325
325
|
def leader_line_type=(leader_type)
|
326
326
|
end
|
@@ -359,11 +359,11 @@ class Layout::Label < Layout::Entity
|
|
359
359
|
#
|
360
360
|
# @param [Layout::FormattedText] new_text
|
361
361
|
#
|
362
|
-
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
363
|
-
#
|
364
362
|
# @raise [LockedLayerError] if the {Layout::Label} is on a locked
|
365
363
|
# {Layout::Layer}
|
366
364
|
#
|
365
|
+
# @raise [LockedEntityError] if the {Layout::Label} is locked
|
366
|
+
#
|
367
367
|
# @version LayOut 2018
|
368
368
|
def text=(new_text)
|
369
369
|
end
|
data/SketchUp/Layout/Layer.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2019 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# This is the interface to a LayOut Layer Definition. A layer definition
|
@@ -167,10 +167,10 @@ class Layout::Layer
|
|
167
167
|
# The share action that specifies what to do
|
168
168
|
# with {Layout::Entity}s after the {Layout::Layer} is non-shared.
|
169
169
|
#
|
170
|
-
# @raise [ArgumentError] if unshare_action is not a valid value
|
171
|
-
#
|
172
170
|
# @raise [LockedLayerError] if the {Layout::Layer} is locked
|
173
171
|
#
|
172
|
+
# @raise [ArgumentError] if unshare_action is not a valid value
|
173
|
+
#
|
174
174
|
# @version LayOut 2018
|
175
175
|
def set_nonshared(page, unshare_action)
|
176
176
|
end
|
@@ -196,10 +196,10 @@ class Layout::Layer
|
|
196
196
|
# The share action that specifies what to do with
|
197
197
|
# {Layout::Entity}s after the {Layout::Layer} is shared.
|
198
198
|
#
|
199
|
-
# @raise [ArgumentError] if share_action is not a valid value
|
200
|
-
#
|
201
199
|
# @raise [Layout::LockedLayerError] if the {Layout::Layer} is locked
|
202
200
|
#
|
201
|
+
# @raise [ArgumentError] if share_action is not a valid value
|
202
|
+
#
|
203
203
|
# @version LayOut 2018
|
204
204
|
def set_shared(page, share_action)
|
205
205
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2019 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# References an instance of a {Layout::Layer}. A {Layout::LayerInstance}
|
@@ -117,10 +117,10 @@ class Layout::LayerInstance
|
|
117
117
|
# @param [Integer] index
|
118
118
|
# The desired index of the {Layout::Entity}
|
119
119
|
#
|
120
|
-
# @raise [IndexError] if index is out of range
|
121
|
-
#
|
122
120
|
# @raise [ArgumentError] if entity is not on the {Layout::LayerInstance}
|
123
121
|
#
|
122
|
+
# @raise [IndexError] if index is out of range
|
123
|
+
#
|
124
124
|
# @version LayOut 2018
|
125
125
|
def reorder_entity(entity, index)
|
126
126
|
end
|
data/SketchUp/Layout/Layers.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2019 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# References a linear dimension entity. A {Layout::LinearDimension} is composed
|
@@ -41,11 +41,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
41
41
|
#
|
42
42
|
# @param [Boolean] uses_auto_scale
|
43
43
|
#
|
44
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
45
|
-
#
|
46
44
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
47
45
|
# {Layout::Layer}
|
48
46
|
#
|
47
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
48
|
+
#
|
49
49
|
# @version LayOut 2018
|
50
50
|
def auto_scale=(uses_auto_scale)
|
51
51
|
end
|
@@ -89,11 +89,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
89
89
|
#
|
90
90
|
# @param [Layout::ConnectionPoint] end_connection
|
91
91
|
#
|
92
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
93
|
-
#
|
94
92
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
95
93
|
# {Layout::Layer}
|
96
94
|
#
|
95
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
96
|
+
#
|
97
97
|
# @version LayOut 2018
|
98
98
|
def connect(start_connection, end_connection)
|
99
99
|
end
|
@@ -112,11 +112,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
112
112
|
#
|
113
113
|
# @param [Boolean] uses_custom_text
|
114
114
|
#
|
115
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
116
|
-
#
|
117
115
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
118
116
|
# {Layout::Layer}
|
119
117
|
#
|
118
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
119
|
+
#
|
120
120
|
# @version LayOut 2018
|
121
121
|
def custom_text=(uses_custom_text)
|
122
122
|
end
|
@@ -188,11 +188,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
188
188
|
#
|
189
189
|
# @param [Geom::Point2d] end_point
|
190
190
|
#
|
191
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
192
|
-
#
|
193
191
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
194
192
|
# {Layout::Layer}
|
195
193
|
#
|
194
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
195
|
+
#
|
196
196
|
# @version LayOut 2018
|
197
197
|
def end_connection_point=(end_point)
|
198
198
|
end
|
@@ -226,11 +226,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
226
226
|
#
|
227
227
|
# @param [Geom::Point2d] end_extent
|
228
228
|
#
|
229
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
230
|
-
#
|
231
229
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
232
230
|
# {Layout::Layer}
|
233
231
|
#
|
232
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
233
|
+
#
|
234
234
|
# @version LayOut 2018
|
235
235
|
def end_extent_point=(end_extent)
|
236
236
|
end
|
@@ -249,11 +249,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
249
249
|
#
|
250
250
|
# @param [Numeric] offset_length
|
251
251
|
#
|
252
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
253
|
-
#
|
254
252
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
255
253
|
# {Layout::Layer}
|
256
254
|
#
|
255
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
256
|
+
#
|
257
257
|
# @version LayOut 2018
|
258
258
|
def end_offset_length=(offset_length)
|
259
259
|
end
|
@@ -359,11 +359,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
359
359
|
#
|
360
360
|
# @raise [ArgumentError] if leader_line_type is not a valid leader line type
|
361
361
|
#
|
362
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
363
|
-
#
|
364
362
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
365
363
|
# {Layout::Layer}
|
366
364
|
#
|
365
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
366
|
+
#
|
367
367
|
# @version LayOut 2018
|
368
368
|
def leader_line_type=(type)
|
369
369
|
end
|
@@ -399,10 +399,10 @@ class Layout::LinearDimension < Layout::Entity
|
|
399
399
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
400
400
|
# {Layout::Layer}
|
401
401
|
#
|
402
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
403
|
-
#
|
404
402
|
# @raise [ArgumentError] if scale is negative, or greater than 1.0
|
405
403
|
#
|
404
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
405
|
+
#
|
406
406
|
# @version LayOut 2018
|
407
407
|
def scale=(scale)
|
408
408
|
end
|
@@ -435,11 +435,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
435
435
|
#
|
436
436
|
# @param [Geom::Point2d] start_point
|
437
437
|
#
|
438
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
439
|
-
#
|
440
438
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
441
439
|
# {Layout::Layer}
|
442
440
|
#
|
441
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
442
|
+
#
|
443
443
|
# @version LayOut 2018
|
444
444
|
def start_connection_point=(start_point)
|
445
445
|
end
|
@@ -473,11 +473,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
473
473
|
#
|
474
474
|
# @param [Geom::Point2d] start_extent
|
475
475
|
#
|
476
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
477
|
-
#
|
478
476
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
479
477
|
# {Layout::Layer}
|
480
478
|
#
|
479
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
480
|
+
#
|
481
481
|
# @version LayOut 2018
|
482
482
|
def start_extent_point=(start_extent)
|
483
483
|
end
|
@@ -496,11 +496,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
496
496
|
#
|
497
497
|
# @param [Numeric] offset_length
|
498
498
|
#
|
499
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
500
|
-
#
|
501
499
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
502
500
|
# {Layout::Layer}
|
503
501
|
#
|
502
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
503
|
+
#
|
504
504
|
# @version LayOut 2018
|
505
505
|
def start_offset_length=(offset_length)
|
506
506
|
end
|
@@ -551,11 +551,11 @@ class Layout::LinearDimension < Layout::Entity
|
|
551
551
|
#
|
552
552
|
# @param [Layout::FormattedText] formatted_text
|
553
553
|
#
|
554
|
-
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
555
|
-
#
|
556
554
|
# @raise [LockedLayerError] if the {Layout::LinearDimension} is on a locked
|
557
555
|
# {Layout::Layer}
|
558
556
|
#
|
557
|
+
# @raise [LockedEntityError] if the {Layout::LinearDimension} is locked
|
558
|
+
#
|
559
559
|
# @version LayOut 2018
|
560
560
|
def text=(formatted_text)
|
561
561
|
end
|