You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A global class containing central information about ScriptUI. Not instantiable.
@@ -159,12 +159,12 @@ declare class Window extends _Control {
159
159
* The top left corner of the window frame in screen coordinates.
160
160
* The same as [frameBounds.x, frameBounds.y]. Set this value to move the window frame to the specified location on the screen. The frameBounds value changes accordingly.
161
161
*/
162
-
frameLocation: Point|[number,number]
162
+
frameLocation: Point
163
163
164
164
/**
165
165
* The size and location of the window's frame in screen coordinates.
166
166
*/
167
-
readonlyframeSize: Dimension|[number,number]
167
+
readonlyframeSize: Dimension
168
168
169
169
/**
170
170
* Deprecated. Use ScriptUI.frameworkName instead.
@@ -484,7 +484,7 @@ declare class ScriptUIGraphics {
484
484
/**
485
485
* The current position in the current drawing path.
486
486
*/
487
-
readonlycurrentPoint: Point|[number,number]
487
+
readonlycurrentPoint: Point
488
488
489
489
/**
490
490
* The background color for containers when disabled or inactive; for non-containers, the parent background color.
@@ -558,7 +558,7 @@ declare class ScriptUIGraphics {
558
558
* @param width The width of the region in pixels.
559
559
* @param height The height of the region in pixels.
rectPath(left: number,top: number,width: number,height: number): Point
629
629
630
630
/**
631
631
* Strokes the path segments of a path with a given drawing pen.
@@ -755,7 +755,7 @@ declare class ScriptUIImage {
755
755
/**
756
756
* The image size in pixels.
757
757
*/
758
-
readonlysize: Dimension|[number,number]
758
+
readonlysize: Dimension
759
759
}
760
760
761
761
/**
@@ -1149,7 +1149,7 @@ declare class ListBox extends _Control {
1149
1149
* The width and height in pixels of each item in the list.
1150
1150
* Used by auto-layout to determine the preferredSize of the list, if not otherwise specified. If not set explicitly, the size of each item is set to match the largest height and width among all items in the list
1151
1151
*/
1152
-
itemSize: Dimension|[number,number]
1152
+
itemSize: Dimension
1153
1153
1154
1154
/**
1155
1155
* The array of choice items displayed in the list.
@@ -1262,7 +1262,7 @@ declare class DropDownList extends _Control {
1262
1262
* The width and height in pixels of each item in the list.
1263
1263
* Used by auto-layout to determine the preferredSize of the list, if not otherwise specified. If not set explicitly, the size of each item is set to match the largest height and width among all items in the list
1264
1264
*/
1265
-
itemSize: Dimension|[number,number]
1265
+
itemSize: Dimension
1266
1266
1267
1267
/**
1268
1268
* The array of choice items displayed in the drop-down or pop-up list.
@@ -1816,7 +1816,7 @@ declare class TreeView extends _Control {
1816
1816
* The width and height in pixels of each item in the list.
1817
1817
* Used by auto-layout to determine the preferredSize of the list, if not otherwise specified. If not set explicitly, the size of each item is set to match the largest height and width among all items in the list
1818
1818
*/
1819
-
itemSize: Dimension|[number,number]
1819
+
itemSize: Dimension
1820
1820
1821
1821
/**
1822
1822
* The array of top-level items displayed in the list.
@@ -1968,7 +1968,7 @@ declare class Group extends _Control {
1968
1968
* Tells the layout manager how unlike-sized children of this container should be aligned within a column or row.
1969
1969
* Order of creation determines which children are at the top of a column or the left of a row; the earlier a child is created, the closer it is to the top or left of its column or row. If defined, alignment for a child element overrides the alignChildren setting for the parent container. See alignment property for values.
1970
1970
*/
1971
-
alignChildren: string
1971
+
alignChildren: string|string[]
1972
1972
1973
1973
/**
1974
1974
* An array of child elements.
@@ -2154,17 +2154,12 @@ declare class TabbedPanel extends Panel {
2154
2154
* Specifies the origin point of an element as horizontal and vertical pixel offsets from the origin of the element's coordinate space.
2155
2155
* A Point object is created when you set an element’s location property. You can set the property using a JavaScript object with properties named x and y, or an array with 2 values in the order [x, y].
2156
2156
*/
2157
-
declareclassPoint{
2157
+
declareclassPointextendsArray<number>{
2158
2158
/**
2159
2159
* The left coordinate.
2160
2160
*/
2161
2161
left: number
2162
2162
2163
-
/**
2164
-
* The array length.
2165
-
*/
2166
-
readonlylength: number
2167
-
2168
2163
/**
2169
2164
* The top coordinate.
2170
2165
*/
@@ -2179,42 +2174,29 @@ declare class Point {
2179
2174
* The vertical coordinate, a pixel offset from the origin of the element's coordinate space.
2180
2175
*/
2181
2176
y: number;
2182
-
2183
-
[0]: number;
2184
-
2185
-
[1]: number
2186
2177
}
2187
2178
2188
2179
/**
2189
2180
* Defines the size of a window or UI element. Contains a 2-element array.
2190
2181
* Specifies the height and width of an element in pixels. A Dimension object is created when you set an element’s size property. You can set the property using a JavaScript object with named properties {width: wd, height: ht}, or an array with 2 values in the order [wd, ht].
2191
2182
*/
2192
-
declareclassDimension{
2183
+
declareclassDimensionextendsArray<number>{
2193
2184
/**
2194
2185
* The height in pixels.
2195
2186
*/
2196
2187
height: number
2197
2188
2198
-
/**
2199
-
* The array length.
2200
-
*/
2201
-
readonlylength: number
2202
-
2203
2189
/**
2204
2190
* The width in pixels.
2205
2191
*/
2206
2192
width: number;
2207
-
2208
-
[0]: number;
2209
-
2210
-
[1]: number
2211
2193
}
2212
2194
2213
2195
/**
2214
2196
* Defines the boundaries of a window within the screen’s coordinate space, or of a UI element within the container’s coordinate space.
2215
2197
* A Bounds object is created when you set an element’s bounds property. You can set the property using a JavaScript object with properties named left, top, right, bottom or x, y, width, height, or an array with 4 values in the order [x, y, wd, ht].
2216
2198
*/
2217
-
declareclassBounds{
2199
+
declareclassBoundsextendsArray<number>{
2218
2200
/**
2219
2201
* The vertical coordinate, a pixel offset from the origin of the element's coordinate space.
2220
2202
*/
@@ -2230,11 +2212,6 @@ declare class Bounds {
2230
2212
*/
2231
2213
left: number
2232
2214
2233
-
/**
2234
-
* The array length.
2235
-
*/
2236
-
readonlylength: number
2237
-
2238
2215
/**
2239
2216
* The width in pixels.
2240
2217
*/
@@ -2259,14 +2236,6 @@ declare class Bounds {
2259
2236
* The vertical coordinate, a pixel offset from the origin of the element's coordinate space.
2260
2237
*/
2261
2238
y: number;
2262
-
2263
-
[0]: number;
2264
-
2265
-
[1]: number;
2266
-
2267
-
[2]: number;
2268
-
2269
-
[3]: number
2270
2239
}
2271
2240
2272
2241
/**
@@ -2520,7 +2489,7 @@ declare class _Control {
2520
2489
* For orientation = column: left, right, fill
2521
2490
* For orientation = stack: top, bottom, left, right, fill
2522
2491
*/
2523
-
alignment: string
2492
+
alignment: string|string[]
2524
2493
2525
2494
/**
2526
2495
* The boundaries of the element, in parent-relative coordinates.
@@ -2549,17 +2518,17 @@ declare class _Control {
2549
2518
* The upper left corner of this element relative to its parent.
2550
2519
* The location is defined as [bounds.x, bounds.y]. Setting an element's location changes its bounds property, and vice-versa.
2551
2520
*/
2552
-
location: Point|[number,number]
2521
+
location: Point
2553
2522
2554
2523
/**
2555
2524
* The maximum height and width to which the element can be resized.
2556
2525
*/
2557
-
maximumSize: Dimension|[number,number]
2526
+
maximumSize: Dimension
2558
2527
2559
2528
/**
2560
2529
* The minimum height and width to which the element can be resized.
2561
2530
*/
2562
-
minimumSize: Dimension|[number,number]
2531
+
minimumSize: Dimension
2563
2532
2564
2533
/**
2565
2534
* The parent element.
@@ -2571,13 +2540,13 @@ declare class _Control {
2571
2540
* If not explicitly set by a script, value is established by the UI framework in which ScriptUI is employed, and is based on such attributes of the element as its text, font, font size, icon size, and other UI framework-specific attributes. A script can explicitly set this value before the layout manager is invoked in order to establish an element size other than the default.
2572
2541
* To set a specific value for only one dimension, specify the other dimension as -1.
2573
2542
*/
2574
-
preferredSize: Dimension|[number,number]
2543
+
preferredSize: Dimension
2575
2544
2576
2545
/**
2577
2546
* The current dimensions of this element.
2578
2547
* Initially undefined, and unless explicitly set by a script, it is defined by a LayoutManager . A script can explicitly set size before the layout manager is invoked to establish an element size other than the preferredSize or the default size, but this is not recommended. Defined as [bounds.width, bounds.height]. Setting an element's size changes its bounds property, and vice-versa.
0 commit comments