bm-core-ui 2.9.2 → 2.9.5
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.
- package/build/@types/index.d.ts +361 -309
- package/build/BMCollectionView/BMCollectionView.js +4 -4
- package/build/BMView/BMView_v2.5.js +7 -5
- package/build/BMWindow/BMConfirmationPopup.js +1 -1
- package/build/BMWindow/BMPopover/BMPopover.js +1 -1
- package/build/BMWindow/BMWindow.js +1 -0
- package/build/Core/BMCoreUI.js +2 -2
- package/build/Core/BMRect.js +1 -1
- package/build/index.js +2 -0
- package/lib/@types/BMCoreUI.min.d.ts +363 -311
- package/lib/BMCoreUI.min.js +1 -1
- package/package.json +2 -2
|
@@ -25,8 +25,8 @@ declare namespace kiwi {
|
|
|
25
25
|
type BMCollectionViewUpdate = never;
|
|
26
26
|
type TimeoutToken = number;
|
|
27
27
|
|
|
28
|
-
const YES = true;
|
|
29
|
-
const NO = false;
|
|
28
|
+
declare const YES = true;
|
|
29
|
+
declare const NO = false;
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -113,7 +113,7 @@ declare function BMScrollBarGetSize(): number;
|
|
|
113
113
|
* @return A string.
|
|
114
114
|
*
|
|
115
115
|
*/
|
|
116
|
-
declare function BMCSSRuleWithSelector(selector: string, {important
|
|
116
|
+
declare function BMCSSRuleWithSelector(selector: string, {important, properties}: {important?: boolean | null | undefined, properties: any}): string;
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
@@ -129,7 +129,7 @@ declare function BMCSSRuleWithSelector(selector: string, {important: important,
|
|
|
129
129
|
* The speed to add for successive scroll events.
|
|
130
130
|
*
|
|
131
131
|
*/
|
|
132
|
-
declare function BMAddSmoothMousewheelInteractionToNode(node: DOMNode, {withDeceleration
|
|
132
|
+
declare function BMAddSmoothMousewheelInteractionToNode(node: DOMNode, {withDeceleration, baseAcceleration, speedIncrement}?: {withDeceleration?: number | null | undefined, baseAcceleration?: number | null | undefined, speedIncrement?: number | null | undefined}): void;
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
@@ -139,11 +139,11 @@ declare function BMAddSmoothMousewheelInteractionToNode(node: DOMNode, {withDece
|
|
|
139
139
|
* The property descriptors will be copied in the order in which the parameters are specified. For example, if the third parameter has a property
|
|
140
140
|
* with the same name as the second parameter, the target object will have the third parameter's definition of that property.
|
|
141
141
|
* @param target The object to which properties will be copied. May be set to undefined, in which case a new object will be created.
|
|
142
|
-
* @param ...
|
|
142
|
+
* @param ... Additional objects may be specified. The property descriptors will be copied over to the target object.
|
|
143
143
|
* @return The target object.
|
|
144
144
|
*
|
|
145
145
|
*/
|
|
146
|
-
declare function BMExtend(target?: any | null | undefined, ...args: any[]
|
|
146
|
+
declare function BMExtend(target?: any | null | undefined, ...args: any[]): any;
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
@@ -154,11 +154,11 @@ declare function BMExtend(target?: any | null | undefined, ...args: any[] | null
|
|
|
154
154
|
* This will not redefine or reconfigure existing properties on the target object. For example, if any readonly property on the target object also exists on any of the
|
|
155
155
|
* other objects, the target object's value for that property will not change.
|
|
156
156
|
* @param target The object to which properties will be copied. May be set to undefined, in which case a new object will be created.
|
|
157
|
-
* @param ...
|
|
157
|
+
* @param ... Additional objects may be specified. The property values will be copied over to the target object.
|
|
158
158
|
* @return The target object.
|
|
159
159
|
*
|
|
160
160
|
*/
|
|
161
|
-
declare function BMCopyProperties(target?: any | null | undefined, ...args: any[]
|
|
161
|
+
declare function BMCopyProperties(target?: any | null | undefined, ...args: any[]): any;
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
|
|
@@ -172,7 +172,7 @@ declare function BMCopyProperties(target?: any | null | undefined, ...args: any[
|
|
|
172
172
|
* @return The box-shadow string.
|
|
173
173
|
*
|
|
174
174
|
*/
|
|
175
|
-
declare function BMShadowForElevation(elevation: number, {drawOutline
|
|
175
|
+
declare function BMShadowForElevation(elevation: number, {drawOutline, opacity}?: {drawOutline?: boolean | null | undefined, opacity?: number | null | undefined}): string;
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
|
|
@@ -223,7 +223,7 @@ declare function BMStringByCapitalizingString(string: string): string;
|
|
|
223
223
|
* @return An array of keys that match the given value.
|
|
224
224
|
*
|
|
225
225
|
*/
|
|
226
|
-
declare function BMKeysForValue(value: any | null | undefined, {inObject
|
|
226
|
+
declare function BMKeysForValue(value: any | null | undefined, {inObject}: {inObject: any}): string[];
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
|
|
@@ -422,7 +422,7 @@ declare class BMInset {
|
|
|
422
422
|
* @return An insets object.
|
|
423
423
|
*
|
|
424
424
|
*/
|
|
425
|
-
static insetWithLeft (left?: number | null | undefined, {top
|
|
425
|
+
static insetWithLeft (left?: number | null | undefined, {top, right, bottom}?: {top?: number | null | undefined, right?: number | null | undefined, bottom?: number | null | undefined}): BMInset;
|
|
426
426
|
|
|
427
427
|
}
|
|
428
428
|
|
|
@@ -459,7 +459,7 @@ declare function BMInsetMake(left?: number | null | undefined, top?: number | nu
|
|
|
459
459
|
* @return An insets object.
|
|
460
460
|
*
|
|
461
461
|
*/
|
|
462
|
-
declare function BMInsetMakeWithLeft(left?: number | null | undefined, {top
|
|
462
|
+
declare function BMInsetMakeWithLeft(left?: number | null | undefined, {top, right, bottom}?: {top?: number | null | undefined, right?: number | null | undefined, bottom?: number | null | undefined}): BMInset;
|
|
463
463
|
|
|
464
464
|
|
|
465
465
|
|
|
@@ -607,7 +607,7 @@ declare class BMPoint implements BMAnimating {
|
|
|
607
607
|
* @return A point.
|
|
608
608
|
*
|
|
609
609
|
*/
|
|
610
|
-
interpolatedValueWithFraction(fraction: number, {toValue
|
|
610
|
+
interpolatedValueWithFraction(fraction: number, {toValue}: {toValue: BMPoint}): BMPoint;
|
|
611
611
|
|
|
612
612
|
|
|
613
613
|
/**
|
|
@@ -625,7 +625,7 @@ declare class BMPoint implements BMAnimating {
|
|
|
625
625
|
* @return A Point.
|
|
626
626
|
*
|
|
627
627
|
*/
|
|
628
|
-
static pointWithX (x?: number | null | undefined, {y
|
|
628
|
+
static pointWithX (x?: number | null | undefined, {y}?: {y?: number | null | undefined}): BMPoint;
|
|
629
629
|
|
|
630
630
|
|
|
631
631
|
/**
|
|
@@ -635,7 +635,7 @@ declare class BMPoint implements BMAnimating {
|
|
|
635
635
|
* @return A Point.
|
|
636
636
|
*
|
|
637
637
|
*/
|
|
638
|
-
static pointWithRadius (radius?: number | null | undefined, {angle
|
|
638
|
+
static pointWithRadius (radius?: number | null | undefined, {angle}?: {angle?: number | null | undefined}): BMPoint;
|
|
639
639
|
|
|
640
640
|
}
|
|
641
641
|
|
|
@@ -658,7 +658,7 @@ declare function BMPointMake(x?: number | null | undefined, y?: number | null |
|
|
|
658
658
|
* @return A Point.
|
|
659
659
|
*
|
|
660
660
|
*/
|
|
661
|
-
declare function BMPointMakeWithX(x?: number | null | undefined, {y
|
|
661
|
+
declare function BMPointMakeWithX(x?: number | null | undefined, {y}?: {y?: number | null | undefined}): BMPoint;
|
|
662
662
|
|
|
663
663
|
|
|
664
664
|
|
|
@@ -669,7 +669,7 @@ declare function BMPointMakeWithX(x?: number | null | undefined, {y: y}?: {y?: n
|
|
|
669
669
|
* @return A Point.
|
|
670
670
|
*
|
|
671
671
|
*/
|
|
672
|
-
declare function BMPointMakeWithRadius(radius?: number | null | undefined, {angle
|
|
672
|
+
declare function BMPointMakeWithRadius(radius?: number | null | undefined, {angle}?: {angle?: number | null | undefined}): BMPoint;
|
|
673
673
|
|
|
674
674
|
|
|
675
675
|
|
|
@@ -779,7 +779,7 @@ declare class BMSize implements BMAnimating {
|
|
|
779
779
|
* @return A size.
|
|
780
780
|
*
|
|
781
781
|
*/
|
|
782
|
-
interpolatedValueWithFraction(fraction: number, {toValue
|
|
782
|
+
interpolatedValueWithFraction(fraction: number, {toValue}: {toValue: BMSize}): BMSize;
|
|
783
783
|
|
|
784
784
|
|
|
785
785
|
/**
|
|
@@ -990,7 +990,7 @@ declare class BMRect implements BMAnimating {
|
|
|
990
990
|
* @param y Defaults to 0. The y amount.
|
|
991
991
|
*
|
|
992
992
|
*/
|
|
993
|
-
offsetWithX(x?: number | null | undefined, {y
|
|
993
|
+
offsetWithX(x?: number | null | undefined, {y}?: {y?: number | null | undefined}): void;
|
|
994
994
|
|
|
995
995
|
|
|
996
996
|
/**
|
|
@@ -1017,7 +1017,7 @@ declare class BMRect implements BMAnimating {
|
|
|
1017
1017
|
* @param aroundPoint Defaults to the rect's center point. The point around which to perform the scaling.
|
|
1018
1018
|
*
|
|
1019
1019
|
*/
|
|
1020
|
-
scaleWithFactor(factor: number, {aroundPoint
|
|
1020
|
+
scaleWithFactor(factor: number, {aroundPoint}?: {aroundPoint?: BMPoint | null | undefined}): void;
|
|
1021
1021
|
|
|
1022
1022
|
|
|
1023
1023
|
/**
|
|
@@ -1028,7 +1028,7 @@ declare class BMRect implements BMAnimating {
|
|
|
1028
1028
|
* @return A rect.
|
|
1029
1029
|
*
|
|
1030
1030
|
*/
|
|
1031
|
-
rectByScalingWithFactor(factor: number, {aroundPoint
|
|
1031
|
+
rectByScalingWithFactor(factor: number, {aroundPoint}?: {aroundPoint?: BMPoint | null | undefined}): BMRect;
|
|
1032
1032
|
|
|
1033
1033
|
|
|
1034
1034
|
/**
|
|
@@ -1052,7 +1052,7 @@ declare class BMRect implements BMAnimating {
|
|
|
1052
1052
|
* @param height The vertical amount.
|
|
1053
1053
|
*
|
|
1054
1054
|
*/
|
|
1055
|
-
insetWithWidth(width: number, {height
|
|
1055
|
+
insetWithWidth(width: number, {height}: {height: number}): void;
|
|
1056
1056
|
|
|
1057
1057
|
|
|
1058
1058
|
/**
|
|
@@ -1100,7 +1100,7 @@ declare class BMRect implements BMAnimating {
|
|
|
1100
1100
|
* @return A rect.
|
|
1101
1101
|
*
|
|
1102
1102
|
*/
|
|
1103
|
-
interpolatedValueWithFraction(fraction: number, {toValue
|
|
1103
|
+
interpolatedValueWithFraction(fraction: number, {toValue}: {toValue: BMRect}): BMRect;
|
|
1104
1104
|
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
@@ -1114,7 +1114,7 @@ declare class BMRect implements BMAnimating {
|
|
|
1114
1114
|
* @return A rect.
|
|
1115
1115
|
*
|
|
1116
1116
|
*/
|
|
1117
|
-
declare function BMRectByInterpolatingRect(sourceRect: BMRect, {toRect
|
|
1117
|
+
declare function BMRectByInterpolatingRect(sourceRect: BMRect, {toRect, withFraction}: {toRect: BMRect, withFraction: number}): BMRect;
|
|
1118
1118
|
|
|
1119
1119
|
|
|
1120
1120
|
|
|
@@ -1140,7 +1140,7 @@ declare function BMRectMake(x?: number | null | undefined, y?: number | null | u
|
|
|
1140
1140
|
* @return A rect.
|
|
1141
1141
|
*
|
|
1142
1142
|
*/
|
|
1143
|
-
declare function BMRectMakeWithX(x?: number | null | undefined, {y
|
|
1143
|
+
declare function BMRectMakeWithX(x?: number | null | undefined, {y, width, height}?: {y?: number | null | undefined, width?: number | null | undefined, height?: number | null | undefined}): BMRect;
|
|
1144
1144
|
|
|
1145
1145
|
|
|
1146
1146
|
|
|
@@ -1151,7 +1151,7 @@ declare function BMRectMakeWithX(x?: number | null | undefined, {y: y, width: wi
|
|
|
1151
1151
|
* @return A rect.
|
|
1152
1152
|
*
|
|
1153
1153
|
*/
|
|
1154
|
-
declare function BMRectMakeWithOrigin(origin?: BMPoint | null | undefined, {size
|
|
1154
|
+
declare function BMRectMakeWithOrigin(origin?: BMPoint | null | undefined, {size}?: {size?: BMSize | null | undefined}): BMRect;
|
|
1155
1155
|
|
|
1156
1156
|
|
|
1157
1157
|
|
|
@@ -1197,7 +1197,7 @@ declare interface BMFunctionCollection extends Function, Array<Function> {
|
|
|
1197
1197
|
* @param atIndex The index.
|
|
1198
1198
|
*
|
|
1199
1199
|
*/
|
|
1200
|
-
setFunction?(f: Function | null | undefined, {atIndex
|
|
1200
|
+
setFunction?(f: Function | null | undefined, {atIndex}: {atIndex: number}): void;
|
|
1201
1201
|
|
|
1202
1202
|
|
|
1203
1203
|
/**
|
|
@@ -1316,7 +1316,7 @@ declare class BMAnimationController {
|
|
|
1316
1316
|
* @return This animation controller.
|
|
1317
1317
|
*
|
|
1318
1318
|
*/
|
|
1319
|
-
initWithAnimation(animation: BMAnimationContext, {owner
|
|
1319
|
+
initWithAnimation(animation: BMAnimationContext, {owner, node}: {owner: any, node: DOMNode}): BMAnimationController;
|
|
1320
1320
|
|
|
1321
1321
|
|
|
1322
1322
|
/**
|
|
@@ -1325,7 +1325,7 @@ declare class BMAnimationController {
|
|
|
1325
1325
|
* @param withValue The value to which the property's value will animate or any of Velocity's animation syntaxes.
|
|
1326
1326
|
*
|
|
1327
1327
|
*/
|
|
1328
|
-
registerBuiltInProperty(property: string, {withValue
|
|
1328
|
+
registerBuiltInProperty(property: string, {withValue}: {withValue: any}): void;
|
|
1329
1329
|
|
|
1330
1330
|
|
|
1331
1331
|
/**
|
|
@@ -1354,7 +1354,7 @@ declare class BMAnimationController {
|
|
|
1354
1354
|
* If this argument is specified, `startingValue` should also be specified.
|
|
1355
1355
|
*
|
|
1356
1356
|
*/
|
|
1357
|
-
registerCustomProperty(property: string, {withHandler
|
|
1357
|
+
registerCustomProperty(property: string, {withHandler, startingValue, targetValue}: {withHandler: (($0: number, $1: number) => void), startingValue?: number | null | undefined, targetValue?: number | null | undefined}): void;
|
|
1358
1358
|
|
|
1359
1359
|
|
|
1360
1360
|
/**
|
|
@@ -1365,7 +1365,7 @@ declare class BMAnimationController {
|
|
|
1365
1365
|
* An optional starting value from which the property will animate.
|
|
1366
1366
|
*
|
|
1367
1367
|
*/
|
|
1368
|
-
registerOwnProperty(property: string, {targetValue
|
|
1368
|
+
registerOwnProperty(property: string, {targetValue, startingValue}: {targetValue: number, startingValue?: number | null | undefined}): void;
|
|
1369
1369
|
|
|
1370
1370
|
|
|
1371
1371
|
/**
|
|
@@ -1376,7 +1376,7 @@ declare class BMAnimationController {
|
|
|
1376
1376
|
* An optional starting value from which the property will animate.
|
|
1377
1377
|
*
|
|
1378
1378
|
*/
|
|
1379
|
-
registerAnimatableProperty(property: string, {targetValue
|
|
1379
|
+
registerAnimatableProperty(property: string, {targetValue, startingValue}: {targetValue: BMAnimating, startingValue?: BMAnimating | null | undefined}): void;
|
|
1380
1380
|
|
|
1381
1381
|
}
|
|
1382
1382
|
|
|
@@ -1489,7 +1489,7 @@ declare class BMAnimationContext {
|
|
|
1489
1489
|
* @return An animation controller.
|
|
1490
1490
|
*
|
|
1491
1491
|
*/
|
|
1492
|
-
controllerForObject(object: any, {node
|
|
1492
|
+
controllerForObject(object: any, {node}: {node: DOMNode}): BMAnimationController;
|
|
1493
1493
|
|
|
1494
1494
|
|
|
1495
1495
|
/**
|
|
@@ -1516,7 +1516,7 @@ declare class BMAnimationContext {
|
|
|
1516
1516
|
* Specifying this parameter will cause the animation context's animation options to be overriden for this animation.
|
|
1517
1517
|
*
|
|
1518
1518
|
*/
|
|
1519
|
-
registerAnimationForTarget(target: $ | DOMNode, {properties
|
|
1519
|
+
registerAnimationForTarget(target: $ | DOMNode, {properties, options}: {properties: Dictionary< any>, options?: Dictionary< any> | null | undefined}): void;
|
|
1520
1520
|
|
|
1521
1521
|
}
|
|
1522
1522
|
|
|
@@ -1641,7 +1641,7 @@ declare function BMAnimateWithBlock(block: (() => void), options: any): Promise<
|
|
|
1641
1641
|
* @param forTarget The jQuery element.
|
|
1642
1642
|
*
|
|
1643
1643
|
*/
|
|
1644
|
-
declare function BMRippleMakeWithElement(ripple: $, {forTarget
|
|
1644
|
+
declare function BMRippleMakeWithElement(ripple: $, {forTarget}: {forTarget: $}): void;
|
|
1645
1645
|
|
|
1646
1646
|
|
|
1647
1647
|
|
|
@@ -1652,7 +1652,7 @@ declare function BMRippleMakeWithElement(ripple: $, {forTarget: forTarget}: {for
|
|
|
1652
1652
|
* @return The newly created ripple element.
|
|
1653
1653
|
*
|
|
1654
1654
|
*/
|
|
1655
|
-
declare function BMRippleMakeForTarget(target: $, {withColor
|
|
1655
|
+
declare function BMRippleMakeForTarget(target: $, {withColor}?: {withColor?: BMColor | string | null | undefined}): $;
|
|
1656
1656
|
|
|
1657
1657
|
|
|
1658
1658
|
|
|
@@ -1717,7 +1717,7 @@ declare class BMIndexPath<T = any> {
|
|
|
1717
1717
|
* @return YES if the index paths are strictly equal, NO otherwise.
|
|
1718
1718
|
*
|
|
1719
1719
|
*/
|
|
1720
|
-
isEqualToIndexPath(indexPath: BMIndexPath | null | undefined, {usingComparator
|
|
1720
|
+
isEqualToIndexPath(indexPath: BMIndexPath | null | undefined, {usingComparator}: {usingComparator: (($0: any, $1: any) => boolean)}): boolean;
|
|
1721
1721
|
|
|
1722
1722
|
|
|
1723
1723
|
/**
|
|
@@ -1728,7 +1728,7 @@ declare class BMIndexPath<T = any> {
|
|
|
1728
1728
|
* @return YES if the index paths are loosely equal, NO otherwise.
|
|
1729
1729
|
*
|
|
1730
1730
|
*/
|
|
1731
|
-
isLooselyEqualToIndexPath(indexPath: BMIndexPath | null | undefined, {usingComparator
|
|
1731
|
+
isLooselyEqualToIndexPath(indexPath: BMIndexPath | null | undefined, {usingComparator}: {usingComparator: (($0: any, $1: any) => boolean)}): boolean;
|
|
1732
1732
|
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
@@ -1750,7 +1750,7 @@ declare var BMIndexPathNone: BMIndexPath<any>;
|
|
|
1750
1750
|
* @return An index path.
|
|
1751
1751
|
*
|
|
1752
1752
|
*/
|
|
1753
|
-
declare function BMIndexPathMakeWithRow(row: Int, {section
|
|
1753
|
+
declare function BMIndexPathMakeWithRow(row: Int, {section, forObject}?: {section?: Int | null | undefined, forObject?: any | null | undefined}): BMIndexPath;
|
|
1754
1754
|
|
|
1755
1755
|
|
|
1756
1756
|
|
|
@@ -1761,7 +1761,7 @@ declare function BMIndexPathMakeWithRow(row: Int, {section: section, forObject:
|
|
|
1761
1761
|
* @return An index path.
|
|
1762
1762
|
*
|
|
1763
1763
|
*/
|
|
1764
|
-
declare function BMIndexPathMakeWithIndexes(indexes: Int[], {forObject
|
|
1764
|
+
declare function BMIndexPathMakeWithIndexes(indexes: Int[], {forObject}?: {forObject?: any | null | undefined}): BMIndexPath;
|
|
1765
1765
|
|
|
1766
1766
|
|
|
1767
1767
|
|
|
@@ -1805,7 +1805,7 @@ declare class BMKeyPath {
|
|
|
1805
1805
|
* for the entire key path.
|
|
1806
1806
|
*
|
|
1807
1807
|
*/
|
|
1808
|
-
valueForObject(object: any, {withLimit
|
|
1808
|
+
valueForObject(object: any, {withLimit}?: {withLimit?: number | null | undefined}): any | null | undefined;
|
|
1809
1809
|
|
|
1810
1810
|
}
|
|
1811
1811
|
|
|
@@ -1952,7 +1952,7 @@ declare class BMColor implements BMAnimating {
|
|
|
1952
1952
|
* @return A color.
|
|
1953
1953
|
*
|
|
1954
1954
|
*/
|
|
1955
|
-
interpolatedValueWithFraction(fraction: number, {toValue
|
|
1955
|
+
interpolatedValueWithFraction(fraction: number, {toValue}: {toValue: BMColor}): BMColor;
|
|
1956
1956
|
|
|
1957
1957
|
}
|
|
1958
1958
|
|
|
@@ -1986,7 +1986,7 @@ declare function BMColorMakeWithString(string?: string | null | undefined): BMCo
|
|
|
1986
1986
|
* @param alpha Defaults to 1. The alpha component.
|
|
1987
1987
|
*
|
|
1988
1988
|
*/
|
|
1989
|
-
declare function BMColorMakeWithRed(red: Short, {green
|
|
1989
|
+
declare function BMColorMakeWithRed(red: Short, {green, blue, alpha}: {green: Short, blue: Short, alpha?: Short | null | undefined}): void;
|
|
1990
1990
|
|
|
1991
1991
|
|
|
1992
1992
|
|
|
@@ -1998,7 +1998,7 @@ declare function BMColorMakeWithRed(red: Short, {green: green, blue: blue, alpha
|
|
|
1998
1998
|
* @param alpha Defaults to 1. The alpha component.
|
|
1999
1999
|
*
|
|
2000
2000
|
*/
|
|
2001
|
-
declare function BMColorMakeWithHue(hue: Int, {saturation
|
|
2001
|
+
declare function BMColorMakeWithHue(hue: Int, {saturation, luminosity, alpha}: {saturation: Short, luminosity: Short, alpha?: Short | null | undefined}): void;
|
|
2002
2002
|
|
|
2003
2003
|
|
|
2004
2004
|
|
|
@@ -2063,7 +2063,7 @@ declare function BMColorMakeWithHSLString(string: string): BMColor;
|
|
|
2063
2063
|
* @return A color.
|
|
2064
2064
|
*
|
|
2065
2065
|
*/
|
|
2066
|
-
declare function BMColorByInterpolatingRGBAColor(sourceColor: BMColor, {toColor
|
|
2066
|
+
declare function BMColorByInterpolatingRGBAColor(sourceColor: BMColor, {toColor, withFraction}: {toColor: BMColor, withFraction: number}): BMColor;
|
|
2067
2067
|
|
|
2068
2068
|
|
|
2069
2069
|
|
|
@@ -2078,7 +2078,7 @@ declare function BMColorByInterpolatingRGBAColor(sourceColor: BMColor, {toColor:
|
|
|
2078
2078
|
* @return A color.
|
|
2079
2079
|
*
|
|
2080
2080
|
*/
|
|
2081
|
-
declare function BMColorByInterpolatingHSLAColor(sourceColor: BMColor, {toColor
|
|
2081
|
+
declare function BMColorByInterpolatingHSLAColor(sourceColor: BMColor, {toColor, withFraction}: {toColor: BMColor, withFraction: number}): BMColor;
|
|
2082
2082
|
|
|
2083
2083
|
|
|
2084
2084
|
|
|
@@ -2090,7 +2090,7 @@ declare function BMColorByInterpolatingHSLAColor(sourceColor: BMColor, {toColor:
|
|
|
2090
2090
|
* @return A hex string.
|
|
2091
2091
|
*
|
|
2092
2092
|
*/
|
|
2093
|
-
declare function BMHexStringWithNumber(number: Int, {minDigits
|
|
2093
|
+
declare function BMHexStringWithNumber(number: Int, {minDigits}?: {minDigits?: Int | null | undefined}): string;
|
|
2094
2094
|
|
|
2095
2095
|
|
|
2096
2096
|
|
|
@@ -2520,7 +2520,7 @@ declare class BMLayoutSizeClass {
|
|
|
2520
2520
|
* order to match this size class.
|
|
2521
2521
|
*
|
|
2522
2522
|
*/
|
|
2523
|
-
static layoutSizeClassWithMaximumWidth (maximumWidth?: number | null | undefined, {maximumHeight
|
|
2523
|
+
static layoutSizeClassWithMaximumWidth (maximumWidth?: number | null | undefined, {maximumHeight, maximumDiagonal, orientation}?: {maximumHeight?: number | null | undefined, maximumDiagonal?: number | null | undefined, orientation?: BMLayoutOrientation | null | undefined}): void;
|
|
2524
2524
|
|
|
2525
2525
|
|
|
2526
2526
|
/**
|
|
@@ -2531,7 +2531,7 @@ declare class BMLayoutSizeClass {
|
|
|
2531
2531
|
* @return A size class.
|
|
2532
2532
|
*
|
|
2533
2533
|
*/
|
|
2534
|
-
static layoutSizeClassWithWidthClass (widthSizeClass: BMLayoutDimensionClass, {heightSizeClass
|
|
2534
|
+
static layoutSizeClassWithWidthClass (widthSizeClass: BMLayoutDimensionClass, {heightSizeClass, orientation}: {heightSizeClass: BMLayoutDimensionClass, orientation?: BMLayoutOrientation | null | undefined}): BMLayoutSizeClass;
|
|
2535
2535
|
|
|
2536
2536
|
|
|
2537
2537
|
/**
|
|
@@ -2868,7 +2868,7 @@ declare class BMLayoutConstraint {
|
|
|
2868
2868
|
* The constraint's priority.
|
|
2869
2869
|
*
|
|
2870
2870
|
*/
|
|
2871
|
-
static internalConstraintWithView (view: BMView, {attribute
|
|
2871
|
+
static internalConstraintWithView (view: BMView, {attribute, relatedBy, toView, secondAttribute, multiplier, constant, priority}: {attribute: BMLayoutAttribute, relatedBy?: BMLayoutConstraintRelation | null | undefined, toView?: BMView | null | undefined, secondAttribute?: BMLayoutAttribute | null | undefined, multiplier?: number | null | undefined, constant?: number | null | undefined, priority?: number | null | undefined}): void;
|
|
2872
2872
|
|
|
2873
2873
|
|
|
2874
2874
|
/**
|
|
@@ -2889,7 +2889,7 @@ declare class BMLayoutConstraint {
|
|
|
2889
2889
|
* @return A layout constraint.
|
|
2890
2890
|
*
|
|
2891
2891
|
*/
|
|
2892
|
-
static constraintWithView (view: BMView, {attribute
|
|
2892
|
+
static constraintWithView (view: BMView, {attribute, relatedBy, toView, secondAttribute, multiplier, constant, priority}: {attribute: BMLayoutAttribute, relatedBy?: BMLayoutConstraintRelation | null | undefined, toView?: BMView | null | undefined, secondAttribute?: BMLayoutAttribute | null | undefined, multiplier?: number | null | undefined, constant?: number | string | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
2893
2893
|
|
|
2894
2894
|
|
|
2895
2895
|
/**
|
|
@@ -2901,7 +2901,7 @@ declare class BMLayoutConstraint {
|
|
|
2901
2901
|
* @return The constraint, or `undefined` if the constraint could not be deserialized.
|
|
2902
2902
|
*
|
|
2903
2903
|
*/
|
|
2904
|
-
static constraintWithSerializedConstraint (constraint: any, {viewIDs
|
|
2904
|
+
static constraintWithSerializedConstraint (constraint: any, {viewIDs}: {viewIDs: (($0: string) => BMView)}): BMLayoutConstraint | null | undefined;
|
|
2905
2905
|
|
|
2906
2906
|
|
|
2907
2907
|
/**
|
|
@@ -2936,7 +2936,7 @@ declare class BMLayoutConstraint {
|
|
|
2936
2936
|
* @return This constraint, or `undefined` if the constraint could not be deserialized.
|
|
2937
2937
|
*
|
|
2938
2938
|
*/
|
|
2939
|
-
initWithSerializedConstraint(constraint: any, {viewIDs
|
|
2939
|
+
initWithSerializedConstraint(constraint: any, {viewIDs}: {viewIDs: (($0: string) => BMView)}): BMLayoutConstraint | null | undefined;
|
|
2940
2940
|
|
|
2941
2941
|
|
|
2942
2942
|
/**
|
|
@@ -3065,7 +3065,7 @@ declare class BMLayoutConstraint {
|
|
|
3065
3065
|
* @param forSizeClass The layout size class to which the constant should apply.
|
|
3066
3066
|
*
|
|
3067
3067
|
*/
|
|
3068
|
-
setConstant(constant: number | string, {forSizeClass
|
|
3068
|
+
setConstant(constant: number | string, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
3069
3069
|
|
|
3070
3070
|
|
|
3071
3071
|
/**
|
|
@@ -3105,7 +3105,7 @@ declare class BMLayoutConstraint {
|
|
|
3105
3105
|
* @param forSizeClass The layout size class to which the priority should apply.
|
|
3106
3106
|
*
|
|
3107
3107
|
*/
|
|
3108
|
-
setPriority(priority: number, {forSizeClass
|
|
3108
|
+
setPriority(priority: number, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
3109
3109
|
|
|
3110
3110
|
|
|
3111
3111
|
/**
|
|
@@ -3169,7 +3169,7 @@ declare class BMLayoutConstraint {
|
|
|
3169
3169
|
* @param forSizeClass The layout size class to which the active state should apply.
|
|
3170
3170
|
*
|
|
3171
3171
|
*/
|
|
3172
|
-
setIsActive(isActive: number, {forSizeClass
|
|
3172
|
+
setIsActive(isActive: number, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
3173
3173
|
|
|
3174
3174
|
|
|
3175
3175
|
/**
|
|
@@ -3309,7 +3309,7 @@ declare class BMEqualAttributeLayoutConstraint extends BMLayoutConstraint {
|
|
|
3309
3309
|
* @return A constraint.
|
|
3310
3310
|
*
|
|
3311
3311
|
*/
|
|
3312
|
-
static constraintWithAttribute (attribute: BMLayoutAttribute, {forViews
|
|
3312
|
+
static constraintWithAttribute (attribute: BMLayoutAttribute, {forViews, priority}: {forViews: BMView[], priority?: number | null | undefined}): BMEqualAttributeLayoutConstraint;
|
|
3313
3313
|
|
|
3314
3314
|
|
|
3315
3315
|
/**
|
|
@@ -3348,7 +3348,7 @@ declare class BMEqualSpacingLayoutConstraint extends BMLayoutConstraint {
|
|
|
3348
3348
|
* @return A constraint.
|
|
3349
3349
|
*
|
|
3350
3350
|
*/
|
|
3351
|
-
static constraintOfKind (kind: BMLayoutConstraintKind, {forViews
|
|
3351
|
+
static constraintOfKind (kind: BMLayoutConstraintKind, {forViews, withSuperview, constant, priority}: {forViews: BMView[], withSuperview?: boolean | null | undefined, constant?: number | string | null | undefined, priority?: number | null | undefined}): BMEqualAttributeLayoutConstraint;
|
|
3352
3352
|
|
|
3353
3353
|
|
|
3354
3354
|
/**
|
|
@@ -3379,6 +3379,34 @@ declare class BMEqualSpacingLayoutConstraint extends BMLayoutConstraint {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
|
|
3381
3381
|
|
|
3382
|
+
declare interface BMLayoutConstraintVariation {
|
|
3383
|
+
|
|
3384
|
+
/**
|
|
3385
|
+
* The size class to which this variation applies.
|
|
3386
|
+
*
|
|
3387
|
+
*/
|
|
3388
|
+
sizeClass: BMLayoutSizeClass;
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* The constant for this variation, if defined.
|
|
3392
|
+
*
|
|
3393
|
+
*/
|
|
3394
|
+
constant?: number | null | undefined;
|
|
3395
|
+
|
|
3396
|
+
/**
|
|
3397
|
+
* The active state for this variation, if defined.
|
|
3398
|
+
*
|
|
3399
|
+
*/
|
|
3400
|
+
isActive?: boolean | null | undefined;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* The constraint priority for this variation, if defined.
|
|
3404
|
+
*
|
|
3405
|
+
*/
|
|
3406
|
+
priority?: number | null | undefined;
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
|
|
3382
3410
|
/**
|
|
3383
3411
|
* A view constraint attribute represents an object that can be used to simplify the creation of layout constraints.
|
|
3384
3412
|
* Each view has one property for each available layout attribute. The view constraint attribute has methods that can link
|
|
@@ -3413,6 +3441,17 @@ declare class BMViewConstraintAttribute {
|
|
|
3413
3441
|
*/
|
|
3414
3442
|
private _view: BMView;
|
|
3415
3443
|
|
|
3444
|
+
/**
|
|
3445
|
+
* Constructs and returns a layout constraint that links this view constraint attribute to constant value.
|
|
3446
|
+
* The constraint will be created with an equality sign.
|
|
3447
|
+
* @param constant The constraint's constant.
|
|
3448
|
+
* @param priority Defaults to `BMLayoutConstraintPriorityRequired`. The constraint's priority.
|
|
3449
|
+
* @return A layout constraint.
|
|
3450
|
+
*
|
|
3451
|
+
*/
|
|
3452
|
+
equalTo(constant: number, {priority}?: {priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3453
|
+
|
|
3454
|
+
|
|
3416
3455
|
/**
|
|
3417
3456
|
* Constructs and returns a layout constraint that links this view constraint attribute to the given attribute.
|
|
3418
3457
|
* The constraint will be created with an equality sign.
|
|
@@ -3423,7 +3462,18 @@ declare class BMViewConstraintAttribute {
|
|
|
3423
3462
|
* @return A layout constraint.
|
|
3424
3463
|
*
|
|
3425
3464
|
*/
|
|
3426
|
-
equalTo(attribute: BMViewConstraintAttribute, {times
|
|
3465
|
+
equalTo(attribute: BMViewConstraintAttribute, {times, plus, priority}?: {times?: number | null | undefined, plus?: number | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3466
|
+
|
|
3467
|
+
|
|
3468
|
+
/**
|
|
3469
|
+
* Constructs and returns a layout constraint that links this view constraint attribute to constant value.
|
|
3470
|
+
* The constraint will be created with a less than or equals sign.
|
|
3471
|
+
* @param constant The constraint's constant.
|
|
3472
|
+
* @param priority Defaults to `BMLayoutConstraintPriorityRequired`. The constraint's priority.
|
|
3473
|
+
* @return A layout constraint.
|
|
3474
|
+
*
|
|
3475
|
+
*/
|
|
3476
|
+
lessThanOrEqualTo(constant: number, {priority}?: {priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3427
3477
|
|
|
3428
3478
|
|
|
3429
3479
|
/**
|
|
@@ -3436,7 +3486,18 @@ declare class BMViewConstraintAttribute {
|
|
|
3436
3486
|
* @return A layout constraint.
|
|
3437
3487
|
*
|
|
3438
3488
|
*/
|
|
3439
|
-
lessThanOrEqualTo(attribute: BMViewConstraintAttribute, {times
|
|
3489
|
+
lessThanOrEqualTo(attribute: BMViewConstraintAttribute, {times, plus, priority}?: {times?: number | null | undefined, plus?: number | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3490
|
+
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* Constructs and returns a layout constraint that links this view constraint attribute to constant value.
|
|
3494
|
+
* The constraint will be created with a greather than or equals sign.
|
|
3495
|
+
* @param constant The constraint's constant.
|
|
3496
|
+
* @param priority Defaults to `BMLayoutConstraintPriorityRequired`. The constraint's priority.
|
|
3497
|
+
* @return A layout constraint.
|
|
3498
|
+
*
|
|
3499
|
+
*/
|
|
3500
|
+
greaterThanOrEqualTo(constant: number, {priority}?: {priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3440
3501
|
|
|
3441
3502
|
|
|
3442
3503
|
/**
|
|
@@ -3449,7 +3510,7 @@ declare class BMViewConstraintAttribute {
|
|
|
3449
3510
|
* @return A layout constraint.
|
|
3450
3511
|
*
|
|
3451
3512
|
*/
|
|
3452
|
-
greaterThanOrEqualTo(attribute: BMViewConstraintAttribute, {times
|
|
3513
|
+
greaterThanOrEqualTo(attribute: BMViewConstraintAttribute, {times, plus, priority}?: {times?: number | null | undefined, plus?: number | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3453
3514
|
|
|
3454
3515
|
}
|
|
3455
3516
|
|
|
@@ -3603,7 +3664,7 @@ declare class BMView {
|
|
|
3603
3664
|
* active size classes variations.
|
|
3604
3665
|
*
|
|
3605
3666
|
*/
|
|
3606
|
-
static registerLayoutVariableNamed (named: string, {withValue
|
|
3667
|
+
static registerLayoutVariableNamed (named: string, {withValue}: {withValue: number}): void;
|
|
3607
3668
|
|
|
3608
3669
|
|
|
3609
3670
|
/**
|
|
@@ -3620,7 +3681,7 @@ declare class BMView {
|
|
|
3620
3681
|
* }
|
|
3621
3682
|
*
|
|
3622
3683
|
*/
|
|
3623
|
-
static renameLayoutVariableNamed (named: string, {toName
|
|
3684
|
+
static renameLayoutVariableNamed (named: string, {toName}: {toName: string}): void;
|
|
3624
3685
|
|
|
3625
3686
|
|
|
3626
3687
|
/**
|
|
@@ -3645,7 +3706,7 @@ declare class BMView {
|
|
|
3645
3706
|
* @param inSizeClass The size class for which this variation will be active.
|
|
3646
3707
|
*
|
|
3647
3708
|
*/
|
|
3648
|
-
static setLayoutVariableValue (value: number, {named
|
|
3709
|
+
static setLayoutVariableValue (value: number, {named, inSizeClass}: {named: string, inSizeClass: BMLayoutSizeClass}): void;
|
|
3649
3710
|
|
|
3650
3711
|
|
|
3651
3712
|
/**
|
|
@@ -3655,7 +3716,7 @@ declare class BMView {
|
|
|
3655
3716
|
* @param inSizeClass The size class from which to remove this variation.
|
|
3656
3717
|
*
|
|
3657
3718
|
*/
|
|
3658
|
-
static removeVariationForLayoutVariableNamed (name: string, {inSizeClass
|
|
3719
|
+
static removeVariationForLayoutVariableNamed (name: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): void;
|
|
3659
3720
|
|
|
3660
3721
|
|
|
3661
3722
|
/**
|
|
@@ -3688,7 +3749,7 @@ declare class BMView {
|
|
|
3688
3749
|
* @param forNode The DOM node for which the shortcut should be registered.
|
|
3689
3750
|
*
|
|
3690
3751
|
*/
|
|
3691
|
-
static registerKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode
|
|
3752
|
+
static registerKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode}: {forNode: DOMNode}): void;
|
|
3692
3753
|
|
|
3693
3754
|
|
|
3694
3755
|
/**
|
|
@@ -3697,7 +3758,7 @@ declare class BMView {
|
|
|
3697
3758
|
* @param forNode The DOM node for which the shortcut should be unregistered.
|
|
3698
3759
|
*
|
|
3699
3760
|
*/
|
|
3700
|
-
static unregisterKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode
|
|
3761
|
+
static unregisterKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode}: {forNode: DOMNode}): void;
|
|
3701
3762
|
|
|
3702
3763
|
|
|
3703
3764
|
/**
|
|
@@ -3964,7 +4025,7 @@ declare class BMView {
|
|
|
3964
4025
|
* @param forTarget The target object upon which the updated value will be set.
|
|
3965
4026
|
*
|
|
3966
4027
|
*/
|
|
3967
|
-
registerVariablePropertyNamed(name: string, {forTarget
|
|
4028
|
+
registerVariablePropertyNamed(name: string, {forTarget}: {forTarget: any}): void;
|
|
3968
4029
|
|
|
3969
4030
|
|
|
3970
4031
|
/**
|
|
@@ -4002,7 +4063,7 @@ declare class BMView {
|
|
|
4002
4063
|
* @param inSizeClass The layout size class to which the variation should apply.
|
|
4003
4064
|
*
|
|
4004
4065
|
*/
|
|
4005
|
-
private _setVariation(variation: any, {forProperty
|
|
4066
|
+
private _setVariation(variation: any, {forProperty, inSizeClass}: {forProperty: string, inSizeClass: BMLayoutSizeClass}): void;
|
|
4006
4067
|
|
|
4007
4068
|
|
|
4008
4069
|
/**
|
|
@@ -4012,7 +4073,7 @@ declare class BMView {
|
|
|
4012
4073
|
* @param inSizeClass The layout size class to which the variation should apply.
|
|
4013
4074
|
*
|
|
4014
4075
|
*/
|
|
4015
|
-
private _removeVariationForProperty(property: string, {inSizeClass
|
|
4076
|
+
private _removeVariationForProperty(property: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): void;
|
|
4016
4077
|
|
|
4017
4078
|
|
|
4018
4079
|
/**
|
|
@@ -4022,7 +4083,7 @@ declare class BMView {
|
|
|
4022
4083
|
* @return `YES` if this view has a variation for the property in the given size class, `NO` otherwise.
|
|
4023
4084
|
*
|
|
4024
4085
|
*/
|
|
4025
|
-
private _hasVariationForProperty(property: string, {inSizeClass
|
|
4086
|
+
private _hasVariationForProperty(property: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): boolean;
|
|
4026
4087
|
|
|
4027
4088
|
|
|
4028
4089
|
/**
|
|
@@ -4044,7 +4105,7 @@ declare class BMView {
|
|
|
4044
4105
|
* @param forSizeClass The layout size class to which the opacity should apply.
|
|
4045
4106
|
*
|
|
4046
4107
|
*/
|
|
4047
|
-
setContentInsets(contentInsets: BMInset, {forSizeClass
|
|
4108
|
+
setContentInsets(contentInsets: BMInset, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4048
4109
|
|
|
4049
4110
|
|
|
4050
4111
|
/**
|
|
@@ -4086,7 +4147,7 @@ declare class BMView {
|
|
|
4086
4147
|
* @param forSizeClass The layout size class to which the CSS class should apply.
|
|
4087
4148
|
*
|
|
4088
4149
|
*/
|
|
4089
|
-
setCSSClass(CSSClass: string, {forSizeClass
|
|
4150
|
+
setCSSClass(CSSClass: string, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4090
4151
|
|
|
4091
4152
|
|
|
4092
4153
|
/**
|
|
@@ -4134,7 +4195,7 @@ declare class BMView {
|
|
|
4134
4195
|
* @param forSizeClass The layout size class to which the opacity should apply.
|
|
4135
4196
|
*
|
|
4136
4197
|
*/
|
|
4137
|
-
setOpacity(opacity: number, {forSizeClass
|
|
4198
|
+
setOpacity(opacity: number, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4138
4199
|
|
|
4139
4200
|
|
|
4140
4201
|
/**
|
|
@@ -4176,21 +4237,19 @@ declare class BMView {
|
|
|
4176
4237
|
readonly isCurrentlyVisible: boolean;
|
|
4177
4238
|
|
|
4178
4239
|
/**
|
|
4179
|
-
* @protected
|
|
4180
4240
|
* Invoked when this view becomes visible. Subclasses overriding this method should
|
|
4181
4241
|
* invoke the superclass method at some point in their implementation.
|
|
4182
4242
|
*
|
|
4183
4243
|
*/
|
|
4184
|
-
viewDidBecomeVisible(): void;
|
|
4244
|
+
protected viewDidBecomeVisible(): void;
|
|
4185
4245
|
|
|
4186
4246
|
|
|
4187
4247
|
/**
|
|
4188
|
-
* @protected
|
|
4189
4248
|
* Invoked when this view becomes invisible. Subclasses overriding this method should
|
|
4190
4249
|
* invoke the superclass method at some point in their implementation.
|
|
4191
4250
|
*
|
|
4192
4251
|
*/
|
|
4193
|
-
viewDidBecomeInvisible(): void;
|
|
4252
|
+
protected viewDidBecomeInvisible(): void;
|
|
4194
4253
|
|
|
4195
4254
|
|
|
4196
4255
|
/**
|
|
@@ -4208,7 +4267,7 @@ declare class BMView {
|
|
|
4208
4267
|
* @param forSizeClass The layout size class to which the opacity should apply.
|
|
4209
4268
|
*
|
|
4210
4269
|
*/
|
|
4211
|
-
setIsVisible(isVisible: boolean, {forSizeClass
|
|
4270
|
+
setIsVisible(isVisible: boolean, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4212
4271
|
|
|
4213
4272
|
|
|
4214
4273
|
/**
|
|
@@ -4435,7 +4494,7 @@ declare class BMView {
|
|
|
4435
4494
|
* The keyboard shortcuts that have been registered to this view.
|
|
4436
4495
|
*
|
|
4437
4496
|
*/
|
|
4438
|
-
private _keyboardShortcuts: Dictionary<
|
|
4497
|
+
private _keyboardShortcuts: Dictionary<BMKeyboardShortcut[]>;
|
|
4439
4498
|
|
|
4440
4499
|
/**
|
|
4441
4500
|
* Registers a keyboard shortcut that can be activated when this view has keyboard focus.
|
|
@@ -4474,7 +4533,7 @@ declare class BMView {
|
|
|
4474
4533
|
* the relevant event handlers to it.
|
|
4475
4534
|
*
|
|
4476
4535
|
*/
|
|
4477
|
-
|
|
4536
|
+
protected _enableKeyboardShortcuts(): void;
|
|
4478
4537
|
|
|
4479
4538
|
|
|
4480
4539
|
/**
|
|
@@ -4616,7 +4675,7 @@ declare class BMView {
|
|
|
4616
4675
|
* @return The Cassowary expression for the variable.
|
|
4617
4676
|
*
|
|
4618
4677
|
*/
|
|
4619
|
-
private _cassowaryExpressionForLayoutAttribute(attribute: BMLayoutAttribute, {withMultiplier
|
|
4678
|
+
private _cassowaryExpressionForLayoutAttribute(attribute: BMLayoutAttribute, {withMultiplier}?: {withMultiplier?: number | null | undefined}): kiwi.Expression;
|
|
4620
4679
|
|
|
4621
4680
|
|
|
4622
4681
|
/**
|
|
@@ -4788,9 +4847,10 @@ declare class BMView {
|
|
|
4788
4847
|
|
|
4789
4848
|
/**
|
|
4790
4849
|
* A generator that is used internally by CoreUI to layout subviews.
|
|
4850
|
+
* @return
|
|
4791
4851
|
*
|
|
4792
4852
|
*/
|
|
4793
|
-
|
|
4853
|
+
private _layoutSubviewsGenerator(): Iterator<undefined>;
|
|
4794
4854
|
|
|
4795
4855
|
|
|
4796
4856
|
/**
|
|
@@ -4867,7 +4927,7 @@ declare class BMView {
|
|
|
4867
4927
|
* view currently occupying that position.
|
|
4868
4928
|
*
|
|
4869
4929
|
*/
|
|
4870
|
-
addToSuperview(superview: BMView, {toPosition
|
|
4930
|
+
addToSuperview(superview: BMView, {toPosition}?: {toPosition?: number | null | undefined}): void;
|
|
4871
4931
|
|
|
4872
4932
|
|
|
4873
4933
|
/**
|
|
@@ -4880,7 +4940,7 @@ declare class BMView {
|
|
|
4880
4940
|
* view currently occupying that position.
|
|
4881
4941
|
*
|
|
4882
4942
|
*/
|
|
4883
|
-
addSubview(subview: BMView, {toPosition
|
|
4943
|
+
addSubview(subview: BMView, {toPosition}?: {toPosition?: number | null | undefined}): void;
|
|
4884
4944
|
|
|
4885
4945
|
|
|
4886
4946
|
/**
|
|
@@ -4957,7 +5017,7 @@ declare class BMView {
|
|
|
4957
5017
|
* @return A view.
|
|
4958
5018
|
*
|
|
4959
5019
|
*/
|
|
4960
|
-
private _cloneForNode(node: DOMNode, {superview
|
|
5020
|
+
private _cloneForNode(node: DOMNode, {superview}?: {superview?: BMView | null | undefined}): BMView;
|
|
4961
5021
|
|
|
4962
5022
|
|
|
4963
5023
|
/**
|
|
@@ -4986,7 +5046,7 @@ declare class BMView {
|
|
|
4986
5046
|
* @return An array of settings tabs to add.
|
|
4987
5047
|
*
|
|
4988
5048
|
*/
|
|
4989
|
-
additionalSettingSectionsForTab(tab: BMLayoutEditorSettingsTab, {layoutEditor
|
|
5049
|
+
additionalSettingSectionsForTab(tab: BMLayoutEditorSettingsTab, {layoutEditor}: {layoutEditor: BMLayoutEditor}): BMLayoutEditorSettingsSection[];
|
|
4990
5050
|
|
|
4991
5051
|
}
|
|
4992
5052
|
|
|
@@ -5015,7 +5075,7 @@ declare class BMScrollView extends BMView {
|
|
|
5015
5075
|
* @return A scroll view.
|
|
5016
5076
|
*
|
|
5017
5077
|
*/
|
|
5018
|
-
static scrollViewForNode (node: DOMNode, {contentNode
|
|
5078
|
+
static scrollViewForNode (node: DOMNode, {contentNode}: {contentNode: DOMNode}): BMScrollView;
|
|
5019
5079
|
|
|
5020
5080
|
|
|
5021
5081
|
/**
|
|
@@ -5042,7 +5102,7 @@ declare class BMScrollView extends BMView {
|
|
|
5042
5102
|
* @param contentNode The content view DOM node.
|
|
5043
5103
|
*
|
|
5044
5104
|
*/
|
|
5045
|
-
initWithWrapperDOMNode(node: DOMNode, {contentNode
|
|
5105
|
+
initWithWrapperDOMNode(node: DOMNode, {contentNode}: {contentNode: DOMNode}): void;
|
|
5046
5106
|
|
|
5047
5107
|
|
|
5048
5108
|
/**
|
|
@@ -5063,7 +5123,7 @@ declare class BMScrollView extends BMView {
|
|
|
5063
5123
|
* view currently occupying that position.
|
|
5064
5124
|
*
|
|
5065
5125
|
*/
|
|
5066
|
-
addSubview(subview: BMView, {toPosition
|
|
5126
|
+
addSubview(subview: BMView, {toPosition}?: {toPosition?: number | null | undefined}): void;
|
|
5067
5127
|
|
|
5068
5128
|
}
|
|
5069
5129
|
|
|
@@ -5191,7 +5251,7 @@ declare class BMAttributedLabelView extends BMView {
|
|
|
5191
5251
|
* @return An attributed label view.
|
|
5192
5252
|
*
|
|
5193
5253
|
*/
|
|
5194
|
-
static labelViewForNode (node: DOMNode, {template
|
|
5254
|
+
static labelViewForNode (node: DOMNode, {template, contentNode, arguments: args}: {template: string, contentNode?: DOMNode | null | undefined, arguments?: Dictionary<any> | null | undefined}): BMAttributedLabelView;
|
|
5195
5255
|
|
|
5196
5256
|
}
|
|
5197
5257
|
|
|
@@ -5346,7 +5406,7 @@ declare class BMTextField extends BMView {
|
|
|
5346
5406
|
* @return A DOM node to be added to a menu.
|
|
5347
5407
|
*
|
|
5348
5408
|
*/
|
|
5349
|
-
private _menuItemWithLabel(label: string, {action
|
|
5409
|
+
private _menuItemWithLabel(label: string, {action}: {action: (($0: Event) => void)}): DOMNode;
|
|
5350
5410
|
|
|
5351
5411
|
|
|
5352
5412
|
/**
|
|
@@ -5357,7 +5417,7 @@ declare class BMTextField extends BMView {
|
|
|
5357
5417
|
* @return The menu element.
|
|
5358
5418
|
*
|
|
5359
5419
|
*/
|
|
5360
|
-
private _showMenuAtPoint(point: BMPoint, {withOptions
|
|
5420
|
+
private _showMenuAtPoint(point: BMPoint, {withOptions, kind}: {withOptions: DOMNode[], kind?: BMMenuKind | null | undefined}): DOMNode;
|
|
5361
5421
|
|
|
5362
5422
|
|
|
5363
5423
|
/**
|
|
@@ -5426,7 +5486,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5426
5486
|
* @return This layout editor.
|
|
5427
5487
|
*
|
|
5428
5488
|
*/
|
|
5429
|
-
initWithView(view: BMView, {layoutVariableProvider
|
|
5489
|
+
initWithView(view: BMView, {layoutVariableProvider}?: {layoutVariableProvider?: BMLayoutVariableProvider | null | undefined}): BMLayoutEditor;
|
|
5430
5490
|
|
|
5431
5491
|
|
|
5432
5492
|
/**
|
|
@@ -5503,7 +5563,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5503
5563
|
* @param forSettingOfKind The kind of setting that will use the given cell class.
|
|
5504
5564
|
*
|
|
5505
5565
|
*/
|
|
5506
|
-
registerCellClass(cellClass: typeof BMLayoutEditorSettingsCell, {forSettingOfKind
|
|
5566
|
+
registerCellClass(cellClass: typeof BMLayoutEditorSettingsCell, {forSettingOfKind}: {forSettingOfKind: string}): void;
|
|
5507
5567
|
|
|
5508
5568
|
|
|
5509
5569
|
/**
|
|
@@ -5516,7 +5576,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5516
5576
|
* @param kind The kind of menu to show. Defaults to `.PullDownMenu`.
|
|
5517
5577
|
*
|
|
5518
5578
|
*/
|
|
5519
|
-
private _showSizeClassMenuAtPoint(point: BMPoint, {action
|
|
5579
|
+
private _showSizeClassMenuAtPoint(point: BMPoint, {action, kind}?: {action?: (($0: BMLayoutSizeClass) => void) | null | undefined, kind?: BMMenuKind | null | undefined}): void;
|
|
5520
5580
|
|
|
5521
5581
|
|
|
5522
5582
|
/**
|
|
@@ -5529,7 +5589,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5529
5589
|
* @param action An additional action to execute in addition to the default action.
|
|
5530
5590
|
*
|
|
5531
5591
|
*/
|
|
5532
|
-
private _sizeClassMenuItemMakeWithName(name: string, {ofType
|
|
5592
|
+
private _sizeClassMenuItemMakeWithName(name: string, {ofType, preview, sizeClass, action}: {ofType: string, preview?: string | null | undefined, sizeClass?: BMLayoutSizeClass | null | undefined, action?: (() => void) | null | undefined}): void;
|
|
5533
5593
|
|
|
5534
5594
|
|
|
5535
5595
|
/**
|
|
@@ -5574,7 +5634,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5574
5634
|
* @return The SVG path.
|
|
5575
5635
|
*
|
|
5576
5636
|
*/
|
|
5577
|
-
private _pathForPopoverWithFrame(frame: BMRect, {widthIndicatorSize
|
|
5637
|
+
private _pathForPopoverWithFrame(frame: BMRect, {widthIndicatorSize, radius, inset, knobPosition, gravity}?: {widthIndicatorSize?: number | null | undefined, radius?: number | null | undefined, inset?: number | null | undefined, knobPosition?: number | null | undefined, gravity?: string | null | undefined}): string;
|
|
5578
5638
|
|
|
5579
5639
|
|
|
5580
5640
|
/**
|
|
@@ -5592,7 +5652,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5592
5652
|
* @param withReferenceView The reference view.
|
|
5593
5653
|
*
|
|
5594
5654
|
*/
|
|
5595
|
-
private _showConstantPopupAtPoint(location: BMPoint, {forConstraint
|
|
5655
|
+
private _showConstantPopupAtPoint(location: BMPoint, {forConstraint, withReferenceView}: {forConstraint: BMLayoutConstraint, withReferenceView: BMView}): void;
|
|
5596
5656
|
|
|
5597
5657
|
|
|
5598
5658
|
/**
|
|
@@ -5610,7 +5670,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5610
5670
|
* @param includesInactiveConstraints Defaults to `NO`. Controls whether inactive constraints are drawn.
|
|
5611
5671
|
*
|
|
5612
5672
|
*/
|
|
5613
|
-
private _drawConstraintsForView(view: BMView, {includesSubviewConstraints
|
|
5673
|
+
private _drawConstraintsForView(view: BMView, {includesSubviewConstraints, includesInactiveConstraints}?: {includesSubviewConstraints?: boolean | null | undefined, includesInactiveConstraints?: boolean | null | undefined}): void;
|
|
5614
5674
|
|
|
5615
5675
|
|
|
5616
5676
|
/**
|
|
@@ -5620,7 +5680,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5620
5680
|
* @param withEvent The event that triggered this action, if available.
|
|
5621
5681
|
*
|
|
5622
5682
|
*/
|
|
5623
|
-
selectView(view?: BMView | null | undefined, {withEvent
|
|
5683
|
+
selectView(view?: BMView | null | undefined, {withEvent}?: {withEvent?: Event | null | undefined}): void;
|
|
5624
5684
|
|
|
5625
5685
|
|
|
5626
5686
|
/**
|
|
@@ -5637,7 +5697,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5637
5697
|
* @param view
|
|
5638
5698
|
*
|
|
5639
5699
|
*/
|
|
5640
|
-
initDragEventListenerForNode(node: DOMNode, {view
|
|
5700
|
+
initDragEventListenerForNode(node: DOMNode, {view}: {view: BMView}): void;
|
|
5641
5701
|
|
|
5642
5702
|
|
|
5643
5703
|
/**
|
|
@@ -5647,7 +5707,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5647
5707
|
* @return
|
|
5648
5708
|
*
|
|
5649
5709
|
*/
|
|
5650
|
-
constraintOptionWithLabel(label: string, {action
|
|
5710
|
+
constraintOptionWithLabel(label: string, {action}: {action: (($0: Event) => void)}): DOMNode;
|
|
5651
5711
|
|
|
5652
5712
|
|
|
5653
5713
|
/**
|
|
@@ -5678,7 +5738,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5678
5738
|
* @return The menu element.
|
|
5679
5739
|
*
|
|
5680
5740
|
*/
|
|
5681
|
-
showMenuAtPoint(point: BMPoint, {menu
|
|
5741
|
+
showMenuAtPoint(point: BMPoint, {menu, withOptions, kind}?: {menu?: DOMNode | null | undefined, withOptions?: DOMNode[] | null | undefined, kind?: BMMenuKind | null | undefined}): DOMNode;
|
|
5682
5742
|
|
|
5683
5743
|
|
|
5684
5744
|
/**
|
|
@@ -5690,7 +5750,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5690
5750
|
* @param atPoint The point at which to bring up the menu.
|
|
5691
5751
|
*
|
|
5692
5752
|
*/
|
|
5693
|
-
showConstraintOptionsFromView(view: BMView, {toView
|
|
5753
|
+
showConstraintOptionsFromView(view: BMView, {toView, atPoint}: {toView?: BMView | null | undefined, atPoint: BMPoint}): void;
|
|
5694
5754
|
|
|
5695
5755
|
|
|
5696
5756
|
/**
|
|
@@ -5700,7 +5760,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5700
5760
|
* @return The options.
|
|
5701
5761
|
*
|
|
5702
5762
|
*/
|
|
5703
|
-
horizontalConstraintOptionsFromView(view: BMView, {toView
|
|
5763
|
+
horizontalConstraintOptionsFromView(view: BMView, {toView}?: {toView?: BMView | null | undefined}): DOMNode[];
|
|
5704
5764
|
|
|
5705
5765
|
|
|
5706
5766
|
/**
|
|
@@ -5710,7 +5770,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5710
5770
|
* @return The options.
|
|
5711
5771
|
*
|
|
5712
5772
|
*/
|
|
5713
|
-
verticalConstraintOptionsFromView(view: BMView, {toView
|
|
5773
|
+
verticalConstraintOptionsFromView(view: BMView, {toView}?: {toView?: BMView | null | undefined}): DOMNode[];
|
|
5714
5774
|
|
|
5715
5775
|
|
|
5716
5776
|
/**
|
|
@@ -5721,7 +5781,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5721
5781
|
* @return The constraint descriptor, if the constraint is non-null.
|
|
5722
5782
|
*
|
|
5723
5783
|
*/
|
|
5724
|
-
selectConstraint(constraint?: BMLayoutConstraint | null | undefined, {withReferenceView
|
|
5784
|
+
selectConstraint(constraint?: BMLayoutConstraint | null | undefined, {withReferenceView}?: {withReferenceView?: BMView | null | undefined}): any;
|
|
5725
5785
|
|
|
5726
5786
|
|
|
5727
5787
|
/**
|
|
@@ -5732,7 +5792,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5732
5792
|
* @return The first matching layout constraint, if it was found, `undefined` otherwise.
|
|
5733
5793
|
*
|
|
5734
5794
|
*/
|
|
5735
|
-
private _constraintAffectingAttributeInList(list: BMLayoutAttribute[], {forView
|
|
5795
|
+
private _constraintAffectingAttributeInList(list: BMLayoutAttribute[], {forView}: {forView: BMView}): BMLayoutConstraint | null | undefined;
|
|
5736
5796
|
|
|
5737
5797
|
|
|
5738
5798
|
/**
|
|
@@ -5839,7 +5899,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5839
5899
|
* }
|
|
5840
5900
|
*
|
|
5841
5901
|
*/
|
|
5842
|
-
private _drawConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
5902
|
+
private _drawConstraint(constraint: BMLayoutConstraint, {withReferenceView, sourceConstraint}: {withReferenceView: BMView, sourceConstraint?: BMLayoutConstraint | null | undefined}): void;
|
|
5843
5903
|
|
|
5844
5904
|
|
|
5845
5905
|
/**
|
|
@@ -5851,7 +5911,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5851
5911
|
* @param sourceConstraint The source constraint that created this constraint, if there is one.
|
|
5852
5912
|
*
|
|
5853
5913
|
*/
|
|
5854
|
-
private _drawHorizontalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint
|
|
5914
|
+
private _drawHorizontalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint, toPoint, withReferenceView, sourceConstraint}: {fromSourcePoint: BMPoint, toPoint: BMPoint, withReferenceView: BMView, sourceConstraint?: BMLayoutConstraint | null | undefined}): void;
|
|
5855
5915
|
|
|
5856
5916
|
|
|
5857
5917
|
/**
|
|
@@ -5863,7 +5923,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5863
5923
|
* @param sourceConstraint The source constraint that created this constraint, if there is one.
|
|
5864
5924
|
*
|
|
5865
5925
|
*/
|
|
5866
|
-
private _drawVerticalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint
|
|
5926
|
+
private _drawVerticalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint, toPoint, withReferenceView, sourceConstraint}: {fromSourcePoint: BMPoint, toPoint: BMPoint, withReferenceView: BMView, sourceConstraint?: BMLayoutConstraint | null | undefined}): void;
|
|
5867
5927
|
|
|
5868
5928
|
|
|
5869
5929
|
/**
|
|
@@ -5873,7 +5933,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5873
5933
|
* @param forSetting The setting for which to set the value.
|
|
5874
5934
|
*
|
|
5875
5935
|
*/
|
|
5876
|
-
setValue(value: any, {forSetting
|
|
5936
|
+
setValue(value: any, {forSetting}: {forSetting: BMLayoutEditorSetting}): void;
|
|
5877
5937
|
|
|
5878
5938
|
|
|
5879
5939
|
/**
|
|
@@ -5899,7 +5959,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5899
5959
|
* @return A DOM node.
|
|
5900
5960
|
*
|
|
5901
5961
|
*/
|
|
5902
|
-
readonlySettingWithName(name: string, {value
|
|
5962
|
+
readonlySettingWithName(name: string, {value, action}: {value: string, action?: (($0: Event) => void) | null | undefined}): DOMNode;
|
|
5903
5963
|
|
|
5904
5964
|
|
|
5905
5965
|
/**
|
|
@@ -5918,7 +5978,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5918
5978
|
* will be added.
|
|
5919
5979
|
*
|
|
5920
5980
|
*/
|
|
5921
|
-
createVariableBooleanSettingWithName(name: string, {forConstraint
|
|
5981
|
+
createVariableBooleanSettingWithName(name: string, {forConstraint, withReferenceView, propertyName, container}: {forConstraint?: BMLayoutConstraint | null | undefined, withReferenceView: BMView, propertyName: string, container?: DOMNode | null | undefined}): void;
|
|
5922
5982
|
|
|
5923
5983
|
|
|
5924
5984
|
/**
|
|
@@ -5938,7 +5998,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5938
5998
|
* @return A DOM node.
|
|
5939
5999
|
*
|
|
5940
6000
|
*/
|
|
5941
|
-
booleanSettingWithName(name: string, {value
|
|
6001
|
+
booleanSettingWithName(name: string, {value, indeterminate, container, sizeClass, changeHandler}: {value: boolean, indeterminate?: boolean | null | undefined, container?: DOMNode | null | undefined, sizeClass?: BMLayoutSizeClass | null | undefined, changeHandler: (($0: boolean, $1: BMLayoutSizeClass | null | undefined) => void)}): DOMNode;
|
|
5942
6002
|
|
|
5943
6003
|
|
|
5944
6004
|
/**
|
|
@@ -5954,7 +6014,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5954
6014
|
* @return A DOM node.
|
|
5955
6015
|
*
|
|
5956
6016
|
*/
|
|
5957
|
-
textSettingWithName(name: string, {value
|
|
6017
|
+
textSettingWithName(name: string, {value, changeHandler}: {value: string, changeHandler: (($0: string) => boolean)}): DOMNode;
|
|
5958
6018
|
|
|
5959
6019
|
|
|
5960
6020
|
/**
|
|
@@ -5970,7 +6030,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5970
6030
|
* @return A DOM node.
|
|
5971
6031
|
*
|
|
5972
6032
|
*/
|
|
5973
|
-
stringSettingWithName(name: string, {forConstraint
|
|
6033
|
+
stringSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView, sizeClass}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView, sizeClass?: BMLayoutSizeClass | null | undefined}): DOMNode;
|
|
5974
6034
|
|
|
5975
6035
|
|
|
5976
6036
|
/**
|
|
@@ -5989,7 +6049,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5989
6049
|
* will be added.
|
|
5990
6050
|
*
|
|
5991
6051
|
*/
|
|
5992
|
-
createVariableStringSettingWithName(name: string, {forConstraint
|
|
6052
|
+
createVariableStringSettingWithName(name: string, {forConstraint, withReferenceView, propertyName, container}: {forConstraint?: BMLayoutConstraint | null | undefined, withReferenceView: BMView, propertyName: string, container?: DOMNode | null | undefined}): void;
|
|
5993
6053
|
|
|
5994
6054
|
|
|
5995
6055
|
/**
|
|
@@ -6008,7 +6068,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6008
6068
|
* will be added.
|
|
6009
6069
|
*
|
|
6010
6070
|
*/
|
|
6011
|
-
createVariableNumericSettingWithName(name: string, {forConstraint
|
|
6071
|
+
createVariableNumericSettingWithName(name: string, {forConstraint, withReferenceView, propertyName, container}: {forConstraint?: BMLayoutConstraint | null | undefined, withReferenceView: BMView, propertyName: string, container?: DOMNode | null | undefined}): void;
|
|
6012
6072
|
|
|
6013
6073
|
|
|
6014
6074
|
/**
|
|
@@ -6024,7 +6084,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6024
6084
|
* @return A DOM node.
|
|
6025
6085
|
*
|
|
6026
6086
|
*/
|
|
6027
|
-
constantSettingWithName(name: string, {forConstraint
|
|
6087
|
+
constantSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView, sizeClass}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView, sizeClass?: BMLayoutSizeClass | null | undefined}): DOMNode;
|
|
6028
6088
|
|
|
6029
6089
|
|
|
6030
6090
|
/**
|
|
@@ -6040,7 +6100,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6040
6100
|
* @return A DOM node.
|
|
6041
6101
|
*
|
|
6042
6102
|
*/
|
|
6043
|
-
numericSettingWithName(name: string, {forConstraint
|
|
6103
|
+
numericSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView, sizeClass}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView, sizeClass?: BMLayoutSizeClass | null | undefined}): DOMNode;
|
|
6044
6104
|
|
|
6045
6105
|
|
|
6046
6106
|
/**
|
|
@@ -6052,7 +6112,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6052
6112
|
* @param selected Controls whether this option is selected by default.
|
|
6053
6113
|
*
|
|
6054
6114
|
*/
|
|
6055
|
-
optionNamed(named: string, {value
|
|
6115
|
+
optionNamed(named: string, {value, selected}: {value: any, selected?: boolean | null | undefined}): void;
|
|
6056
6116
|
|
|
6057
6117
|
|
|
6058
6118
|
/**
|
|
@@ -6067,7 +6127,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6067
6127
|
* @return A DOM node.
|
|
6068
6128
|
*
|
|
6069
6129
|
*/
|
|
6070
|
-
dropdownSettingWithName(name: string, {forConstraint
|
|
6130
|
+
dropdownSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView}): DOMNode;
|
|
6071
6131
|
|
|
6072
6132
|
|
|
6073
6133
|
/**
|
|
@@ -6081,7 +6141,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6081
6141
|
* @return A DOM node.
|
|
6082
6142
|
*
|
|
6083
6143
|
*/
|
|
6084
|
-
equalitySettingWithName(name: string, {forConstraint
|
|
6144
|
+
equalitySettingWithName(name: string, {forConstraint, value, withReferenceView}: {forConstraint: BMLayoutConstraint, value: string, withReferenceView: BMView}): DOMNode;
|
|
6085
6145
|
|
|
6086
6146
|
|
|
6087
6147
|
/**
|
|
@@ -6093,7 +6153,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6093
6153
|
* @param action
|
|
6094
6154
|
*
|
|
6095
6155
|
*/
|
|
6096
|
-
buttonSettingWithName(name: string, {action
|
|
6156
|
+
buttonSettingWithName(name: string, {action}: {action: (($0: Event) => void)}): DOMNode;
|
|
6097
6157
|
|
|
6098
6158
|
|
|
6099
6159
|
/**
|
|
@@ -6134,7 +6194,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6134
6194
|
* @param inContainer The node to which the new settings should be added.
|
|
6135
6195
|
*
|
|
6136
6196
|
*/
|
|
6137
|
-
createAdditionalSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6197
|
+
createAdditionalSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView, inContainer}: {withReferenceView: BMView, inContainer: DOMNode}): void;
|
|
6138
6198
|
|
|
6139
6199
|
|
|
6140
6200
|
/**
|
|
@@ -6146,7 +6206,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6146
6206
|
* @return The contents of the settings page.
|
|
6147
6207
|
*
|
|
6148
6208
|
*/
|
|
6149
|
-
private _createConstantSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6209
|
+
private _createConstantSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6150
6210
|
|
|
6151
6211
|
|
|
6152
6212
|
/**
|
|
@@ -6158,7 +6218,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6158
6218
|
* @return The contents of the settings page.
|
|
6159
6219
|
*
|
|
6160
6220
|
*/
|
|
6161
|
-
private _createPrioritySettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6221
|
+
private _createPrioritySettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6162
6222
|
|
|
6163
6223
|
|
|
6164
6224
|
/**
|
|
@@ -6170,7 +6230,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6170
6230
|
* @return The contents of the settings page.
|
|
6171
6231
|
*
|
|
6172
6232
|
*/
|
|
6173
|
-
private _createIsActiveSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6233
|
+
private _createIsActiveSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6174
6234
|
|
|
6175
6235
|
|
|
6176
6236
|
/**
|
|
@@ -6182,7 +6242,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6182
6242
|
* @return The contents of the settings page.
|
|
6183
6243
|
*
|
|
6184
6244
|
*/
|
|
6185
|
-
createSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6245
|
+
createSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6186
6246
|
|
|
6187
6247
|
|
|
6188
6248
|
/**
|
|
@@ -6204,7 +6264,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6204
6264
|
* @param internal Defaults to NO.
|
|
6205
6265
|
*
|
|
6206
6266
|
*/
|
|
6207
|
-
constraintSettingWithConstraint(constraint: BMLayoutConstraint, {referenceView
|
|
6267
|
+
constraintSettingWithConstraint(constraint: BMLayoutConstraint, {referenceView, internal}: {referenceView: BMView, internal?: boolean | null | undefined}): void;
|
|
6208
6268
|
|
|
6209
6269
|
|
|
6210
6270
|
/**
|
|
@@ -6241,7 +6301,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6241
6301
|
* @param attribute The layout attribute with which the constraint will be created.
|
|
6242
6302
|
*
|
|
6243
6303
|
*/
|
|
6244
|
-
equalConstraintSettingWithName(name: string, {icon
|
|
6304
|
+
equalConstraintSettingWithName(name: string, {icon, attribute}: {icon?: string | null | undefined, attribute: BMLayoutAttribute}): void;
|
|
6245
6305
|
|
|
6246
6306
|
|
|
6247
6307
|
/**
|
|
@@ -6346,7 +6406,7 @@ declare class _BMLayoutEditorTree {
|
|
|
6346
6406
|
* @return
|
|
6347
6407
|
*
|
|
6348
6408
|
*/
|
|
6349
|
-
treeNodeForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6409
|
+
treeNodeForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6350
6410
|
|
|
6351
6411
|
|
|
6352
6412
|
/**
|
|
@@ -6359,7 +6419,7 @@ declare class _BMLayoutEditorTree {
|
|
|
6359
6419
|
* @param continuous Defaults to NO. If set to YES, the view will be added to the current selection.
|
|
6360
6420
|
*
|
|
6361
6421
|
*/
|
|
6362
|
-
selectView(view?: BMView | null | undefined, {continuous
|
|
6422
|
+
selectView(view?: BMView | null | undefined, {continuous}?: {continuous?: boolean | null | undefined}): void;
|
|
6363
6423
|
|
|
6364
6424
|
|
|
6365
6425
|
/**
|
|
@@ -6411,7 +6471,7 @@ declare class _BMLayoutEditorTree {
|
|
|
6411
6471
|
* @return
|
|
6412
6472
|
*
|
|
6413
6473
|
*/
|
|
6414
|
-
declare function _BMLayoutEditorTreeMakeWithView(view: BMView, {node
|
|
6474
|
+
declare function _BMLayoutEditorTreeMakeWithView(view: BMView, {node}: {node: DOMNode}): _BMLayoutEditorTree;
|
|
6415
6475
|
|
|
6416
6476
|
|
|
6417
6477
|
|
|
@@ -6473,7 +6533,7 @@ declare class BMLayoutEditorVariablesDataSet implements BMCollectionViewDataSet,
|
|
|
6473
6533
|
* @return This data set object.
|
|
6474
6534
|
*
|
|
6475
6535
|
*/
|
|
6476
|
-
initWithLayoutVariableProvider(provider: BMLayoutVariableProvider, {collectionView
|
|
6536
|
+
initWithLayoutVariableProvider(provider: BMLayoutVariableProvider, {collectionView, editor}: {collectionView: BMCollectionView, editor: BMLayoutEditor}): BMLayoutEditorVariablesDataSet;
|
|
6477
6537
|
|
|
6478
6538
|
}
|
|
6479
6539
|
|
|
@@ -6535,7 +6595,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6535
6595
|
* @return This settings view.
|
|
6536
6596
|
*
|
|
6537
6597
|
*/
|
|
6538
|
-
initWithDOMNode(node: DOMNode, {editor
|
|
6598
|
+
initWithDOMNode(node: DOMNode, {editor}: {editor: BMLayoutEditor}): _BMLayoutEditorSettingsView;
|
|
6539
6599
|
|
|
6540
6600
|
|
|
6541
6601
|
/**
|
|
@@ -6544,7 +6604,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6544
6604
|
* @param withBackButton Controls whether this panel will contain a back button.
|
|
6545
6605
|
*
|
|
6546
6606
|
*/
|
|
6547
|
-
private _provisionPanel(panel: _BMLayoutEditorSettingsPanel, {withBackButton
|
|
6607
|
+
private _provisionPanel(panel: _BMLayoutEditorSettingsPanel, {withBackButton}?: {withBackButton?: boolean | null | undefined}): void;
|
|
6548
6608
|
|
|
6549
6609
|
|
|
6550
6610
|
/**
|
|
@@ -6582,7 +6642,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6582
6642
|
* @param withReferenceView The view from which the constraint was selected.
|
|
6583
6643
|
*
|
|
6584
6644
|
*/
|
|
6585
|
-
selectConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6645
|
+
selectConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): void;
|
|
6586
6646
|
|
|
6587
6647
|
|
|
6588
6648
|
/**
|
|
@@ -6592,7 +6652,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6592
6652
|
* @param withReferenceView The view from which the constraint was selected.
|
|
6593
6653
|
*
|
|
6594
6654
|
*/
|
|
6595
|
-
layoutEditorDidSelectConstraint(constrant: BMLayoutConstraint, {withReferenceView
|
|
6655
|
+
layoutEditorDidSelectConstraint(constrant: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): void;
|
|
6596
6656
|
|
|
6597
6657
|
|
|
6598
6658
|
/**
|
|
@@ -6612,7 +6672,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6612
6672
|
* @return A promise that resolves when this operation completes.
|
|
6613
6673
|
*
|
|
6614
6674
|
*/
|
|
6615
|
-
resetToPanel(panel?: _BMLayoutEditorSettingsPanel | null | undefined, {animated
|
|
6675
|
+
resetToPanel(panel?: _BMLayoutEditorSettingsPanel | null | undefined, {animated}?: {animated?: boolean | null | undefined}): Promise<void>;
|
|
6616
6676
|
|
|
6617
6677
|
|
|
6618
6678
|
/**
|
|
@@ -6622,7 +6682,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6622
6682
|
* @return A promise that resolves when this operation completes.
|
|
6623
6683
|
*
|
|
6624
6684
|
*/
|
|
6625
|
-
pushPanel(panel: _BMLayoutEditorSettingsPanel, {animated
|
|
6685
|
+
pushPanel(panel: _BMLayoutEditorSettingsPanel, {animated}?: {animated?: boolean | null | undefined}): Promise<void>;
|
|
6626
6686
|
|
|
6627
6687
|
|
|
6628
6688
|
/**
|
|
@@ -6640,7 +6700,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6640
6700
|
* @return A settings view.
|
|
6641
6701
|
*
|
|
6642
6702
|
*/
|
|
6643
|
-
static settingsViewWithNode (node: DOMNode, {editor
|
|
6703
|
+
static settingsViewWithNode (node: DOMNode, {editor}: {editor: BMLayoutEditor}): _BMLayoutEditorSettingsView;
|
|
6644
6704
|
|
|
6645
6705
|
}
|
|
6646
6706
|
|
|
@@ -6786,7 +6846,7 @@ declare class _BMLayoutEditorCollectionSettingsPanel {
|
|
|
6786
6846
|
* @param forTab The tab for which to configure this collection view.
|
|
6787
6847
|
*
|
|
6788
6848
|
*/
|
|
6789
|
-
private _configureCollectionViewLayout(collectionView: BMCollectionView, {forTab
|
|
6849
|
+
private _configureCollectionViewLayout(collectionView: BMCollectionView, {forTab}: {forTab: BMLayoutEditorSettingsTab}): void;
|
|
6790
6850
|
|
|
6791
6851
|
}
|
|
6792
6852
|
|
|
@@ -6860,7 +6920,7 @@ declare class BMLayoutEditorSettingsTab implements BMCollectionViewDataSet, BMCo
|
|
|
6860
6920
|
* @return This settings tab.
|
|
6861
6921
|
*
|
|
6862
6922
|
*/
|
|
6863
|
-
initWithName(name: string, {icon
|
|
6923
|
+
initWithName(name: string, {icon}: {icon: string}): BMLayoutEditorSettingsTab;
|
|
6864
6924
|
|
|
6865
6925
|
|
|
6866
6926
|
/**
|
|
@@ -6912,7 +6972,7 @@ declare class BMLayoutEditorSettingsTab implements BMCollectionViewDataSet, BMCo
|
|
|
6912
6972
|
* @return A settings tab.
|
|
6913
6973
|
*
|
|
6914
6974
|
*/
|
|
6915
|
-
static tabWithName (name: string, {icon
|
|
6975
|
+
static tabWithName (name: string, {icon}: {icon: string}): BMLayoutEditorSettingsTab;
|
|
6916
6976
|
|
|
6917
6977
|
}
|
|
6918
6978
|
|
|
@@ -7149,7 +7209,7 @@ declare class BMLayoutEditorSetting {
|
|
|
7149
7209
|
* @return This setting.
|
|
7150
7210
|
*
|
|
7151
7211
|
*/
|
|
7152
|
-
initWithName(name: string, {kind
|
|
7212
|
+
initWithName(name: string, {kind, target, variations, nullable, property}: {kind: BMLayoutEditorSettingKind | string, target: any, variations?: boolean | null | undefined, nullable?: boolean | null | undefined, property?: string | null | undefined}): BMLayoutEditorSetting;
|
|
7153
7213
|
|
|
7154
7214
|
|
|
7155
7215
|
/**
|
|
@@ -7174,7 +7234,7 @@ declare class BMLayoutEditorSetting {
|
|
|
7174
7234
|
* @return A setting.
|
|
7175
7235
|
*
|
|
7176
7236
|
*/
|
|
7177
|
-
static settingWithName (name: string, {kind
|
|
7237
|
+
static settingWithName (name: string, {kind, target, variations, nullable, property}: {kind: BMLayoutEditorSettingKind, target: any, variations?: boolean | null | undefined, nullable?: boolean | null | undefined, property?: string | null | undefined}): BMLayoutEditorSetting;
|
|
7178
7238
|
|
|
7179
7239
|
}
|
|
7180
7240
|
|
|
@@ -7845,7 +7905,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7845
7905
|
* active size classes variations.
|
|
7846
7906
|
*
|
|
7847
7907
|
*/
|
|
7848
|
-
registerLayoutVariableNamed?(named: string, {withValue
|
|
7908
|
+
registerLayoutVariableNamed?(named: string, {withValue}: {withValue: number}): void;
|
|
7849
7909
|
|
|
7850
7910
|
|
|
7851
7911
|
/**
|
|
@@ -7855,7 +7915,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7855
7915
|
* }
|
|
7856
7916
|
*
|
|
7857
7917
|
*/
|
|
7858
|
-
renameLayoutVariableNamed?(named: string, {toName
|
|
7918
|
+
renameLayoutVariableNamed?(named: string, {toName}: {toName: string}): void;
|
|
7859
7919
|
|
|
7860
7920
|
|
|
7861
7921
|
/**
|
|
@@ -7880,7 +7940,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7880
7940
|
* @param inSizeClass The size class for which this variation will be active.
|
|
7881
7941
|
*
|
|
7882
7942
|
*/
|
|
7883
|
-
setLayoutVariableValue?(value: number, {named
|
|
7943
|
+
setLayoutVariableValue?(value: number, {named, inSizeClass}: {named: string, inSizeClass: BMLayoutSizeClass}): void;
|
|
7884
7944
|
|
|
7885
7945
|
|
|
7886
7946
|
/**
|
|
@@ -7892,7 +7952,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7892
7952
|
* @param inSizeClass The size class from which to remove this variation.
|
|
7893
7953
|
*
|
|
7894
7954
|
*/
|
|
7895
|
-
removeVariationForLayoutVariableNamed?(name: string, {inSizeClass
|
|
7955
|
+
removeVariationForLayoutVariableNamed?(name: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): void;
|
|
7896
7956
|
|
|
7897
7957
|
|
|
7898
7958
|
/**
|
|
@@ -7993,7 +8053,7 @@ declare class BMMenuItem {
|
|
|
7993
8053
|
* @return This menu item.
|
|
7994
8054
|
*
|
|
7995
8055
|
*/
|
|
7996
|
-
initWithName(name: string, {icon
|
|
8056
|
+
initWithName(name: string, {icon, action, submenu, userInfo}?: {icon?: string | null | undefined, action?: (($0: BMMenuItem) => void) | null | undefined, submenu?: BMMenu | null | undefined, userInfo?: any | null | undefined}): BMMenuItem;
|
|
7997
8057
|
|
|
7998
8058
|
|
|
7999
8059
|
/**
|
|
@@ -8011,7 +8071,7 @@ declare class BMMenuItem {
|
|
|
8011
8071
|
* @return A menu item.
|
|
8012
8072
|
*
|
|
8013
8073
|
*/
|
|
8014
|
-
static menuItemWithName (name: string, {icon
|
|
8074
|
+
static menuItemWithName (name: string, {icon, action, submenu, userInfo}?: {icon?: string | null | undefined, action?: (($0: BMMenuItem) => void) | null | undefined, submenu?: BMMenu | null | undefined, userInfo?: any | null | undefined}): BMMenuItem;
|
|
8015
8075
|
|
|
8016
8076
|
|
|
8017
8077
|
/**
|
|
@@ -8193,7 +8253,7 @@ declare class BMMenu {
|
|
|
8193
8253
|
* @return A promise that resolves when the operation completes.
|
|
8194
8254
|
*
|
|
8195
8255
|
*/
|
|
8196
|
-
openFromNode(node: DOMNode, {animated
|
|
8256
|
+
openFromNode(node: DOMNode, {animated, kind}?: {animated?: boolean | null | undefined, kind?: BMMenuKind | null | undefined}): Promise<void>;
|
|
8197
8257
|
|
|
8198
8258
|
|
|
8199
8259
|
/**
|
|
@@ -8206,7 +8266,7 @@ declare class BMMenu {
|
|
|
8206
8266
|
* @param kind Defaults to `Menu`. The kind of menu.
|
|
8207
8267
|
*
|
|
8208
8268
|
*/
|
|
8209
|
-
openAtPoint(point: BMPoint, {animated
|
|
8269
|
+
openAtPoint(point: BMPoint, {animated, kind}?: {animated?: boolean | null | undefined, kind?: BMMenuKind | null | undefined}): void;
|
|
8210
8270
|
|
|
8211
8271
|
|
|
8212
8272
|
/**
|
|
@@ -8220,7 +8280,7 @@ declare class BMMenu {
|
|
|
8220
8280
|
* @param kind Defaults to `Menu`. The kind of menu.
|
|
8221
8281
|
*
|
|
8222
8282
|
*/
|
|
8223
|
-
private _openAroundRect(rect: BMRect, {animated
|
|
8283
|
+
private _openAroundRect(rect: BMRect, {animated, kind}?: {animated?: boolean | null | undefined, kind?: BMMenuKind | null | undefined}): void;
|
|
8224
8284
|
|
|
8225
8285
|
|
|
8226
8286
|
/**
|
|
@@ -8234,7 +8294,7 @@ declare class BMMenu {
|
|
|
8234
8294
|
* opening. Otherwise, this menu will retain keyboard focus.
|
|
8235
8295
|
*
|
|
8236
8296
|
*/
|
|
8237
|
-
private _openSubmenuForMenuItem(item: BMMenuItem, {animated
|
|
8297
|
+
private _openSubmenuForMenuItem(item: BMMenuItem, {animated, delaysEvents, acquireFocus}?: {animated?: boolean | null | undefined, delaysEvents?: boolean | null | undefined, acquireFocus?: boolean | null | undefined}): void;
|
|
8238
8298
|
|
|
8239
8299
|
|
|
8240
8300
|
/**
|
|
@@ -8244,7 +8304,7 @@ declare class BMMenu {
|
|
|
8244
8304
|
* @param item The item from which the submenu opened.
|
|
8245
8305
|
*
|
|
8246
8306
|
*/
|
|
8247
|
-
private _delayEventsForSubmenu(submenu: BMMenu, {item
|
|
8307
|
+
private _delayEventsForSubmenu(submenu: BMMenu, {item}: {item: BMMenuItem}): void;
|
|
8248
8308
|
|
|
8249
8309
|
|
|
8250
8310
|
/**
|
|
@@ -8256,7 +8316,7 @@ declare class BMMenu {
|
|
|
8256
8316
|
* will also close.
|
|
8257
8317
|
*
|
|
8258
8318
|
*/
|
|
8259
|
-
closeAnimated(animated?: boolean | null | undefined, {withSupermenu
|
|
8319
|
+
closeAnimated(animated?: boolean | null | undefined, {withSupermenu}?: {withSupermenu?: boolean | null | undefined}): void;
|
|
8260
8320
|
|
|
8261
8321
|
|
|
8262
8322
|
/**
|
|
@@ -8435,7 +8495,7 @@ declare interface BMTextFieldDelegate {
|
|
|
8435
8495
|
* @param withSuggestion The suggestion
|
|
8436
8496
|
*
|
|
8437
8497
|
*/
|
|
8438
|
-
textFieldShouldAutocompleteText?(textField: BMTextField, text: string, {withSuggestion
|
|
8498
|
+
textFieldShouldAutocompleteText?(textField: BMTextField, text: string, {withSuggestion}: {withSuggestion: string}): void;
|
|
8439
8499
|
|
|
8440
8500
|
|
|
8441
8501
|
/**
|
|
@@ -8633,7 +8693,7 @@ declare var BMCellAttributesMakeForCellAtIndexPath: Function;
|
|
|
8633
8693
|
* @return The cell attributes.
|
|
8634
8694
|
*
|
|
8635
8695
|
*/
|
|
8636
|
-
declare function BMCollectionViewLayoutAttributesMakeForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
8696
|
+
declare function BMCollectionViewLayoutAttributesMakeForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath}): BMCollectionViewLayoutAttributes;
|
|
8637
8697
|
|
|
8638
8698
|
|
|
8639
8699
|
|
|
@@ -8710,7 +8770,7 @@ declare var _BMCollectionViewTransitionLayoutAttributesUnitRegex: RegExp;
|
|
|
8710
8770
|
* @return The new transition attributes.
|
|
8711
8771
|
*
|
|
8712
8772
|
*/
|
|
8713
|
-
declare function _BMCollectionViewTransitionLayoutAttributesMakeWithSourceAttributes(sourceAttributes: BMCollectionViewLayoutAttributes, {targetAttributes
|
|
8773
|
+
declare function _BMCollectionViewTransitionLayoutAttributesMakeWithSourceAttributes(sourceAttributes: BMCollectionViewLayoutAttributes, {targetAttributes}: {targetAttributes: BMCollectionViewLayoutAttributes}): _BMCollectionViewTransitionLayoutAttributes;
|
|
8714
8774
|
|
|
8715
8775
|
|
|
8716
8776
|
|
|
@@ -9086,7 +9146,7 @@ declare class BMCollectionViewCell extends BMView {
|
|
|
9086
9146
|
* @return This cell.
|
|
9087
9147
|
*
|
|
9088
9148
|
*/
|
|
9089
|
-
initWithCollectionView(collectionView: BMCollectionView, {reuseIdentifier
|
|
9149
|
+
initWithCollectionView(collectionView: BMCollectionView, {reuseIdentifier, node, kind}: {reuseIdentifier: string, node: DOMNode, kind?: BMCollectionViewLayoutAttributesType | null | undefined}): BMCollectionViewCell;
|
|
9090
9150
|
|
|
9091
9151
|
|
|
9092
9152
|
/**
|
|
@@ -9113,7 +9173,7 @@ declare class BMCollectionViewCell extends BMView {
|
|
|
9113
9173
|
* @return A cell.
|
|
9114
9174
|
*
|
|
9115
9175
|
*/
|
|
9116
|
-
declare function BMCollectionViewCellMakeForCollectionView(collectionView: BMCollectionView, {withReuseIdentifier
|
|
9176
|
+
declare function BMCollectionViewCellMakeForCollectionView(collectionView: BMCollectionView, {withReuseIdentifier, node}: {withReuseIdentifier: string, node: DOMNode}): BMCollectionViewCell;
|
|
9117
9177
|
|
|
9118
9178
|
|
|
9119
9179
|
|
|
@@ -9225,7 +9285,7 @@ declare class BMCollectionViewLayout {
|
|
|
9225
9285
|
* @return The supplementary view attributes.
|
|
9226
9286
|
*
|
|
9227
9287
|
*/
|
|
9228
|
-
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9288
|
+
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath}): BMCollectionViewLayoutAttributes;
|
|
9229
9289
|
|
|
9230
9290
|
|
|
9231
9291
|
/**
|
|
@@ -9352,7 +9412,7 @@ declare class BMCollectionViewLayout {
|
|
|
9352
9412
|
* @return An array of index paths.
|
|
9353
9413
|
*
|
|
9354
9414
|
*/
|
|
9355
|
-
indexPathsFromIndexPath(indexPath: BMIndexPath, {toIndexPath
|
|
9415
|
+
indexPathsFromIndexPath(indexPath: BMIndexPath, {toIndexPath}: {toIndexPath: BMIndexPath}): BMIndexPath[];
|
|
9356
9416
|
|
|
9357
9417
|
|
|
9358
9418
|
/**
|
|
@@ -9395,7 +9455,7 @@ declare class BMCollectionViewLayout {
|
|
|
9395
9455
|
* @return The preferred scroll offset.
|
|
9396
9456
|
*
|
|
9397
9457
|
*/
|
|
9398
|
-
preferredScrollOffsetForTransitionFromLayout(fromLayout: BMCollectionViewLayout, {withOffset
|
|
9458
|
+
preferredScrollOffsetForTransitionFromLayout(fromLayout: BMCollectionViewLayout, {withOffset}: {withOffset: BMPoint}): BMPoint;
|
|
9399
9459
|
|
|
9400
9460
|
|
|
9401
9461
|
/**
|
|
@@ -9411,7 +9471,7 @@ declare class BMCollectionViewLayout {
|
|
|
9411
9471
|
* @return The attributes.
|
|
9412
9472
|
*
|
|
9413
9473
|
*/
|
|
9414
|
-
initialAttributesForMovingCellFromIndexPath(indexPath: BMIndexPath, {toIndexPath
|
|
9474
|
+
initialAttributesForMovingCellFromIndexPath(indexPath: BMIndexPath, {toIndexPath, withTargetAttributes}: {toIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9415
9475
|
|
|
9416
9476
|
|
|
9417
9477
|
/**
|
|
@@ -9426,7 +9486,7 @@ declare class BMCollectionViewLayout {
|
|
|
9426
9486
|
* @return The attributes.
|
|
9427
9487
|
*
|
|
9428
9488
|
*/
|
|
9429
|
-
initialAttributesForMovingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9489
|
+
initialAttributesForMovingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9430
9490
|
|
|
9431
9491
|
|
|
9432
9492
|
/**
|
|
@@ -9439,7 +9499,7 @@ declare class BMCollectionViewLayout {
|
|
|
9439
9499
|
* @return The attributes.
|
|
9440
9500
|
*
|
|
9441
9501
|
*/
|
|
9442
|
-
initialAttributesForAppearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9502
|
+
initialAttributesForAppearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9443
9503
|
|
|
9444
9504
|
|
|
9445
9505
|
/**
|
|
@@ -9453,7 +9513,7 @@ declare class BMCollectionViewLayout {
|
|
|
9453
9513
|
* @return The attributes.
|
|
9454
9514
|
*
|
|
9455
9515
|
*/
|
|
9456
|
-
initialAttributesForAppearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9516
|
+
initialAttributesForAppearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9457
9517
|
|
|
9458
9518
|
|
|
9459
9519
|
/**
|
|
@@ -9466,7 +9526,7 @@ declare class BMCollectionViewLayout {
|
|
|
9466
9526
|
* @return The attributes.
|
|
9467
9527
|
*
|
|
9468
9528
|
*/
|
|
9469
|
-
initialAttributesForRevealingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9529
|
+
initialAttributesForRevealingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9470
9530
|
|
|
9471
9531
|
|
|
9472
9532
|
/**
|
|
@@ -9480,7 +9540,7 @@ declare class BMCollectionViewLayout {
|
|
|
9480
9540
|
* @return The attributes.
|
|
9481
9541
|
*
|
|
9482
9542
|
*/
|
|
9483
|
-
initialAttributesForRevealingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9543
|
+
initialAttributesForRevealingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9484
9544
|
|
|
9485
9545
|
|
|
9486
9546
|
/**
|
|
@@ -9493,7 +9553,7 @@ declare class BMCollectionViewLayout {
|
|
|
9493
9553
|
* @return The attributes.
|
|
9494
9554
|
*
|
|
9495
9555
|
*/
|
|
9496
|
-
initialAttributesForPresentedCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9556
|
+
initialAttributesForPresentedCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9497
9557
|
|
|
9498
9558
|
|
|
9499
9559
|
/**
|
|
@@ -9507,7 +9567,7 @@ declare class BMCollectionViewLayout {
|
|
|
9507
9567
|
* @return The attributes.
|
|
9508
9568
|
*
|
|
9509
9569
|
*/
|
|
9510
|
-
initialAttributesForPresentedSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9570
|
+
initialAttributesForPresentedSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9511
9571
|
|
|
9512
9572
|
|
|
9513
9573
|
/**
|
|
@@ -9532,7 +9592,7 @@ declare class BMCollectionViewLayout {
|
|
|
9532
9592
|
* @return The attributes.
|
|
9533
9593
|
*
|
|
9534
9594
|
*/
|
|
9535
|
-
finalAttributesForDisappearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9595
|
+
finalAttributesForDisappearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9536
9596
|
|
|
9537
9597
|
|
|
9538
9598
|
/**
|
|
@@ -9546,7 +9606,7 @@ declare class BMCollectionViewLayout {
|
|
|
9546
9606
|
* @return The attributes.
|
|
9547
9607
|
*
|
|
9548
9608
|
*/
|
|
9549
|
-
finalAttributesForDisappearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9609
|
+
finalAttributesForDisappearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9550
9610
|
|
|
9551
9611
|
|
|
9552
9612
|
/**
|
|
@@ -9559,7 +9619,7 @@ declare class BMCollectionViewLayout {
|
|
|
9559
9619
|
* @return The attributes.
|
|
9560
9620
|
*
|
|
9561
9621
|
*/
|
|
9562
|
-
finalAttributesForHidingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9622
|
+
finalAttributesForHidingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9563
9623
|
|
|
9564
9624
|
|
|
9565
9625
|
/**
|
|
@@ -9573,7 +9633,7 @@ declare class BMCollectionViewLayout {
|
|
|
9573
9633
|
* @return The attributes.
|
|
9574
9634
|
*
|
|
9575
9635
|
*/
|
|
9576
|
-
finalAttributesForHidingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9636
|
+
finalAttributesForHidingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9577
9637
|
|
|
9578
9638
|
|
|
9579
9639
|
/**
|
|
@@ -9624,7 +9684,7 @@ declare class BMCollectionViewLayout {
|
|
|
9624
9684
|
* @return True if the new frame requires a new layout, false otherwise.
|
|
9625
9685
|
*
|
|
9626
9686
|
*/
|
|
9627
|
-
shouldInvalidateLayoutForFrameChange(frame: BMRect, {fromFrame
|
|
9687
|
+
shouldInvalidateLayoutForFrameChange(frame: BMRect, {fromFrame}?: {fromFrame?: BMRect | null | undefined}): boolean;
|
|
9628
9688
|
|
|
9629
9689
|
|
|
9630
9690
|
/**
|
|
@@ -9636,7 +9696,7 @@ declare class BMCollectionViewLayout {
|
|
|
9636
9696
|
* @return True if the new frame requires a new layout, false otherwise.
|
|
9637
9697
|
*
|
|
9638
9698
|
*/
|
|
9639
|
-
shouldInvalidateLayoutForBoundsChange(bounds: BMRect, {fromBounds
|
|
9699
|
+
shouldInvalidateLayoutForBoundsChange(bounds: BMRect, {fromBounds}: {fromBounds: BMRect}): boolean;
|
|
9640
9700
|
|
|
9641
9701
|
|
|
9642
9702
|
/**
|
|
@@ -9698,7 +9758,7 @@ declare class BMCollectionViewLayout {
|
|
|
9698
9758
|
* @return The scroll offset to which the collection view should snap.
|
|
9699
9759
|
*
|
|
9700
9760
|
*/
|
|
9701
|
-
snappingScrollOffsetForScrollOffset(offset: BMPoint, {withVerticalDirection
|
|
9761
|
+
snappingScrollOffsetForScrollOffset(offset: BMPoint, {withVerticalDirection, horizontalDirection}: {withVerticalDirection: BMScrollingDirectionVertical, horizontalDirection: BMScrollingDirectionHorizontal}): BMPoint;
|
|
9702
9762
|
|
|
9703
9763
|
|
|
9704
9764
|
/**
|
|
@@ -9749,7 +9809,7 @@ declare class BMCollectionViewLayout {
|
|
|
9749
9809
|
* @return An array of layout constraints.
|
|
9750
9810
|
*
|
|
9751
9811
|
*/
|
|
9752
|
-
constraintsForMeasuringCell(cell: BMCollectionViewCell, {atIndexPath
|
|
9812
|
+
constraintsForMeasuringCell(cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): BMLayoutConstraint[];
|
|
9753
9813
|
|
|
9754
9814
|
|
|
9755
9815
|
/**
|
|
@@ -9989,7 +10049,7 @@ declare class BMCollectionViewTableLayout extends BMCollectionViewLayout {
|
|
|
9989
10049
|
* @return The index path with additional information.
|
|
9990
10050
|
*
|
|
9991
10051
|
*/
|
|
9992
|
-
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
10052
|
+
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath}): BMCollectionViewLayoutAttributes;
|
|
9993
10053
|
|
|
9994
10054
|
|
|
9995
10055
|
/**
|
|
@@ -10005,7 +10065,7 @@ declare class BMCollectionViewTableLayout extends BMCollectionViewLayout {
|
|
|
10005
10065
|
* @return The intersecting index path or undefined if the collection view contains no data.
|
|
10006
10066
|
*
|
|
10007
10067
|
*/
|
|
10008
|
-
indexPathAtPoint(point: BMPoint, {directionNext
|
|
10068
|
+
indexPathAtPoint(point: BMPoint, {directionNext}?: {directionNext?: boolean | null | undefined}): BMIndexPath | null | undefined;
|
|
10009
10069
|
|
|
10010
10070
|
}
|
|
10011
10071
|
|
|
@@ -10380,7 +10440,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10380
10440
|
* to measure cells. This is reserved for when this is invoked as a delegate.
|
|
10381
10441
|
*
|
|
10382
10442
|
*/
|
|
10383
|
-
|
|
10443
|
+
private _prepareLayoutWithScrollbarOffsetGenerator(useOffset: boolean, {targetRect, targetIndexPath}?: {targetRect?: BMRect | null | undefined, targetIndexPath?: BMIndexPath | null | undefined}): void;
|
|
10384
10444
|
|
|
10385
10445
|
|
|
10386
10446
|
/**
|
|
@@ -10393,7 +10453,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10393
10453
|
* @param spacing The minimum spacing to use between the cells.
|
|
10394
10454
|
*
|
|
10395
10455
|
*/
|
|
10396
|
-
reflowRow(row: any, {forWidth
|
|
10456
|
+
reflowRow(row: any, {forWidth, height, withOccupiedWidth, spacing}: {forWidth: number, height: number, withOccupiedWidth: number, spacing: number}): void;
|
|
10397
10457
|
|
|
10398
10458
|
|
|
10399
10459
|
/**
|
|
@@ -10405,7 +10465,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10405
10465
|
* @param spacing The minimum spacing to use between the cells.
|
|
10406
10466
|
*
|
|
10407
10467
|
*/
|
|
10408
|
-
private _reflowRow(row: any, {forLength
|
|
10468
|
+
private _reflowRow(row: any, {forLength, breadth, withOccupiedLength, spacing}: {forLength: number, breadth: number, withOccupiedLength: number, spacing: number}): void;
|
|
10409
10469
|
|
|
10410
10470
|
|
|
10411
10471
|
/**
|
|
@@ -10417,7 +10477,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10417
10477
|
* @throw If there are no cached attributes for the specified index path.
|
|
10418
10478
|
*
|
|
10419
10479
|
*/
|
|
10420
|
-
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10480
|
+
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes;
|
|
10421
10481
|
|
|
10422
10482
|
|
|
10423
10483
|
/**
|
|
@@ -10429,7 +10489,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10429
10489
|
* @throws If the index path is out of bounds.
|
|
10430
10490
|
*
|
|
10431
10491
|
*/
|
|
10432
|
-
computedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10492
|
+
computedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes;
|
|
10433
10493
|
|
|
10434
10494
|
|
|
10435
10495
|
/**
|
|
@@ -10442,7 +10502,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10442
10502
|
* or the requested supplementary view type is unsupported.
|
|
10443
10503
|
*
|
|
10444
10504
|
*/
|
|
10445
|
-
cachedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
10505
|
+
cachedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, usingCache}: {atIndexPath: BMIndexPath, usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes | null | undefined;
|
|
10446
10506
|
|
|
10447
10507
|
|
|
10448
10508
|
/**
|
|
@@ -10455,7 +10515,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10455
10515
|
* or the requested supplementary view type is unsupported.
|
|
10456
10516
|
*
|
|
10457
10517
|
*/
|
|
10458
|
-
computedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
10518
|
+
computedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, usingCache}: {atIndexPath: BMIndexPath, usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes | null | undefined;
|
|
10459
10519
|
|
|
10460
10520
|
|
|
10461
10521
|
/**
|
|
@@ -10465,7 +10525,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10465
10525
|
* @return An array of cell attributes.
|
|
10466
10526
|
*
|
|
10467
10527
|
*/
|
|
10468
|
-
cachedAttributesForElementsInRect(rect: BMRect, {usingCache
|
|
10528
|
+
cachedAttributesForElementsInRect(rect: BMRect, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes[];
|
|
10469
10529
|
|
|
10470
10530
|
|
|
10471
10531
|
/**
|
|
@@ -10475,7 +10535,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10475
10535
|
* @return An array of cell attributes.
|
|
10476
10536
|
*
|
|
10477
10537
|
*/
|
|
10478
|
-
computedAttributesForElementsInRect(rect: BMRect, {usingCache
|
|
10538
|
+
computedAttributesForElementsInRect(rect: BMRect, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes[];
|
|
10479
10539
|
|
|
10480
10540
|
|
|
10481
10541
|
/**
|
|
@@ -10607,7 +10667,7 @@ declare class BMCollectionViewMasonryLayout extends BMCollectionViewLayout {
|
|
|
10607
10667
|
* @param usingCache Defaults to this layout's current cache. The cache object to use.
|
|
10608
10668
|
*
|
|
10609
10669
|
*/
|
|
10610
|
-
cachedAttributesForElementsInRect(rect: BMRect, {usingCache
|
|
10670
|
+
cachedAttributesForElementsInRect(rect: BMRect, {usingCache}?: {usingCache?: any | null | undefined}): void;
|
|
10611
10671
|
|
|
10612
10672
|
|
|
10613
10673
|
/**
|
|
@@ -10617,7 +10677,7 @@ declare class BMCollectionViewMasonryLayout extends BMCollectionViewLayout {
|
|
|
10617
10677
|
* @return The layout attributes if the index path exists in the data set, `undefined` otherwise.
|
|
10618
10678
|
*
|
|
10619
10679
|
*/
|
|
10620
|
-
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10680
|
+
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes | null | undefined;
|
|
10621
10681
|
|
|
10622
10682
|
|
|
10623
10683
|
/**
|
|
@@ -10628,7 +10688,7 @@ declare class BMCollectionViewMasonryLayout extends BMCollectionViewLayout {
|
|
|
10628
10688
|
* @return An object that describes the requested attributes and its position in the layout.
|
|
10629
10689
|
*
|
|
10630
10690
|
*/
|
|
10631
|
-
private _extendedCachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10691
|
+
private _extendedCachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): any | null | undefined;
|
|
10632
10692
|
|
|
10633
10693
|
|
|
10634
10694
|
/**
|
|
@@ -10788,7 +10848,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10788
10848
|
* @param intoCache The layout cache into which the layout will be prepared.
|
|
10789
10849
|
*
|
|
10790
10850
|
*/
|
|
10791
|
-
private _prepareLayoutForSection(section: number, {intoCache
|
|
10851
|
+
private _prepareLayoutForSection(section: number, {intoCache}: {intoCache: any}): void;
|
|
10792
10852
|
|
|
10793
10853
|
|
|
10794
10854
|
/**
|
|
@@ -10801,7 +10861,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10801
10861
|
* @return The resulting extent.
|
|
10802
10862
|
*
|
|
10803
10863
|
*/
|
|
10804
|
-
rightExtentByTrimmingLeftSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10864
|
+
rightExtentByTrimmingLeftSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10805
10865
|
|
|
10806
10866
|
|
|
10807
10867
|
/**
|
|
@@ -10814,7 +10874,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10814
10874
|
* @return The resulting extent.
|
|
10815
10875
|
*
|
|
10816
10876
|
*/
|
|
10817
|
-
leftExtentByTrimmingRightSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10877
|
+
leftExtentByTrimmingRightSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10818
10878
|
|
|
10819
10879
|
|
|
10820
10880
|
/**
|
|
@@ -10827,7 +10887,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10827
10887
|
* @return The resulting extent.
|
|
10828
10888
|
*
|
|
10829
10889
|
*/
|
|
10830
|
-
topExtentByTrimmingBottomSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10890
|
+
topExtentByTrimmingBottomSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10831
10891
|
|
|
10832
10892
|
|
|
10833
10893
|
/**
|
|
@@ -10840,7 +10900,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10840
10900
|
* @return The resulting extent.
|
|
10841
10901
|
*
|
|
10842
10902
|
*/
|
|
10843
|
-
bottomExtentByTrimmingTopSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10903
|
+
bottomExtentByTrimmingTopSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10844
10904
|
|
|
10845
10905
|
|
|
10846
10906
|
/**
|
|
@@ -10853,7 +10913,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10853
10913
|
* @return The resulting extents.
|
|
10854
10914
|
*
|
|
10855
10915
|
*/
|
|
10856
|
-
rectsWithDifferenceOfExtent(extent: BMRect, {fromRect
|
|
10916
|
+
rectsWithDifferenceOfExtent(extent: BMRect, {fromRect, spacing}: {fromRect: BMRect, spacing?: number | null | undefined}): BMRect[];
|
|
10857
10917
|
|
|
10858
10918
|
|
|
10859
10919
|
/**
|
|
@@ -11243,7 +11303,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11243
11303
|
* @return The index path, or undefined if there is no object with the specified indexes.
|
|
11244
11304
|
*
|
|
11245
11305
|
*/
|
|
11246
|
-
indexPathForObjectAtRow(row: Int, {inSectionAtIndex
|
|
11306
|
+
indexPathForObjectAtRow(row: Int, {inSectionAtIndex}: {inSectionAtIndex: Int}): BMIndexPath<T> | null | undefined;
|
|
11247
11307
|
|
|
11248
11308
|
|
|
11249
11309
|
/**
|
|
@@ -11467,7 +11527,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11467
11527
|
* @param forReuseIdentifier The reuse identifier.
|
|
11468
11528
|
*
|
|
11469
11529
|
*/
|
|
11470
|
-
registerCellClass(cellClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier
|
|
11530
|
+
registerCellClass(cellClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier}: {forReuseIdentifier: string}): void;
|
|
11471
11531
|
|
|
11472
11532
|
|
|
11473
11533
|
/**
|
|
@@ -11485,7 +11545,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11485
11545
|
* @param forReuseIdentifier The reuse identifier.
|
|
11486
11546
|
*
|
|
11487
11547
|
*/
|
|
11488
|
-
registerSupplementaryViewClass(supplementaryViewClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier
|
|
11548
|
+
registerSupplementaryViewClass(supplementaryViewClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier}: {forReuseIdentifier: string}): void;
|
|
11489
11549
|
|
|
11490
11550
|
|
|
11491
11551
|
/**
|
|
@@ -11519,7 +11579,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11519
11579
|
* @param animated Defaults to NO. If set to YES, this change will be animated, otherwise it will be instant.
|
|
11520
11580
|
*
|
|
11521
11581
|
*/
|
|
11522
|
-
invalidateLayoutWithContext(context: BMCollectionViewLayoutInvalidationContext, {animated
|
|
11582
|
+
invalidateLayoutWithContext(context: BMCollectionViewLayoutInvalidationContext, {animated}?: {animated?: boolean | null | undefined}): void;
|
|
11523
11583
|
|
|
11524
11584
|
|
|
11525
11585
|
/**
|
|
@@ -11665,7 +11725,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11665
11725
|
* @param exclusive Defaults to NO. If set to YES, all other cells not in the attributes array will be unmanaged.
|
|
11666
11726
|
*
|
|
11667
11727
|
*/
|
|
11668
|
-
private _renderCellsWithAttributes(attributes: BMCollectionViewLayoutAttributes[], {exclusive
|
|
11728
|
+
private _renderCellsWithAttributes(attributes: BMCollectionViewLayoutAttributes[], {exclusive}?: {exclusive?: boolean | null | undefined}): void;
|
|
11669
11729
|
|
|
11670
11730
|
|
|
11671
11731
|
/**
|
|
@@ -11777,13 +11837,13 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11777
11837
|
* Prepares the cell at the given index path for measurement, yielding prior to measuring it, then returning the measured size.
|
|
11778
11838
|
* If the cell was already measured, this will immediately return the cached measured size.
|
|
11779
11839
|
* @param indexPath The index path of the cell whose size should be measured.
|
|
11780
|
-
* @param layoutQueue
|
|
11840
|
+
* @param layoutQueue The layout queue to use for this measurement.
|
|
11781
11841
|
* @param dequeue Whether the layout queue should be drained automatically or not. If set to `NO`,
|
|
11782
11842
|
* the layout queue must be drained after the first time this generator yields.
|
|
11783
11843
|
* @return The iterator.
|
|
11784
11844
|
*
|
|
11785
11845
|
*/
|
|
11786
|
-
|
|
11846
|
+
private _measuredSizeOfCellAtIndexPathGenerator(indexPath: BMIndexPath<T>, {layoutQueue, dequeue}: {layoutQueue: BMViewLayoutQueue, dequeue: boolean}): Iterator<BMSize | undefined>;
|
|
11787
11847
|
|
|
11788
11848
|
|
|
11789
11849
|
/**
|
|
@@ -11800,7 +11860,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11800
11860
|
* @return The new cell, if could be bound, undefined otherwise.
|
|
11801
11861
|
*
|
|
11802
11862
|
*/
|
|
11803
|
-
refreshCellAtIndexPath(indexPath: BMIndexPath<T>, {animated
|
|
11863
|
+
refreshCellAtIndexPath(indexPath: BMIndexPath<T>, {animated}?: {animated?: boolean | null | undefined}): BMCollectionViewCell | null | undefined;
|
|
11804
11864
|
|
|
11805
11865
|
|
|
11806
11866
|
/**
|
|
@@ -11851,7 +11911,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11851
11911
|
* @param withDropShadows A map containing the link between drop shadows and the items.
|
|
11852
11912
|
*
|
|
11853
11913
|
*/
|
|
11854
|
-
private _insertItems(items: any[], {toIndexPath
|
|
11914
|
+
private _insertItems(items: any[], {toIndexPath, withDropShadows}: {toIndexPath: BMIndexPath<T>, withDropShadows: Map<any, DOMNode>}): void;
|
|
11855
11915
|
|
|
11856
11916
|
|
|
11857
11917
|
/**
|
|
@@ -11863,7 +11923,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11863
11923
|
* of the touch point that will control this drag & drop operation.
|
|
11864
11924
|
*
|
|
11865
11925
|
*/
|
|
11866
|
-
beginDragWithEvent(event: Event, {forCell
|
|
11926
|
+
beginDragWithEvent(event: Event, {forCell, touchIdentifier}: {forCell: BMCollectionViewCell, touchIdentifier: any}): void;
|
|
11867
11927
|
|
|
11868
11928
|
|
|
11869
11929
|
/**
|
|
@@ -11926,7 +11986,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11926
11986
|
* @return The cell if it exists, or undefined if it does not.
|
|
11927
11987
|
*
|
|
11928
11988
|
*/
|
|
11929
|
-
cellAtIndexPath(indexPath: BMIndexPath<T>, {ofType
|
|
11989
|
+
cellAtIndexPath(indexPath: BMIndexPath<T>, {ofType, withIdentifier}?: {ofType?: BMCollectionViewLayoutAttributesType | null | undefined, withIdentifier?: string | null | undefined}): BMCollectionViewCell | null | undefined;
|
|
11930
11990
|
|
|
11931
11991
|
|
|
11932
11992
|
/**
|
|
@@ -11936,7 +11996,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11936
11996
|
* @return The cell if it exists, or undefined if it does not.
|
|
11937
11997
|
*
|
|
11938
11998
|
*/
|
|
11939
|
-
supplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
11999
|
+
supplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): BMCollectionViewCell | null | undefined;
|
|
11940
12000
|
|
|
11941
12001
|
|
|
11942
12002
|
/**
|
|
@@ -11959,7 +12019,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11959
12019
|
* @return The cell if it exists, or undefined if the index path is out of bounds.
|
|
11960
12020
|
*
|
|
11961
12021
|
*/
|
|
11962
|
-
retainSupplementaryViewWithIdentifier(identifier: string, {forIndexPath
|
|
12022
|
+
retainSupplementaryViewWithIdentifier(identifier: string, {forIndexPath}: {forIndexPath: BMIndexPath<T>}): BMCollectionViewCell | null | undefined;
|
|
11963
12023
|
|
|
11964
12024
|
|
|
11965
12025
|
/**
|
|
@@ -11968,7 +12028,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11968
12028
|
* @param withEvent The event that triggered this method.
|
|
11969
12029
|
*
|
|
11970
12030
|
*/
|
|
11971
|
-
cellWasClicked(cell: BMCollectionViewCell, {withEvent
|
|
12031
|
+
cellWasClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): void;
|
|
11972
12032
|
|
|
11973
12033
|
|
|
11974
12034
|
/**
|
|
@@ -11977,7 +12037,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11977
12037
|
* @param withEvent The event that triggered this method.
|
|
11978
12038
|
*
|
|
11979
12039
|
*/
|
|
11980
|
-
cellWasDoubleClicked(cell: BMCollectionViewCell, {withEvent
|
|
12040
|
+
cellWasDoubleClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): void;
|
|
11981
12041
|
|
|
11982
12042
|
|
|
11983
12043
|
/**
|
|
@@ -11986,7 +12046,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11986
12046
|
* @param withEvent The event that triggered this method.
|
|
11987
12047
|
*
|
|
11988
12048
|
*/
|
|
11989
|
-
cellWasLongClicked(cell: BMCollectionViewCell, {withEvent
|
|
12049
|
+
cellWasLongClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): void;
|
|
11990
12050
|
|
|
11991
12051
|
|
|
11992
12052
|
/**
|
|
@@ -11996,7 +12056,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11996
12056
|
* @return Defaults to NO. This should be YES if the default behaviour should be supressed, NO otherwise.
|
|
11997
12057
|
*
|
|
11998
12058
|
*/
|
|
11999
|
-
cellWasRightClicked(cell: BMCollectionViewCell, {withEvent
|
|
12059
|
+
cellWasRightClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): boolean | null | undefined;
|
|
12000
12060
|
|
|
12001
12061
|
|
|
12002
12062
|
/**
|
|
@@ -12006,23 +12066,21 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12006
12066
|
private _keyboardNavigationShortcuts: BMKeyboardShortcut[];
|
|
12007
12067
|
|
|
12008
12068
|
/**
|
|
12009
|
-
* @protected
|
|
12010
12069
|
* Configures the keyboard shortcuts used by the collection view for highlighting.
|
|
12011
12070
|
* Subclasses overriding this may invoke the superclass implementation to retain the default keyboard
|
|
12012
12071
|
* shortcuts.
|
|
12013
12072
|
*
|
|
12014
12073
|
*/
|
|
12015
|
-
configureKeyboardShortcuts(): void;
|
|
12074
|
+
protected configureKeyboardShortcuts(): void;
|
|
12016
12075
|
|
|
12017
12076
|
|
|
12018
12077
|
/**
|
|
12019
|
-
* @protected
|
|
12020
12078
|
* Removes the keyboard shortcuts used by the collection view for highlighting.
|
|
12021
12079
|
* Subclasses overriding this should invoke the superclass implementation to remove the default keyboard
|
|
12022
12080
|
* shortcuts.
|
|
12023
12081
|
*
|
|
12024
12082
|
*/
|
|
12025
|
-
disableKeyboardShortcuts(): void;
|
|
12083
|
+
protected disableKeyboardShortcuts(): void;
|
|
12026
12084
|
|
|
12027
12085
|
|
|
12028
12086
|
/**
|
|
@@ -12048,7 +12106,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12048
12106
|
* @param withEvent The event that triggered this action, if any.
|
|
12049
12107
|
*
|
|
12050
12108
|
*/
|
|
12051
|
-
private _highlightIndexPath(indexPath: BMIndexPath, {withEvent
|
|
12109
|
+
private _highlightIndexPath(indexPath: BMIndexPath, {withEvent}?: {withEvent?: UIEvent | null | undefined}): void;
|
|
12052
12110
|
|
|
12053
12111
|
|
|
12054
12112
|
/**
|
|
@@ -12067,7 +12125,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12067
12125
|
* @param withEvent The event that triggerred this action.
|
|
12068
12126
|
*
|
|
12069
12127
|
*/
|
|
12070
|
-
keyboardArrowPressed(arrow: string, {withEvent
|
|
12128
|
+
keyboardArrowPressed(arrow: string, {withEvent}: {withEvent: KeyboardEvent}): void;
|
|
12071
12129
|
|
|
12072
12130
|
|
|
12073
12131
|
/**
|
|
@@ -12125,7 +12183,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12125
12183
|
* @param completionHandler An optional handler to execute when the animated layout change completes.
|
|
12126
12184
|
*
|
|
12127
12185
|
*/
|
|
12128
|
-
setLayout(layout: BMCollectionViewLayout, {animated
|
|
12186
|
+
setLayout(layout: BMCollectionViewLayout, {animated, completionHandler}?: {animated?: boolean | null | undefined, completionHandler?: (() => void) | null | undefined}): void;
|
|
12129
12187
|
|
|
12130
12188
|
|
|
12131
12189
|
/**
|
|
@@ -12207,7 +12265,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12207
12265
|
* @return A promise that resolves when this update completes, after any associated animation finishes.
|
|
12208
12266
|
*
|
|
12209
12267
|
*/
|
|
12210
|
-
updateEntireDataAnimated(animated?: boolean | null | undefined, {updateLayout
|
|
12268
|
+
updateEntireDataAnimated(animated?: boolean | null | undefined, {updateLayout, completionHandler}?: {updateLayout?: boolean | null | undefined, completionHandler?: (() => void) | null | undefined}): Promise<void>;
|
|
12211
12269
|
|
|
12212
12270
|
|
|
12213
12271
|
/**
|
|
@@ -12225,7 +12283,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12225
12283
|
* @return A promise that resolves when this operation completes.
|
|
12226
12284
|
*
|
|
12227
12285
|
*/
|
|
12228
|
-
scrollToCellAtIndexPath(indexPath: BMIndexPath<T>, {withVerticalGravity
|
|
12286
|
+
scrollToCellAtIndexPath(indexPath: BMIndexPath<T>, {withVerticalGravity, horizontalGravity, animated}?: {withVerticalGravity?: BMCollectionViewScrollingGravityVertical | null | undefined, horizontalGravity?: BMCollectionViewScrollingGravityHorizontal | null | undefined, animated?: boolean | null | undefined}): Promise<undefined>;
|
|
12229
12287
|
|
|
12230
12288
|
|
|
12231
12289
|
/**
|
|
@@ -12244,7 +12302,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12244
12302
|
* @return A promise that resolves when this operation completes.
|
|
12245
12303
|
*
|
|
12246
12304
|
*/
|
|
12247
|
-
scrollToSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
12305
|
+
scrollToSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, verticalGravity, horizontalGravity, animated}: {atIndexPath: BMIndexPath<T>, verticalGravity?: BMCollectionViewScrollingGravityVertical | null | undefined, horizontalGravity?: BMCollectionViewScrollingGravityHorizontal | null | undefined, animated?: boolean | null | undefined}): Promise<undefined>;
|
|
12248
12306
|
|
|
12249
12307
|
|
|
12250
12308
|
/**
|
|
@@ -12258,7 +12316,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12258
12316
|
* @return A promise that resolves when this operation completes.
|
|
12259
12317
|
*
|
|
12260
12318
|
*/
|
|
12261
|
-
scrollToRect(rect: BMRect, {withVerticalGravity
|
|
12319
|
+
scrollToRect(rect: BMRect, {withVerticalGravity, horizontalGravity, animated}: {withVerticalGravity: BMCollectionViewScrollingGravityVertical, horizontalGravity: BMCollectionViewScrollingGravityHorizontal, animated?: boolean | null | undefined}): Promise<undefined>;
|
|
12262
12320
|
|
|
12263
12321
|
|
|
12264
12322
|
/**
|
|
@@ -12379,7 +12437,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12379
12437
|
* @return A collection view.
|
|
12380
12438
|
*
|
|
12381
12439
|
*/
|
|
12382
|
-
static collectionViewForNode (node: DOMNode, {customScroll
|
|
12440
|
+
static collectionViewForNode (node: DOMNode, {customScroll}?: {customScroll?: boolean | null | undefined}): BMCollectionView;
|
|
12383
12441
|
|
|
12384
12442
|
|
|
12385
12443
|
/**
|
|
@@ -12406,7 +12464,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12406
12464
|
* @return A collection view.
|
|
12407
12465
|
*
|
|
12408
12466
|
*/
|
|
12409
|
-
declare function BMCollectionViewMakeWithContainer(container: BMJQueryShim, {customScroll
|
|
12467
|
+
declare function BMCollectionViewMakeWithContainer(container: BMJQueryShim, {customScroll}?: {customScroll?: boolean | null | undefined}): BMCollectionView;
|
|
12410
12468
|
|
|
12411
12469
|
|
|
12412
12470
|
|
|
@@ -12445,7 +12503,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12445
12503
|
* @return The complete index path.
|
|
12446
12504
|
*
|
|
12447
12505
|
*/
|
|
12448
|
-
indexPathForObjectAtRow(row: Int, {inSectionAtIndex
|
|
12506
|
+
indexPathForObjectAtRow(row: Int, {inSectionAtIndex}: {inSectionAtIndex: Int}): BMIndexPath<T>;
|
|
12449
12507
|
|
|
12450
12508
|
|
|
12451
12509
|
/**
|
|
@@ -12501,7 +12559,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12501
12559
|
* @return The cell.
|
|
12502
12560
|
*
|
|
12503
12561
|
*/
|
|
12504
|
-
cellForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
12562
|
+
cellForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): BMCollectionViewCell;
|
|
12505
12563
|
|
|
12506
12564
|
|
|
12507
12565
|
/**
|
|
@@ -12514,7 +12572,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12514
12572
|
* @param atIndexPath The indexPath to the model object this cell represents.
|
|
12515
12573
|
*
|
|
12516
12574
|
*/
|
|
12517
|
-
updateCell?(cell: BMCollectionViewCell, {atIndexPath
|
|
12575
|
+
updateCell?(cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): void;
|
|
12518
12576
|
|
|
12519
12577
|
|
|
12520
12578
|
/**
|
|
@@ -12528,7 +12586,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12528
12586
|
* @param atIndexPath The indexPath to the model object this supplementary view represents.
|
|
12529
12587
|
*
|
|
12530
12588
|
*/
|
|
12531
|
-
updateSupplementaryView?(view: BMCollectionViewCell, {withIdentifier
|
|
12589
|
+
updateSupplementaryView?(view: BMCollectionViewCell, {withIdentifier, atIndexPath}: {withIdentifier: string, atIndexPath: BMIndexPath<T>}): void;
|
|
12532
12590
|
|
|
12533
12591
|
|
|
12534
12592
|
/**
|
|
@@ -12564,7 +12622,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12564
12622
|
* @return `YES` if the data set has performed the requested change, `NO` otherwise.
|
|
12565
12623
|
*
|
|
12566
12624
|
*/
|
|
12567
|
-
moveItemFromIndexPath?(indexPath: BMIndexPath<T>, {toIndexPath
|
|
12625
|
+
moveItemFromIndexPath?(indexPath: BMIndexPath<T>, {toIndexPath}: {toIndexPath: BMIndexPath<T>}): boolean;
|
|
12568
12626
|
|
|
12569
12627
|
|
|
12570
12628
|
/**
|
|
@@ -12585,7 +12643,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12585
12643
|
* collection view.
|
|
12586
12644
|
*
|
|
12587
12645
|
*/
|
|
12588
|
-
moveItemsFromIndexPaths?(indexPaths: BMIndexPath<T>[], {toIndexPath
|
|
12646
|
+
moveItemsFromIndexPaths?(indexPaths: BMIndexPath<T>[], {toIndexPath}: {toIndexPath: BMIndexPath<T>}): BMIndexPath<T>[];
|
|
12589
12647
|
|
|
12590
12648
|
|
|
12591
12649
|
/**
|
|
@@ -12611,7 +12669,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12611
12669
|
* @param toIndexPath The starting index path to which the items should be inserted.
|
|
12612
12670
|
*
|
|
12613
12671
|
*/
|
|
12614
|
-
insertItems?(items: any[], {toIndexPath
|
|
12672
|
+
insertItems?(items: any[], {toIndexPath}: {toIndexPath: BMIndexPath<T>}): void;
|
|
12615
12673
|
|
|
12616
12674
|
}
|
|
12617
12675
|
|
|
@@ -12643,7 +12701,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12643
12701
|
* @param fromBounds The previous bounds.
|
|
12644
12702
|
*
|
|
12645
12703
|
*/
|
|
12646
|
-
collectionViewBoundsDidChange?(collectionView: BMCollectionView, newBounds: BMRect, {fromBounds
|
|
12704
|
+
collectionViewBoundsDidChange?(collectionView: BMCollectionView, newBounds: BMRect, {fromBounds}: {fromBounds: BMRect}): void;
|
|
12647
12705
|
|
|
12648
12706
|
|
|
12649
12707
|
/**
|
|
@@ -12759,7 +12817,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12759
12817
|
* @param withEvent The keyboard event that triggered this action.
|
|
12760
12818
|
*
|
|
12761
12819
|
*/
|
|
12762
|
-
collectionViewShouldHighlightCellForArrowKey?(collectionView: BMCollectionView, key: string, {withEvent
|
|
12820
|
+
collectionViewShouldHighlightCellForArrowKey?(collectionView: BMCollectionView, key: string, {withEvent}: {withEvent: KeyboardEvent}): void;
|
|
12763
12821
|
|
|
12764
12822
|
|
|
12765
12823
|
/**
|
|
@@ -12773,7 +12831,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12773
12831
|
* @return `YES` if the cell can be highlighted, `NO` otherwise.
|
|
12774
12832
|
*
|
|
12775
12833
|
*/
|
|
12776
|
-
collectionViewCanHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath?: BMIndexPath | null | undefined, {withEvent
|
|
12834
|
+
collectionViewCanHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath?: BMIndexPath | null | undefined, {withEvent}?: {withEvent?: Event | null | undefined}): boolean;
|
|
12777
12835
|
|
|
12778
12836
|
|
|
12779
12837
|
/**
|
|
@@ -12784,7 +12842,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12784
12842
|
* for which the cell was highlighted.
|
|
12785
12843
|
*
|
|
12786
12844
|
*/
|
|
12787
|
-
collectionViewDidHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent
|
|
12845
|
+
collectionViewDidHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent}?: {withEvent?: Event | null | undefined}): void;
|
|
12788
12846
|
|
|
12789
12847
|
|
|
12790
12848
|
/**
|
|
@@ -12795,7 +12853,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12795
12853
|
* for which the cell was dehighlighted.
|
|
12796
12854
|
*
|
|
12797
12855
|
*/
|
|
12798
|
-
collectionViewDidDehighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent
|
|
12856
|
+
collectionViewDidDehighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent}?: {withEvent?: Event | null | undefined}): void;
|
|
12799
12857
|
|
|
12800
12858
|
|
|
12801
12859
|
/**
|
|
@@ -12839,7 +12897,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12839
12897
|
* @return The Velocity.js animation options object to use.
|
|
12840
12898
|
*
|
|
12841
12899
|
*/
|
|
12842
|
-
collectionViewAnimationOptionsForLayoutChangeFromLayout?(collectionView: BMCollectionView, fromLayout: BMCollectionViewLayout, {toLayout
|
|
12900
|
+
collectionViewAnimationOptionsForLayoutChangeFromLayout?(collectionView: BMCollectionView, fromLayout: BMCollectionViewLayout, {toLayout}: {toLayout: BMCollectionViewLayout}): any;
|
|
12843
12901
|
|
|
12844
12902
|
|
|
12845
12903
|
/**
|
|
@@ -12854,7 +12912,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12854
12912
|
* @return Defaults to NO. If set to YES the collection view will track double clicks for this event.
|
|
12855
12913
|
*
|
|
12856
12914
|
*/
|
|
12857
|
-
collectionViewCanDoubleClickCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12915
|
+
collectionViewCanDoubleClickCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12858
12916
|
|
|
12859
12917
|
|
|
12860
12918
|
/**
|
|
@@ -12869,7 +12927,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12869
12927
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12870
12928
|
*
|
|
12871
12929
|
*/
|
|
12872
|
-
collectionViewCellWasClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12930
|
+
collectionViewCellWasClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12873
12931
|
|
|
12874
12932
|
|
|
12875
12933
|
/**
|
|
@@ -12883,7 +12941,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12883
12941
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12884
12942
|
*
|
|
12885
12943
|
*/
|
|
12886
|
-
collectionViewCellWasDoubleClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12944
|
+
collectionViewCellWasDoubleClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12887
12945
|
|
|
12888
12946
|
|
|
12889
12947
|
/**
|
|
@@ -12897,7 +12955,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12897
12955
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12898
12956
|
*
|
|
12899
12957
|
*/
|
|
12900
|
-
collectionViewCellWasLongClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12958
|
+
collectionViewCellWasLongClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12901
12959
|
|
|
12902
12960
|
|
|
12903
12961
|
/**
|
|
@@ -12912,7 +12970,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12912
12970
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12913
12971
|
*
|
|
12914
12972
|
*/
|
|
12915
|
-
collectionViewCellWasRightClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12973
|
+
collectionViewCellWasRightClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12916
12974
|
|
|
12917
12975
|
|
|
12918
12976
|
/**
|
|
@@ -12924,7 +12982,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12924
12982
|
* @param toSize The new size that will be assigned to the cell.
|
|
12925
12983
|
*
|
|
12926
12984
|
*/
|
|
12927
|
-
collectionViewWillResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize
|
|
12985
|
+
collectionViewWillResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize}: {toSize: BMSize}): void;
|
|
12928
12986
|
|
|
12929
12987
|
|
|
12930
12988
|
/**
|
|
@@ -12936,7 +12994,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12936
12994
|
* @param toSize The new size that was assigned to the cell.
|
|
12937
12995
|
*
|
|
12938
12996
|
*/
|
|
12939
|
-
collectionViewDidResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize
|
|
12997
|
+
collectionViewDidResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize}: {toSize: BMSize}): void;
|
|
12940
12998
|
|
|
12941
12999
|
|
|
12942
13000
|
/**
|
|
@@ -12950,7 +13008,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12950
13008
|
* @param atIndexPath The cell's index path.
|
|
12951
13009
|
*
|
|
12952
13010
|
*/
|
|
12953
|
-
collectionViewCanMoveCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
13011
|
+
collectionViewCanMoveCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
12954
13012
|
|
|
12955
13013
|
|
|
12956
13014
|
/**
|
|
@@ -12961,7 +13019,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12961
13019
|
* @param atIndexPath The cell's current index path.
|
|
12962
13020
|
*
|
|
12963
13021
|
*/
|
|
12964
|
-
collectionViewWillBeginInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
13022
|
+
collectionViewWillBeginInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
12965
13023
|
|
|
12966
13024
|
|
|
12967
13025
|
/**
|
|
@@ -13033,7 +13091,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
13033
13091
|
* @param atIndexPath The cell's new index path.
|
|
13034
13092
|
*
|
|
13035
13093
|
*/
|
|
13036
|
-
collectionViewWillFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
13094
|
+
collectionViewWillFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
13037
13095
|
|
|
13038
13096
|
|
|
13039
13097
|
/**
|
|
@@ -13045,7 +13103,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
13045
13103
|
* @param atIndexPath The cell's new index path.
|
|
13046
13104
|
*
|
|
13047
13105
|
*/
|
|
13048
|
-
collectionViewDidFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
13106
|
+
collectionViewDidFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
13049
13107
|
|
|
13050
13108
|
}
|
|
13051
13109
|
|
|
@@ -13066,7 +13124,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13066
13124
|
* @return The cell attributes to use.
|
|
13067
13125
|
*
|
|
13068
13126
|
*/
|
|
13069
|
-
collectionViewInitialAttributesForPresentedCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes
|
|
13127
|
+
collectionViewInitialAttributesForPresentedCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13070
13128
|
|
|
13071
13129
|
|
|
13072
13130
|
/**
|
|
@@ -13079,7 +13137,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13079
13137
|
* @return The cell attributes to use.
|
|
13080
13138
|
*
|
|
13081
13139
|
*/
|
|
13082
|
-
collectionViewInitialAttributesForPresentedSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath
|
|
13140
|
+
collectionViewInitialAttributesForPresentedSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13083
13141
|
|
|
13084
13142
|
|
|
13085
13143
|
/**
|
|
@@ -13091,7 +13149,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13091
13149
|
* @return The cell attributes to use.
|
|
13092
13150
|
*
|
|
13093
13151
|
*/
|
|
13094
|
-
collectionViewInitialAttributesForAppearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes
|
|
13152
|
+
collectionViewInitialAttributesForAppearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13095
13153
|
|
|
13096
13154
|
|
|
13097
13155
|
/**
|
|
@@ -13104,7 +13162,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13104
13162
|
* @return The cell attributes to use.
|
|
13105
13163
|
*
|
|
13106
13164
|
*/
|
|
13107
|
-
collectionViewInitialAttributesForAppearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath
|
|
13165
|
+
collectionViewInitialAttributesForAppearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13108
13166
|
|
|
13109
13167
|
|
|
13110
13168
|
/**
|
|
@@ -13116,7 +13174,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13116
13174
|
* @return The cell attributes to use.
|
|
13117
13175
|
*
|
|
13118
13176
|
*/
|
|
13119
|
-
collectionViewFinalAttributesForDisappearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes
|
|
13177
|
+
collectionViewFinalAttributesForDisappearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13120
13178
|
|
|
13121
13179
|
|
|
13122
13180
|
/**
|
|
@@ -13129,7 +13187,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13129
13187
|
* @return The cell attributes to use.
|
|
13130
13188
|
*
|
|
13131
13189
|
*/
|
|
13132
|
-
collectionViewFinalAttributesForDisappearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath
|
|
13190
|
+
collectionViewFinalAttributesForDisappearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13133
13191
|
|
|
13134
13192
|
}
|
|
13135
13193
|
|
|
@@ -13193,7 +13251,7 @@ declare interface BMCollectionViewDelegateMasonryLayout extends BMCollectionView
|
|
|
13193
13251
|
* @return The cell's height.
|
|
13194
13252
|
*
|
|
13195
13253
|
*/
|
|
13196
|
-
collectionViewHeightForCellAtIndexPath(collectionView: BMCollectionView, indexPath: BMIndexPath, {forColumnWidth
|
|
13254
|
+
collectionViewHeightForCellAtIndexPath(collectionView: BMCollectionView, indexPath: BMIndexPath, {forColumnWidth}: {forColumnWidth: number}): number;
|
|
13197
13255
|
|
|
13198
13256
|
}
|
|
13199
13257
|
|
|
@@ -13213,7 +13271,7 @@ declare class BMWindowOverlay extends BMView {
|
|
|
13213
13271
|
* @return This window overlay.
|
|
13214
13272
|
*
|
|
13215
13273
|
*/
|
|
13216
|
-
initWithWindow(window: BMWindow, {modal
|
|
13274
|
+
initWithWindow(window: BMWindow, {modal}?: {modal?: boolean | null | undefined}): BMWindowOverlay;
|
|
13217
13275
|
|
|
13218
13276
|
|
|
13219
13277
|
/**
|
|
@@ -13337,25 +13395,22 @@ declare class BMWindow extends BMView {
|
|
|
13337
13395
|
readonly contentView: BMView;
|
|
13338
13396
|
|
|
13339
13397
|
/**
|
|
13340
|
-
* @protected
|
|
13341
13398
|
* The priority to use when setting up frame position constraints.
|
|
13342
13399
|
*
|
|
13343
13400
|
*/
|
|
13344
|
-
readonly framePositionPriority: number;
|
|
13401
|
+
protected readonly framePositionPriority: number;
|
|
13345
13402
|
|
|
13346
13403
|
/**
|
|
13347
|
-
* @protected
|
|
13348
13404
|
* The priority to use when setting up frame size constraints.
|
|
13349
13405
|
*
|
|
13350
13406
|
*/
|
|
13351
|
-
readonly frameSizePriority: number;
|
|
13407
|
+
protected readonly frameSizePriority: number;
|
|
13352
13408
|
|
|
13353
13409
|
/**
|
|
13354
|
-
* @protected
|
|
13355
13410
|
* The source anchor point to use when setting up the horizontal position constraint.
|
|
13356
13411
|
*
|
|
13357
13412
|
*/
|
|
13358
|
-
readonly frameHorizontalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13413
|
+
protected readonly frameHorizontalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13359
13414
|
|
|
13360
13415
|
/**
|
|
13361
13416
|
* Returns the name of the horizontal anchor from which the horizontal position constraint will be created.
|
|
@@ -13364,11 +13419,10 @@ declare class BMWindow extends BMView {
|
|
|
13364
13419
|
readonly _frameHorizontalAnchorName: string;
|
|
13365
13420
|
|
|
13366
13421
|
/**
|
|
13367
|
-
* @protected
|
|
13368
13422
|
* The source anchor point to use when setting up the vertical position constraint.
|
|
13369
13423
|
*
|
|
13370
13424
|
*/
|
|
13371
|
-
readonly frameVerticalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13425
|
+
protected readonly frameVerticalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13372
13426
|
|
|
13373
13427
|
/**
|
|
13374
13428
|
* Returns the name of the vertical anchor from which the vertical position constraint will be created.
|
|
@@ -13490,7 +13544,7 @@ declare class BMWindow extends BMView {
|
|
|
13490
13544
|
* @return This window.
|
|
13491
13545
|
*
|
|
13492
13546
|
*/
|
|
13493
|
-
initWithFrame(frame: BMRect, {toolbar
|
|
13547
|
+
initWithFrame(frame: BMRect, {toolbar, modal}?: {toolbar?: boolean | null | undefined, modal?: boolean | null | undefined}): BMWindow;
|
|
13494
13548
|
|
|
13495
13549
|
|
|
13496
13550
|
/**
|
|
@@ -13507,7 +13561,7 @@ declare class BMWindow extends BMView {
|
|
|
13507
13561
|
* is outside of this window, this window will acquire keyboard focus.
|
|
13508
13562
|
*
|
|
13509
13563
|
*/
|
|
13510
|
-
|
|
13564
|
+
protected _enableKeyboardShortcuts(): void;
|
|
13511
13565
|
|
|
13512
13566
|
|
|
13513
13567
|
/**
|
|
@@ -13516,11 +13570,10 @@ declare class BMWindow extends BMView {
|
|
|
13516
13570
|
* @param completionHandler If specified, this handler will be invoked when the operation completes.
|
|
13517
13571
|
*
|
|
13518
13572
|
*/
|
|
13519
|
-
toggleAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13573
|
+
toggleAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13520
13574
|
|
|
13521
13575
|
|
|
13522
13576
|
/**
|
|
13523
|
-
* @protected
|
|
13524
13577
|
* This method is invoked during `bringToFrontAnimated()` to run the animations that will make this window visible.
|
|
13525
13578
|
* Subclasses can override this method to perform custom animations.
|
|
13526
13579
|
*
|
|
@@ -13528,7 +13581,7 @@ declare class BMWindow extends BMView {
|
|
|
13528
13581
|
* @param completionHandler A method that custom implementations must invoke when the animation completes.
|
|
13529
13582
|
*
|
|
13530
13583
|
*/
|
|
13531
|
-
animateInWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13584
|
+
protected animateInWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13532
13585
|
|
|
13533
13586
|
|
|
13534
13587
|
/**
|
|
@@ -13541,11 +13594,10 @@ declare class BMWindow extends BMView {
|
|
|
13541
13594
|
* @param completionHandler A handler that will be invoked after this window has been made visible.
|
|
13542
13595
|
*
|
|
13543
13596
|
*/
|
|
13544
|
-
bringToFrontAnimated(animated?: boolean | null | undefined, {fromRect
|
|
13597
|
+
bringToFrontAnimated(animated?: boolean | null | undefined, {fromRect, fromNode, completionHandler}?: {fromRect?: BMRect | null | undefined, fromNode?: DOMNode | null | undefined, completionHandler?: (() => void) | null | undefined}): void;
|
|
13545
13598
|
|
|
13546
13599
|
|
|
13547
13600
|
/**
|
|
13548
|
-
* @protected
|
|
13549
13601
|
* This method is invoked during `dismissAnimated()` to run the animations that will make this window hidden.
|
|
13550
13602
|
* Subclasses can override this method to perform custom animations.
|
|
13551
13603
|
*
|
|
@@ -13553,7 +13605,7 @@ declare class BMWindow extends BMView {
|
|
|
13553
13605
|
* @param completionHandler A method that custom implementations must invoke when the animation completes.
|
|
13554
13606
|
*
|
|
13555
13607
|
*/
|
|
13556
|
-
animateOutWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13608
|
+
protected animateOutWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13557
13609
|
|
|
13558
13610
|
|
|
13559
13611
|
/**
|
|
@@ -13567,7 +13619,7 @@ declare class BMWindow extends BMView {
|
|
|
13567
13619
|
* @param completionHandler A handler that will be invoked after this window has been hidden.
|
|
13568
13620
|
*
|
|
13569
13621
|
*/
|
|
13570
|
-
dismissAnimated(animated?: boolean | null | undefined, {toRect
|
|
13622
|
+
dismissAnimated(animated?: boolean | null | undefined, {toRect, toNode, completionHandler}?: {toRect?: BMRect | null | undefined, toNode?: DOMNode | null | undefined, completionHandler?: (() => void) | null | undefined}): void;
|
|
13571
13623
|
|
|
13572
13624
|
|
|
13573
13625
|
/**
|
|
@@ -13586,7 +13638,7 @@ declare class BMWindow extends BMView {
|
|
|
13586
13638
|
* @param completionHandler A handler that will be invoked after this window has been minimized.
|
|
13587
13639
|
*
|
|
13588
13640
|
*/
|
|
13589
|
-
minimizeAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13641
|
+
minimizeAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13590
13642
|
|
|
13591
13643
|
|
|
13592
13644
|
/**
|
|
@@ -13597,7 +13649,7 @@ declare class BMWindow extends BMView {
|
|
|
13597
13649
|
* @param completionHandler A handler that will be invoked after this window has been minimized.
|
|
13598
13650
|
*
|
|
13599
13651
|
*/
|
|
13600
|
-
restoreAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13652
|
+
restoreAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13601
13653
|
|
|
13602
13654
|
|
|
13603
13655
|
/**
|
|
@@ -13606,7 +13658,7 @@ declare class BMWindow extends BMView {
|
|
|
13606
13658
|
* @param completionHandler A handler that will be invoked after this window has been hidden.
|
|
13607
13659
|
*
|
|
13608
13660
|
*/
|
|
13609
|
-
enterFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13661
|
+
enterFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13610
13662
|
|
|
13611
13663
|
|
|
13612
13664
|
/**
|
|
@@ -13615,7 +13667,7 @@ declare class BMWindow extends BMView {
|
|
|
13615
13667
|
* @param completionHandler A handler that will be invoked after this window has been hidden.
|
|
13616
13668
|
*
|
|
13617
13669
|
*/
|
|
13618
|
-
exitFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13670
|
+
exitFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13619
13671
|
|
|
13620
13672
|
|
|
13621
13673
|
/**
|
|
@@ -13673,7 +13725,7 @@ declare class BMWindow extends BMView {
|
|
|
13673
13725
|
* @return A window.
|
|
13674
13726
|
*
|
|
13675
13727
|
*/
|
|
13676
|
-
declare function BMWindowMakeWithFrame(frame: BMRect, {toolbar
|
|
13728
|
+
declare function BMWindowMakeWithFrame(frame: BMRect, {toolbar, modal}?: {toolbar?: boolean | null | undefined, modal?: boolean | null | undefined}): BMWindow;
|
|
13677
13729
|
|
|
13678
13730
|
|
|
13679
13731
|
|
|
@@ -13704,7 +13756,7 @@ declare class BMToolWindow extends BMWindow {
|
|
|
13704
13756
|
* @return This tool window.
|
|
13705
13757
|
*
|
|
13706
13758
|
*/
|
|
13707
|
-
initWithFrame(frame: BMRect, {forWindow
|
|
13759
|
+
initWithFrame(frame: BMRect, {forWindow}: {forWindow: BMWindow}): BMToolWindow;
|
|
13708
13760
|
|
|
13709
13761
|
|
|
13710
13762
|
/**
|
|
@@ -13714,7 +13766,7 @@ declare class BMToolWindow extends BMWindow {
|
|
|
13714
13766
|
* @return This tool window.
|
|
13715
13767
|
*
|
|
13716
13768
|
*/
|
|
13717
|
-
static toolWindowWithFrame (frame: BMRect, {forWindow
|
|
13769
|
+
static toolWindowWithFrame (frame: BMRect, {forWindow}: {forWindow: BMWindow}): BMToolWindow;
|
|
13718
13770
|
|
|
13719
13771
|
}
|
|
13720
13772
|
|
|
@@ -14199,7 +14251,7 @@ declare class BMPopover extends BMWindow {
|
|
|
14199
14251
|
* @return The SVG path.
|
|
14200
14252
|
*
|
|
14201
14253
|
*/
|
|
14202
|
-
private _pathForPopoverWithFrame(frame: BMRect, {indicatorSize
|
|
14254
|
+
private _pathForPopoverWithFrame(frame: BMRect, {indicatorSize, radius, inset, position, direction}?: {indicatorSize?: number | null | undefined, radius?: number | null | undefined, inset?: number | null | undefined, position?: number | null | undefined, direction?: BMPopoverIndicatorDirection | null | undefined}): string;
|
|
14203
14255
|
|
|
14204
14256
|
|
|
14205
14257
|
/**
|
|
@@ -14319,7 +14371,7 @@ declare class BMAlertPopup extends BMWindow {
|
|
|
14319
14371
|
* @return This alert popup.
|
|
14320
14372
|
*
|
|
14321
14373
|
*/
|
|
14322
|
-
initWithTitle(title: string, {text
|
|
14374
|
+
initWithTitle(title: string, {text, actionText}: {text: string, actionText?: string | null | undefined}): BMAlertPopup;
|
|
14323
14375
|
|
|
14324
14376
|
|
|
14325
14377
|
/**
|
|
@@ -14355,7 +14407,7 @@ declare class BMAlertPopup extends BMWindow {
|
|
|
14355
14407
|
* @return An alert popup.
|
|
14356
14408
|
*
|
|
14357
14409
|
*/
|
|
14358
|
-
static alertPopupWithTitle (title: string, {text
|
|
14410
|
+
static alertPopupWithTitle (title: string, {text, actionText}: {text: string, actionText?: string | null | undefined}): BMAlertPopup;
|
|
14359
14411
|
|
|
14360
14412
|
}
|
|
14361
14413
|
|
|
@@ -14393,7 +14445,7 @@ declare class BMConfirmationPopup extends BMAlertPopup {
|
|
|
14393
14445
|
* @return This confirmation popup.
|
|
14394
14446
|
*
|
|
14395
14447
|
*/
|
|
14396
|
-
initWithTitle(title: string, {text
|
|
14448
|
+
initWithTitle(title: string, {text, positiveActionText, negativeActionText}: {text: string, positiveActionText: string, negativeActionText: string}): BMConfirmationPopup;
|
|
14397
14449
|
|
|
14398
14450
|
|
|
14399
14451
|
/**
|
|
@@ -14421,7 +14473,7 @@ declare class BMConfirmationPopup extends BMAlertPopup {
|
|
|
14421
14473
|
* @return A confirmation popup.
|
|
14422
14474
|
*
|
|
14423
14475
|
*/
|
|
14424
|
-
static confirmationPopupWithTitle (title: string, {text
|
|
14476
|
+
static confirmationPopupWithTitle (title: string, {text, positiveActionText, negativeActionText}: {text: string, positiveActionText: string, negativeActionText: string}): BMConfirmationPopup;
|
|
14425
14477
|
|
|
14426
14478
|
}
|
|
14427
14479
|
|
|
@@ -14522,7 +14574,7 @@ declare class BMKeyboardShortcut {
|
|
|
14522
14574
|
* @return This keyboard shortcut.
|
|
14523
14575
|
*
|
|
14524
14576
|
*/
|
|
14525
|
-
initWithKeyCode(key: string, {modifiers
|
|
14577
|
+
initWithKeyCode(key: string, {modifiers, target, action, preventsDefault}: {modifiers?: BMKeyboardShortcutModifier[] | null | undefined, target: any, action: string, preventsDefault?: boolean | null | undefined}): BMKeyboardShortcut;
|
|
14526
14578
|
|
|
14527
14579
|
|
|
14528
14580
|
/**
|
|
@@ -14536,7 +14588,7 @@ declare class BMKeyboardShortcut {
|
|
|
14536
14588
|
*
|
|
14537
14589
|
*
|
|
14538
14590
|
*/
|
|
14539
|
-
initWithKeyboardEvent(event: KeyboardEvent, {target
|
|
14591
|
+
initWithKeyboardEvent(event: KeyboardEvent, {target, action, preventsDefault}: {target: any, action: string, preventsDefault?: boolean | null | undefined}): void;
|
|
14540
14592
|
|
|
14541
14593
|
|
|
14542
14594
|
/**
|
|
@@ -14548,7 +14600,7 @@ declare class BMKeyboardShortcut {
|
|
|
14548
14600
|
* @return This keyboard shortcut.
|
|
14549
14601
|
*
|
|
14550
14602
|
*/
|
|
14551
|
-
initWithSerializedKeyboardShortcut(shortcut: any, {targetID
|
|
14603
|
+
initWithSerializedKeyboardShortcut(shortcut: any, {targetID}: {targetID: (($0: string) => any)}): any;
|
|
14552
14604
|
|
|
14553
14605
|
|
|
14554
14606
|
/**
|
|
@@ -14578,7 +14630,7 @@ declare class BMKeyboardShortcut {
|
|
|
14578
14630
|
* @return A keyboard shortcut.
|
|
14579
14631
|
*
|
|
14580
14632
|
*/
|
|
14581
|
-
static keyboardShortcutWithKeyCode (key: string, {modifiers
|
|
14633
|
+
static keyboardShortcutWithKeyCode (key: string, {modifiers, target, action, preventsDefault}: {modifiers?: BMKeyboardShortcutModifier[] | null | undefined, target: any, action: string, preventsDefault?: boolean | null | undefined}): BMKeyboardShortcut;
|
|
14582
14634
|
|
|
14583
14635
|
|
|
14584
14636
|
/**
|
|
@@ -14592,7 +14644,7 @@ declare class BMKeyboardShortcut {
|
|
|
14592
14644
|
*
|
|
14593
14645
|
*
|
|
14594
14646
|
*/
|
|
14595
|
-
static keyboardShortcutWithKeyboardEvent (event: KeyboardEvent, {target
|
|
14647
|
+
static keyboardShortcutWithKeyboardEvent (event: KeyboardEvent, {target, action, preventsDefault}: {target: any, action: string, preventsDefault?: boolean | null | undefined}): void;
|
|
14596
14648
|
|
|
14597
14649
|
|
|
14598
14650
|
/**
|
|
@@ -14604,7 +14656,7 @@ declare class BMKeyboardShortcut {
|
|
|
14604
14656
|
* @return A keyboard shortcut.
|
|
14605
14657
|
*
|
|
14606
14658
|
*/
|
|
14607
|
-
static keyboardShortcutWithSerializedKeyboardShortcut (shortcut: any, {targetID
|
|
14659
|
+
static keyboardShortcutWithSerializedKeyboardShortcut (shortcut: any, {targetID}: {targetID: (($0: string) => any)}): any;
|
|
14608
14660
|
|
|
14609
14661
|
}
|
|
14610
14662
|
|
|
@@ -14667,7 +14719,7 @@ declare class BMCodeEditor {
|
|
|
14667
14719
|
* @return This code editor.
|
|
14668
14720
|
*
|
|
14669
14721
|
*/
|
|
14670
|
-
initWithContainer(container: DOMNode, {code
|
|
14722
|
+
initWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeEditor;
|
|
14671
14723
|
|
|
14672
14724
|
|
|
14673
14725
|
/**
|
|
@@ -14719,7 +14771,7 @@ declare class BMCodeEditor {
|
|
|
14719
14771
|
* be needed for the environment.
|
|
14720
14772
|
*
|
|
14721
14773
|
*/
|
|
14722
|
-
setBuiltinES6Library(ES6Library: string, {jQueryLibrary
|
|
14774
|
+
setBuiltinES6Library(ES6Library: string, {jQueryLibrary, additionalLibraries}: {jQueryLibrary: string, additionalLibraries?: string[] | null | undefined}): void;
|
|
14723
14775
|
|
|
14724
14776
|
|
|
14725
14777
|
/**
|
|
@@ -14744,7 +14796,7 @@ declare class BMCodeEditor {
|
|
|
14744
14796
|
* @param code The contents of the library.
|
|
14745
14797
|
*
|
|
14746
14798
|
*/
|
|
14747
|
-
addExternalLibraryNamed(name: string, {code
|
|
14799
|
+
addExternalLibraryNamed(name: string, {code}: {code: string}): void;
|
|
14748
14800
|
|
|
14749
14801
|
|
|
14750
14802
|
/**
|
|
@@ -14756,7 +14808,7 @@ declare class BMCodeEditor {
|
|
|
14756
14808
|
* @param code The contents of the library.
|
|
14757
14809
|
*
|
|
14758
14810
|
*/
|
|
14759
|
-
removeExternalLibraryNamed(name: string, {code
|
|
14811
|
+
removeExternalLibraryNamed(name: string, {code}: {code: string}): void;
|
|
14760
14812
|
|
|
14761
14813
|
|
|
14762
14814
|
/**
|
|
@@ -14841,7 +14893,7 @@ declare class BMCodeMirrorCodeEditor {
|
|
|
14841
14893
|
* @return This code editor.
|
|
14842
14894
|
*
|
|
14843
14895
|
*/
|
|
14844
|
-
initWithContainer(container: DOMNode, {code
|
|
14896
|
+
initWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeMirrorCodeEditor;
|
|
14845
14897
|
|
|
14846
14898
|
|
|
14847
14899
|
/**
|
|
@@ -14862,7 +14914,7 @@ declare class BMCodeMirrorCodeEditor {
|
|
|
14862
14914
|
* @return A code editor.
|
|
14863
14915
|
*
|
|
14864
14916
|
*/
|
|
14865
|
-
declare function BMCodeMirrorCodeEditorMakeWithContainer(container: DOMNode, {code
|
|
14917
|
+
declare function BMCodeMirrorCodeEditorMakeWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeMirrorCodeEditor;
|
|
14866
14918
|
|
|
14867
14919
|
|
|
14868
14920
|
|
|
@@ -14898,7 +14950,7 @@ declare class BMMonacoCodeEditor extends BMCodeEditor {
|
|
|
14898
14950
|
* @return This code editor.
|
|
14899
14951
|
*
|
|
14900
14952
|
*/
|
|
14901
|
-
initWithContainer(container: DOMNode, {code
|
|
14953
|
+
initWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMMonacoCodeEditor;
|
|
14902
14954
|
|
|
14903
14955
|
|
|
14904
14956
|
/**
|
|
@@ -14909,7 +14961,7 @@ declare class BMMonacoCodeEditor extends BMCodeEditor {
|
|
|
14909
14961
|
* be needed for the environment.
|
|
14910
14962
|
*
|
|
14911
14963
|
*/
|
|
14912
|
-
setBuiltinES6Library(ES6Library: string, {jQueryLibrary
|
|
14964
|
+
setBuiltinES6Library(ES6Library: string, {jQueryLibrary, additionalLibraries}: {jQueryLibrary: string, additionalLibraries?: string[] | null | undefined}): void;
|
|
14913
14965
|
|
|
14914
14966
|
|
|
14915
14967
|
/**
|
|
@@ -14946,5 +14998,5 @@ declare class BMMonacoCodeEditor extends BMCodeEditor {
|
|
|
14946
14998
|
* @return A code editor.
|
|
14947
14999
|
*
|
|
14948
15000
|
*/
|
|
14949
|
-
declare function BMMonacoCodeEditorMakeWithContainer(container: DOMNode, {code
|
|
15001
|
+
declare function BMMonacoCodeEditorMakeWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeMirrorCodeEditor;
|
|
14950
15002
|
|