sketchup-api-stubs 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sketchup-api-stubs/sketchup.rb +1 -1
  3. data/lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb +1 -1
  4. data/lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb +1 -1
  5. data/lib/sketchup-api-stubs/stubs/Geom/LatLong.rb +1 -1
  6. data/lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb +1 -1
  7. data/lib/sketchup-api-stubs/stubs/Geom/Point2d.rb +1 -1
  8. data/lib/sketchup-api-stubs/stubs/Geom/Point3d.rb +1 -1
  9. data/lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb +21 -10
  10. data/lib/sketchup-api-stubs/stubs/Geom/Transformation.rb +1 -1
  11. data/lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb +1 -1
  12. data/lib/sketchup-api-stubs/stubs/Geom/UTM.rb +1 -1
  13. data/lib/sketchup-api-stubs/stubs/Geom/Vector2d.rb +1 -1
  14. data/lib/sketchup-api-stubs/stubs/Geom/Vector3d.rb +1 -1
  15. data/lib/sketchup-api-stubs/stubs/Layout.rb +1 -1
  16. data/lib/sketchup-api-stubs/stubs/Layout/AngularDimension.rb +1 -1
  17. data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinition.rb +1 -1
  18. data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinitions.rb +1 -1
  19. data/lib/sketchup-api-stubs/stubs/Layout/ConnectionPoint.rb +1 -1
  20. data/lib/sketchup-api-stubs/stubs/Layout/Document.rb +1 -1
  21. data/lib/sketchup-api-stubs/stubs/Layout/Ellipse.rb +1 -1
  22. data/lib/sketchup-api-stubs/stubs/Layout/Entities.rb +1 -1
  23. data/lib/sketchup-api-stubs/stubs/Layout/Entity.rb +1 -1
  24. data/lib/sketchup-api-stubs/stubs/Layout/FormattedText.rb +1 -1
  25. data/lib/sketchup-api-stubs/stubs/Layout/Grid.rb +1 -1
  26. data/lib/sketchup-api-stubs/stubs/Layout/Group.rb +1 -1
  27. data/lib/sketchup-api-stubs/stubs/Layout/Image.rb +1 -1
  28. data/lib/sketchup-api-stubs/stubs/Layout/Label.rb +1 -1
  29. data/lib/sketchup-api-stubs/stubs/Layout/Layer.rb +1 -1
  30. data/lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb +1 -1
  31. data/lib/sketchup-api-stubs/stubs/Layout/Layers.rb +1 -1
  32. data/lib/sketchup-api-stubs/stubs/Layout/LinearDimension.rb +1 -1
  33. data/lib/sketchup-api-stubs/stubs/Layout/LockedEntityError.rb +1 -1
  34. data/lib/sketchup-api-stubs/stubs/Layout/LockedLayerError.rb +1 -1
  35. data/lib/sketchup-api-stubs/stubs/Layout/Page.rb +1 -1
  36. data/lib/sketchup-api-stubs/stubs/Layout/PageInfo.rb +1 -1
  37. data/lib/sketchup-api-stubs/stubs/Layout/Pages.rb +1 -1
  38. data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +1 -1
  39. data/lib/sketchup-api-stubs/stubs/Layout/Rectangle.rb +1 -1
  40. data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +1 -1
  41. data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +1 -1
  42. data/lib/sketchup-api-stubs/stubs/Layout/Table.rb +1 -1
  43. data/lib/sketchup-api-stubs/stubs/Layout/TableCell.rb +1 -1
  44. data/lib/sketchup-api-stubs/stubs/Layout/TableColumn.rb +1 -1
  45. data/lib/sketchup-api-stubs/stubs/Layout/TableRow.rb +1 -1
  46. data/lib/sketchup-api-stubs/stubs/Sketchup/Animation.rb +1 -1
  47. data/lib/sketchup-api-stubs/stubs/Sketchup/AppObserver.rb +1 -1
  48. data/lib/sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb +1 -1
  49. data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb +1 -1
  50. data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb +1 -1
  51. data/lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb +1 -1
  52. data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +1 -1
  53. data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +1 -1
  54. data/lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb +1 -1
  55. data/lib/sketchup-api-stubs/stubs/Sketchup/Classifications.rb +1 -1
  56. data/lib/sketchup-api-stubs/stubs/Sketchup/Color.rb +1 -1
  57. data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb +2 -2
  58. data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb +35 -45
  59. data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +1 -1
  60. data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb +1 -1
  61. data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionPoint.rb +1 -1
  62. data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +1 -1
  63. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionList.rb +76 -13
  64. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionObserver.rb +1 -1
  65. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionsObserver.rb +1 -1
  66. data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +1 -1
  67. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb +1 -1
  68. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionObserver.rb +1 -1
  69. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionRadial.rb +1 -1
  70. data/lib/sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb +1 -1
  71. data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +1 -1
  72. data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +1 -1
  73. data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +1 -1
  74. data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb +1 -1
  75. data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +1 -1
  76. data/lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb +1 -1
  77. data/lib/sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb +1 -1
  78. data/lib/sketchup-api-stubs/stubs/Sketchup/Face.rb +224 -58
  79. data/lib/sketchup-api-stubs/stubs/Sketchup/FrameChangeObserver.rb +1 -1
  80. data/lib/sketchup-api-stubs/stubs/Sketchup/Group.rb +52 -1
  81. data/lib/sketchup-api-stubs/stubs/Sketchup/Http.rb +1 -1
  82. data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Request.rb +48 -41
  83. data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb +7 -7
  84. data/lib/sketchup-api-stubs/stubs/Sketchup/Image.rb +52 -1
  85. data/lib/sketchup-api-stubs/stubs/Sketchup/ImageRep.rb +1 -1
  86. data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +1 -1
  87. data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +1 -1
  88. data/lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb +1 -1
  89. data/lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb +1 -1
  90. data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +1 -1
  91. data/lib/sketchup-api-stubs/stubs/Sketchup/LayerFolder.rb +3 -3
  92. data/lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb +1 -1
  93. data/lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb +1 -1
  94. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb +2 -2
  95. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +1 -1
  96. data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyle.rb +1 -1
  97. data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb +1 -1
  98. data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +1 -1
  99. data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +1 -1
  100. data/lib/sketchup-api-stubs/stubs/Sketchup/Materials.rb +2 -2
  101. data/lib/sketchup-api-stubs/stubs/Sketchup/MaterialsObserver.rb +1 -1
  102. data/lib/sketchup-api-stubs/stubs/Sketchup/Menu.rb +1 -1
  103. data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +4 -1
  104. data/lib/sketchup-api-stubs/stubs/Sketchup/ModelObserver.rb +1 -1
  105. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb +1 -1
  106. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +1 -1
  107. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb +1 -1
  108. data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +1 -1
  109. data/lib/sketchup-api-stubs/stubs/Sketchup/Pages.rb +1 -1
  110. data/lib/sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb +1 -1
  111. data/lib/sketchup-api-stubs/stubs/Sketchup/PickHelper.rb +1 -1
  112. data/lib/sketchup-api-stubs/stubs/Sketchup/RegionalSettings.rb +1 -1
  113. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +1 -1
  114. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptionsObserver.rb +1 -1
  115. data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +1 -1
  116. data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +1 -1
  117. data/lib/sketchup-api-stubs/stubs/Sketchup/SelectionObserver.rb +1 -1
  118. data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +1 -1
  119. data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb +1 -1
  120. data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb +1 -1
  121. data/lib/sketchup-api-stubs/stubs/Sketchup/Skp.rb +1 -1
  122. data/lib/sketchup-api-stubs/stubs/Sketchup/Style.rb +1 -1
  123. data/lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb +1 -1
  124. data/lib/sketchup-api-stubs/stubs/Sketchup/Text.rb +1 -1
  125. data/lib/sketchup-api-stubs/stubs/Sketchup/Texture.rb +1 -1
  126. data/lib/sketchup-api-stubs/stubs/Sketchup/TextureWriter.rb +1 -1
  127. data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +1 -1
  128. data/lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb +1 -1
  129. data/lib/sketchup-api-stubs/stubs/Sketchup/ToolsObserver.rb +1 -1
  130. data/lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb +1 -1
  131. data/lib/sketchup-api-stubs/stubs/Sketchup/Vertex.rb +1 -1
  132. data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +1 -1
  133. data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +1 -1
  134. data/lib/sketchup-api-stubs/stubs/UI/Command.rb +1 -1
  135. data/lib/sketchup-api-stubs/stubs/UI/HtmlDialog.rb +98 -7
  136. data/lib/sketchup-api-stubs/stubs/UI/Notification.rb +69 -55
  137. data/lib/sketchup-api-stubs/stubs/UI/Toolbar.rb +1 -1
  138. data/lib/sketchup-api-stubs/stubs/UI/WebDialog.rb +1 -1
  139. data/lib/sketchup-api-stubs/stubs/_top_level.rb +1 -1
  140. data/lib/sketchup-api-stubs/stubs/array.rb +1 -1
  141. data/lib/sketchup-api-stubs/stubs/geom.rb +1 -1
  142. data/lib/sketchup-api-stubs/stubs/languagehandler.rb +1 -1
  143. data/lib/sketchup-api-stubs/stubs/length.rb +1 -1
  144. data/lib/sketchup-api-stubs/stubs/numeric.rb +1 -1
  145. data/lib/sketchup-api-stubs/stubs/sketchup.rb +12 -1
  146. data/lib/sketchup-api-stubs/stubs/sketchupextension.rb +1 -1
  147. data/lib/sketchup-api-stubs/stubs/string.rb +1 -1
  148. data/lib/sketchup-api-stubs/stubs/ui.rb +8 -4
  149. metadata +3 -3
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Layers collection allows you to see and manage all of the layers in a
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to layers events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The +Sketchup::Licensing+ module contains methods for
@@ -10,7 +10,7 @@
10
10
  # than their Ruby API counterparts.
11
11
  #
12
12
  # For more details, see:
13
- # {Developer Center Licensing Tutorial}[https://extensions.sketchup.com/en/developer_center/tutorial_licensing]
13
+ # {Licensing Example}[https://github.com/SketchUp/sketchup-ruby-api-tutorials/tree/master/examples/99_license]
14
14
  #
15
15
  # @version SketchUp 2015
16
16
  module Sketchup::Licensing
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Sketchup::Licensing::ExtensionLicense class is used to store extension
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This provides a way for SketchUp to customize a line style and be set on a
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Provides access to the different line style objects in the model.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Loop is a low level topology class that will not need to be used often. A
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Material class represents a texture or color that can be applied to
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # A collection of Materials objects. Each model contains a Materials collection
@@ -191,7 +191,7 @@ class Sketchup::Materials < Sketchup::Entity
191
191
 
192
192
  # The {#load} method is used to load a material from file into the model.
193
193
  #
194
- # If a matching material exist in the model that will be returned instead.
194
+ # If a matching material exist in the model it will be returned instead.
195
195
  #
196
196
  # @example
197
197
  # # Load a material from the shipped SketchUp library. (SketchUp 2016)
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to materials events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # An interface to a menu.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This is the interface to a SketchUp model. The model is the 3D drawing that
@@ -853,6 +853,9 @@ class Sketchup::Model
853
853
  # The import method is used to load a file by recognizing the file extension
854
854
  # and calling appropriate importer.
855
855
  #
856
+ # See {Sketchup::DefinitionList#import} for importing a 3d model file as a
857
+ # component definition, without activating the UI for placing an instance.
858
+ #
856
859
  # See the {file:pages/importer_options.md Importer Options} file for information
857
860
  # on creating a valid hash for the various importers.
858
861
  #
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to model events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The OptionsManager class manages various kinds of OptionsProviders on a
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # An +OptionsProvider+ class provides various kinds of options on a
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to operations provider
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Page class contains methods to extract information and modify the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Pages class contains methods for manipulating a collection of Pages
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to pages events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The {Sketchup::PickHelper} class is used to pick entities that reside under
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The {Sketchup::RegionalSettings} module contains methods getting information about the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The RenderingOptions class contains method to extract the rendering
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to rendering options events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The SectionPlane class represents a section plane in a SketchUp model. Note
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # A set of the currently selected entities. Use the Model.selection method
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to selection events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The set class represents a collection of unique objects. This class is useful
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The ShadowInfo class contains method to extract the shadow information for a
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to changes to the shadow
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The {Sketchup::Skp} module is used to read metadata from external SketchUp
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Style class contains methods for modifying information about a specific
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Styles class contains methods for manipulating a collection of styles in
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Text class contains method to manipulate a Text entity object.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Texture class contains methods for obtaining information about textures
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The TextureWriter class is used primarily for writing the textures used in a
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # Tool is the interface that you implement to create a SketchUp tool.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Tools class contains methods to manipulate a collection of SketchUp
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to tool events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The UV Helper class contains methods allowing you to determine the location
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # A Vertex. A Vertex represents the end of an Edge or a point inside a Face.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This class contains methods to manipulate the current point of view of the
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # This observer interface is implemented to react to view events.
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Command class is the preferred class for adding tools to the menus and
@@ -1,4 +1,4 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
1
+ # Copyright:: Copyright 2021 Trimble Inc.
2
2
  # License:: The MIT License (MIT)
3
3
 
4
4
  # The Ruby HtmlDialog class allows you to create and interact with HTML dialog
@@ -17,11 +17,26 @@
17
17
  # For usage examples, including how to migrate from the old WebDialog class,
18
18
  # see https://github.com/SketchUp/htmldialog-examples.
19
19
  #
20
+ # HtmlDialog uses the following versions of CEF (Chromium Embedded Framework):
21
+ #
22
+ # [SketchUp 2021.1]
23
+ # CEF 88
24
+ # [SketchUp 2019.0]
25
+ # CEF 64
26
+ # [SketchUp 2018.0]
27
+ # CEF 56
28
+ # [SketchUp 2017.0]
29
+ # CEF 52
30
+ #
20
31
  # @version SketchUp 2017
21
32
  class UI::HtmlDialog
22
33
 
23
34
  # Constants
24
35
 
36
+ CEF_VERSION = nil # Stub value.
37
+
38
+ CHROME_VERSION = nil # Stub value.
39
+
25
40
  STYLE_DIALOG = nil # Stub value.
26
41
  STYLE_UTILITY = nil # Stub value.
27
42
  STYLE_WINDOW = nil # Stub value.
@@ -81,11 +96,16 @@ class UI::HtmlDialog
81
96
  # The {#bring_to_front} method is used to bring the window to the front,
82
97
  # putting it on top of other windows even if its minimized.
83
98
  #
99
+ # @bug Prior to SketchUp 2021.1, on Mac, the focus the was not being set
100
+ # on the {UI::HtmlDialog}.
101
+ #
84
102
  # @example
85
103
  # dialog.bring_to_front
86
104
  #
87
105
  # @return [nil]
88
106
  #
107
+ # @see Sketchup.focus
108
+ #
89
109
  # @version SketchUp 2017
90
110
  def bring_to_front
91
111
  end
@@ -97,7 +117,7 @@ class UI::HtmlDialog
97
117
  # @example
98
118
  # dialog.center
99
119
  #
100
- # @return [true]
120
+ # @return [true] This always return true, never false.
101
121
  #
102
122
  # @version SketchUp 2017
103
123
  def center
@@ -130,8 +150,54 @@ class UI::HtmlDialog
130
150
  def execute_script(script)
131
151
  end
132
152
 
153
+ # The {#get_content_size} method is used to get the content size of the HtmlDialog, in logical pixels.
154
+ #
155
+ # @example
156
+ # width, height = dialog.get_content_size
157
+ #
158
+ # @return [Array(Integer, Integer), nil] Content width and height of the HtmlDialog.
159
+ # A nil value is returned if the HtmlDialog
160
+ # is not visible.
161
+ #
162
+ # @version SketchUp 2021.1
163
+ def get_content_size
164
+ end
165
+
166
+ # The {#get_position} method is used to get the position of the HtmlDialog
167
+ # relative to the screen, in logical pixels.
168
+ #
169
+ # @example
170
+ # left, top = dialog.get_position
171
+ #
172
+ # @return [Array(Integer, Integer), nil] Left and top position of the dialog.
173
+ # A nil value is returned if the HtmlDialog
174
+ # is not visible.
175
+ #
176
+ # @version SketchUp 2021.1
177
+ def get_position
178
+ end
179
+
180
+ # The {#get_size} method is used to get the outer frame size of the HtmlDialog, in logical pixels.
181
+ #
182
+ # @example
183
+ # width, height = dialog.get_size
184
+ #
185
+ # @return [Array(Integer, Integer), nil] Outer frame width and height of the HtmlDialog.
186
+ # A nil value is returned if the HtmlDialog
187
+ # is not visible.
188
+ #
189
+ # @version SketchUp 2021.1
190
+ def get_size
191
+ end
192
+
133
193
  # The new method is used to create a new HtmlDialog.
134
194
  #
195
+ # When +use_content_size+ is set to +true+, +width+, +height+, +min_width+,
196
+ # +max width+, +min_height+, +max_height+ will represent the size of the
197
+ # content area of the window. This excludes the titlebar and the window frame.
198
+ # When +use_content_size+ is set to +false+ (the default value),
199
+ # the size dimensions will represent the outer frame size.
200
+ #
135
201
  # The +properties+ hash accepts an optional key +style+ where the value is
136
202
  # one of:
137
203
  #
@@ -204,6 +270,8 @@ class UI::HtmlDialog
204
270
  #
205
271
  # @option properties [Boolean] :resizable (true)
206
272
  #
273
+ # @option properties [Boolean] :use_content_size (false)
274
+ #
207
275
  # @option properties [Integer] :width (250)
208
276
  #
209
277
  # @option properties [Integer] :height (250)
@@ -248,6 +316,23 @@ class UI::HtmlDialog
248
316
  def set_can_close
249
317
  end
250
318
 
319
+ # The {#set_content_size} method is used to set the content size of the HtmlDialog, in logical pixels.
320
+ #
321
+ # @example
322
+ # dialog.set_content_size(600, 400)
323
+ #
324
+ # @param [Integer] width
325
+ # Content width of the HtmlDialog.
326
+ #
327
+ # @param [Integer] height
328
+ # Content height of the HtmlDialog.
329
+ #
330
+ # @return [nil]
331
+ #
332
+ # @version SketchUp 2021.1
333
+ def set_content_size(width, height)
334
+ end
335
+
251
336
  # The {#set_file} method is used to identify a local HTML file to display in the
252
337
  # HtmlDialog.
253
338
  #
@@ -296,6 +381,9 @@ class UI::HtmlDialog
296
381
  # The {#set_position} method is used to set the position of the HtmlDialog
297
382
  # relative to the screen, in pixels.
298
383
  #
384
+ # @bug Prior to SketchUp 2021.1, on Windows, calling this method incorrectly
385
+ # set the focus on the {UI::HtmlDialog}.
386
+ #
299
387
  # @example
300
388
  # dialog.set_position(100, 50)
301
389
  #
@@ -305,24 +393,27 @@ class UI::HtmlDialog
305
393
  # @param [Integer] top
306
394
  # The number of pixels from the top of the screen.
307
395
  #
308
- # @return [true]
396
+ # @return [true] This always return true, never false.
309
397
  #
310
398
  # @version SketchUp 2017
311
399
  def set_position(left, top)
312
400
  end
313
401
 
314
- # The {#set_size} method is used to set the size of the HtmlDialog, in pixels.
402
+ # The {#set_size} method is used to set the outer frame size of the HtmlDialog, in pixels.
403
+ #
404
+ # @bug Prior to SketchUp 2021.1, on Windows, calling this method incorrectly
405
+ # set the focus on the {UI::HtmlDialog}.
315
406
  #
316
407
  # @example
317
408
  # dialog.set_size(320, 240)
318
409
  #
319
410
  # @param [Integer] width
320
- # Width of the HtmlDialog.
411
+ # Outer frame width of the HtmlDialog.
321
412
  #
322
413
  # @param [Integer] height
323
- # Height of the HtmlDialog.
414
+ # Outer frame height of the HtmlDialog.
324
415
  #
325
- # @return [true]
416
+ # @return [true] This always return true, never false.
326
417
  #
327
418
  # @version SketchUp 2017
328
419
  def set_size(width, height)