sketchup-api-stubs 0.7.2 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sketchup-api-stubs/sketchup.rb +3 -1
- data/lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb +15 -11
- data/lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb +5 -5
- data/lib/sketchup-api-stubs/stubs/Geom/LatLong.rb +5 -5
- data/lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Point2d.rb +5 -6
- data/lib/sketchup-api-stubs/stubs/Geom/Point3d.rb +18 -18
- data/lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb +27 -10
- data/lib/sketchup-api-stubs/stubs/Geom/Transformation.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/UTM.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Vector2d.rb +2 -3
- data/lib/sketchup-api-stubs/stubs/Geom/Vector3d.rb +4 -4
- data/lib/sketchup-api-stubs/stubs/Layout.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/AngularDimension.rb +5 -1
- data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinition.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinitions.rb +7 -14
- data/lib/sketchup-api-stubs/stubs/Layout/ConnectionPoint.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Document.rb +61 -5
- data/lib/sketchup-api-stubs/stubs/Layout/Ellipse.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Entities.rb +7 -14
- data/lib/sketchup-api-stubs/stubs/Layout/Entity.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/FormattedText.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Grid.rb +189 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Group.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Image.rb +9 -4
- data/lib/sketchup-api-stubs/stubs/Layout/Label.rb +2 -3
- data/lib/sketchup-api-stubs/stubs/Layout/Layer.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Layers.rb +7 -14
- data/lib/sketchup-api-stubs/stubs/Layout/LinearDimension.rb +6 -2
- data/lib/sketchup-api-stubs/stubs/Layout/LockedEntityError.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/LockedLayerError.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Page.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/PageInfo.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Pages.rb +7 -14
- data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Rectangle.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +148 -5
- data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Table.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/TableCell.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/TableColumn.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/TableRow.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Animation.rb +5 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/AppObserver.rb +4 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb +3 -3
- data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb +6 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +32 -58
- data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +110 -209
- data/lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Classifications.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Color.rb +24 -11
- data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb +24 -9
- data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb +58 -57
- data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionPoint.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +16 -9
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionList.rb +135 -39
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionsObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb +3 -9
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionObserver.rb +5 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionRadial.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb +10 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +8 -14
- data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +55 -26
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +20 -15
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb +6 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb +9 -8
- data/lib/sketchup-api-stubs/stubs/Sketchup/Face.rb +232 -65
- data/lib/sketchup-api-stubs/stubs/Sketchup/FrameChangeObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Group.rb +98 -45
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Request.rb +48 -41
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb +7 -7
- data/lib/sketchup-api-stubs/stubs/Sketchup/Image.rb +60 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ImageRep.rb +47 -7
- data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +11 -12
- data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +33 -21
- data/lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb +5 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +115 -68
- data/lib/sketchup-api-stubs/stubs/Sketchup/LayerFolder.rb +422 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb +225 -29
- data/lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb +118 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyle.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb +2 -13
- data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +8 -10
- data/lib/sketchup-api-stubs/stubs/Sketchup/Materials.rb +16 -9
- data/lib/sketchup-api-stubs/stubs/Sketchup/MaterialsObserver.rb +6 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/Menu.rb +9 -11
- data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +126 -73
- data/lib/sketchup-api-stubs/stubs/Sketchup/ModelObserver.rb +5 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb +2 -3
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +7 -7
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb +4 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +143 -40
- data/lib/sketchup-api-stubs/stubs/Sketchup/Pages.rb +22 -12
- data/lib/sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb +6 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/PickHelper.rb +37 -15
- data/lib/sketchup-api-stubs/stubs/Sketchup/RegionalSettings.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptionsObserver.rb +5 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +10 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/SelectionObserver.rb +20 -20
- data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb +5 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/Skp.rb +40 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/Style.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb +9 -3
- data/lib/sketchup-api-stubs/stubs/Sketchup/Text.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Texture.rb +14 -22
- data/lib/sketchup-api-stubs/stubs/Sketchup/TextureWriter.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +31 -25
- data/lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/ToolsObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb +32 -22
- data/lib/sketchup-api-stubs/stubs/Sketchup/Vertex.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +73 -67
- data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +6 -4
- data/lib/sketchup-api-stubs/stubs/UI/Command.rb +13 -6
- data/lib/sketchup-api-stubs/stubs/UI/HtmlDialog.rb +132 -10
- data/lib/sketchup-api-stubs/stubs/UI/Notification.rb +94 -54
- data/lib/sketchup-api-stubs/stubs/UI/Toolbar.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/UI/WebDialog.rb +3 -3
- data/lib/sketchup-api-stubs/stubs/_top_level.rb +3 -1
- data/lib/sketchup-api-stubs/stubs/array.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/geom.rb +4 -1
- data/lib/sketchup-api-stubs/stubs/languagehandler.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/length.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/numeric.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/sketchup.rb +66 -23
- data/lib/sketchup-api-stubs/stubs/sketchupextension.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/string.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/ui.rb +17 -12
- metadata +5 -3
@@ -1,11 +1,11 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2021 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# The Ruby WebDialog class allows you to create and interact with DHTML dialog
|
5
5
|
# boxes from Ruby.
|
6
6
|
#
|
7
7
|
# If your goal is to simply display a website to your users, consider using
|
8
|
-
# UI.
|
8
|
+
# {UI.openURL}, which will show them a web page in their default browser rather
|
9
9
|
# than inside a dialog in SketchUp.
|
10
10
|
#
|
11
11
|
# See this blog post for a detailed, step-by-step example:
|
@@ -428,7 +428,7 @@ class UI::WebDialog
|
|
428
428
|
def set_background_color(color)
|
429
429
|
end
|
430
430
|
|
431
|
-
# The #
|
431
|
+
# The {#set_file} method is used to identify a local HTML file to display in
|
432
432
|
# the webdialog.
|
433
433
|
#
|
434
434
|
# @example
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2021 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
|
@@ -147,6 +147,8 @@
|
|
147
147
|
PAGE_USE_ALL = nil # Stub value.
|
148
148
|
PAGE_USE_CAMERA = nil # Stub value.
|
149
149
|
PAGE_USE_HIDDEN = nil # Stub value.
|
150
|
+
PAGE_USE_HIDDEN_GEOMETRY = nil # Stub value.
|
151
|
+
PAGE_USE_HIDDEN_OBJECTS = nil # Stub value.
|
150
152
|
PAGE_USE_LAYER_VISIBILITY = nil # Stub value.
|
151
153
|
PAGE_USE_RENDERING_OPTIONS = nil # Stub value.
|
152
154
|
PAGE_USE_SECTION_PLANES = nil # Stub value.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2021 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# The Geom module defines a number of Module methods that let you perform
|
@@ -167,6 +167,9 @@ module Geom
|
|
167
167
|
# The {.linear_combination} method is used to compute the linear combination of
|
168
168
|
# points or vectors.
|
169
169
|
#
|
170
|
+
# A linear combination is a standard term for vector math. It is defined as
|
171
|
+
# vector = weight1 * vector1 + weight2 * vector2.
|
172
|
+
#
|
170
173
|
# @example
|
171
174
|
# point1 = Geom::Point3d.new(1, 1, 1)
|
172
175
|
# point2 = Geom::Point3d.new(10, 10, 10)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2021 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# The Sketchup module contains a number of important utility methods for use in
|
@@ -291,6 +291,17 @@ module Sketchup
|
|
291
291
|
def self.fix_shadow_strings?
|
292
292
|
end
|
293
293
|
|
294
|
+
# The {.focus} method is used to focus the active model window.
|
295
|
+
#
|
296
|
+
# @example
|
297
|
+
# Sketchup.focus
|
298
|
+
#
|
299
|
+
# @see UI::HtmlDialog.bring_to_front
|
300
|
+
#
|
301
|
+
# @version SketchUp 2021.1
|
302
|
+
def self.focus
|
303
|
+
end
|
304
|
+
|
294
305
|
# The format_angle method takes a number as an angle in radians and formats it
|
295
306
|
# into degrees. For example, format_angle(Math::PI) will return 180.0.
|
296
307
|
#
|
@@ -306,7 +317,7 @@ module Sketchup
|
|
306
317
|
def self.format_angle(number)
|
307
318
|
end
|
308
319
|
|
309
|
-
# The
|
320
|
+
# The {.format_area} method formats a number as an area using the current units
|
310
321
|
# settings.
|
311
322
|
#
|
312
323
|
# The +number+ must be in square inches.
|
@@ -363,7 +374,7 @@ module Sketchup
|
|
363
374
|
def self.format_length(*args)
|
364
375
|
end
|
365
376
|
|
366
|
-
# The
|
377
|
+
# The {.format_volume} method formats a number as a volume using the current
|
367
378
|
# units settings.
|
368
379
|
#
|
369
380
|
# The +number+ must be in cubic inches.
|
@@ -427,10 +438,9 @@ module Sketchup
|
|
427
438
|
# The os_language method returns the language code for the language SketchUp
|
428
439
|
# is running in. This is an alias for the get_locale method.
|
429
440
|
#
|
430
|
-
#
|
431
|
-
# pt-BR, nl, ru.
|
432
|
-
#
|
433
|
-
# SketchUp Resources folder, the returned language is, by default, en-US.
|
441
|
+
# Examples of return values are: en-US, fr, it, de, es, ja, ko, zh-CN, zh-TW,
|
442
|
+
# pt-BR, nl, ru and sv. For an up to date list os supported languages, see
|
443
|
+
# the SketchUp download page.
|
434
444
|
#
|
435
445
|
# @example
|
436
446
|
# language = Sketchup.os_language
|
@@ -461,7 +471,7 @@ module Sketchup
|
|
461
471
|
# The get_shortcuts method retrieves an array of all keyboard shortcuts
|
462
472
|
# currently registered with SketchUp. Each shortcut is returned as a
|
463
473
|
# string with the shortcut and the command separated by a tab, similar
|
464
|
-
# to "Ctrl+A
|
474
|
+
# to "Ctrl+A\\tEdit/Select All"
|
465
475
|
#
|
466
476
|
# @example
|
467
477
|
# shortcuts = Sketchup.get_shortcuts
|
@@ -502,9 +512,15 @@ module Sketchup
|
|
502
512
|
# UI.messagebox("Error during unzip: " + error)
|
503
513
|
# end
|
504
514
|
#
|
505
|
-
# @param [String]
|
515
|
+
# @param [String] filepath
|
506
516
|
# The path to the RBZ or ZIP file to install.
|
507
517
|
#
|
518
|
+
# @param [Boolean] show_warning
|
519
|
+
# Whether to warn the user not to install untrusted extensions.
|
520
|
+
# In certain cases the warning can be confusing and redundant, e.g. when
|
521
|
+
# automatically updating a trusted extension. When the user has selected
|
522
|
+
# the archive themselves, it is best to warn about the possible risks.
|
523
|
+
#
|
508
524
|
# @raise [Exception] If the archive cannot be installed.
|
509
525
|
#
|
510
526
|
# @raise [Interrupt] If the user cancel the installation.
|
@@ -514,7 +530,7 @@ module Sketchup
|
|
514
530
|
# @return [Boolean]
|
515
531
|
#
|
516
532
|
# @version SketchUp 8.0 M2
|
517
|
-
def self.install_from_archive(
|
533
|
+
def self.install_from_archive(filepath, show_warning = true)
|
518
534
|
end
|
519
535
|
|
520
536
|
# This methods indicates whether the host SketchUp application is 64bit.
|
@@ -551,15 +567,15 @@ module Sketchup
|
|
551
567
|
end
|
552
568
|
|
553
569
|
# Returns a boolean flag indicating whether the application is SketchUp Pro.
|
554
|
-
# Note that after the free trial period, SketchUp Pro will revert to regular
|
555
|
-
# SketchUp and this method will return false until the user registers
|
556
|
-
# the product.
|
557
570
|
#
|
558
571
|
# @example
|
559
572
|
# if Sketchup.is_pro?
|
560
573
|
# UI.messagebox("You are running SU Pro.")
|
561
574
|
# end
|
562
575
|
#
|
576
|
+
# @note In SketchUp Make this method will return +true+ during the Pro trial
|
577
|
+
# period and revert to +false+ when the trial period is over.
|
578
|
+
#
|
563
579
|
# @return [Boolean]
|
564
580
|
#
|
565
581
|
# @version SketchUp 7.0
|
@@ -603,28 +619,44 @@ module Sketchup
|
|
603
619
|
def self.load(path)
|
604
620
|
end
|
605
621
|
|
606
|
-
# The open_file method is used to open a
|
622
|
+
# The {.open_file} method is used to open a SketchUp model.
|
607
623
|
#
|
608
624
|
# @example
|
609
625
|
# result = Sketchup.open_file("C:\\model.skp")
|
610
626
|
#
|
611
|
-
# @
|
612
|
-
# The path and filename to open.
|
627
|
+
# @overload open_file(filename)
|
613
628
|
#
|
614
|
-
#
|
615
|
-
#
|
629
|
+
# @deprecated Prefer +with_status+ overload instead of this variant.
|
630
|
+
# @param [String] filename The model file to open.
|
631
|
+
# @return [Boolean] +true+ if opening the file succeeded,
|
632
|
+
# +false+ otherwise.
|
633
|
+
#
|
634
|
+
# @overload open_file(filename, with_status: true)
|
635
|
+
#
|
636
|
+
# Starting with SketchUp 2021.0 SketchUp attempts to load newer SketchUp
|
637
|
+
# models. If a newer model is loaded some information might have been skipped
|
638
|
+
# and extensions should be careful to not save over the file they loaded from
|
639
|
+
# as information might be lost.
|
640
|
+
#
|
641
|
+
# Success status codes:
|
642
|
+
# * {Sketchup::Model::LOAD_STATUS_SUCCESS}
|
643
|
+
# * {Sketchup::Model::LOAD_STATUS_SUCCESS_MORE_RECENT}
|
644
|
+
#
|
645
|
+
# @version SketchUp 2021.0
|
646
|
+
# @param [String] filename The model file to open.
|
647
|
+
# @return [Integer, false] status code if opening the file succeeded,
|
648
|
+
# +false+ otherwise.
|
616
649
|
#
|
617
650
|
# @version SketchUp 6.0
|
618
|
-
def self.open_file(
|
651
|
+
def self.open_file(*args)
|
619
652
|
end
|
620
653
|
|
621
654
|
# The os_language method returns the language code for the language SketchUp
|
622
655
|
# is running in. This is an alias for the get_locale method.
|
623
656
|
#
|
624
|
-
#
|
625
|
-
# pt-BR, nl, ru.
|
626
|
-
#
|
627
|
-
# SketchUp Resources folder, the returned language is, by default, en-US.
|
657
|
+
# Examples of return values are: en-US, fr, it, de, es, ja, ko, zh-CN, zh-TW,
|
658
|
+
# pt-BR, nl, ru and sv. For an up to date list os supported languages, see
|
659
|
+
# the SketchUp download page.
|
628
660
|
#
|
629
661
|
# @example
|
630
662
|
# language = Sketchup.os_language
|
@@ -751,6 +783,17 @@ module Sketchup
|
|
751
783
|
def self.read_default(section, variable, default = nil)
|
752
784
|
end
|
753
785
|
|
786
|
+
# The redo method is used redo the last transaction on the redo stack.
|
787
|
+
#
|
788
|
+
# @example
|
789
|
+
# Sketchup.redo
|
790
|
+
#
|
791
|
+
# @return [nil]
|
792
|
+
#
|
793
|
+
# @version SketchUp 2021.0
|
794
|
+
def self.redo
|
795
|
+
end
|
796
|
+
|
754
797
|
# The register_extension method is used to register an extension with
|
755
798
|
# SketchUp's extension manager (in SketchUp preferences).
|
756
799
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright:: Copyright
|
1
|
+
# Copyright:: Copyright 2021 Trimble Inc.
|
2
2
|
# License:: The MIT License (MIT)
|
3
3
|
|
4
4
|
# The UI module contains a number of methods for creating simple UI elements
|
@@ -70,8 +70,8 @@ module UI
|
|
70
70
|
# UI.set_cursor(cursor_id)
|
71
71
|
# end
|
72
72
|
#
|
73
|
-
# @param [String]
|
74
|
-
#
|
73
|
+
# @param [String] path
|
74
|
+
# File path to an image.
|
75
75
|
#
|
76
76
|
# @param [Integer] hot_x
|
77
77
|
# An x coordinate that is the "hotpoint" for the cursor
|
@@ -88,7 +88,7 @@ module UI
|
|
88
88
|
# @return [Integer] ID associated with the cursor
|
89
89
|
#
|
90
90
|
# @version SketchUp 6.0
|
91
|
-
def self.create_cursor(
|
91
|
+
def self.create_cursor(path, hot_x, hot_y)
|
92
92
|
end
|
93
93
|
|
94
94
|
# Creates a dialog box for inputting user information. The dialog box contains
|
@@ -165,7 +165,7 @@ module UI
|
|
165
165
|
# of SketchUp's menus.
|
166
166
|
#
|
167
167
|
# Valid menu names are: "File", "Edit", "View", "Camera", "Draw", "Tools",
|
168
|
-
# "Window", "Extensions" and "
|
168
|
+
# "Window", "Extensions", "Help" and "Developer".
|
169
169
|
#
|
170
170
|
# @example
|
171
171
|
# tool_menu = UI.menu("Tools")
|
@@ -325,7 +325,9 @@ module UI
|
|
325
325
|
end
|
326
326
|
|
327
327
|
# The preferences_pages method is used to returns the names of all the
|
328
|
-
# preferences pages. These include windows like
|
328
|
+
# preferences pages. These include windows like Templates.
|
329
|
+
#
|
330
|
+
# [SketchUp 2017] <code>"Extensions"</code> page was removed.
|
329
331
|
#
|
330
332
|
# @example
|
331
333
|
# prefs = UI.preferences_pages
|
@@ -469,7 +471,7 @@ module UI
|
|
469
471
|
def self.select_directory(options = {})
|
470
472
|
end
|
471
473
|
|
472
|
-
# The
|
474
|
+
# The {.set_cursor} method is used to change the cursor to a new cursor with a
|
473
475
|
# given cursor id. See UI.create_cursor and the Tool class for details
|
474
476
|
# on creating your own tools with arbitrary cursors.
|
475
477
|
#
|
@@ -539,11 +541,14 @@ module UI
|
|
539
541
|
end
|
540
542
|
|
541
543
|
# The {.show_model_info} method is used to display the model info dialog for a
|
542
|
-
# specific page. You can get the list of valid
|
543
|
-
# {UI.model_info_pages}.
|
544
|
+
# specific page. You can get the list of valid page names with {UI.model_info_pages}.
|
544
545
|
#
|
545
546
|
# [SketchUp 2014] <code>"Classifications"</code> page was added.
|
546
|
-
#
|
547
|
+
#
|
548
|
+
# @bug Until SketchUp 2021.1 SketchUp on Mac didn't display the desired page in,
|
549
|
+
# but only selected it in the navigation.
|
550
|
+
#
|
551
|
+
# @bug Until SketchUp 2021.1 SketchUp on Mac didn't accept English page names on localized builds.
|
547
552
|
#
|
548
553
|
# @example
|
549
554
|
# UI.show_model_info('Credits')
|
@@ -558,9 +563,9 @@ module UI
|
|
558
563
|
end
|
559
564
|
|
560
565
|
# The show_preferences method is used to display a SketchUp preferences dialog.
|
561
|
-
# You can get the list of valid dialogs with UI.preferences_pages.
|
566
|
+
# You can get the list of valid dialogs with {UI.preferences_pages}.
|
562
567
|
#
|
563
|
-
#
|
568
|
+
# @bug Under OSX this method doesn't currently work.
|
564
569
|
#
|
565
570
|
# @example
|
566
571
|
# status = UI.show_preferences('GraphicsCard')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sketchup-api-stubs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trimble Inc, SketchUp Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb
|
128
128
|
- lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb
|
129
129
|
- lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb
|
130
|
+
- lib/sketchup-api-stubs/stubs/Sketchup/LayerFolder.rb
|
130
131
|
- lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb
|
131
132
|
- lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb
|
132
133
|
- lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb
|
@@ -156,6 +157,7 @@ files:
|
|
156
157
|
- lib/sketchup-api-stubs/stubs/Sketchup/Set.rb
|
157
158
|
- lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb
|
158
159
|
- lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb
|
160
|
+
- lib/sketchup-api-stubs/stubs/Sketchup/Skp.rb
|
159
161
|
- lib/sketchup-api-stubs/stubs/Sketchup/Style.rb
|
160
162
|
- lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb
|
161
163
|
- lib/sketchup-api-stubs/stubs/Sketchup/Text.rb
|
@@ -203,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
205
|
- !ruby/object:Gem::Version
|
204
206
|
version: '0'
|
205
207
|
requirements: []
|
206
|
-
rubygems_version: 3.
|
208
|
+
rubygems_version: 3.2.15
|
207
209
|
signing_key:
|
208
210
|
specification_version: 4
|
209
211
|
summary: SketchUp Ruby API stubs.
|