sketchup-api-stubs 0.4.0 → 0.5.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/lib/sketchup-api-stubs.rb +1 -0
- data/lib/sketchup-api-stubs/autoload.rb +144 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/BoundingBox.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Bounds2d.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/LatLong.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/OrientedBounds2d.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Point2d.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Point3d.rb +1 -5
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/PolygonMesh.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Transformation.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Transformation2d.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/UTM.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Vector2d.rb +0 -10
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Geom/Vector3d.rb +0 -10
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/AngularDimension.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/AutoTextDefinition.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/AutoTextDefinitions.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/ConnectionPoint.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Document.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Ellipse.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Entities.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Entity.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/FormattedText.rb +1 -1
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Grid.rb +0 -8
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Group.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Image.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Label.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Layer.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/LayerInstance.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Layers.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/LinearDimension.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/LockedEntityError.rb +1 -1
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/LockedLayerError.rb +1 -1
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Page.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/PageInfo.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Pages.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Path.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Rectangle.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/SketchUpModel.rb +0 -10
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Style.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/Table.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/TableCell.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/TableColumn.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Layout/TableRow.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Animation.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/AppObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ArcCurve.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/AttributeDictionaries.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/AttributeDictionary.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Axes.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Behavior.rb +0 -10
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Camera.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ClassificationSchema.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Classifications.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Color.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ComponentDefinition.rb +0 -8
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ComponentInstance.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Console.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ConstructionLine.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ConstructionPoint.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Curve.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/DefinitionList.rb +1 -1
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/DefinitionObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/DefinitionsObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Dimension.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/DimensionLinear.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/DimensionObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/DimensionRadial.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Drawingelement.rb +0 -8
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Edge.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/EdgeUse.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Entities.rb +45 -28
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/EntitiesObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Entity.rb +1 -5
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/EntityObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ExtensionsManager.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Face.rb +22 -10
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/FrameChangeObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Group.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Http.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Http/Request.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Http/Response.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Image.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ImageRep.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Importer.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/InputPoint.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/InstanceObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/InstancePath.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Layer.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Layers.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/LayersObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Licensing.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Licensing/ExtensionLicense.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/LineStyle.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/LineStyles.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Loop.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Material.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Materials.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/MaterialsObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Menu.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Model.rb +1 -7
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ModelObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/OptionsManager.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/OptionsProvider.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/OptionsProviderObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Page.rb +0 -18
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Pages.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/PagesObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/PickHelper.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/RegionalSettings.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/RenderingOptions.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/RenderingOptionsObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/SectionPlane.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Selection.rb +24 -19
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/SelectionObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Set.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ShadowInfo.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ShadowInfoObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Style.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Styles.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Text.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Texture.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/TextureWriter.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Tool.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Tools.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ToolsObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/UVHelper.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/Vertex.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/View.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/Sketchup/ViewObserver.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/UI/Command.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/UI/HtmlDialog.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/UI/Notification.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/UI/Toolbar.rb +0 -2
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/UI/WebDialog.rb +0 -4
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/_top_level.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/array.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/geom.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/languagehandler.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/length.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/numeric.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/sketchup.rb +0 -14
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/sketchupextension.rb +0 -6
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/string.rb +0 -0
- data/{SketchUp → lib/sketchup-api-stubs/stubs}/ui.rb +12 -14
- metadata +150 -150
- data/autoload/sketchup.rb +0 -144
File without changes
|
File without changes
|
File without changes
|
@@ -112,8 +112,6 @@ class Layout::Layer
|
|
112
112
|
#
|
113
113
|
# @return [Boolean]
|
114
114
|
#
|
115
|
-
# @return [Boolean]
|
116
|
-
#
|
117
115
|
# @version LayOut 2018
|
118
116
|
def locked?
|
119
117
|
end
|
@@ -213,8 +211,6 @@ class Layout::Layer
|
|
213
211
|
#
|
214
212
|
# @return [Boolean]
|
215
213
|
#
|
216
|
-
# @return [Boolean]
|
217
|
-
#
|
218
214
|
# @version LayOut 2018
|
219
215
|
def shared?
|
220
216
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -79,8 +79,6 @@ class Layout::Page
|
|
79
79
|
#
|
80
80
|
# @return [Boolean]
|
81
81
|
#
|
82
|
-
# @return [Boolean]
|
83
|
-
#
|
84
82
|
# @version LayOut 2018
|
85
83
|
def in_presentation?
|
86
84
|
end
|
@@ -112,8 +110,6 @@ class Layout::Page
|
|
112
110
|
#
|
113
111
|
# @return [Boolean]
|
114
112
|
#
|
115
|
-
# @return [Boolean]
|
116
|
-
#
|
117
113
|
# @version LayOut 2018
|
118
114
|
def layer_visible?(layer)
|
119
115
|
end
|
@@ -250,8 +250,6 @@ class Layout::PageInfo
|
|
250
250
|
#
|
251
251
|
# @return [Boolean]
|
252
252
|
#
|
253
|
-
# @return [Boolean]
|
254
|
-
#
|
255
253
|
# @version LayOut 2018
|
256
254
|
def print_margins?
|
257
255
|
end
|
@@ -278,8 +276,6 @@ class Layout::PageInfo
|
|
278
276
|
#
|
279
277
|
# @return [Boolean]
|
280
278
|
#
|
281
|
-
# @return [Boolean]
|
282
|
-
#
|
283
279
|
# @version LayOut 2018
|
284
280
|
def print_paper_color?
|
285
281
|
end
|
@@ -331,8 +327,6 @@ class Layout::PageInfo
|
|
331
327
|
#
|
332
328
|
# @return [Boolean]
|
333
329
|
#
|
334
|
-
# @return [Boolean]
|
335
|
-
#
|
336
330
|
# @version LayOut 2018
|
337
331
|
def show_margins?
|
338
332
|
end
|
File without changes
|
File without changes
|
@@ -134,8 +134,6 @@ class Layout::SketchUpModel < Layout::Entity
|
|
134
134
|
#
|
135
135
|
# @return [Boolean]
|
136
136
|
#
|
137
|
-
# @return [Boolean]
|
138
|
-
#
|
139
137
|
# @version LayOut 2018
|
140
138
|
def current_scene_modified?
|
141
139
|
end
|
@@ -204,8 +202,6 @@ class Layout::SketchUpModel < Layout::Entity
|
|
204
202
|
#
|
205
203
|
# @return [Boolean]
|
206
204
|
#
|
207
|
-
# @return [Boolean]
|
208
|
-
#
|
209
205
|
# @version LayOut 2018
|
210
206
|
def display_background?
|
211
207
|
end
|
@@ -329,8 +325,6 @@ class Layout::SketchUpModel < Layout::Entity
|
|
329
325
|
#
|
330
326
|
# @return [Boolean]
|
331
327
|
#
|
332
|
-
# @return [Boolean]
|
333
|
-
#
|
334
328
|
# @version LayOut 2018
|
335
329
|
def perspective?
|
336
330
|
end
|
@@ -364,8 +358,6 @@ class Layout::SketchUpModel < Layout::Entity
|
|
364
358
|
#
|
365
359
|
# @return [Boolean]
|
366
360
|
#
|
367
|
-
# @return [Boolean]
|
368
|
-
#
|
369
361
|
# @version LayOut 2018
|
370
362
|
def preserve_scale_on_resize?
|
371
363
|
end
|
@@ -441,8 +433,6 @@ class Layout::SketchUpModel < Layout::Entity
|
|
441
433
|
#
|
442
434
|
# @return [Boolean]
|
443
435
|
#
|
444
|
-
# @return [Boolean]
|
445
|
-
#
|
446
436
|
# @version LayOut 2018
|
447
437
|
def render_needed?
|
448
438
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -78,8 +78,6 @@ class Sketchup::Behavior < Sketchup::Entity
|
|
78
78
|
# the camera, false if the component is not set to always
|
79
79
|
# face camera.
|
80
80
|
#
|
81
|
-
# @return [Boolean]
|
82
|
-
#
|
83
81
|
# @version SketchUp 6.0
|
84
82
|
def always_face_camera?
|
85
83
|
end
|
@@ -124,8 +122,6 @@ class Sketchup::Behavior < Sketchup::Entity
|
|
124
122
|
# @return status - the status of the cuts_opening behavior
|
125
123
|
# (either true or false)
|
126
124
|
#
|
127
|
-
# @return [Boolean]
|
128
|
-
#
|
129
125
|
# @version SketchUp 6.0
|
130
126
|
def cuts_opening?
|
131
127
|
end
|
@@ -169,8 +165,6 @@ class Sketchup::Behavior < Sketchup::Entity
|
|
169
165
|
# @return status - the status of the 2D behavior (either true or
|
170
166
|
# false)
|
171
167
|
#
|
172
|
-
# @return [Boolean]
|
173
|
-
#
|
174
168
|
# @version SketchUp 6.0
|
175
169
|
def is2d?
|
176
170
|
end
|
@@ -225,8 +219,6 @@ class Sketchup::Behavior < Sketchup::Entity
|
|
225
219
|
# @return scale_mask - an integer describing which scale tool
|
226
220
|
# handles are hidden.
|
227
221
|
#
|
228
|
-
# @return [Boolean]
|
229
|
-
#
|
230
222
|
# @version SketchUp 7.0
|
231
223
|
def no_scale_mask?
|
232
224
|
end
|
@@ -275,8 +267,6 @@ class Sketchup::Behavior < Sketchup::Entity
|
|
275
267
|
# were facing the sun. False to cause the shadow to be
|
276
268
|
# cast from the component's current position.
|
277
269
|
#
|
278
|
-
# @return [Boolean]
|
279
|
-
#
|
280
270
|
# @version SketchUp 6.0
|
281
271
|
def shadows_face_sun?
|
282
272
|
end
|
@@ -258,8 +258,6 @@ class Sketchup::Camera
|
|
258
258
|
#
|
259
259
|
# @return bool - true if vertical, false otherwise
|
260
260
|
#
|
261
|
-
# @return [Boolean]
|
262
|
-
#
|
263
261
|
# @version SketchUp 2015
|
264
262
|
def fov_is_height?
|
265
263
|
end
|
@@ -389,8 +387,6 @@ class Sketchup::Camera
|
|
389
387
|
#
|
390
388
|
# @return Boolean - true if camera is in 2d mode, false otherwise
|
391
389
|
#
|
392
|
-
# @return [Boolean]
|
393
|
-
#
|
394
390
|
# @version SketchUp 2015
|
395
391
|
def is_2d?
|
396
392
|
end
|
@@ -430,8 +426,6 @@ class Sketchup::Camera
|
|
430
426
|
#
|
431
427
|
# @return status - true if perspective, false if orthographic
|
432
428
|
#
|
433
|
-
# @return [Boolean]
|
434
|
-
#
|
435
429
|
# @version SketchUp 6.0
|
436
430
|
def perspective?
|
437
431
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -240,8 +240,6 @@ class Sketchup::ComponentDefinition < Sketchup::Drawingelement
|
|
240
240
|
#
|
241
241
|
# @return [Boolean]
|
242
242
|
#
|
243
|
-
# @return [Boolean]
|
244
|
-
#
|
245
243
|
# @version SketchUp 6.0
|
246
244
|
def group?
|
247
245
|
end
|
@@ -269,8 +267,6 @@ class Sketchup::ComponentDefinition < Sketchup::Drawingelement
|
|
269
267
|
#
|
270
268
|
# @return [Boolean]
|
271
269
|
#
|
272
|
-
# @return [Boolean]
|
273
|
-
#
|
274
270
|
# @version SketchUp 6.0
|
275
271
|
def hidden?
|
276
272
|
end
|
@@ -290,8 +286,6 @@ class Sketchup::ComponentDefinition < Sketchup::Drawingelement
|
|
290
286
|
#
|
291
287
|
# @return [Boolean]
|
292
288
|
#
|
293
|
-
# @return [Boolean]
|
294
|
-
#
|
295
289
|
# @version SketchUp 6.0
|
296
290
|
def image?
|
297
291
|
end
|
@@ -365,8 +359,6 @@ class Sketchup::ComponentDefinition < Sketchup::Drawingelement
|
|
365
359
|
#
|
366
360
|
# @return [Boolean]
|
367
361
|
#
|
368
|
-
# @return [Boolean]
|
369
|
-
#
|
370
362
|
# @version SketchUp 6.0
|
371
363
|
def internal?
|
372
364
|
end
|
@@ -100,8 +100,6 @@ class Sketchup::ComponentInstance < Sketchup::Drawingelement
|
|
100
100
|
#
|
101
101
|
# @return [Boolean]
|
102
102
|
#
|
103
|
-
# @return [Boolean]
|
104
|
-
#
|
105
103
|
# @version SketchUp 8.0
|
106
104
|
def equals?(instance)
|
107
105
|
end
|
@@ -260,8 +258,6 @@ class Sketchup::ComponentInstance < Sketchup::Drawingelement
|
|
260
258
|
#
|
261
259
|
# @return [Boolean]
|
262
260
|
#
|
263
|
-
# @return [Boolean]
|
264
|
-
#
|
265
261
|
# @version SketchUp 6.0
|
266
262
|
def locked?
|
267
263
|
end
|
@@ -300,8 +296,6 @@ class Sketchup::ComponentInstance < Sketchup::Drawingelement
|
|
300
296
|
#
|
301
297
|
# @return [Boolean]
|
302
298
|
#
|
303
|
-
# @return [Boolean]
|
304
|
-
#
|
305
299
|
# @version SketchUp 8.0
|
306
300
|
def manifold?
|
307
301
|
end
|
File without changes
|
File without changes
|
@@ -246,7 +246,7 @@ class Sketchup::DefinitionList < Sketchup::Entity
|
|
246
246
|
# object if successful
|
247
247
|
#
|
248
248
|
# @version SketchUp 7.0
|
249
|
-
def load_from_url(url, load_handler)
|
249
|
+
def load_from_url(url, load_handler = nil)
|
250
250
|
end
|
251
251
|
|
252
252
|
# The purge_unused method is used to remove the unused component definitions.
|
File without changes
|
File without changes
|
@@ -101,8 +101,6 @@ class Sketchup::Dimension < Sketchup::Drawingelement
|
|
101
101
|
# @return status - true if text is aligned to the dimension.
|
102
102
|
# False if dimension text is aligned to the screen.
|
103
103
|
#
|
104
|
-
# @return [Boolean]
|
105
|
-
#
|
106
104
|
# @version SketchUp 2014
|
107
105
|
def has_aligned_text?
|
108
106
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -87,8 +87,6 @@ class Sketchup::Drawingelement < Sketchup::Entity
|
|
87
87
|
#
|
88
88
|
# @return [Boolean]
|
89
89
|
#
|
90
|
-
# @return [Boolean]
|
91
|
-
#
|
92
90
|
# @version SketchUp 6.0
|
93
91
|
def casts_shadows?
|
94
92
|
end
|
@@ -166,8 +164,6 @@ class Sketchup::Drawingelement < Sketchup::Entity
|
|
166
164
|
#
|
167
165
|
# @return [Boolean]
|
168
166
|
#
|
169
|
-
# @return [Boolean]
|
170
|
-
#
|
171
167
|
# @version SketchUp 6.0
|
172
168
|
def hidden?
|
173
169
|
end
|
@@ -335,8 +331,6 @@ class Sketchup::Drawingelement < Sketchup::Entity
|
|
335
331
|
#
|
336
332
|
# @return [Boolean]
|
337
333
|
#
|
338
|
-
# @return [Boolean]
|
339
|
-
#
|
340
334
|
# @version SketchUp 6.0
|
341
335
|
def receives_shadows?
|
342
336
|
end
|
@@ -389,8 +383,6 @@ class Sketchup::Drawingelement < Sketchup::Entity
|
|
389
383
|
#
|
390
384
|
# @return [Boolean]
|
391
385
|
#
|
392
|
-
# @return [Boolean]
|
393
|
-
#
|
394
386
|
# @version SketchUp 6.0
|
395
387
|
def visible?
|
396
388
|
end
|
@@ -246,15 +246,18 @@ class Sketchup::Entities
|
|
246
246
|
# entities = Sketchup.active_model.entities
|
247
247
|
# curve = entities.add_curve [0,0,0], [0,10,0], [1,20,0]
|
248
248
|
#
|
249
|
-
# @
|
250
|
-
# You can pass either a series of Point3d objects or a
|
251
|
-
# single array containing Point3d objects.
|
249
|
+
# @overload add_curve(points)
|
252
250
|
#
|
253
|
-
#
|
254
|
-
#
|
251
|
+
# @param [Array<Geom::Point3d>] points
|
252
|
+
#
|
253
|
+
# @overload add_curve(*points)
|
254
|
+
#
|
255
|
+
# @param [Array<Geom::Point3d>] points
|
256
|
+
#
|
257
|
+
# @return [Array<Sketchup::Edge>]
|
255
258
|
#
|
256
259
|
# @version SketchUp 6.0
|
257
|
-
def add_curve(
|
260
|
+
def add_curve(*args)
|
258
261
|
end
|
259
262
|
|
260
263
|
# The {#add_dimension_linear} method adds a linear dimension to the entities.
|
@@ -428,12 +431,18 @@ class Sketchup::Entities
|
|
428
431
|
# # Add the face to the entities in the model
|
429
432
|
# face = entities.add_face(pts)
|
430
433
|
#
|
431
|
-
# @
|
434
|
+
# @overload add_face(entities)
|
435
|
+
#
|
436
|
+
# @param [Array<Sketchup::Edge>, Array<Geom::Point3d>, Sketchup::Curve] entities
|
432
437
|
#
|
433
|
-
# @
|
438
|
+
# @overload add_face(*entities)
|
439
|
+
#
|
440
|
+
# @param [Array<Sketchup::Edge>, Array<Geom::Point3d>] entities
|
441
|
+
#
|
442
|
+
# @return [Sketchup::Face, nil]
|
434
443
|
#
|
435
444
|
# @version SketchUp 6.0
|
436
|
-
def add_face(
|
445
|
+
def add_face(*args)
|
437
446
|
end
|
438
447
|
|
439
448
|
# The {#add_faces_from_mesh} method is used to add Face objects to the
|
@@ -489,27 +498,29 @@ class Sketchup::Entities
|
|
489
498
|
# The add_group method is used to create an empty group or a group with
|
490
499
|
# entities.
|
491
500
|
#
|
492
|
-
# NOTE: calling add_group with entities in its parameters has been known to
|
493
|
-
# crash SketchUp before version 8.0. It is preferable to create an empty
|
494
|
-
# group and then add things to its Entities collection.
|
495
|
-
#
|
496
501
|
# @example
|
497
502
|
# model = Sketchup.active_model
|
498
503
|
# entities = model.active_entities
|
499
504
|
# group = entities.add_group
|
500
|
-
# if (group)
|
501
|
-
# UI.messagebox group
|
502
|
-
# else
|
503
|
-
# UI.messagebox "Failure"
|
504
|
-
# end
|
505
505
|
#
|
506
|
-
# @
|
507
|
-
#
|
506
|
+
# @note Calling add_group with entities in its parameters has been known to
|
507
|
+
# crash SketchUp before version 8.0. It is preferable to create an empty
|
508
|
+
# group and then add things to its Entities collection.
|
509
|
+
#
|
510
|
+
# @overload add_group(entities)
|
511
|
+
#
|
512
|
+
# @param [Array<Sketchup::Entity>] entities
|
513
|
+
# an entities collection to add to the group.
|
514
|
+
#
|
515
|
+
# @overload add_group(*entities)
|
508
516
|
#
|
509
|
-
#
|
517
|
+
# @param [Array<Sketchup::Entity>] entities
|
518
|
+
# an entities collection to add to the group.
|
519
|
+
#
|
520
|
+
# @return [Sketchup::Group]
|
510
521
|
#
|
511
522
|
# @version SketchUp 6.0
|
512
|
-
def add_group(
|
523
|
+
def add_group(*args)
|
513
524
|
end
|
514
525
|
|
515
526
|
# The add_image method is used to add an image to the collection of entities.
|
@@ -541,12 +552,13 @@ class Sketchup::Entities
|
|
541
552
|
#
|
542
553
|
# @param [Numeric] height
|
543
554
|
# height for the image if you want to control
|
544
|
-
# width and height independently.
|
555
|
+
# width and height independently. Leave as default +0.0+ when you want it
|
556
|
+
# to be relative to the aspect ratio.
|
545
557
|
#
|
546
|
-
# @return [Sketchup::Image] an Image object if successful.
|
558
|
+
# @return [Sketchup::Image, nil] an Image object if successful.
|
547
559
|
#
|
548
560
|
# @version SketchUp 6.0
|
549
|
-
def add_image(filename, point, width, height)
|
561
|
+
def add_image(filename, point, width, height = 0.0)
|
550
562
|
end
|
551
563
|
|
552
564
|
# The add_instance method adds a component instance to the collection of
|
@@ -833,13 +845,18 @@ class Sketchup::Entities
|
|
833
845
|
# entities.erase_entities entities[1]
|
834
846
|
# UI.messagebox entities
|
835
847
|
#
|
836
|
-
# @
|
837
|
-
#
|
848
|
+
# @overload erase_entities(entities)
|
849
|
+
#
|
850
|
+
# @param [Array<Sketchup::Entity>] entities
|
851
|
+
#
|
852
|
+
# @overload erase_entities(*entities)
|
853
|
+
#
|
854
|
+
# @param [Array<Sketchup::Entity>] entities
|
838
855
|
#
|
839
856
|
# @return [nil]
|
840
857
|
#
|
841
858
|
# @version SketchUp 6.0
|
842
|
-
def erase_entities(
|
859
|
+
def erase_entities(*args)
|
843
860
|
end
|
844
861
|
|
845
862
|
# The {#fill_from_mesh} method is used to add faces and edges to the collection
|