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/Style.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 collection of style attributes that determine the visual
|
@@ -15,16 +15,8 @@ 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
18
|
ARCHITECTURAL_INCHES = nil # Stub value.
|
23
19
|
|
24
|
-
ANCHOR_BOTTOM = nil # Stub value.
|
25
|
-
ANCHOR_CENTER = nil # Stub value.
|
26
|
-
ANCHOR_TOP = nil # Stub value.
|
27
|
-
|
28
20
|
ARROW_FILLED_CIRCLE = nil # Stub value.
|
29
21
|
ARROW_FILLED_DIAMOND = nil # Stub value.
|
30
22
|
ARROW_FILLED_SKINNY_TRIANGLE = nil # Stub value.
|
@@ -45,10 +37,24 @@ class Layout::Style
|
|
45
37
|
ARROW_T = nil # Stub value.
|
46
38
|
ARROW_UNDERRUN = nil # Stub value.
|
47
39
|
|
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.
|
57
|
+
|
52
58
|
DECIMAL_CENTIMETERS = nil # Stub value.
|
53
59
|
DECIMAL_FEET = nil # Stub value.
|
54
60
|
DECIMAL_INCHES = nil # Stub value.
|
@@ -58,12 +64,6 @@ class Layout::Style
|
|
58
64
|
|
59
65
|
DEGREES = nil # Stub value.
|
60
66
|
|
61
|
-
DIMENSION_END_EXTENSION_LINE = nil # Stub value.
|
62
|
-
DIMENSION_LEADER_LINE = nil # Stub value.
|
63
|
-
DIMENSION_LINE = nil # Stub value.
|
64
|
-
DIMENSION_START_EXTENSION_LINE = nil # Stub value.
|
65
|
-
DIMENSION_TEXT = nil # Stub value.
|
66
|
-
|
67
67
|
DIMENSION_TEXT_ABOVE = nil # Stub value.
|
68
68
|
DIMENSION_TEXT_BELOW = nil # Stub value.
|
69
69
|
DIMENSION_TEXT_CENTER = nil # Stub value.
|
@@ -88,8 +88,6 @@ class Layout::Style
|
|
88
88
|
|
89
89
|
RADIANS = nil # Stub value.
|
90
90
|
|
91
|
-
SUPER_SCRIPT = nil # Stub value.
|
92
|
-
|
93
91
|
STROKE_PATTERN_CENTER = nil # Stub value.
|
94
92
|
STROKE_PATTERN_DASH = nil # Stub value.
|
95
93
|
STROKE_PATTERN_DASH_DASH_DOT = nil # Stub value.
|
@@ -101,10 +99,13 @@ class Layout::Style
|
|
101
99
|
STROKE_PATTERN_DASH_SPACE = nil # Stub value.
|
102
100
|
STROKE_PATTERN_DOT = nil # Stub value.
|
103
101
|
STROKE_PATTERN_PHANTOM = nil # Stub value.
|
102
|
+
STROKE_PATTERN_SHORT_DASH = nil # Stub value.
|
104
103
|
STROKE_PATTERN_SOLID = nil # Stub value.
|
105
104
|
|
106
105
|
SUB_SCRIPT = nil # Stub value.
|
107
106
|
|
107
|
+
SUPER_SCRIPT = nil # Stub value.
|
108
|
+
|
108
109
|
UNDERLINE_DOUBLE = nil # Stub value.
|
109
110
|
UNDERLINE_NONE = nil # Stub value.
|
110
111
|
UNDERLINE_SINGLE = nil # Stub value.
|
data/SketchUp/Layout/Table.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 {Layout::Table} is a series of rows and columns that holds data.
|
@@ -152,12 +152,12 @@ class Layout::Table < Layout::Entity
|
|
152
152
|
#
|
153
153
|
# @param [Integer] columns
|
154
154
|
#
|
155
|
-
# @raise [ArgumentError] if bounds is zero size
|
156
|
-
#
|
157
155
|
# @raise [ArgumentError] if rows is less than 1
|
158
156
|
#
|
159
157
|
# @raise [ArgumentError] if columns is less than 1
|
160
158
|
#
|
159
|
+
# @raise [ArgumentError] if bounds is zero size
|
160
|
+
#
|
161
161
|
# @return [Layout::Table]
|
162
162
|
#
|
163
163
|
# @version LayOut 2018
|
@@ -177,11 +177,11 @@ class Layout::Table < Layout::Entity
|
|
177
177
|
#
|
178
178
|
# @raise [IndexError] if index is not a valid index for the {Layout::Table}
|
179
179
|
#
|
180
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
181
|
-
#
|
182
180
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
183
181
|
# {Layout::Layer}
|
184
182
|
#
|
183
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
184
|
+
#
|
185
185
|
# @version LayOut 2018
|
186
186
|
def insert_column(index)
|
187
187
|
end
|
@@ -199,11 +199,11 @@ class Layout::Table < Layout::Entity
|
|
199
199
|
#
|
200
200
|
# @raise [IndexError] if index is not a valid index for the {Layout::Table}
|
201
201
|
#
|
202
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
203
|
-
#
|
204
202
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
205
203
|
# {Layout::Layer}
|
206
204
|
#
|
205
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
206
|
+
#
|
207
207
|
# @version LayOut 2018
|
208
208
|
def insert_row(index)
|
209
209
|
end
|
@@ -226,7 +226,8 @@ class Layout::Table < Layout::Entity
|
|
226
226
|
#
|
227
227
|
# @param [Integer] end_column
|
228
228
|
#
|
229
|
-
# @raise [
|
229
|
+
# @raise [IndexError] if the passed in indices are not a valid for the
|
230
|
+
# {Layout::Table}
|
230
231
|
#
|
231
232
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
232
233
|
# {Layout::Layer}
|
@@ -236,8 +237,7 @@ class Layout::Table < Layout::Entity
|
|
236
237
|
# @raise [ArgumentError] if the specified range of cells only spans a single
|
237
238
|
# cell
|
238
239
|
#
|
239
|
-
# @raise [
|
240
|
-
# {Layout::Table}
|
240
|
+
# @raise [ArgumentError] if the specified range of cells contains a merged cell
|
241
241
|
#
|
242
242
|
# @version LayOut 2018
|
243
243
|
def merge(start_row, start_column, end_row, end_column)
|
@@ -256,11 +256,11 @@ class Layout::Table < Layout::Entity
|
|
256
256
|
#
|
257
257
|
# @raise [IndexError] if index is not a valid index for the {Layout::Table}
|
258
258
|
#
|
259
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
260
|
-
#
|
261
259
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
262
260
|
# {Layout::Layer}
|
263
261
|
#
|
262
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
263
|
+
#
|
264
264
|
# @version LayOut 2018
|
265
265
|
def remove_column(index)
|
266
266
|
end
|
@@ -278,11 +278,11 @@ class Layout::Table < Layout::Entity
|
|
278
278
|
#
|
279
279
|
# @raise [IndexError] if index is not a valid index for the {Layout::Table}
|
280
280
|
#
|
281
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
282
|
-
#
|
283
281
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
284
282
|
# {Layout::Layer}
|
285
283
|
#
|
284
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
285
|
+
#
|
286
286
|
# @version LayOut 2018
|
287
287
|
def remove_row(index)
|
288
288
|
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
|
# A {Layout::TableCell} is a single cell from a table that contains data.
|
@@ -65,11 +65,11 @@ class Layout::TableCell
|
|
65
65
|
#
|
66
66
|
# @param [Layout::Entity] entity
|
67
67
|
#
|
68
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
69
|
-
#
|
70
68
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
71
69
|
# {Layout::Layer}
|
72
70
|
#
|
71
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
72
|
+
#
|
73
73
|
# @version LayOut 2018
|
74
74
|
def data=(entity)
|
75
75
|
end
|
@@ -118,11 +118,11 @@ class Layout::TableCell
|
|
118
118
|
# @raise [ArgumentError] if the cell is invalid due to residing within a
|
119
119
|
# merged cell
|
120
120
|
#
|
121
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
122
|
-
#
|
123
121
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
124
122
|
# {Layout::Layer}
|
125
123
|
#
|
124
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
125
|
+
#
|
126
126
|
# @version LayOut 2018
|
127
127
|
def rotation=(cell_rotation)
|
128
128
|
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
|
# A {Layout::TableColumn} is a single column from a table.
|
@@ -49,11 +49,11 @@ class Layout::TableColumn
|
|
49
49
|
#
|
50
50
|
# @param [Layout::Style] style
|
51
51
|
#
|
52
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
53
|
-
#
|
54
52
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
55
53
|
# {Layout::Layer}
|
56
54
|
#
|
55
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
56
|
+
#
|
57
57
|
# @version LayOut 2018
|
58
58
|
def left_edge_style=(style)
|
59
59
|
end
|
@@ -90,11 +90,11 @@ class Layout::TableColumn
|
|
90
90
|
#
|
91
91
|
# @param [Layout::Style] style
|
92
92
|
#
|
93
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
94
|
-
#
|
95
93
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
96
94
|
# {Layout::Layer}
|
97
95
|
#
|
96
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
97
|
+
#
|
98
98
|
# @version LayOut 2018
|
99
99
|
def right_edge_style=(style)
|
100
100
|
end
|
@@ -127,11 +127,11 @@ class Layout::TableColumn
|
|
127
127
|
#
|
128
128
|
# @raise [ArgumentError] if width is not a valid width
|
129
129
|
#
|
130
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
131
|
-
#
|
132
130
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
133
131
|
# {Layout::Layer}
|
134
132
|
#
|
133
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
134
|
+
#
|
135
135
|
# @version LayOut 2018
|
136
136
|
def width=(width)
|
137
137
|
end
|
data/SketchUp/Layout/TableRow.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 {Layout::TableColumn} is a single row from a table.
|
@@ -47,11 +47,11 @@ class Layout::TableRow
|
|
47
47
|
#
|
48
48
|
# @param [Layout::Style] style
|
49
49
|
#
|
50
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
51
|
-
#
|
52
50
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
53
51
|
# {Layout::Layer}
|
54
52
|
#
|
53
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
54
|
+
#
|
55
55
|
# @version LayOut 2018
|
56
56
|
def bottom_edge_style=(style)
|
57
57
|
end
|
@@ -84,11 +84,11 @@ class Layout::TableRow
|
|
84
84
|
#
|
85
85
|
# @raise [ArgumentError] if height is not a valid height
|
86
86
|
#
|
87
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
88
|
-
#
|
89
87
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
90
88
|
# {Layout::Layer}
|
91
89
|
#
|
90
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
91
|
+
#
|
92
92
|
# @version LayOut 2018
|
93
93
|
def height=(height)
|
94
94
|
end
|
@@ -123,11 +123,11 @@ class Layout::TableRow
|
|
123
123
|
#
|
124
124
|
# @param [Layout::Style] style
|
125
125
|
#
|
126
|
-
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
127
|
-
#
|
128
126
|
# @raise [LockedLayerError] if the {Layout::Table} is on a locked
|
129
127
|
# {Layout::Layer}
|
130
128
|
#
|
129
|
+
# @raise [LockedEntityError] if the {Layout::Table} is locked
|
130
|
+
#
|
131
131
|
# @version LayOut 2018
|
132
132
|
def top_edge_style=(style)
|
133
133
|
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
|
# The AttributeDictionary class allows you to attach arbitrary collections of
|
@@ -126,11 +126,11 @@ class Sketchup::AttributeDictionary < Sketchup::Entity
|
|
126
126
|
#
|
127
127
|
# @yield [key, value]
|
128
128
|
#
|
129
|
-
# @yieldparam [Object] value
|
130
|
-
# The value of each attribute as it is found.
|
131
|
-
#
|
132
129
|
# @yieldparam [String] key
|
133
130
|
# The key of each attribute as it is found.
|
131
|
+
#
|
132
|
+
# @yieldparam [Object] value
|
133
|
+
# The value of each attribute as it is found.
|
134
134
|
def each
|
135
135
|
end
|
136
136
|
|
@@ -177,11 +177,11 @@ class Sketchup::AttributeDictionary < Sketchup::Entity
|
|
177
177
|
#
|
178
178
|
# @yield [key, value]
|
179
179
|
#
|
180
|
-
# @yieldparam [Object] value
|
181
|
-
# The value of each attribute as it is found.
|
182
|
-
#
|
183
180
|
# @yieldparam [String] key
|
184
181
|
# The key of each attribute as it is found.
|
182
|
+
#
|
183
|
+
# @yieldparam [Object] value
|
184
|
+
# The value of each attribute as it is found.
|
185
185
|
def each_pair
|
186
186
|
end
|
187
187
|
|
data/SketchUp/Sketchup/Axes.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
|
# SketchUp's drawing axes consist of three colored lines (red, green, blue),
|
@@ -54,12 +54,12 @@ class Sketchup::Axes < Sketchup::Entity
|
|
54
54
|
# @param xaxis
|
55
55
|
# Vector3d - The x axis to set.
|
56
56
|
#
|
57
|
-
# @param zaxis
|
58
|
-
# Vector3d - The z axis to set.
|
59
|
-
#
|
60
57
|
# @param yaxis
|
61
58
|
# Vector3d - The y axis to set.
|
62
59
|
#
|
60
|
+
# @param zaxis
|
61
|
+
# Vector3d - The z axis to set.
|
62
|
+
#
|
63
63
|
# @return Axes - the axes object being set.
|
64
64
|
#
|
65
65
|
# @version SketchUp 2016
|
data/SketchUp/Sketchup/Camera.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
|
# The Camera class contains methods for creating and manipulating a camera.
|
@@ -353,37 +353,32 @@ class Sketchup::Camera
|
|
353
353
|
end
|
354
354
|
|
355
355
|
# Returns a new camera with eye (where the camera is) and targets (where the
|
356
|
-
# camera is looking)
|
357
|
-
# perspective flag of value true or false, and optional field-of-view value in
|
358
|
-
# degrees of type Float.
|
356
|
+
# camera is looking).
|
359
357
|
#
|
360
358
|
# @example
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
# UI.messagebox "Failure"
|
366
|
-
# end
|
359
|
+
# eye = Geom::Point3d.new(20, 5, 30)
|
360
|
+
# target = Geom::Point3d.new(20, 60, 25)
|
361
|
+
# up = Z_AXIS
|
362
|
+
# camera = Sketchup::Camera.new(eye, target, up)
|
367
363
|
#
|
368
|
-
# @
|
369
|
-
#
|
364
|
+
# @example Default paramaters
|
365
|
+
# camera = Sketchup::Camera.new
|
370
366
|
#
|
371
|
-
# @
|
372
|
-
# See {#eye}.
|
367
|
+
# @overload initialize
|
373
368
|
#
|
374
|
-
#
|
375
|
-
# See {#up}.
|
369
|
+
# @return [Sketchup::Camera]
|
376
370
|
#
|
377
|
-
# @
|
378
|
-
# see {#fov}.
|
371
|
+
# @overload initialize(eye, target, up, perspective = true, fov = 30.0)
|
379
372
|
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
373
|
+
# @param [Geom::Point3d] eye See {#eye}.
|
374
|
+
# @param [Geom::Point3d] target See {#target}.
|
375
|
+
# @param [Geom::Point3d] up See {#up}.
|
376
|
+
# @param [Boolean] perspective see {#perspective?}.
|
377
|
+
# @param [Float] fov see {#fov}.
|
378
|
+
# @return [Sketchup::Camera]
|
384
379
|
#
|
385
380
|
# @version SketchUp 6.0
|
386
|
-
def initialize(
|
381
|
+
def initialize(*args)
|
387
382
|
end
|
388
383
|
|
389
384
|
# The is_2d? method indicates if the camera is in 2d mode. 2 point
|
@@ -456,33 +451,27 @@ class Sketchup::Camera
|
|
456
451
|
def scale_2d
|
457
452
|
end
|
458
453
|
|
459
|
-
# The set method sets the camera orientation. You have to set the camera eye,
|
454
|
+
# The {#set} method sets the camera orientation. You have to set the camera eye,
|
460
455
|
# target and up parameters at the same time to make sure that you have a valid
|
461
456
|
# camera definition.
|
462
457
|
#
|
463
458
|
# @example
|
464
459
|
# camera = Sketchup::Camera.new
|
465
|
-
# eye =
|
466
|
-
# target =
|
467
|
-
# up =
|
468
|
-
#
|
469
|
-
# camera.set eye, target, up
|
470
|
-
# if (camera)
|
471
|
-
# UI.messagebox camera.to_s
|
472
|
-
# else
|
473
|
-
# UI.messagebox "Failure"
|
474
|
-
# end
|
460
|
+
# eye = Geom::Point3d.new(20, 5, 30)
|
461
|
+
# target = Geom::Point3d.new(20, 60, 25)
|
462
|
+
# up = Z_AXIS
|
463
|
+
# camera.set(eye, target, up)
|
475
464
|
#
|
476
|
-
# @param eye
|
477
|
-
# See
|
465
|
+
# @param [Geom::Point3d] eye
|
466
|
+
# See {#eye}.
|
478
467
|
#
|
479
|
-
# @param target
|
480
|
-
# See
|
468
|
+
# @param [Geom::Point3d] target
|
469
|
+
# See {#target}.
|
481
470
|
#
|
482
|
-
# @param up
|
483
|
-
# See
|
471
|
+
# @param [Geom::Point3d] up
|
472
|
+
# See {#up}.
|
484
473
|
#
|
485
|
-
# @return
|
474
|
+
# @return [Sketchup::Camera]
|
486
475
|
#
|
487
476
|
# @version SketchUp 6.0
|
488
477
|
def set(eye, target, up)
|