bm-core-ui 2.9.2 → 2.9.3
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 +328 -309
- package/build/BMCollectionView/BMCollectionView.js +4 -4
- package/build/BMView/BMView_v2.5.js +4 -2
- package/build/BMWindow/BMWindow.js +1 -0
- package/build/Core/BMCoreUI.js +2 -2
- package/lib/@types/BMCoreUI.min.d.ts +330 -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
|
|
@@ -3423,7 +3451,7 @@ declare class BMViewConstraintAttribute {
|
|
|
3423
3451
|
* @return A layout constraint.
|
|
3424
3452
|
*
|
|
3425
3453
|
*/
|
|
3426
|
-
equalTo(attribute: BMViewConstraintAttribute, {times
|
|
3454
|
+
equalTo(attribute: BMViewConstraintAttribute, {times, plus, priority}?: {times?: number | null | undefined, plus?: number | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3427
3455
|
|
|
3428
3456
|
|
|
3429
3457
|
/**
|
|
@@ -3436,7 +3464,7 @@ declare class BMViewConstraintAttribute {
|
|
|
3436
3464
|
* @return A layout constraint.
|
|
3437
3465
|
*
|
|
3438
3466
|
*/
|
|
3439
|
-
lessThanOrEqualTo(attribute: BMViewConstraintAttribute, {times
|
|
3467
|
+
lessThanOrEqualTo(attribute: BMViewConstraintAttribute, {times, plus, priority}?: {times?: number | null | undefined, plus?: number | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3440
3468
|
|
|
3441
3469
|
|
|
3442
3470
|
/**
|
|
@@ -3449,7 +3477,7 @@ declare class BMViewConstraintAttribute {
|
|
|
3449
3477
|
* @return A layout constraint.
|
|
3450
3478
|
*
|
|
3451
3479
|
*/
|
|
3452
|
-
greaterThanOrEqualTo(attribute: BMViewConstraintAttribute, {times
|
|
3480
|
+
greaterThanOrEqualTo(attribute: BMViewConstraintAttribute, {times, plus, priority}?: {times?: number | null | undefined, plus?: number | null | undefined, priority?: number | null | undefined}): BMLayoutConstraint;
|
|
3453
3481
|
|
|
3454
3482
|
}
|
|
3455
3483
|
|
|
@@ -3603,7 +3631,7 @@ declare class BMView {
|
|
|
3603
3631
|
* active size classes variations.
|
|
3604
3632
|
*
|
|
3605
3633
|
*/
|
|
3606
|
-
static registerLayoutVariableNamed (named: string, {withValue
|
|
3634
|
+
static registerLayoutVariableNamed (named: string, {withValue}: {withValue: number}): void;
|
|
3607
3635
|
|
|
3608
3636
|
|
|
3609
3637
|
/**
|
|
@@ -3620,7 +3648,7 @@ declare class BMView {
|
|
|
3620
3648
|
* }
|
|
3621
3649
|
*
|
|
3622
3650
|
*/
|
|
3623
|
-
static renameLayoutVariableNamed (named: string, {toName
|
|
3651
|
+
static renameLayoutVariableNamed (named: string, {toName}: {toName: string}): void;
|
|
3624
3652
|
|
|
3625
3653
|
|
|
3626
3654
|
/**
|
|
@@ -3645,7 +3673,7 @@ declare class BMView {
|
|
|
3645
3673
|
* @param inSizeClass The size class for which this variation will be active.
|
|
3646
3674
|
*
|
|
3647
3675
|
*/
|
|
3648
|
-
static setLayoutVariableValue (value: number, {named
|
|
3676
|
+
static setLayoutVariableValue (value: number, {named, inSizeClass}: {named: string, inSizeClass: BMLayoutSizeClass}): void;
|
|
3649
3677
|
|
|
3650
3678
|
|
|
3651
3679
|
/**
|
|
@@ -3655,7 +3683,7 @@ declare class BMView {
|
|
|
3655
3683
|
* @param inSizeClass The size class from which to remove this variation.
|
|
3656
3684
|
*
|
|
3657
3685
|
*/
|
|
3658
|
-
static removeVariationForLayoutVariableNamed (name: string, {inSizeClass
|
|
3686
|
+
static removeVariationForLayoutVariableNamed (name: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): void;
|
|
3659
3687
|
|
|
3660
3688
|
|
|
3661
3689
|
/**
|
|
@@ -3688,7 +3716,7 @@ declare class BMView {
|
|
|
3688
3716
|
* @param forNode The DOM node for which the shortcut should be registered.
|
|
3689
3717
|
*
|
|
3690
3718
|
*/
|
|
3691
|
-
static registerKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode
|
|
3719
|
+
static registerKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode}: {forNode: DOMNode}): void;
|
|
3692
3720
|
|
|
3693
3721
|
|
|
3694
3722
|
/**
|
|
@@ -3697,7 +3725,7 @@ declare class BMView {
|
|
|
3697
3725
|
* @param forNode The DOM node for which the shortcut should be unregistered.
|
|
3698
3726
|
*
|
|
3699
3727
|
*/
|
|
3700
|
-
static unregisterKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode
|
|
3728
|
+
static unregisterKeyboardShortcut (shortcut: BMKeyboardShortcut, {forNode}: {forNode: DOMNode}): void;
|
|
3701
3729
|
|
|
3702
3730
|
|
|
3703
3731
|
/**
|
|
@@ -3964,7 +3992,7 @@ declare class BMView {
|
|
|
3964
3992
|
* @param forTarget The target object upon which the updated value will be set.
|
|
3965
3993
|
*
|
|
3966
3994
|
*/
|
|
3967
|
-
registerVariablePropertyNamed(name: string, {forTarget
|
|
3995
|
+
registerVariablePropertyNamed(name: string, {forTarget}: {forTarget: any}): void;
|
|
3968
3996
|
|
|
3969
3997
|
|
|
3970
3998
|
/**
|
|
@@ -4002,7 +4030,7 @@ declare class BMView {
|
|
|
4002
4030
|
* @param inSizeClass The layout size class to which the variation should apply.
|
|
4003
4031
|
*
|
|
4004
4032
|
*/
|
|
4005
|
-
private _setVariation(variation: any, {forProperty
|
|
4033
|
+
private _setVariation(variation: any, {forProperty, inSizeClass}: {forProperty: string, inSizeClass: BMLayoutSizeClass}): void;
|
|
4006
4034
|
|
|
4007
4035
|
|
|
4008
4036
|
/**
|
|
@@ -4012,7 +4040,7 @@ declare class BMView {
|
|
|
4012
4040
|
* @param inSizeClass The layout size class to which the variation should apply.
|
|
4013
4041
|
*
|
|
4014
4042
|
*/
|
|
4015
|
-
private _removeVariationForProperty(property: string, {inSizeClass
|
|
4043
|
+
private _removeVariationForProperty(property: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): void;
|
|
4016
4044
|
|
|
4017
4045
|
|
|
4018
4046
|
/**
|
|
@@ -4022,7 +4050,7 @@ declare class BMView {
|
|
|
4022
4050
|
* @return `YES` if this view has a variation for the property in the given size class, `NO` otherwise.
|
|
4023
4051
|
*
|
|
4024
4052
|
*/
|
|
4025
|
-
private _hasVariationForProperty(property: string, {inSizeClass
|
|
4053
|
+
private _hasVariationForProperty(property: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): boolean;
|
|
4026
4054
|
|
|
4027
4055
|
|
|
4028
4056
|
/**
|
|
@@ -4044,7 +4072,7 @@ declare class BMView {
|
|
|
4044
4072
|
* @param forSizeClass The layout size class to which the opacity should apply.
|
|
4045
4073
|
*
|
|
4046
4074
|
*/
|
|
4047
|
-
setContentInsets(contentInsets: BMInset, {forSizeClass
|
|
4075
|
+
setContentInsets(contentInsets: BMInset, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4048
4076
|
|
|
4049
4077
|
|
|
4050
4078
|
/**
|
|
@@ -4086,7 +4114,7 @@ declare class BMView {
|
|
|
4086
4114
|
* @param forSizeClass The layout size class to which the CSS class should apply.
|
|
4087
4115
|
*
|
|
4088
4116
|
*/
|
|
4089
|
-
setCSSClass(CSSClass: string, {forSizeClass
|
|
4117
|
+
setCSSClass(CSSClass: string, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4090
4118
|
|
|
4091
4119
|
|
|
4092
4120
|
/**
|
|
@@ -4134,7 +4162,7 @@ declare class BMView {
|
|
|
4134
4162
|
* @param forSizeClass The layout size class to which the opacity should apply.
|
|
4135
4163
|
*
|
|
4136
4164
|
*/
|
|
4137
|
-
setOpacity(opacity: number, {forSizeClass
|
|
4165
|
+
setOpacity(opacity: number, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4138
4166
|
|
|
4139
4167
|
|
|
4140
4168
|
/**
|
|
@@ -4176,21 +4204,19 @@ declare class BMView {
|
|
|
4176
4204
|
readonly isCurrentlyVisible: boolean;
|
|
4177
4205
|
|
|
4178
4206
|
/**
|
|
4179
|
-
* @protected
|
|
4180
4207
|
* Invoked when this view becomes visible. Subclasses overriding this method should
|
|
4181
4208
|
* invoke the superclass method at some point in their implementation.
|
|
4182
4209
|
*
|
|
4183
4210
|
*/
|
|
4184
|
-
viewDidBecomeVisible(): void;
|
|
4211
|
+
protected viewDidBecomeVisible(): void;
|
|
4185
4212
|
|
|
4186
4213
|
|
|
4187
4214
|
/**
|
|
4188
|
-
* @protected
|
|
4189
4215
|
* Invoked when this view becomes invisible. Subclasses overriding this method should
|
|
4190
4216
|
* invoke the superclass method at some point in their implementation.
|
|
4191
4217
|
*
|
|
4192
4218
|
*/
|
|
4193
|
-
viewDidBecomeInvisible(): void;
|
|
4219
|
+
protected viewDidBecomeInvisible(): void;
|
|
4194
4220
|
|
|
4195
4221
|
|
|
4196
4222
|
/**
|
|
@@ -4208,7 +4234,7 @@ declare class BMView {
|
|
|
4208
4234
|
* @param forSizeClass The layout size class to which the opacity should apply.
|
|
4209
4235
|
*
|
|
4210
4236
|
*/
|
|
4211
|
-
setIsVisible(isVisible: boolean, {forSizeClass
|
|
4237
|
+
setIsVisible(isVisible: boolean, {forSizeClass}: {forSizeClass: BMLayoutSizeClass}): void;
|
|
4212
4238
|
|
|
4213
4239
|
|
|
4214
4240
|
/**
|
|
@@ -4435,7 +4461,7 @@ declare class BMView {
|
|
|
4435
4461
|
* The keyboard shortcuts that have been registered to this view.
|
|
4436
4462
|
*
|
|
4437
4463
|
*/
|
|
4438
|
-
private _keyboardShortcuts: Dictionary<
|
|
4464
|
+
private _keyboardShortcuts: Dictionary<BMKeyboardShortcut[]>;
|
|
4439
4465
|
|
|
4440
4466
|
/**
|
|
4441
4467
|
* Registers a keyboard shortcut that can be activated when this view has keyboard focus.
|
|
@@ -4474,7 +4500,7 @@ declare class BMView {
|
|
|
4474
4500
|
* the relevant event handlers to it.
|
|
4475
4501
|
*
|
|
4476
4502
|
*/
|
|
4477
|
-
|
|
4503
|
+
protected _enableKeyboardShortcuts(): void;
|
|
4478
4504
|
|
|
4479
4505
|
|
|
4480
4506
|
/**
|
|
@@ -4616,7 +4642,7 @@ declare class BMView {
|
|
|
4616
4642
|
* @return The Cassowary expression for the variable.
|
|
4617
4643
|
*
|
|
4618
4644
|
*/
|
|
4619
|
-
private _cassowaryExpressionForLayoutAttribute(attribute: BMLayoutAttribute, {withMultiplier
|
|
4645
|
+
private _cassowaryExpressionForLayoutAttribute(attribute: BMLayoutAttribute, {withMultiplier}?: {withMultiplier?: number | null | undefined}): kiwi.Expression;
|
|
4620
4646
|
|
|
4621
4647
|
|
|
4622
4648
|
/**
|
|
@@ -4788,9 +4814,10 @@ declare class BMView {
|
|
|
4788
4814
|
|
|
4789
4815
|
/**
|
|
4790
4816
|
* A generator that is used internally by CoreUI to layout subviews.
|
|
4817
|
+
* @return
|
|
4791
4818
|
*
|
|
4792
4819
|
*/
|
|
4793
|
-
|
|
4820
|
+
private _layoutSubviewsGenerator(): Iterator<undefined>;
|
|
4794
4821
|
|
|
4795
4822
|
|
|
4796
4823
|
/**
|
|
@@ -4867,7 +4894,7 @@ declare class BMView {
|
|
|
4867
4894
|
* view currently occupying that position.
|
|
4868
4895
|
*
|
|
4869
4896
|
*/
|
|
4870
|
-
addToSuperview(superview: BMView, {toPosition
|
|
4897
|
+
addToSuperview(superview: BMView, {toPosition}?: {toPosition?: number | null | undefined}): void;
|
|
4871
4898
|
|
|
4872
4899
|
|
|
4873
4900
|
/**
|
|
@@ -4880,7 +4907,7 @@ declare class BMView {
|
|
|
4880
4907
|
* view currently occupying that position.
|
|
4881
4908
|
*
|
|
4882
4909
|
*/
|
|
4883
|
-
addSubview(subview: BMView, {toPosition
|
|
4910
|
+
addSubview(subview: BMView, {toPosition}?: {toPosition?: number | null | undefined}): void;
|
|
4884
4911
|
|
|
4885
4912
|
|
|
4886
4913
|
/**
|
|
@@ -4957,7 +4984,7 @@ declare class BMView {
|
|
|
4957
4984
|
* @return A view.
|
|
4958
4985
|
*
|
|
4959
4986
|
*/
|
|
4960
|
-
private _cloneForNode(node: DOMNode, {superview
|
|
4987
|
+
private _cloneForNode(node: DOMNode, {superview}?: {superview?: BMView | null | undefined}): BMView;
|
|
4961
4988
|
|
|
4962
4989
|
|
|
4963
4990
|
/**
|
|
@@ -4986,7 +5013,7 @@ declare class BMView {
|
|
|
4986
5013
|
* @return An array of settings tabs to add.
|
|
4987
5014
|
*
|
|
4988
5015
|
*/
|
|
4989
|
-
additionalSettingSectionsForTab(tab: BMLayoutEditorSettingsTab, {layoutEditor
|
|
5016
|
+
additionalSettingSectionsForTab(tab: BMLayoutEditorSettingsTab, {layoutEditor}: {layoutEditor: BMLayoutEditor}): BMLayoutEditorSettingsSection[];
|
|
4990
5017
|
|
|
4991
5018
|
}
|
|
4992
5019
|
|
|
@@ -5015,7 +5042,7 @@ declare class BMScrollView extends BMView {
|
|
|
5015
5042
|
* @return A scroll view.
|
|
5016
5043
|
*
|
|
5017
5044
|
*/
|
|
5018
|
-
static scrollViewForNode (node: DOMNode, {contentNode
|
|
5045
|
+
static scrollViewForNode (node: DOMNode, {contentNode}: {contentNode: DOMNode}): BMScrollView;
|
|
5019
5046
|
|
|
5020
5047
|
|
|
5021
5048
|
/**
|
|
@@ -5042,7 +5069,7 @@ declare class BMScrollView extends BMView {
|
|
|
5042
5069
|
* @param contentNode The content view DOM node.
|
|
5043
5070
|
*
|
|
5044
5071
|
*/
|
|
5045
|
-
initWithWrapperDOMNode(node: DOMNode, {contentNode
|
|
5072
|
+
initWithWrapperDOMNode(node: DOMNode, {contentNode}: {contentNode: DOMNode}): void;
|
|
5046
5073
|
|
|
5047
5074
|
|
|
5048
5075
|
/**
|
|
@@ -5063,7 +5090,7 @@ declare class BMScrollView extends BMView {
|
|
|
5063
5090
|
* view currently occupying that position.
|
|
5064
5091
|
*
|
|
5065
5092
|
*/
|
|
5066
|
-
addSubview(subview: BMView, {toPosition
|
|
5093
|
+
addSubview(subview: BMView, {toPosition}?: {toPosition?: number | null | undefined}): void;
|
|
5067
5094
|
|
|
5068
5095
|
}
|
|
5069
5096
|
|
|
@@ -5191,7 +5218,7 @@ declare class BMAttributedLabelView extends BMView {
|
|
|
5191
5218
|
* @return An attributed label view.
|
|
5192
5219
|
*
|
|
5193
5220
|
*/
|
|
5194
|
-
static labelViewForNode (node: DOMNode, {template
|
|
5221
|
+
static labelViewForNode (node: DOMNode, {template, contentNode, arguments: args}: {template: string, contentNode?: DOMNode | null | undefined, arguments?: Dictionary<any> | null | undefined}): BMAttributedLabelView;
|
|
5195
5222
|
|
|
5196
5223
|
}
|
|
5197
5224
|
|
|
@@ -5346,7 +5373,7 @@ declare class BMTextField extends BMView {
|
|
|
5346
5373
|
* @return A DOM node to be added to a menu.
|
|
5347
5374
|
*
|
|
5348
5375
|
*/
|
|
5349
|
-
private _menuItemWithLabel(label: string, {action
|
|
5376
|
+
private _menuItemWithLabel(label: string, {action}: {action: (($0: Event) => void)}): DOMNode;
|
|
5350
5377
|
|
|
5351
5378
|
|
|
5352
5379
|
/**
|
|
@@ -5357,7 +5384,7 @@ declare class BMTextField extends BMView {
|
|
|
5357
5384
|
* @return The menu element.
|
|
5358
5385
|
*
|
|
5359
5386
|
*/
|
|
5360
|
-
private _showMenuAtPoint(point: BMPoint, {withOptions
|
|
5387
|
+
private _showMenuAtPoint(point: BMPoint, {withOptions, kind}: {withOptions: DOMNode[], kind?: BMMenuKind | null | undefined}): DOMNode;
|
|
5361
5388
|
|
|
5362
5389
|
|
|
5363
5390
|
/**
|
|
@@ -5426,7 +5453,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5426
5453
|
* @return This layout editor.
|
|
5427
5454
|
*
|
|
5428
5455
|
*/
|
|
5429
|
-
initWithView(view: BMView, {layoutVariableProvider
|
|
5456
|
+
initWithView(view: BMView, {layoutVariableProvider}?: {layoutVariableProvider?: BMLayoutVariableProvider | null | undefined}): BMLayoutEditor;
|
|
5430
5457
|
|
|
5431
5458
|
|
|
5432
5459
|
/**
|
|
@@ -5503,7 +5530,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5503
5530
|
* @param forSettingOfKind The kind of setting that will use the given cell class.
|
|
5504
5531
|
*
|
|
5505
5532
|
*/
|
|
5506
|
-
registerCellClass(cellClass: typeof BMLayoutEditorSettingsCell, {forSettingOfKind
|
|
5533
|
+
registerCellClass(cellClass: typeof BMLayoutEditorSettingsCell, {forSettingOfKind}: {forSettingOfKind: string}): void;
|
|
5507
5534
|
|
|
5508
5535
|
|
|
5509
5536
|
/**
|
|
@@ -5516,7 +5543,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5516
5543
|
* @param kind The kind of menu to show. Defaults to `.PullDownMenu`.
|
|
5517
5544
|
*
|
|
5518
5545
|
*/
|
|
5519
|
-
private _showSizeClassMenuAtPoint(point: BMPoint, {action
|
|
5546
|
+
private _showSizeClassMenuAtPoint(point: BMPoint, {action, kind}?: {action?: (($0: BMLayoutSizeClass) => void) | null | undefined, kind?: BMMenuKind | null | undefined}): void;
|
|
5520
5547
|
|
|
5521
5548
|
|
|
5522
5549
|
/**
|
|
@@ -5529,7 +5556,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5529
5556
|
* @param action An additional action to execute in addition to the default action.
|
|
5530
5557
|
*
|
|
5531
5558
|
*/
|
|
5532
|
-
private _sizeClassMenuItemMakeWithName(name: string, {ofType
|
|
5559
|
+
private _sizeClassMenuItemMakeWithName(name: string, {ofType, preview, sizeClass, action}: {ofType: string, preview?: string | null | undefined, sizeClass?: BMLayoutSizeClass | null | undefined, action?: (() => void) | null | undefined}): void;
|
|
5533
5560
|
|
|
5534
5561
|
|
|
5535
5562
|
/**
|
|
@@ -5574,7 +5601,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5574
5601
|
* @return The SVG path.
|
|
5575
5602
|
*
|
|
5576
5603
|
*/
|
|
5577
|
-
private _pathForPopoverWithFrame(frame: BMRect, {widthIndicatorSize
|
|
5604
|
+
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
5605
|
|
|
5579
5606
|
|
|
5580
5607
|
/**
|
|
@@ -5592,7 +5619,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5592
5619
|
* @param withReferenceView The reference view.
|
|
5593
5620
|
*
|
|
5594
5621
|
*/
|
|
5595
|
-
private _showConstantPopupAtPoint(location: BMPoint, {forConstraint
|
|
5622
|
+
private _showConstantPopupAtPoint(location: BMPoint, {forConstraint, withReferenceView}: {forConstraint: BMLayoutConstraint, withReferenceView: BMView}): void;
|
|
5596
5623
|
|
|
5597
5624
|
|
|
5598
5625
|
/**
|
|
@@ -5610,7 +5637,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5610
5637
|
* @param includesInactiveConstraints Defaults to `NO`. Controls whether inactive constraints are drawn.
|
|
5611
5638
|
*
|
|
5612
5639
|
*/
|
|
5613
|
-
private _drawConstraintsForView(view: BMView, {includesSubviewConstraints
|
|
5640
|
+
private _drawConstraintsForView(view: BMView, {includesSubviewConstraints, includesInactiveConstraints}?: {includesSubviewConstraints?: boolean | null | undefined, includesInactiveConstraints?: boolean | null | undefined}): void;
|
|
5614
5641
|
|
|
5615
5642
|
|
|
5616
5643
|
/**
|
|
@@ -5620,7 +5647,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5620
5647
|
* @param withEvent The event that triggered this action, if available.
|
|
5621
5648
|
*
|
|
5622
5649
|
*/
|
|
5623
|
-
selectView(view?: BMView | null | undefined, {withEvent
|
|
5650
|
+
selectView(view?: BMView | null | undefined, {withEvent}?: {withEvent?: Event | null | undefined}): void;
|
|
5624
5651
|
|
|
5625
5652
|
|
|
5626
5653
|
/**
|
|
@@ -5637,7 +5664,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5637
5664
|
* @param view
|
|
5638
5665
|
*
|
|
5639
5666
|
*/
|
|
5640
|
-
initDragEventListenerForNode(node: DOMNode, {view
|
|
5667
|
+
initDragEventListenerForNode(node: DOMNode, {view}: {view: BMView}): void;
|
|
5641
5668
|
|
|
5642
5669
|
|
|
5643
5670
|
/**
|
|
@@ -5647,7 +5674,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5647
5674
|
* @return
|
|
5648
5675
|
*
|
|
5649
5676
|
*/
|
|
5650
|
-
constraintOptionWithLabel(label: string, {action
|
|
5677
|
+
constraintOptionWithLabel(label: string, {action}: {action: (($0: Event) => void)}): DOMNode;
|
|
5651
5678
|
|
|
5652
5679
|
|
|
5653
5680
|
/**
|
|
@@ -5678,7 +5705,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5678
5705
|
* @return The menu element.
|
|
5679
5706
|
*
|
|
5680
5707
|
*/
|
|
5681
|
-
showMenuAtPoint(point: BMPoint, {menu
|
|
5708
|
+
showMenuAtPoint(point: BMPoint, {menu, withOptions, kind}?: {menu?: DOMNode | null | undefined, withOptions?: DOMNode[] | null | undefined, kind?: BMMenuKind | null | undefined}): DOMNode;
|
|
5682
5709
|
|
|
5683
5710
|
|
|
5684
5711
|
/**
|
|
@@ -5690,7 +5717,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5690
5717
|
* @param atPoint The point at which to bring up the menu.
|
|
5691
5718
|
*
|
|
5692
5719
|
*/
|
|
5693
|
-
showConstraintOptionsFromView(view: BMView, {toView
|
|
5720
|
+
showConstraintOptionsFromView(view: BMView, {toView, atPoint}: {toView?: BMView | null | undefined, atPoint: BMPoint}): void;
|
|
5694
5721
|
|
|
5695
5722
|
|
|
5696
5723
|
/**
|
|
@@ -5700,7 +5727,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5700
5727
|
* @return The options.
|
|
5701
5728
|
*
|
|
5702
5729
|
*/
|
|
5703
|
-
horizontalConstraintOptionsFromView(view: BMView, {toView
|
|
5730
|
+
horizontalConstraintOptionsFromView(view: BMView, {toView}?: {toView?: BMView | null | undefined}): DOMNode[];
|
|
5704
5731
|
|
|
5705
5732
|
|
|
5706
5733
|
/**
|
|
@@ -5710,7 +5737,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5710
5737
|
* @return The options.
|
|
5711
5738
|
*
|
|
5712
5739
|
*/
|
|
5713
|
-
verticalConstraintOptionsFromView(view: BMView, {toView
|
|
5740
|
+
verticalConstraintOptionsFromView(view: BMView, {toView}?: {toView?: BMView | null | undefined}): DOMNode[];
|
|
5714
5741
|
|
|
5715
5742
|
|
|
5716
5743
|
/**
|
|
@@ -5721,7 +5748,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5721
5748
|
* @return The constraint descriptor, if the constraint is non-null.
|
|
5722
5749
|
*
|
|
5723
5750
|
*/
|
|
5724
|
-
selectConstraint(constraint?: BMLayoutConstraint | null | undefined, {withReferenceView
|
|
5751
|
+
selectConstraint(constraint?: BMLayoutConstraint | null | undefined, {withReferenceView}?: {withReferenceView?: BMView | null | undefined}): any;
|
|
5725
5752
|
|
|
5726
5753
|
|
|
5727
5754
|
/**
|
|
@@ -5732,7 +5759,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5732
5759
|
* @return The first matching layout constraint, if it was found, `undefined` otherwise.
|
|
5733
5760
|
*
|
|
5734
5761
|
*/
|
|
5735
|
-
private _constraintAffectingAttributeInList(list: BMLayoutAttribute[], {forView
|
|
5762
|
+
private _constraintAffectingAttributeInList(list: BMLayoutAttribute[], {forView}: {forView: BMView}): BMLayoutConstraint | null | undefined;
|
|
5736
5763
|
|
|
5737
5764
|
|
|
5738
5765
|
/**
|
|
@@ -5839,7 +5866,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5839
5866
|
* }
|
|
5840
5867
|
*
|
|
5841
5868
|
*/
|
|
5842
|
-
private _drawConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
5869
|
+
private _drawConstraint(constraint: BMLayoutConstraint, {withReferenceView, sourceConstraint}: {withReferenceView: BMView, sourceConstraint?: BMLayoutConstraint | null | undefined}): void;
|
|
5843
5870
|
|
|
5844
5871
|
|
|
5845
5872
|
/**
|
|
@@ -5851,7 +5878,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5851
5878
|
* @param sourceConstraint The source constraint that created this constraint, if there is one.
|
|
5852
5879
|
*
|
|
5853
5880
|
*/
|
|
5854
|
-
private _drawHorizontalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint
|
|
5881
|
+
private _drawHorizontalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint, toPoint, withReferenceView, sourceConstraint}: {fromSourcePoint: BMPoint, toPoint: BMPoint, withReferenceView: BMView, sourceConstraint?: BMLayoutConstraint | null | undefined}): void;
|
|
5855
5882
|
|
|
5856
5883
|
|
|
5857
5884
|
/**
|
|
@@ -5863,7 +5890,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5863
5890
|
* @param sourceConstraint The source constraint that created this constraint, if there is one.
|
|
5864
5891
|
*
|
|
5865
5892
|
*/
|
|
5866
|
-
private _drawVerticalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint
|
|
5893
|
+
private _drawVerticalConstraint(constraint: BMLayoutConstraint, {fromSourcePoint, toPoint, withReferenceView, sourceConstraint}: {fromSourcePoint: BMPoint, toPoint: BMPoint, withReferenceView: BMView, sourceConstraint?: BMLayoutConstraint | null | undefined}): void;
|
|
5867
5894
|
|
|
5868
5895
|
|
|
5869
5896
|
/**
|
|
@@ -5873,7 +5900,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5873
5900
|
* @param forSetting The setting for which to set the value.
|
|
5874
5901
|
*
|
|
5875
5902
|
*/
|
|
5876
|
-
setValue(value: any, {forSetting
|
|
5903
|
+
setValue(value: any, {forSetting}: {forSetting: BMLayoutEditorSetting}): void;
|
|
5877
5904
|
|
|
5878
5905
|
|
|
5879
5906
|
/**
|
|
@@ -5899,7 +5926,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5899
5926
|
* @return A DOM node.
|
|
5900
5927
|
*
|
|
5901
5928
|
*/
|
|
5902
|
-
readonlySettingWithName(name: string, {value
|
|
5929
|
+
readonlySettingWithName(name: string, {value, action}: {value: string, action?: (($0: Event) => void) | null | undefined}): DOMNode;
|
|
5903
5930
|
|
|
5904
5931
|
|
|
5905
5932
|
/**
|
|
@@ -5918,7 +5945,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5918
5945
|
* will be added.
|
|
5919
5946
|
*
|
|
5920
5947
|
*/
|
|
5921
|
-
createVariableBooleanSettingWithName(name: string, {forConstraint
|
|
5948
|
+
createVariableBooleanSettingWithName(name: string, {forConstraint, withReferenceView, propertyName, container}: {forConstraint?: BMLayoutConstraint | null | undefined, withReferenceView: BMView, propertyName: string, container?: DOMNode | null | undefined}): void;
|
|
5922
5949
|
|
|
5923
5950
|
|
|
5924
5951
|
/**
|
|
@@ -5938,7 +5965,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5938
5965
|
* @return A DOM node.
|
|
5939
5966
|
*
|
|
5940
5967
|
*/
|
|
5941
|
-
booleanSettingWithName(name: string, {value
|
|
5968
|
+
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
5969
|
|
|
5943
5970
|
|
|
5944
5971
|
/**
|
|
@@ -5954,7 +5981,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5954
5981
|
* @return A DOM node.
|
|
5955
5982
|
*
|
|
5956
5983
|
*/
|
|
5957
|
-
textSettingWithName(name: string, {value
|
|
5984
|
+
textSettingWithName(name: string, {value, changeHandler}: {value: string, changeHandler: (($0: string) => boolean)}): DOMNode;
|
|
5958
5985
|
|
|
5959
5986
|
|
|
5960
5987
|
/**
|
|
@@ -5970,7 +5997,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5970
5997
|
* @return A DOM node.
|
|
5971
5998
|
*
|
|
5972
5999
|
*/
|
|
5973
|
-
stringSettingWithName(name: string, {forConstraint
|
|
6000
|
+
stringSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView, sizeClass}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView, sizeClass?: BMLayoutSizeClass | null | undefined}): DOMNode;
|
|
5974
6001
|
|
|
5975
6002
|
|
|
5976
6003
|
/**
|
|
@@ -5989,7 +6016,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
5989
6016
|
* will be added.
|
|
5990
6017
|
*
|
|
5991
6018
|
*/
|
|
5992
|
-
createVariableStringSettingWithName(name: string, {forConstraint
|
|
6019
|
+
createVariableStringSettingWithName(name: string, {forConstraint, withReferenceView, propertyName, container}: {forConstraint?: BMLayoutConstraint | null | undefined, withReferenceView: BMView, propertyName: string, container?: DOMNode | null | undefined}): void;
|
|
5993
6020
|
|
|
5994
6021
|
|
|
5995
6022
|
/**
|
|
@@ -6008,7 +6035,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6008
6035
|
* will be added.
|
|
6009
6036
|
*
|
|
6010
6037
|
*/
|
|
6011
|
-
createVariableNumericSettingWithName(name: string, {forConstraint
|
|
6038
|
+
createVariableNumericSettingWithName(name: string, {forConstraint, withReferenceView, propertyName, container}: {forConstraint?: BMLayoutConstraint | null | undefined, withReferenceView: BMView, propertyName: string, container?: DOMNode | null | undefined}): void;
|
|
6012
6039
|
|
|
6013
6040
|
|
|
6014
6041
|
/**
|
|
@@ -6024,7 +6051,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6024
6051
|
* @return A DOM node.
|
|
6025
6052
|
*
|
|
6026
6053
|
*/
|
|
6027
|
-
constantSettingWithName(name: string, {forConstraint
|
|
6054
|
+
constantSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView, sizeClass}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView, sizeClass?: BMLayoutSizeClass | null | undefined}): DOMNode;
|
|
6028
6055
|
|
|
6029
6056
|
|
|
6030
6057
|
/**
|
|
@@ -6040,7 +6067,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6040
6067
|
* @return A DOM node.
|
|
6041
6068
|
*
|
|
6042
6069
|
*/
|
|
6043
|
-
numericSettingWithName(name: string, {forConstraint
|
|
6070
|
+
numericSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView, sizeClass}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView, sizeClass?: BMLayoutSizeClass | null | undefined}): DOMNode;
|
|
6044
6071
|
|
|
6045
6072
|
|
|
6046
6073
|
/**
|
|
@@ -6052,7 +6079,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6052
6079
|
* @param selected Controls whether this option is selected by default.
|
|
6053
6080
|
*
|
|
6054
6081
|
*/
|
|
6055
|
-
optionNamed(named: string, {value
|
|
6082
|
+
optionNamed(named: string, {value, selected}: {value: any, selected?: boolean | null | undefined}): void;
|
|
6056
6083
|
|
|
6057
6084
|
|
|
6058
6085
|
/**
|
|
@@ -6067,7 +6094,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6067
6094
|
* @return A DOM node.
|
|
6068
6095
|
*
|
|
6069
6096
|
*/
|
|
6070
|
-
dropdownSettingWithName(name: string, {forConstraint
|
|
6097
|
+
dropdownSettingWithName(name: string, {forConstraint, propertyName, value, withReferenceView}: {forConstraint: BMLayoutConstraint, propertyName: string, value: string, withReferenceView: BMView}): DOMNode;
|
|
6071
6098
|
|
|
6072
6099
|
|
|
6073
6100
|
/**
|
|
@@ -6081,7 +6108,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6081
6108
|
* @return A DOM node.
|
|
6082
6109
|
*
|
|
6083
6110
|
*/
|
|
6084
|
-
equalitySettingWithName(name: string, {forConstraint
|
|
6111
|
+
equalitySettingWithName(name: string, {forConstraint, value, withReferenceView}: {forConstraint: BMLayoutConstraint, value: string, withReferenceView: BMView}): DOMNode;
|
|
6085
6112
|
|
|
6086
6113
|
|
|
6087
6114
|
/**
|
|
@@ -6093,7 +6120,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6093
6120
|
* @param action
|
|
6094
6121
|
*
|
|
6095
6122
|
*/
|
|
6096
|
-
buttonSettingWithName(name: string, {action
|
|
6123
|
+
buttonSettingWithName(name: string, {action}: {action: (($0: Event) => void)}): DOMNode;
|
|
6097
6124
|
|
|
6098
6125
|
|
|
6099
6126
|
/**
|
|
@@ -6134,7 +6161,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6134
6161
|
* @param inContainer The node to which the new settings should be added.
|
|
6135
6162
|
*
|
|
6136
6163
|
*/
|
|
6137
|
-
createAdditionalSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6164
|
+
createAdditionalSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView, inContainer}: {withReferenceView: BMView, inContainer: DOMNode}): void;
|
|
6138
6165
|
|
|
6139
6166
|
|
|
6140
6167
|
/**
|
|
@@ -6146,7 +6173,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6146
6173
|
* @return The contents of the settings page.
|
|
6147
6174
|
*
|
|
6148
6175
|
*/
|
|
6149
|
-
private _createConstantSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6176
|
+
private _createConstantSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6150
6177
|
|
|
6151
6178
|
|
|
6152
6179
|
/**
|
|
@@ -6158,7 +6185,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6158
6185
|
* @return The contents of the settings page.
|
|
6159
6186
|
*
|
|
6160
6187
|
*/
|
|
6161
|
-
private _createPrioritySettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6188
|
+
private _createPrioritySettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6162
6189
|
|
|
6163
6190
|
|
|
6164
6191
|
/**
|
|
@@ -6170,7 +6197,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6170
6197
|
* @return The contents of the settings page.
|
|
6171
6198
|
*
|
|
6172
6199
|
*/
|
|
6173
|
-
private _createIsActiveSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6200
|
+
private _createIsActiveSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6174
6201
|
|
|
6175
6202
|
|
|
6176
6203
|
/**
|
|
@@ -6182,7 +6209,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6182
6209
|
* @return The contents of the settings page.
|
|
6183
6210
|
*
|
|
6184
6211
|
*/
|
|
6185
|
-
createSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6212
|
+
createSettingsForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6186
6213
|
|
|
6187
6214
|
|
|
6188
6215
|
/**
|
|
@@ -6204,7 +6231,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6204
6231
|
* @param internal Defaults to NO.
|
|
6205
6232
|
*
|
|
6206
6233
|
*/
|
|
6207
|
-
constraintSettingWithConstraint(constraint: BMLayoutConstraint, {referenceView
|
|
6234
|
+
constraintSettingWithConstraint(constraint: BMLayoutConstraint, {referenceView, internal}: {referenceView: BMView, internal?: boolean | null | undefined}): void;
|
|
6208
6235
|
|
|
6209
6236
|
|
|
6210
6237
|
/**
|
|
@@ -6241,7 +6268,7 @@ declare class BMLayoutEditor extends BMWindow {
|
|
|
6241
6268
|
* @param attribute The layout attribute with which the constraint will be created.
|
|
6242
6269
|
*
|
|
6243
6270
|
*/
|
|
6244
|
-
equalConstraintSettingWithName(name: string, {icon
|
|
6271
|
+
equalConstraintSettingWithName(name: string, {icon, attribute}: {icon?: string | null | undefined, attribute: BMLayoutAttribute}): void;
|
|
6245
6272
|
|
|
6246
6273
|
|
|
6247
6274
|
/**
|
|
@@ -6346,7 +6373,7 @@ declare class _BMLayoutEditorTree {
|
|
|
6346
6373
|
* @return
|
|
6347
6374
|
*
|
|
6348
6375
|
*/
|
|
6349
|
-
treeNodeForConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6376
|
+
treeNodeForConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): DOMNode;
|
|
6350
6377
|
|
|
6351
6378
|
|
|
6352
6379
|
/**
|
|
@@ -6359,7 +6386,7 @@ declare class _BMLayoutEditorTree {
|
|
|
6359
6386
|
* @param continuous Defaults to NO. If set to YES, the view will be added to the current selection.
|
|
6360
6387
|
*
|
|
6361
6388
|
*/
|
|
6362
|
-
selectView(view?: BMView | null | undefined, {continuous
|
|
6389
|
+
selectView(view?: BMView | null | undefined, {continuous}?: {continuous?: boolean | null | undefined}): void;
|
|
6363
6390
|
|
|
6364
6391
|
|
|
6365
6392
|
/**
|
|
@@ -6411,7 +6438,7 @@ declare class _BMLayoutEditorTree {
|
|
|
6411
6438
|
* @return
|
|
6412
6439
|
*
|
|
6413
6440
|
*/
|
|
6414
|
-
declare function _BMLayoutEditorTreeMakeWithView(view: BMView, {node
|
|
6441
|
+
declare function _BMLayoutEditorTreeMakeWithView(view: BMView, {node}: {node: DOMNode}): _BMLayoutEditorTree;
|
|
6415
6442
|
|
|
6416
6443
|
|
|
6417
6444
|
|
|
@@ -6473,7 +6500,7 @@ declare class BMLayoutEditorVariablesDataSet implements BMCollectionViewDataSet,
|
|
|
6473
6500
|
* @return This data set object.
|
|
6474
6501
|
*
|
|
6475
6502
|
*/
|
|
6476
|
-
initWithLayoutVariableProvider(provider: BMLayoutVariableProvider, {collectionView
|
|
6503
|
+
initWithLayoutVariableProvider(provider: BMLayoutVariableProvider, {collectionView, editor}: {collectionView: BMCollectionView, editor: BMLayoutEditor}): BMLayoutEditorVariablesDataSet;
|
|
6477
6504
|
|
|
6478
6505
|
}
|
|
6479
6506
|
|
|
@@ -6535,7 +6562,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6535
6562
|
* @return This settings view.
|
|
6536
6563
|
*
|
|
6537
6564
|
*/
|
|
6538
|
-
initWithDOMNode(node: DOMNode, {editor
|
|
6565
|
+
initWithDOMNode(node: DOMNode, {editor}: {editor: BMLayoutEditor}): _BMLayoutEditorSettingsView;
|
|
6539
6566
|
|
|
6540
6567
|
|
|
6541
6568
|
/**
|
|
@@ -6544,7 +6571,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6544
6571
|
* @param withBackButton Controls whether this panel will contain a back button.
|
|
6545
6572
|
*
|
|
6546
6573
|
*/
|
|
6547
|
-
private _provisionPanel(panel: _BMLayoutEditorSettingsPanel, {withBackButton
|
|
6574
|
+
private _provisionPanel(panel: _BMLayoutEditorSettingsPanel, {withBackButton}?: {withBackButton?: boolean | null | undefined}): void;
|
|
6548
6575
|
|
|
6549
6576
|
|
|
6550
6577
|
/**
|
|
@@ -6582,7 +6609,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6582
6609
|
* @param withReferenceView The view from which the constraint was selected.
|
|
6583
6610
|
*
|
|
6584
6611
|
*/
|
|
6585
|
-
selectConstraint(constraint: BMLayoutConstraint, {withReferenceView
|
|
6612
|
+
selectConstraint(constraint: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): void;
|
|
6586
6613
|
|
|
6587
6614
|
|
|
6588
6615
|
/**
|
|
@@ -6592,7 +6619,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6592
6619
|
* @param withReferenceView The view from which the constraint was selected.
|
|
6593
6620
|
*
|
|
6594
6621
|
*/
|
|
6595
|
-
layoutEditorDidSelectConstraint(constrant: BMLayoutConstraint, {withReferenceView
|
|
6622
|
+
layoutEditorDidSelectConstraint(constrant: BMLayoutConstraint, {withReferenceView}: {withReferenceView: BMView}): void;
|
|
6596
6623
|
|
|
6597
6624
|
|
|
6598
6625
|
/**
|
|
@@ -6612,7 +6639,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6612
6639
|
* @return A promise that resolves when this operation completes.
|
|
6613
6640
|
*
|
|
6614
6641
|
*/
|
|
6615
|
-
resetToPanel(panel?: _BMLayoutEditorSettingsPanel | null | undefined, {animated
|
|
6642
|
+
resetToPanel(panel?: _BMLayoutEditorSettingsPanel | null | undefined, {animated}?: {animated?: boolean | null | undefined}): Promise<void>;
|
|
6616
6643
|
|
|
6617
6644
|
|
|
6618
6645
|
/**
|
|
@@ -6622,7 +6649,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6622
6649
|
* @return A promise that resolves when this operation completes.
|
|
6623
6650
|
*
|
|
6624
6651
|
*/
|
|
6625
|
-
pushPanel(panel: _BMLayoutEditorSettingsPanel, {animated
|
|
6652
|
+
pushPanel(panel: _BMLayoutEditorSettingsPanel, {animated}?: {animated?: boolean | null | undefined}): Promise<void>;
|
|
6626
6653
|
|
|
6627
6654
|
|
|
6628
6655
|
/**
|
|
@@ -6640,7 +6667,7 @@ declare class _BMLayoutEditorSettingsView {
|
|
|
6640
6667
|
* @return A settings view.
|
|
6641
6668
|
*
|
|
6642
6669
|
*/
|
|
6643
|
-
static settingsViewWithNode (node: DOMNode, {editor
|
|
6670
|
+
static settingsViewWithNode (node: DOMNode, {editor}: {editor: BMLayoutEditor}): _BMLayoutEditorSettingsView;
|
|
6644
6671
|
|
|
6645
6672
|
}
|
|
6646
6673
|
|
|
@@ -6786,7 +6813,7 @@ declare class _BMLayoutEditorCollectionSettingsPanel {
|
|
|
6786
6813
|
* @param forTab The tab for which to configure this collection view.
|
|
6787
6814
|
*
|
|
6788
6815
|
*/
|
|
6789
|
-
private _configureCollectionViewLayout(collectionView: BMCollectionView, {forTab
|
|
6816
|
+
private _configureCollectionViewLayout(collectionView: BMCollectionView, {forTab}: {forTab: BMLayoutEditorSettingsTab}): void;
|
|
6790
6817
|
|
|
6791
6818
|
}
|
|
6792
6819
|
|
|
@@ -6860,7 +6887,7 @@ declare class BMLayoutEditorSettingsTab implements BMCollectionViewDataSet, BMCo
|
|
|
6860
6887
|
* @return This settings tab.
|
|
6861
6888
|
*
|
|
6862
6889
|
*/
|
|
6863
|
-
initWithName(name: string, {icon
|
|
6890
|
+
initWithName(name: string, {icon}: {icon: string}): BMLayoutEditorSettingsTab;
|
|
6864
6891
|
|
|
6865
6892
|
|
|
6866
6893
|
/**
|
|
@@ -6912,7 +6939,7 @@ declare class BMLayoutEditorSettingsTab implements BMCollectionViewDataSet, BMCo
|
|
|
6912
6939
|
* @return A settings tab.
|
|
6913
6940
|
*
|
|
6914
6941
|
*/
|
|
6915
|
-
static tabWithName (name: string, {icon
|
|
6942
|
+
static tabWithName (name: string, {icon}: {icon: string}): BMLayoutEditorSettingsTab;
|
|
6916
6943
|
|
|
6917
6944
|
}
|
|
6918
6945
|
|
|
@@ -7149,7 +7176,7 @@ declare class BMLayoutEditorSetting {
|
|
|
7149
7176
|
* @return This setting.
|
|
7150
7177
|
*
|
|
7151
7178
|
*/
|
|
7152
|
-
initWithName(name: string, {kind
|
|
7179
|
+
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
7180
|
|
|
7154
7181
|
|
|
7155
7182
|
/**
|
|
@@ -7174,7 +7201,7 @@ declare class BMLayoutEditorSetting {
|
|
|
7174
7201
|
* @return A setting.
|
|
7175
7202
|
*
|
|
7176
7203
|
*/
|
|
7177
|
-
static settingWithName (name: string, {kind
|
|
7204
|
+
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
7205
|
|
|
7179
7206
|
}
|
|
7180
7207
|
|
|
@@ -7845,7 +7872,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7845
7872
|
* active size classes variations.
|
|
7846
7873
|
*
|
|
7847
7874
|
*/
|
|
7848
|
-
registerLayoutVariableNamed?(named: string, {withValue
|
|
7875
|
+
registerLayoutVariableNamed?(named: string, {withValue}: {withValue: number}): void;
|
|
7849
7876
|
|
|
7850
7877
|
|
|
7851
7878
|
/**
|
|
@@ -7855,7 +7882,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7855
7882
|
* }
|
|
7856
7883
|
*
|
|
7857
7884
|
*/
|
|
7858
|
-
renameLayoutVariableNamed?(named: string, {toName
|
|
7885
|
+
renameLayoutVariableNamed?(named: string, {toName}: {toName: string}): void;
|
|
7859
7886
|
|
|
7860
7887
|
|
|
7861
7888
|
/**
|
|
@@ -7880,7 +7907,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7880
7907
|
* @param inSizeClass The size class for which this variation will be active.
|
|
7881
7908
|
*
|
|
7882
7909
|
*/
|
|
7883
|
-
setLayoutVariableValue?(value: number, {named
|
|
7910
|
+
setLayoutVariableValue?(value: number, {named, inSizeClass}: {named: string, inSizeClass: BMLayoutSizeClass}): void;
|
|
7884
7911
|
|
|
7885
7912
|
|
|
7886
7913
|
/**
|
|
@@ -7892,7 +7919,7 @@ declare interface BMLayoutVariableProvider {
|
|
|
7892
7919
|
* @param inSizeClass The size class from which to remove this variation.
|
|
7893
7920
|
*
|
|
7894
7921
|
*/
|
|
7895
|
-
removeVariationForLayoutVariableNamed?(name: string, {inSizeClass
|
|
7922
|
+
removeVariationForLayoutVariableNamed?(name: string, {inSizeClass}: {inSizeClass: BMLayoutSizeClass}): void;
|
|
7896
7923
|
|
|
7897
7924
|
|
|
7898
7925
|
/**
|
|
@@ -7993,7 +8020,7 @@ declare class BMMenuItem {
|
|
|
7993
8020
|
* @return This menu item.
|
|
7994
8021
|
*
|
|
7995
8022
|
*/
|
|
7996
|
-
initWithName(name: string, {icon
|
|
8023
|
+
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
8024
|
|
|
7998
8025
|
|
|
7999
8026
|
/**
|
|
@@ -8011,7 +8038,7 @@ declare class BMMenuItem {
|
|
|
8011
8038
|
* @return A menu item.
|
|
8012
8039
|
*
|
|
8013
8040
|
*/
|
|
8014
|
-
static menuItemWithName (name: string, {icon
|
|
8041
|
+
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
8042
|
|
|
8016
8043
|
|
|
8017
8044
|
/**
|
|
@@ -8193,7 +8220,7 @@ declare class BMMenu {
|
|
|
8193
8220
|
* @return A promise that resolves when the operation completes.
|
|
8194
8221
|
*
|
|
8195
8222
|
*/
|
|
8196
|
-
openFromNode(node: DOMNode, {animated
|
|
8223
|
+
openFromNode(node: DOMNode, {animated, kind}?: {animated?: boolean | null | undefined, kind?: BMMenuKind | null | undefined}): Promise<void>;
|
|
8197
8224
|
|
|
8198
8225
|
|
|
8199
8226
|
/**
|
|
@@ -8206,7 +8233,7 @@ declare class BMMenu {
|
|
|
8206
8233
|
* @param kind Defaults to `Menu`. The kind of menu.
|
|
8207
8234
|
*
|
|
8208
8235
|
*/
|
|
8209
|
-
openAtPoint(point: BMPoint, {animated
|
|
8236
|
+
openAtPoint(point: BMPoint, {animated, kind}?: {animated?: boolean | null | undefined, kind?: BMMenuKind | null | undefined}): void;
|
|
8210
8237
|
|
|
8211
8238
|
|
|
8212
8239
|
/**
|
|
@@ -8220,7 +8247,7 @@ declare class BMMenu {
|
|
|
8220
8247
|
* @param kind Defaults to `Menu`. The kind of menu.
|
|
8221
8248
|
*
|
|
8222
8249
|
*/
|
|
8223
|
-
private _openAroundRect(rect: BMRect, {animated
|
|
8250
|
+
private _openAroundRect(rect: BMRect, {animated, kind}?: {animated?: boolean | null | undefined, kind?: BMMenuKind | null | undefined}): void;
|
|
8224
8251
|
|
|
8225
8252
|
|
|
8226
8253
|
/**
|
|
@@ -8234,7 +8261,7 @@ declare class BMMenu {
|
|
|
8234
8261
|
* opening. Otherwise, this menu will retain keyboard focus.
|
|
8235
8262
|
*
|
|
8236
8263
|
*/
|
|
8237
|
-
private _openSubmenuForMenuItem(item: BMMenuItem, {animated
|
|
8264
|
+
private _openSubmenuForMenuItem(item: BMMenuItem, {animated, delaysEvents, acquireFocus}?: {animated?: boolean | null | undefined, delaysEvents?: boolean | null | undefined, acquireFocus?: boolean | null | undefined}): void;
|
|
8238
8265
|
|
|
8239
8266
|
|
|
8240
8267
|
/**
|
|
@@ -8244,7 +8271,7 @@ declare class BMMenu {
|
|
|
8244
8271
|
* @param item The item from which the submenu opened.
|
|
8245
8272
|
*
|
|
8246
8273
|
*/
|
|
8247
|
-
private _delayEventsForSubmenu(submenu: BMMenu, {item
|
|
8274
|
+
private _delayEventsForSubmenu(submenu: BMMenu, {item}: {item: BMMenuItem}): void;
|
|
8248
8275
|
|
|
8249
8276
|
|
|
8250
8277
|
/**
|
|
@@ -8256,7 +8283,7 @@ declare class BMMenu {
|
|
|
8256
8283
|
* will also close.
|
|
8257
8284
|
*
|
|
8258
8285
|
*/
|
|
8259
|
-
closeAnimated(animated?: boolean | null | undefined, {withSupermenu
|
|
8286
|
+
closeAnimated(animated?: boolean | null | undefined, {withSupermenu}?: {withSupermenu?: boolean | null | undefined}): void;
|
|
8260
8287
|
|
|
8261
8288
|
|
|
8262
8289
|
/**
|
|
@@ -8435,7 +8462,7 @@ declare interface BMTextFieldDelegate {
|
|
|
8435
8462
|
* @param withSuggestion The suggestion
|
|
8436
8463
|
*
|
|
8437
8464
|
*/
|
|
8438
|
-
textFieldShouldAutocompleteText?(textField: BMTextField, text: string, {withSuggestion
|
|
8465
|
+
textFieldShouldAutocompleteText?(textField: BMTextField, text: string, {withSuggestion}: {withSuggestion: string}): void;
|
|
8439
8466
|
|
|
8440
8467
|
|
|
8441
8468
|
/**
|
|
@@ -8633,7 +8660,7 @@ declare var BMCellAttributesMakeForCellAtIndexPath: Function;
|
|
|
8633
8660
|
* @return The cell attributes.
|
|
8634
8661
|
*
|
|
8635
8662
|
*/
|
|
8636
|
-
declare function BMCollectionViewLayoutAttributesMakeForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
8663
|
+
declare function BMCollectionViewLayoutAttributesMakeForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath}): BMCollectionViewLayoutAttributes;
|
|
8637
8664
|
|
|
8638
8665
|
|
|
8639
8666
|
|
|
@@ -8710,7 +8737,7 @@ declare var _BMCollectionViewTransitionLayoutAttributesUnitRegex: RegExp;
|
|
|
8710
8737
|
* @return The new transition attributes.
|
|
8711
8738
|
*
|
|
8712
8739
|
*/
|
|
8713
|
-
declare function _BMCollectionViewTransitionLayoutAttributesMakeWithSourceAttributes(sourceAttributes: BMCollectionViewLayoutAttributes, {targetAttributes
|
|
8740
|
+
declare function _BMCollectionViewTransitionLayoutAttributesMakeWithSourceAttributes(sourceAttributes: BMCollectionViewLayoutAttributes, {targetAttributes}: {targetAttributes: BMCollectionViewLayoutAttributes}): _BMCollectionViewTransitionLayoutAttributes;
|
|
8714
8741
|
|
|
8715
8742
|
|
|
8716
8743
|
|
|
@@ -9086,7 +9113,7 @@ declare class BMCollectionViewCell extends BMView {
|
|
|
9086
9113
|
* @return This cell.
|
|
9087
9114
|
*
|
|
9088
9115
|
*/
|
|
9089
|
-
initWithCollectionView(collectionView: BMCollectionView, {reuseIdentifier
|
|
9116
|
+
initWithCollectionView(collectionView: BMCollectionView, {reuseIdentifier, node, kind}: {reuseIdentifier: string, node: DOMNode, kind?: BMCollectionViewLayoutAttributesType | null | undefined}): BMCollectionViewCell;
|
|
9090
9117
|
|
|
9091
9118
|
|
|
9092
9119
|
/**
|
|
@@ -9113,7 +9140,7 @@ declare class BMCollectionViewCell extends BMView {
|
|
|
9113
9140
|
* @return A cell.
|
|
9114
9141
|
*
|
|
9115
9142
|
*/
|
|
9116
|
-
declare function BMCollectionViewCellMakeForCollectionView(collectionView: BMCollectionView, {withReuseIdentifier
|
|
9143
|
+
declare function BMCollectionViewCellMakeForCollectionView(collectionView: BMCollectionView, {withReuseIdentifier, node}: {withReuseIdentifier: string, node: DOMNode}): BMCollectionViewCell;
|
|
9117
9144
|
|
|
9118
9145
|
|
|
9119
9146
|
|
|
@@ -9225,7 +9252,7 @@ declare class BMCollectionViewLayout {
|
|
|
9225
9252
|
* @return The supplementary view attributes.
|
|
9226
9253
|
*
|
|
9227
9254
|
*/
|
|
9228
|
-
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9255
|
+
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath}): BMCollectionViewLayoutAttributes;
|
|
9229
9256
|
|
|
9230
9257
|
|
|
9231
9258
|
/**
|
|
@@ -9352,7 +9379,7 @@ declare class BMCollectionViewLayout {
|
|
|
9352
9379
|
* @return An array of index paths.
|
|
9353
9380
|
*
|
|
9354
9381
|
*/
|
|
9355
|
-
indexPathsFromIndexPath(indexPath: BMIndexPath, {toIndexPath
|
|
9382
|
+
indexPathsFromIndexPath(indexPath: BMIndexPath, {toIndexPath}: {toIndexPath: BMIndexPath}): BMIndexPath[];
|
|
9356
9383
|
|
|
9357
9384
|
|
|
9358
9385
|
/**
|
|
@@ -9395,7 +9422,7 @@ declare class BMCollectionViewLayout {
|
|
|
9395
9422
|
* @return The preferred scroll offset.
|
|
9396
9423
|
*
|
|
9397
9424
|
*/
|
|
9398
|
-
preferredScrollOffsetForTransitionFromLayout(fromLayout: BMCollectionViewLayout, {withOffset
|
|
9425
|
+
preferredScrollOffsetForTransitionFromLayout(fromLayout: BMCollectionViewLayout, {withOffset}: {withOffset: BMPoint}): BMPoint;
|
|
9399
9426
|
|
|
9400
9427
|
|
|
9401
9428
|
/**
|
|
@@ -9411,7 +9438,7 @@ declare class BMCollectionViewLayout {
|
|
|
9411
9438
|
* @return The attributes.
|
|
9412
9439
|
*
|
|
9413
9440
|
*/
|
|
9414
|
-
initialAttributesForMovingCellFromIndexPath(indexPath: BMIndexPath, {toIndexPath
|
|
9441
|
+
initialAttributesForMovingCellFromIndexPath(indexPath: BMIndexPath, {toIndexPath, withTargetAttributes}: {toIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9415
9442
|
|
|
9416
9443
|
|
|
9417
9444
|
/**
|
|
@@ -9426,7 +9453,7 @@ declare class BMCollectionViewLayout {
|
|
|
9426
9453
|
* @return The attributes.
|
|
9427
9454
|
*
|
|
9428
9455
|
*/
|
|
9429
|
-
initialAttributesForMovingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9456
|
+
initialAttributesForMovingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9430
9457
|
|
|
9431
9458
|
|
|
9432
9459
|
/**
|
|
@@ -9439,7 +9466,7 @@ declare class BMCollectionViewLayout {
|
|
|
9439
9466
|
* @return The attributes.
|
|
9440
9467
|
*
|
|
9441
9468
|
*/
|
|
9442
|
-
initialAttributesForAppearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9469
|
+
initialAttributesForAppearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9443
9470
|
|
|
9444
9471
|
|
|
9445
9472
|
/**
|
|
@@ -9453,7 +9480,7 @@ declare class BMCollectionViewLayout {
|
|
|
9453
9480
|
* @return The attributes.
|
|
9454
9481
|
*
|
|
9455
9482
|
*/
|
|
9456
|
-
initialAttributesForAppearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9483
|
+
initialAttributesForAppearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9457
9484
|
|
|
9458
9485
|
|
|
9459
9486
|
/**
|
|
@@ -9466,7 +9493,7 @@ declare class BMCollectionViewLayout {
|
|
|
9466
9493
|
* @return The attributes.
|
|
9467
9494
|
*
|
|
9468
9495
|
*/
|
|
9469
|
-
initialAttributesForRevealingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9496
|
+
initialAttributesForRevealingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9470
9497
|
|
|
9471
9498
|
|
|
9472
9499
|
/**
|
|
@@ -9480,7 +9507,7 @@ declare class BMCollectionViewLayout {
|
|
|
9480
9507
|
* @return The attributes.
|
|
9481
9508
|
*
|
|
9482
9509
|
*/
|
|
9483
|
-
initialAttributesForRevealingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9510
|
+
initialAttributesForRevealingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9484
9511
|
|
|
9485
9512
|
|
|
9486
9513
|
/**
|
|
@@ -9493,7 +9520,7 @@ declare class BMCollectionViewLayout {
|
|
|
9493
9520
|
* @return The attributes.
|
|
9494
9521
|
*
|
|
9495
9522
|
*/
|
|
9496
|
-
initialAttributesForPresentedCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9523
|
+
initialAttributesForPresentedCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9497
9524
|
|
|
9498
9525
|
|
|
9499
9526
|
/**
|
|
@@ -9507,7 +9534,7 @@ declare class BMCollectionViewLayout {
|
|
|
9507
9534
|
* @return The attributes.
|
|
9508
9535
|
*
|
|
9509
9536
|
*/
|
|
9510
|
-
initialAttributesForPresentedSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9537
|
+
initialAttributesForPresentedSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9511
9538
|
|
|
9512
9539
|
|
|
9513
9540
|
/**
|
|
@@ -9532,7 +9559,7 @@ declare class BMCollectionViewLayout {
|
|
|
9532
9559
|
* @return The attributes.
|
|
9533
9560
|
*
|
|
9534
9561
|
*/
|
|
9535
|
-
finalAttributesForDisappearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9562
|
+
finalAttributesForDisappearingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9536
9563
|
|
|
9537
9564
|
|
|
9538
9565
|
/**
|
|
@@ -9546,7 +9573,7 @@ declare class BMCollectionViewLayout {
|
|
|
9546
9573
|
* @return The attributes.
|
|
9547
9574
|
*
|
|
9548
9575
|
*/
|
|
9549
|
-
finalAttributesForDisappearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9576
|
+
finalAttributesForDisappearingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9550
9577
|
|
|
9551
9578
|
|
|
9552
9579
|
/**
|
|
@@ -9559,7 +9586,7 @@ declare class BMCollectionViewLayout {
|
|
|
9559
9586
|
* @return The attributes.
|
|
9560
9587
|
*
|
|
9561
9588
|
*/
|
|
9562
|
-
finalAttributesForHidingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes
|
|
9589
|
+
finalAttributesForHidingCellAtIndexPath(indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9563
9590
|
|
|
9564
9591
|
|
|
9565
9592
|
/**
|
|
@@ -9573,7 +9600,7 @@ declare class BMCollectionViewLayout {
|
|
|
9573
9600
|
* @return The attributes.
|
|
9574
9601
|
*
|
|
9575
9602
|
*/
|
|
9576
|
-
finalAttributesForHidingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
9603
|
+
finalAttributesForHidingSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
9577
9604
|
|
|
9578
9605
|
|
|
9579
9606
|
/**
|
|
@@ -9624,7 +9651,7 @@ declare class BMCollectionViewLayout {
|
|
|
9624
9651
|
* @return True if the new frame requires a new layout, false otherwise.
|
|
9625
9652
|
*
|
|
9626
9653
|
*/
|
|
9627
|
-
shouldInvalidateLayoutForFrameChange(frame: BMRect, {fromFrame
|
|
9654
|
+
shouldInvalidateLayoutForFrameChange(frame: BMRect, {fromFrame}?: {fromFrame?: BMRect | null | undefined}): boolean;
|
|
9628
9655
|
|
|
9629
9656
|
|
|
9630
9657
|
/**
|
|
@@ -9636,7 +9663,7 @@ declare class BMCollectionViewLayout {
|
|
|
9636
9663
|
* @return True if the new frame requires a new layout, false otherwise.
|
|
9637
9664
|
*
|
|
9638
9665
|
*/
|
|
9639
|
-
shouldInvalidateLayoutForBoundsChange(bounds: BMRect, {fromBounds
|
|
9666
|
+
shouldInvalidateLayoutForBoundsChange(bounds: BMRect, {fromBounds}: {fromBounds: BMRect}): boolean;
|
|
9640
9667
|
|
|
9641
9668
|
|
|
9642
9669
|
/**
|
|
@@ -9698,7 +9725,7 @@ declare class BMCollectionViewLayout {
|
|
|
9698
9725
|
* @return The scroll offset to which the collection view should snap.
|
|
9699
9726
|
*
|
|
9700
9727
|
*/
|
|
9701
|
-
snappingScrollOffsetForScrollOffset(offset: BMPoint, {withVerticalDirection
|
|
9728
|
+
snappingScrollOffsetForScrollOffset(offset: BMPoint, {withVerticalDirection, horizontalDirection}: {withVerticalDirection: BMScrollingDirectionVertical, horizontalDirection: BMScrollingDirectionHorizontal}): BMPoint;
|
|
9702
9729
|
|
|
9703
9730
|
|
|
9704
9731
|
/**
|
|
@@ -9749,7 +9776,7 @@ declare class BMCollectionViewLayout {
|
|
|
9749
9776
|
* @return An array of layout constraints.
|
|
9750
9777
|
*
|
|
9751
9778
|
*/
|
|
9752
|
-
constraintsForMeasuringCell(cell: BMCollectionViewCell, {atIndexPath
|
|
9779
|
+
constraintsForMeasuringCell(cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): BMLayoutConstraint[];
|
|
9753
9780
|
|
|
9754
9781
|
|
|
9755
9782
|
/**
|
|
@@ -9989,7 +10016,7 @@ declare class BMCollectionViewTableLayout extends BMCollectionViewLayout {
|
|
|
9989
10016
|
* @return The index path with additional information.
|
|
9990
10017
|
*
|
|
9991
10018
|
*/
|
|
9992
|
-
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
10019
|
+
attributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath}): BMCollectionViewLayoutAttributes;
|
|
9993
10020
|
|
|
9994
10021
|
|
|
9995
10022
|
/**
|
|
@@ -10005,7 +10032,7 @@ declare class BMCollectionViewTableLayout extends BMCollectionViewLayout {
|
|
|
10005
10032
|
* @return The intersecting index path or undefined if the collection view contains no data.
|
|
10006
10033
|
*
|
|
10007
10034
|
*/
|
|
10008
|
-
indexPathAtPoint(point: BMPoint, {directionNext
|
|
10035
|
+
indexPathAtPoint(point: BMPoint, {directionNext}?: {directionNext?: boolean | null | undefined}): BMIndexPath | null | undefined;
|
|
10009
10036
|
|
|
10010
10037
|
}
|
|
10011
10038
|
|
|
@@ -10380,7 +10407,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10380
10407
|
* to measure cells. This is reserved for when this is invoked as a delegate.
|
|
10381
10408
|
*
|
|
10382
10409
|
*/
|
|
10383
|
-
|
|
10410
|
+
private _prepareLayoutWithScrollbarOffsetGenerator(useOffset: boolean, {targetRect, targetIndexPath}?: {targetRect?: BMRect | null | undefined, targetIndexPath?: BMIndexPath | null | undefined}): void;
|
|
10384
10411
|
|
|
10385
10412
|
|
|
10386
10413
|
/**
|
|
@@ -10393,7 +10420,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10393
10420
|
* @param spacing The minimum spacing to use between the cells.
|
|
10394
10421
|
*
|
|
10395
10422
|
*/
|
|
10396
|
-
reflowRow(row: any, {forWidth
|
|
10423
|
+
reflowRow(row: any, {forWidth, height, withOccupiedWidth, spacing}: {forWidth: number, height: number, withOccupiedWidth: number, spacing: number}): void;
|
|
10397
10424
|
|
|
10398
10425
|
|
|
10399
10426
|
/**
|
|
@@ -10405,7 +10432,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10405
10432
|
* @param spacing The minimum spacing to use between the cells.
|
|
10406
10433
|
*
|
|
10407
10434
|
*/
|
|
10408
|
-
private _reflowRow(row: any, {forLength
|
|
10435
|
+
private _reflowRow(row: any, {forLength, breadth, withOccupiedLength, spacing}: {forLength: number, breadth: number, withOccupiedLength: number, spacing: number}): void;
|
|
10409
10436
|
|
|
10410
10437
|
|
|
10411
10438
|
/**
|
|
@@ -10417,7 +10444,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10417
10444
|
* @throw If there are no cached attributes for the specified index path.
|
|
10418
10445
|
*
|
|
10419
10446
|
*/
|
|
10420
|
-
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10447
|
+
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes;
|
|
10421
10448
|
|
|
10422
10449
|
|
|
10423
10450
|
/**
|
|
@@ -10429,7 +10456,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10429
10456
|
* @throws If the index path is out of bounds.
|
|
10430
10457
|
*
|
|
10431
10458
|
*/
|
|
10432
|
-
computedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10459
|
+
computedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes;
|
|
10433
10460
|
|
|
10434
10461
|
|
|
10435
10462
|
/**
|
|
@@ -10442,7 +10469,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10442
10469
|
* or the requested supplementary view type is unsupported.
|
|
10443
10470
|
*
|
|
10444
10471
|
*/
|
|
10445
|
-
cachedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
10472
|
+
cachedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, usingCache}: {atIndexPath: BMIndexPath, usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes | null | undefined;
|
|
10446
10473
|
|
|
10447
10474
|
|
|
10448
10475
|
/**
|
|
@@ -10455,7 +10482,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10455
10482
|
* or the requested supplementary view type is unsupported.
|
|
10456
10483
|
*
|
|
10457
10484
|
*/
|
|
10458
|
-
computedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
10485
|
+
computedAttributesForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath, usingCache}: {atIndexPath: BMIndexPath, usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes | null | undefined;
|
|
10459
10486
|
|
|
10460
10487
|
|
|
10461
10488
|
/**
|
|
@@ -10465,7 +10492,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10465
10492
|
* @return An array of cell attributes.
|
|
10466
10493
|
*
|
|
10467
10494
|
*/
|
|
10468
|
-
cachedAttributesForElementsInRect(rect: BMRect, {usingCache
|
|
10495
|
+
cachedAttributesForElementsInRect(rect: BMRect, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes[];
|
|
10469
10496
|
|
|
10470
10497
|
|
|
10471
10498
|
/**
|
|
@@ -10475,7 +10502,7 @@ declare class BMCollectionViewFlowLayout extends BMCollectionViewLayout {
|
|
|
10475
10502
|
* @return An array of cell attributes.
|
|
10476
10503
|
*
|
|
10477
10504
|
*/
|
|
10478
|
-
computedAttributesForElementsInRect(rect: BMRect, {usingCache
|
|
10505
|
+
computedAttributesForElementsInRect(rect: BMRect, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes[];
|
|
10479
10506
|
|
|
10480
10507
|
|
|
10481
10508
|
/**
|
|
@@ -10607,7 +10634,7 @@ declare class BMCollectionViewMasonryLayout extends BMCollectionViewLayout {
|
|
|
10607
10634
|
* @param usingCache Defaults to this layout's current cache. The cache object to use.
|
|
10608
10635
|
*
|
|
10609
10636
|
*/
|
|
10610
|
-
cachedAttributesForElementsInRect(rect: BMRect, {usingCache
|
|
10637
|
+
cachedAttributesForElementsInRect(rect: BMRect, {usingCache}?: {usingCache?: any | null | undefined}): void;
|
|
10611
10638
|
|
|
10612
10639
|
|
|
10613
10640
|
/**
|
|
@@ -10617,7 +10644,7 @@ declare class BMCollectionViewMasonryLayout extends BMCollectionViewLayout {
|
|
|
10617
10644
|
* @return The layout attributes if the index path exists in the data set, `undefined` otherwise.
|
|
10618
10645
|
*
|
|
10619
10646
|
*/
|
|
10620
|
-
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10647
|
+
cachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): BMCollectionViewLayoutAttributes | null | undefined;
|
|
10621
10648
|
|
|
10622
10649
|
|
|
10623
10650
|
/**
|
|
@@ -10628,7 +10655,7 @@ declare class BMCollectionViewMasonryLayout extends BMCollectionViewLayout {
|
|
|
10628
10655
|
* @return An object that describes the requested attributes and its position in the layout.
|
|
10629
10656
|
*
|
|
10630
10657
|
*/
|
|
10631
|
-
private _extendedCachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache
|
|
10658
|
+
private _extendedCachedAttributesForCellAtIndexPath(indexPath: BMIndexPath, {usingCache}?: {usingCache?: any | null | undefined}): any | null | undefined;
|
|
10632
10659
|
|
|
10633
10660
|
|
|
10634
10661
|
/**
|
|
@@ -10788,7 +10815,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10788
10815
|
* @param intoCache The layout cache into which the layout will be prepared.
|
|
10789
10816
|
*
|
|
10790
10817
|
*/
|
|
10791
|
-
private _prepareLayoutForSection(section: number, {intoCache
|
|
10818
|
+
private _prepareLayoutForSection(section: number, {intoCache}: {intoCache: any}): void;
|
|
10792
10819
|
|
|
10793
10820
|
|
|
10794
10821
|
/**
|
|
@@ -10801,7 +10828,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10801
10828
|
* @return The resulting extent.
|
|
10802
10829
|
*
|
|
10803
10830
|
*/
|
|
10804
|
-
rightExtentByTrimmingLeftSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10831
|
+
rightExtentByTrimmingLeftSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10805
10832
|
|
|
10806
10833
|
|
|
10807
10834
|
/**
|
|
@@ -10814,7 +10841,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10814
10841
|
* @return The resulting extent.
|
|
10815
10842
|
*
|
|
10816
10843
|
*/
|
|
10817
|
-
leftExtentByTrimmingRightSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10844
|
+
leftExtentByTrimmingRightSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10818
10845
|
|
|
10819
10846
|
|
|
10820
10847
|
/**
|
|
@@ -10827,7 +10854,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10827
10854
|
* @return The resulting extent.
|
|
10828
10855
|
*
|
|
10829
10856
|
*/
|
|
10830
|
-
topExtentByTrimmingBottomSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10857
|
+
topExtentByTrimmingBottomSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10831
10858
|
|
|
10832
10859
|
|
|
10833
10860
|
/**
|
|
@@ -10840,7 +10867,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10840
10867
|
* @return The resulting extent.
|
|
10841
10868
|
*
|
|
10842
10869
|
*/
|
|
10843
|
-
bottomExtentByTrimmingTopSideOfExtent(extent: BMRect, {withIntersectingRect
|
|
10870
|
+
bottomExtentByTrimmingTopSideOfExtent(extent: BMRect, {withIntersectingRect}: {withIntersectingRect: BMRect}): BMRect;
|
|
10844
10871
|
|
|
10845
10872
|
|
|
10846
10873
|
/**
|
|
@@ -10853,7 +10880,7 @@ declare class BMCollectionViewTileLayout extends BMCollectionViewLayout {
|
|
|
10853
10880
|
* @return The resulting extents.
|
|
10854
10881
|
*
|
|
10855
10882
|
*/
|
|
10856
|
-
rectsWithDifferenceOfExtent(extent: BMRect, {fromRect
|
|
10883
|
+
rectsWithDifferenceOfExtent(extent: BMRect, {fromRect, spacing}: {fromRect: BMRect, spacing?: number | null | undefined}): BMRect[];
|
|
10857
10884
|
|
|
10858
10885
|
|
|
10859
10886
|
/**
|
|
@@ -11243,7 +11270,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11243
11270
|
* @return The index path, or undefined if there is no object with the specified indexes.
|
|
11244
11271
|
*
|
|
11245
11272
|
*/
|
|
11246
|
-
indexPathForObjectAtRow(row: Int, {inSectionAtIndex
|
|
11273
|
+
indexPathForObjectAtRow(row: Int, {inSectionAtIndex}: {inSectionAtIndex: Int}): BMIndexPath<T> | null | undefined;
|
|
11247
11274
|
|
|
11248
11275
|
|
|
11249
11276
|
/**
|
|
@@ -11467,7 +11494,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11467
11494
|
* @param forReuseIdentifier The reuse identifier.
|
|
11468
11495
|
*
|
|
11469
11496
|
*/
|
|
11470
|
-
registerCellClass(cellClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier
|
|
11497
|
+
registerCellClass(cellClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier}: {forReuseIdentifier: string}): void;
|
|
11471
11498
|
|
|
11472
11499
|
|
|
11473
11500
|
/**
|
|
@@ -11485,7 +11512,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11485
11512
|
* @param forReuseIdentifier The reuse identifier.
|
|
11486
11513
|
*
|
|
11487
11514
|
*/
|
|
11488
|
-
registerSupplementaryViewClass(supplementaryViewClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier
|
|
11515
|
+
registerSupplementaryViewClass(supplementaryViewClass: typeof BMCollectionViewCell | null | undefined, {forReuseIdentifier}: {forReuseIdentifier: string}): void;
|
|
11489
11516
|
|
|
11490
11517
|
|
|
11491
11518
|
/**
|
|
@@ -11519,7 +11546,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11519
11546
|
* @param animated Defaults to NO. If set to YES, this change will be animated, otherwise it will be instant.
|
|
11520
11547
|
*
|
|
11521
11548
|
*/
|
|
11522
|
-
invalidateLayoutWithContext(context: BMCollectionViewLayoutInvalidationContext, {animated
|
|
11549
|
+
invalidateLayoutWithContext(context: BMCollectionViewLayoutInvalidationContext, {animated}?: {animated?: boolean | null | undefined}): void;
|
|
11523
11550
|
|
|
11524
11551
|
|
|
11525
11552
|
/**
|
|
@@ -11665,7 +11692,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11665
11692
|
* @param exclusive Defaults to NO. If set to YES, all other cells not in the attributes array will be unmanaged.
|
|
11666
11693
|
*
|
|
11667
11694
|
*/
|
|
11668
|
-
private _renderCellsWithAttributes(attributes: BMCollectionViewLayoutAttributes[], {exclusive
|
|
11695
|
+
private _renderCellsWithAttributes(attributes: BMCollectionViewLayoutAttributes[], {exclusive}?: {exclusive?: boolean | null | undefined}): void;
|
|
11669
11696
|
|
|
11670
11697
|
|
|
11671
11698
|
/**
|
|
@@ -11777,13 +11804,13 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11777
11804
|
* Prepares the cell at the given index path for measurement, yielding prior to measuring it, then returning the measured size.
|
|
11778
11805
|
* If the cell was already measured, this will immediately return the cached measured size.
|
|
11779
11806
|
* @param indexPath The index path of the cell whose size should be measured.
|
|
11780
|
-
* @param layoutQueue
|
|
11807
|
+
* @param layoutQueue The layout queue to use for this measurement.
|
|
11781
11808
|
* @param dequeue Whether the layout queue should be drained automatically or not. If set to `NO`,
|
|
11782
11809
|
* the layout queue must be drained after the first time this generator yields.
|
|
11783
11810
|
* @return The iterator.
|
|
11784
11811
|
*
|
|
11785
11812
|
*/
|
|
11786
|
-
|
|
11813
|
+
private _measuredSizeOfCellAtIndexPathGenerator(indexPath: BMIndexPath<T>, {layoutQueue, dequeue}: {layoutQueue: BMViewLayoutQueue, dequeue: boolean}): Iterator<BMSize | undefined>;
|
|
11787
11814
|
|
|
11788
11815
|
|
|
11789
11816
|
/**
|
|
@@ -11800,7 +11827,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11800
11827
|
* @return The new cell, if could be bound, undefined otherwise.
|
|
11801
11828
|
*
|
|
11802
11829
|
*/
|
|
11803
|
-
refreshCellAtIndexPath(indexPath: BMIndexPath<T>, {animated
|
|
11830
|
+
refreshCellAtIndexPath(indexPath: BMIndexPath<T>, {animated}?: {animated?: boolean | null | undefined}): BMCollectionViewCell | null | undefined;
|
|
11804
11831
|
|
|
11805
11832
|
|
|
11806
11833
|
/**
|
|
@@ -11851,7 +11878,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11851
11878
|
* @param withDropShadows A map containing the link between drop shadows and the items.
|
|
11852
11879
|
*
|
|
11853
11880
|
*/
|
|
11854
|
-
private _insertItems(items: any[], {toIndexPath
|
|
11881
|
+
private _insertItems(items: any[], {toIndexPath, withDropShadows}: {toIndexPath: BMIndexPath<T>, withDropShadows: Map<any, DOMNode>}): void;
|
|
11855
11882
|
|
|
11856
11883
|
|
|
11857
11884
|
/**
|
|
@@ -11863,7 +11890,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11863
11890
|
* of the touch point that will control this drag & drop operation.
|
|
11864
11891
|
*
|
|
11865
11892
|
*/
|
|
11866
|
-
beginDragWithEvent(event: Event, {forCell
|
|
11893
|
+
beginDragWithEvent(event: Event, {forCell, touchIdentifier}: {forCell: BMCollectionViewCell, touchIdentifier: any}): void;
|
|
11867
11894
|
|
|
11868
11895
|
|
|
11869
11896
|
/**
|
|
@@ -11926,7 +11953,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11926
11953
|
* @return The cell if it exists, or undefined if it does not.
|
|
11927
11954
|
*
|
|
11928
11955
|
*/
|
|
11929
|
-
cellAtIndexPath(indexPath: BMIndexPath<T>, {ofType
|
|
11956
|
+
cellAtIndexPath(indexPath: BMIndexPath<T>, {ofType, withIdentifier}?: {ofType?: BMCollectionViewLayoutAttributesType | null | undefined, withIdentifier?: string | null | undefined}): BMCollectionViewCell | null | undefined;
|
|
11930
11957
|
|
|
11931
11958
|
|
|
11932
11959
|
/**
|
|
@@ -11936,7 +11963,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11936
11963
|
* @return The cell if it exists, or undefined if it does not.
|
|
11937
11964
|
*
|
|
11938
11965
|
*/
|
|
11939
|
-
supplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
11966
|
+
supplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): BMCollectionViewCell | null | undefined;
|
|
11940
11967
|
|
|
11941
11968
|
|
|
11942
11969
|
/**
|
|
@@ -11959,7 +11986,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11959
11986
|
* @return The cell if it exists, or undefined if the index path is out of bounds.
|
|
11960
11987
|
*
|
|
11961
11988
|
*/
|
|
11962
|
-
retainSupplementaryViewWithIdentifier(identifier: string, {forIndexPath
|
|
11989
|
+
retainSupplementaryViewWithIdentifier(identifier: string, {forIndexPath}: {forIndexPath: BMIndexPath<T>}): BMCollectionViewCell | null | undefined;
|
|
11963
11990
|
|
|
11964
11991
|
|
|
11965
11992
|
/**
|
|
@@ -11968,7 +11995,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11968
11995
|
* @param withEvent The event that triggered this method.
|
|
11969
11996
|
*
|
|
11970
11997
|
*/
|
|
11971
|
-
cellWasClicked(cell: BMCollectionViewCell, {withEvent
|
|
11998
|
+
cellWasClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): void;
|
|
11972
11999
|
|
|
11973
12000
|
|
|
11974
12001
|
/**
|
|
@@ -11977,7 +12004,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11977
12004
|
* @param withEvent The event that triggered this method.
|
|
11978
12005
|
*
|
|
11979
12006
|
*/
|
|
11980
|
-
cellWasDoubleClicked(cell: BMCollectionViewCell, {withEvent
|
|
12007
|
+
cellWasDoubleClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): void;
|
|
11981
12008
|
|
|
11982
12009
|
|
|
11983
12010
|
/**
|
|
@@ -11986,7 +12013,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11986
12013
|
* @param withEvent The event that triggered this method.
|
|
11987
12014
|
*
|
|
11988
12015
|
*/
|
|
11989
|
-
cellWasLongClicked(cell: BMCollectionViewCell, {withEvent
|
|
12016
|
+
cellWasLongClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): void;
|
|
11990
12017
|
|
|
11991
12018
|
|
|
11992
12019
|
/**
|
|
@@ -11996,7 +12023,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
11996
12023
|
* @return Defaults to NO. This should be YES if the default behaviour should be supressed, NO otherwise.
|
|
11997
12024
|
*
|
|
11998
12025
|
*/
|
|
11999
|
-
cellWasRightClicked(cell: BMCollectionViewCell, {withEvent
|
|
12026
|
+
cellWasRightClicked(cell: BMCollectionViewCell, {withEvent}: {withEvent: Event}): boolean | null | undefined;
|
|
12000
12027
|
|
|
12001
12028
|
|
|
12002
12029
|
/**
|
|
@@ -12006,23 +12033,21 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12006
12033
|
private _keyboardNavigationShortcuts: BMKeyboardShortcut[];
|
|
12007
12034
|
|
|
12008
12035
|
/**
|
|
12009
|
-
* @protected
|
|
12010
12036
|
* Configures the keyboard shortcuts used by the collection view for highlighting.
|
|
12011
12037
|
* Subclasses overriding this may invoke the superclass implementation to retain the default keyboard
|
|
12012
12038
|
* shortcuts.
|
|
12013
12039
|
*
|
|
12014
12040
|
*/
|
|
12015
|
-
configureKeyboardShortcuts(): void;
|
|
12041
|
+
protected configureKeyboardShortcuts(): void;
|
|
12016
12042
|
|
|
12017
12043
|
|
|
12018
12044
|
/**
|
|
12019
|
-
* @protected
|
|
12020
12045
|
* Removes the keyboard shortcuts used by the collection view for highlighting.
|
|
12021
12046
|
* Subclasses overriding this should invoke the superclass implementation to remove the default keyboard
|
|
12022
12047
|
* shortcuts.
|
|
12023
12048
|
*
|
|
12024
12049
|
*/
|
|
12025
|
-
disableKeyboardShortcuts(): void;
|
|
12050
|
+
protected disableKeyboardShortcuts(): void;
|
|
12026
12051
|
|
|
12027
12052
|
|
|
12028
12053
|
/**
|
|
@@ -12048,7 +12073,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12048
12073
|
* @param withEvent The event that triggered this action, if any.
|
|
12049
12074
|
*
|
|
12050
12075
|
*/
|
|
12051
|
-
private _highlightIndexPath(indexPath: BMIndexPath, {withEvent
|
|
12076
|
+
private _highlightIndexPath(indexPath: BMIndexPath, {withEvent}?: {withEvent?: UIEvent | null | undefined}): void;
|
|
12052
12077
|
|
|
12053
12078
|
|
|
12054
12079
|
/**
|
|
@@ -12067,7 +12092,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12067
12092
|
* @param withEvent The event that triggerred this action.
|
|
12068
12093
|
*
|
|
12069
12094
|
*/
|
|
12070
|
-
keyboardArrowPressed(arrow: string, {withEvent
|
|
12095
|
+
keyboardArrowPressed(arrow: string, {withEvent}: {withEvent: KeyboardEvent}): void;
|
|
12071
12096
|
|
|
12072
12097
|
|
|
12073
12098
|
/**
|
|
@@ -12125,7 +12150,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12125
12150
|
* @param completionHandler An optional handler to execute when the animated layout change completes.
|
|
12126
12151
|
*
|
|
12127
12152
|
*/
|
|
12128
|
-
setLayout(layout: BMCollectionViewLayout, {animated
|
|
12153
|
+
setLayout(layout: BMCollectionViewLayout, {animated, completionHandler}?: {animated?: boolean | null | undefined, completionHandler?: (() => void) | null | undefined}): void;
|
|
12129
12154
|
|
|
12130
12155
|
|
|
12131
12156
|
/**
|
|
@@ -12207,7 +12232,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12207
12232
|
* @return A promise that resolves when this update completes, after any associated animation finishes.
|
|
12208
12233
|
*
|
|
12209
12234
|
*/
|
|
12210
|
-
updateEntireDataAnimated(animated?: boolean | null | undefined, {updateLayout
|
|
12235
|
+
updateEntireDataAnimated(animated?: boolean | null | undefined, {updateLayout, completionHandler}?: {updateLayout?: boolean | null | undefined, completionHandler?: (() => void) | null | undefined}): Promise<void>;
|
|
12211
12236
|
|
|
12212
12237
|
|
|
12213
12238
|
/**
|
|
@@ -12225,7 +12250,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12225
12250
|
* @return A promise that resolves when this operation completes.
|
|
12226
12251
|
*
|
|
12227
12252
|
*/
|
|
12228
|
-
scrollToCellAtIndexPath(indexPath: BMIndexPath<T>, {withVerticalGravity
|
|
12253
|
+
scrollToCellAtIndexPath(indexPath: BMIndexPath<T>, {withVerticalGravity, horizontalGravity, animated}?: {withVerticalGravity?: BMCollectionViewScrollingGravityVertical | null | undefined, horizontalGravity?: BMCollectionViewScrollingGravityHorizontal | null | undefined, animated?: boolean | null | undefined}): Promise<undefined>;
|
|
12229
12254
|
|
|
12230
12255
|
|
|
12231
12256
|
/**
|
|
@@ -12244,7 +12269,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12244
12269
|
* @return A promise that resolves when this operation completes.
|
|
12245
12270
|
*
|
|
12246
12271
|
*/
|
|
12247
|
-
scrollToSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
12272
|
+
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
12273
|
|
|
12249
12274
|
|
|
12250
12275
|
/**
|
|
@@ -12258,7 +12283,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12258
12283
|
* @return A promise that resolves when this operation completes.
|
|
12259
12284
|
*
|
|
12260
12285
|
*/
|
|
12261
|
-
scrollToRect(rect: BMRect, {withVerticalGravity
|
|
12286
|
+
scrollToRect(rect: BMRect, {withVerticalGravity, horizontalGravity, animated}: {withVerticalGravity: BMCollectionViewScrollingGravityVertical, horizontalGravity: BMCollectionViewScrollingGravityHorizontal, animated?: boolean | null | undefined}): Promise<undefined>;
|
|
12262
12287
|
|
|
12263
12288
|
|
|
12264
12289
|
/**
|
|
@@ -12379,7 +12404,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12379
12404
|
* @return A collection view.
|
|
12380
12405
|
*
|
|
12381
12406
|
*/
|
|
12382
|
-
static collectionViewForNode (node: DOMNode, {customScroll
|
|
12407
|
+
static collectionViewForNode (node: DOMNode, {customScroll}?: {customScroll?: boolean | null | undefined}): BMCollectionView;
|
|
12383
12408
|
|
|
12384
12409
|
|
|
12385
12410
|
/**
|
|
@@ -12406,7 +12431,7 @@ declare class BMCollectionView<T = any> extends BMView {
|
|
|
12406
12431
|
* @return A collection view.
|
|
12407
12432
|
*
|
|
12408
12433
|
*/
|
|
12409
|
-
declare function BMCollectionViewMakeWithContainer(container: BMJQueryShim, {customScroll
|
|
12434
|
+
declare function BMCollectionViewMakeWithContainer(container: BMJQueryShim, {customScroll}?: {customScroll?: boolean | null | undefined}): BMCollectionView;
|
|
12410
12435
|
|
|
12411
12436
|
|
|
12412
12437
|
|
|
@@ -12445,7 +12470,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12445
12470
|
* @return The complete index path.
|
|
12446
12471
|
*
|
|
12447
12472
|
*/
|
|
12448
|
-
indexPathForObjectAtRow(row: Int, {inSectionAtIndex
|
|
12473
|
+
indexPathForObjectAtRow(row: Int, {inSectionAtIndex}: {inSectionAtIndex: Int}): BMIndexPath<T>;
|
|
12449
12474
|
|
|
12450
12475
|
|
|
12451
12476
|
/**
|
|
@@ -12501,7 +12526,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12501
12526
|
* @return The cell.
|
|
12502
12527
|
*
|
|
12503
12528
|
*/
|
|
12504
|
-
cellForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath
|
|
12529
|
+
cellForSupplementaryViewWithIdentifier(identifier: string, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): BMCollectionViewCell;
|
|
12505
12530
|
|
|
12506
12531
|
|
|
12507
12532
|
/**
|
|
@@ -12514,7 +12539,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12514
12539
|
* @param atIndexPath The indexPath to the model object this cell represents.
|
|
12515
12540
|
*
|
|
12516
12541
|
*/
|
|
12517
|
-
updateCell?(cell: BMCollectionViewCell, {atIndexPath
|
|
12542
|
+
updateCell?(cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath<T>}): void;
|
|
12518
12543
|
|
|
12519
12544
|
|
|
12520
12545
|
/**
|
|
@@ -12528,7 +12553,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12528
12553
|
* @param atIndexPath The indexPath to the model object this supplementary view represents.
|
|
12529
12554
|
*
|
|
12530
12555
|
*/
|
|
12531
|
-
updateSupplementaryView?(view: BMCollectionViewCell, {withIdentifier
|
|
12556
|
+
updateSupplementaryView?(view: BMCollectionViewCell, {withIdentifier, atIndexPath}: {withIdentifier: string, atIndexPath: BMIndexPath<T>}): void;
|
|
12532
12557
|
|
|
12533
12558
|
|
|
12534
12559
|
/**
|
|
@@ -12564,7 +12589,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12564
12589
|
* @return `YES` if the data set has performed the requested change, `NO` otherwise.
|
|
12565
12590
|
*
|
|
12566
12591
|
*/
|
|
12567
|
-
moveItemFromIndexPath?(indexPath: BMIndexPath<T>, {toIndexPath
|
|
12592
|
+
moveItemFromIndexPath?(indexPath: BMIndexPath<T>, {toIndexPath}: {toIndexPath: BMIndexPath<T>}): boolean;
|
|
12568
12593
|
|
|
12569
12594
|
|
|
12570
12595
|
/**
|
|
@@ -12585,7 +12610,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12585
12610
|
* collection view.
|
|
12586
12611
|
*
|
|
12587
12612
|
*/
|
|
12588
|
-
moveItemsFromIndexPaths?(indexPaths: BMIndexPath<T>[], {toIndexPath
|
|
12613
|
+
moveItemsFromIndexPaths?(indexPaths: BMIndexPath<T>[], {toIndexPath}: {toIndexPath: BMIndexPath<T>}): BMIndexPath<T>[];
|
|
12589
12614
|
|
|
12590
12615
|
|
|
12591
12616
|
/**
|
|
@@ -12611,7 +12636,7 @@ declare interface BMCollectionViewDataSet<T = any> {
|
|
|
12611
12636
|
* @param toIndexPath The starting index path to which the items should be inserted.
|
|
12612
12637
|
*
|
|
12613
12638
|
*/
|
|
12614
|
-
insertItems?(items: any[], {toIndexPath
|
|
12639
|
+
insertItems?(items: any[], {toIndexPath}: {toIndexPath: BMIndexPath<T>}): void;
|
|
12615
12640
|
|
|
12616
12641
|
}
|
|
12617
12642
|
|
|
@@ -12643,7 +12668,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12643
12668
|
* @param fromBounds The previous bounds.
|
|
12644
12669
|
*
|
|
12645
12670
|
*/
|
|
12646
|
-
collectionViewBoundsDidChange?(collectionView: BMCollectionView, newBounds: BMRect, {fromBounds
|
|
12671
|
+
collectionViewBoundsDidChange?(collectionView: BMCollectionView, newBounds: BMRect, {fromBounds}: {fromBounds: BMRect}): void;
|
|
12647
12672
|
|
|
12648
12673
|
|
|
12649
12674
|
/**
|
|
@@ -12759,7 +12784,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12759
12784
|
* @param withEvent The keyboard event that triggered this action.
|
|
12760
12785
|
*
|
|
12761
12786
|
*/
|
|
12762
|
-
collectionViewShouldHighlightCellForArrowKey?(collectionView: BMCollectionView, key: string, {withEvent
|
|
12787
|
+
collectionViewShouldHighlightCellForArrowKey?(collectionView: BMCollectionView, key: string, {withEvent}: {withEvent: KeyboardEvent}): void;
|
|
12763
12788
|
|
|
12764
12789
|
|
|
12765
12790
|
/**
|
|
@@ -12773,7 +12798,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12773
12798
|
* @return `YES` if the cell can be highlighted, `NO` otherwise.
|
|
12774
12799
|
*
|
|
12775
12800
|
*/
|
|
12776
|
-
collectionViewCanHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath?: BMIndexPath | null | undefined, {withEvent
|
|
12801
|
+
collectionViewCanHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath?: BMIndexPath | null | undefined, {withEvent}?: {withEvent?: Event | null | undefined}): boolean;
|
|
12777
12802
|
|
|
12778
12803
|
|
|
12779
12804
|
/**
|
|
@@ -12784,7 +12809,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12784
12809
|
* for which the cell was highlighted.
|
|
12785
12810
|
*
|
|
12786
12811
|
*/
|
|
12787
|
-
collectionViewDidHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent
|
|
12812
|
+
collectionViewDidHighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent}?: {withEvent?: Event | null | undefined}): void;
|
|
12788
12813
|
|
|
12789
12814
|
|
|
12790
12815
|
/**
|
|
@@ -12795,7 +12820,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12795
12820
|
* for which the cell was dehighlighted.
|
|
12796
12821
|
*
|
|
12797
12822
|
*/
|
|
12798
|
-
collectionViewDidDehighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent
|
|
12823
|
+
collectionViewDidDehighlightCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withEvent}?: {withEvent?: Event | null | undefined}): void;
|
|
12799
12824
|
|
|
12800
12825
|
|
|
12801
12826
|
/**
|
|
@@ -12839,7 +12864,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12839
12864
|
* @return The Velocity.js animation options object to use.
|
|
12840
12865
|
*
|
|
12841
12866
|
*/
|
|
12842
|
-
collectionViewAnimationOptionsForLayoutChangeFromLayout?(collectionView: BMCollectionView, fromLayout: BMCollectionViewLayout, {toLayout
|
|
12867
|
+
collectionViewAnimationOptionsForLayoutChangeFromLayout?(collectionView: BMCollectionView, fromLayout: BMCollectionViewLayout, {toLayout}: {toLayout: BMCollectionViewLayout}): any;
|
|
12843
12868
|
|
|
12844
12869
|
|
|
12845
12870
|
/**
|
|
@@ -12854,7 +12879,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12854
12879
|
* @return Defaults to NO. If set to YES the collection view will track double clicks for this event.
|
|
12855
12880
|
*
|
|
12856
12881
|
*/
|
|
12857
|
-
collectionViewCanDoubleClickCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12882
|
+
collectionViewCanDoubleClickCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12858
12883
|
|
|
12859
12884
|
|
|
12860
12885
|
/**
|
|
@@ -12869,7 +12894,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12869
12894
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12870
12895
|
*
|
|
12871
12896
|
*/
|
|
12872
|
-
collectionViewCellWasClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12897
|
+
collectionViewCellWasClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12873
12898
|
|
|
12874
12899
|
|
|
12875
12900
|
/**
|
|
@@ -12883,7 +12908,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12883
12908
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12884
12909
|
*
|
|
12885
12910
|
*/
|
|
12886
|
-
collectionViewCellWasDoubleClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12911
|
+
collectionViewCellWasDoubleClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12887
12912
|
|
|
12888
12913
|
|
|
12889
12914
|
/**
|
|
@@ -12897,7 +12922,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12897
12922
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12898
12923
|
*
|
|
12899
12924
|
*/
|
|
12900
|
-
collectionViewCellWasLongClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12925
|
+
collectionViewCellWasLongClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12901
12926
|
|
|
12902
12927
|
|
|
12903
12928
|
/**
|
|
@@ -12912,7 +12937,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12912
12937
|
* @return Defaults to NO. If set to YES the default actions will be suppressed for this event.
|
|
12913
12938
|
*
|
|
12914
12939
|
*/
|
|
12915
|
-
collectionViewCellWasRightClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent
|
|
12940
|
+
collectionViewCellWasRightClicked?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {withEvent}: {withEvent: UIEvent}): boolean | null | undefined;
|
|
12916
12941
|
|
|
12917
12942
|
|
|
12918
12943
|
/**
|
|
@@ -12924,7 +12949,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12924
12949
|
* @param toSize The new size that will be assigned to the cell.
|
|
12925
12950
|
*
|
|
12926
12951
|
*/
|
|
12927
|
-
collectionViewWillResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize
|
|
12952
|
+
collectionViewWillResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize}: {toSize: BMSize}): void;
|
|
12928
12953
|
|
|
12929
12954
|
|
|
12930
12955
|
/**
|
|
@@ -12936,7 +12961,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12936
12961
|
* @param toSize The new size that was assigned to the cell.
|
|
12937
12962
|
*
|
|
12938
12963
|
*/
|
|
12939
|
-
collectionViewDidResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize
|
|
12964
|
+
collectionViewDidResizeCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {toSize}: {toSize: BMSize}): void;
|
|
12940
12965
|
|
|
12941
12966
|
|
|
12942
12967
|
/**
|
|
@@ -12950,7 +12975,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12950
12975
|
* @param atIndexPath The cell's index path.
|
|
12951
12976
|
*
|
|
12952
12977
|
*/
|
|
12953
|
-
collectionViewCanMoveCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
12978
|
+
collectionViewCanMoveCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
12954
12979
|
|
|
12955
12980
|
|
|
12956
12981
|
/**
|
|
@@ -12961,7 +12986,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
12961
12986
|
* @param atIndexPath The cell's current index path.
|
|
12962
12987
|
*
|
|
12963
12988
|
*/
|
|
12964
|
-
collectionViewWillBeginInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
12989
|
+
collectionViewWillBeginInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
12965
12990
|
|
|
12966
12991
|
|
|
12967
12992
|
/**
|
|
@@ -13033,7 +13058,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
13033
13058
|
* @param atIndexPath The cell's new index path.
|
|
13034
13059
|
*
|
|
13035
13060
|
*/
|
|
13036
|
-
collectionViewWillFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
13061
|
+
collectionViewWillFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
13037
13062
|
|
|
13038
13063
|
|
|
13039
13064
|
/**
|
|
@@ -13045,7 +13070,7 @@ declare interface BMCollectionViewDelegate {
|
|
|
13045
13070
|
* @param atIndexPath The cell's new index path.
|
|
13046
13071
|
*
|
|
13047
13072
|
*/
|
|
13048
|
-
collectionViewDidFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath
|
|
13073
|
+
collectionViewDidFinishInteractiveMovementForCell?(collectionView: BMCollectionView, cell: BMCollectionViewCell, {atIndexPath}: {atIndexPath: BMIndexPath}): void;
|
|
13049
13074
|
|
|
13050
13075
|
}
|
|
13051
13076
|
|
|
@@ -13066,7 +13091,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13066
13091
|
* @return The cell attributes to use.
|
|
13067
13092
|
*
|
|
13068
13093
|
*/
|
|
13069
|
-
collectionViewInitialAttributesForPresentedCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes
|
|
13094
|
+
collectionViewInitialAttributesForPresentedCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13070
13095
|
|
|
13071
13096
|
|
|
13072
13097
|
/**
|
|
@@ -13079,7 +13104,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13079
13104
|
* @return The cell attributes to use.
|
|
13080
13105
|
*
|
|
13081
13106
|
*/
|
|
13082
|
-
collectionViewInitialAttributesForPresentedSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath
|
|
13107
|
+
collectionViewInitialAttributesForPresentedSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13083
13108
|
|
|
13084
13109
|
|
|
13085
13110
|
/**
|
|
@@ -13091,7 +13116,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13091
13116
|
* @return The cell attributes to use.
|
|
13092
13117
|
*
|
|
13093
13118
|
*/
|
|
13094
|
-
collectionViewInitialAttributesForAppearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes
|
|
13119
|
+
collectionViewInitialAttributesForAppearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13095
13120
|
|
|
13096
13121
|
|
|
13097
13122
|
/**
|
|
@@ -13104,7 +13129,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13104
13129
|
* @return The cell attributes to use.
|
|
13105
13130
|
*
|
|
13106
13131
|
*/
|
|
13107
|
-
collectionViewInitialAttributesForAppearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath
|
|
13132
|
+
collectionViewInitialAttributesForAppearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13108
13133
|
|
|
13109
13134
|
|
|
13110
13135
|
/**
|
|
@@ -13116,7 +13141,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13116
13141
|
* @return The cell attributes to use.
|
|
13117
13142
|
*
|
|
13118
13143
|
*/
|
|
13119
|
-
collectionViewFinalAttributesForDisappearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes
|
|
13144
|
+
collectionViewFinalAttributesForDisappearingCellAtIndexPath?(collectionView: BMCollectionView, indexPath: BMIndexPath, {withTargetAttributes}: {withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13120
13145
|
|
|
13121
13146
|
|
|
13122
13147
|
/**
|
|
@@ -13129,7 +13154,7 @@ declare interface BMCollectionViewLayoutAnimationDelegate extends BMCollectionVi
|
|
|
13129
13154
|
* @return The cell attributes to use.
|
|
13130
13155
|
*
|
|
13131
13156
|
*/
|
|
13132
|
-
collectionViewFinalAttributesForDisappearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath
|
|
13157
|
+
collectionViewFinalAttributesForDisappearingSupplementaryViewWithIdentifier?(collectionView: BMCollectionView, identifier: string, {atIndexPath, withTargetAttributes}: {atIndexPath: BMIndexPath, withTargetAttributes: BMCollectionViewLayoutAttributes}): BMCollectionViewLayoutAttributes;
|
|
13133
13158
|
|
|
13134
13159
|
}
|
|
13135
13160
|
|
|
@@ -13193,7 +13218,7 @@ declare interface BMCollectionViewDelegateMasonryLayout extends BMCollectionView
|
|
|
13193
13218
|
* @return The cell's height.
|
|
13194
13219
|
*
|
|
13195
13220
|
*/
|
|
13196
|
-
collectionViewHeightForCellAtIndexPath(collectionView: BMCollectionView, indexPath: BMIndexPath, {forColumnWidth
|
|
13221
|
+
collectionViewHeightForCellAtIndexPath(collectionView: BMCollectionView, indexPath: BMIndexPath, {forColumnWidth}: {forColumnWidth: number}): number;
|
|
13197
13222
|
|
|
13198
13223
|
}
|
|
13199
13224
|
|
|
@@ -13213,7 +13238,7 @@ declare class BMWindowOverlay extends BMView {
|
|
|
13213
13238
|
* @return This window overlay.
|
|
13214
13239
|
*
|
|
13215
13240
|
*/
|
|
13216
|
-
initWithWindow(window: BMWindow, {modal
|
|
13241
|
+
initWithWindow(window: BMWindow, {modal}?: {modal?: boolean | null | undefined}): BMWindowOverlay;
|
|
13217
13242
|
|
|
13218
13243
|
|
|
13219
13244
|
/**
|
|
@@ -13337,25 +13362,22 @@ declare class BMWindow extends BMView {
|
|
|
13337
13362
|
readonly contentView: BMView;
|
|
13338
13363
|
|
|
13339
13364
|
/**
|
|
13340
|
-
* @protected
|
|
13341
13365
|
* The priority to use when setting up frame position constraints.
|
|
13342
13366
|
*
|
|
13343
13367
|
*/
|
|
13344
|
-
readonly framePositionPriority: number;
|
|
13368
|
+
protected readonly framePositionPriority: number;
|
|
13345
13369
|
|
|
13346
13370
|
/**
|
|
13347
|
-
* @protected
|
|
13348
13371
|
* The priority to use when setting up frame size constraints.
|
|
13349
13372
|
*
|
|
13350
13373
|
*/
|
|
13351
|
-
readonly frameSizePriority: number;
|
|
13374
|
+
protected readonly frameSizePriority: number;
|
|
13352
13375
|
|
|
13353
13376
|
/**
|
|
13354
|
-
* @protected
|
|
13355
13377
|
* The source anchor point to use when setting up the horizontal position constraint.
|
|
13356
13378
|
*
|
|
13357
13379
|
*/
|
|
13358
|
-
readonly frameHorizontalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13380
|
+
protected readonly frameHorizontalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13359
13381
|
|
|
13360
13382
|
/**
|
|
13361
13383
|
* Returns the name of the horizontal anchor from which the horizontal position constraint will be created.
|
|
@@ -13364,11 +13386,10 @@ declare class BMWindow extends BMView {
|
|
|
13364
13386
|
readonly _frameHorizontalAnchorName: string;
|
|
13365
13387
|
|
|
13366
13388
|
/**
|
|
13367
|
-
* @protected
|
|
13368
13389
|
* The source anchor point to use when setting up the vertical position constraint.
|
|
13369
13390
|
*
|
|
13370
13391
|
*/
|
|
13371
|
-
readonly frameVerticalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13392
|
+
protected readonly frameVerticalPositionLayoutAttribute: BMLayoutAttribute;
|
|
13372
13393
|
|
|
13373
13394
|
/**
|
|
13374
13395
|
* Returns the name of the vertical anchor from which the vertical position constraint will be created.
|
|
@@ -13490,7 +13511,7 @@ declare class BMWindow extends BMView {
|
|
|
13490
13511
|
* @return This window.
|
|
13491
13512
|
*
|
|
13492
13513
|
*/
|
|
13493
|
-
initWithFrame(frame: BMRect, {toolbar
|
|
13514
|
+
initWithFrame(frame: BMRect, {toolbar, modal}?: {toolbar?: boolean | null | undefined, modal?: boolean | null | undefined}): BMWindow;
|
|
13494
13515
|
|
|
13495
13516
|
|
|
13496
13517
|
/**
|
|
@@ -13507,7 +13528,7 @@ declare class BMWindow extends BMView {
|
|
|
13507
13528
|
* is outside of this window, this window will acquire keyboard focus.
|
|
13508
13529
|
*
|
|
13509
13530
|
*/
|
|
13510
|
-
|
|
13531
|
+
protected _enableKeyboardShortcuts(): void;
|
|
13511
13532
|
|
|
13512
13533
|
|
|
13513
13534
|
/**
|
|
@@ -13516,11 +13537,10 @@ declare class BMWindow extends BMView {
|
|
|
13516
13537
|
* @param completionHandler If specified, this handler will be invoked when the operation completes.
|
|
13517
13538
|
*
|
|
13518
13539
|
*/
|
|
13519
|
-
toggleAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13540
|
+
toggleAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13520
13541
|
|
|
13521
13542
|
|
|
13522
13543
|
/**
|
|
13523
|
-
* @protected
|
|
13524
13544
|
* This method is invoked during `bringToFrontAnimated()` to run the animations that will make this window visible.
|
|
13525
13545
|
* Subclasses can override this method to perform custom animations.
|
|
13526
13546
|
*
|
|
@@ -13528,7 +13548,7 @@ declare class BMWindow extends BMView {
|
|
|
13528
13548
|
* @param completionHandler A method that custom implementations must invoke when the animation completes.
|
|
13529
13549
|
*
|
|
13530
13550
|
*/
|
|
13531
|
-
animateInWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13551
|
+
protected animateInWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13532
13552
|
|
|
13533
13553
|
|
|
13534
13554
|
/**
|
|
@@ -13541,11 +13561,10 @@ declare class BMWindow extends BMView {
|
|
|
13541
13561
|
* @param completionHandler A handler that will be invoked after this window has been made visible.
|
|
13542
13562
|
*
|
|
13543
13563
|
*/
|
|
13544
|
-
bringToFrontAnimated(animated?: boolean | null | undefined, {fromRect
|
|
13564
|
+
bringToFrontAnimated(animated?: boolean | null | undefined, {fromRect, fromNode, completionHandler}?: {fromRect?: BMRect | null | undefined, fromNode?: DOMNode | null | undefined, completionHandler?: (() => void) | null | undefined}): void;
|
|
13545
13565
|
|
|
13546
13566
|
|
|
13547
13567
|
/**
|
|
13548
|
-
* @protected
|
|
13549
13568
|
* This method is invoked during `dismissAnimated()` to run the animations that will make this window hidden.
|
|
13550
13569
|
* Subclasses can override this method to perform custom animations.
|
|
13551
13570
|
*
|
|
@@ -13553,7 +13572,7 @@ declare class BMWindow extends BMView {
|
|
|
13553
13572
|
* @param completionHandler A method that custom implementations must invoke when the animation completes.
|
|
13554
13573
|
*
|
|
13555
13574
|
*/
|
|
13556
|
-
animateOutWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13575
|
+
protected animateOutWithCompletionHandler(completionHandler: (() => void)): void;
|
|
13557
13576
|
|
|
13558
13577
|
|
|
13559
13578
|
/**
|
|
@@ -13567,7 +13586,7 @@ declare class BMWindow extends BMView {
|
|
|
13567
13586
|
* @param completionHandler A handler that will be invoked after this window has been hidden.
|
|
13568
13587
|
*
|
|
13569
13588
|
*/
|
|
13570
|
-
dismissAnimated(animated?: boolean | null | undefined, {toRect
|
|
13589
|
+
dismissAnimated(animated?: boolean | null | undefined, {toRect, toNode, completionHandler}?: {toRect?: BMRect | null | undefined, toNode?: DOMNode | null | undefined, completionHandler?: (() => void) | null | undefined}): void;
|
|
13571
13590
|
|
|
13572
13591
|
|
|
13573
13592
|
/**
|
|
@@ -13586,7 +13605,7 @@ declare class BMWindow extends BMView {
|
|
|
13586
13605
|
* @param completionHandler A handler that will be invoked after this window has been minimized.
|
|
13587
13606
|
*
|
|
13588
13607
|
*/
|
|
13589
|
-
minimizeAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13608
|
+
minimizeAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13590
13609
|
|
|
13591
13610
|
|
|
13592
13611
|
/**
|
|
@@ -13597,7 +13616,7 @@ declare class BMWindow extends BMView {
|
|
|
13597
13616
|
* @param completionHandler A handler that will be invoked after this window has been minimized.
|
|
13598
13617
|
*
|
|
13599
13618
|
*/
|
|
13600
|
-
restoreAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13619
|
+
restoreAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13601
13620
|
|
|
13602
13621
|
|
|
13603
13622
|
/**
|
|
@@ -13606,7 +13625,7 @@ declare class BMWindow extends BMView {
|
|
|
13606
13625
|
* @param completionHandler A handler that will be invoked after this window has been hidden.
|
|
13607
13626
|
*
|
|
13608
13627
|
*/
|
|
13609
|
-
enterFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13628
|
+
enterFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13610
13629
|
|
|
13611
13630
|
|
|
13612
13631
|
/**
|
|
@@ -13615,7 +13634,7 @@ declare class BMWindow extends BMView {
|
|
|
13615
13634
|
* @param completionHandler A handler that will be invoked after this window has been hidden.
|
|
13616
13635
|
*
|
|
13617
13636
|
*/
|
|
13618
|
-
exitFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler
|
|
13637
|
+
exitFullScreenAnimated(animated?: boolean | null | undefined, {completionHandler}?: {completionHandler?: (() => void) | null | undefined}): void;
|
|
13619
13638
|
|
|
13620
13639
|
|
|
13621
13640
|
/**
|
|
@@ -13673,7 +13692,7 @@ declare class BMWindow extends BMView {
|
|
|
13673
13692
|
* @return A window.
|
|
13674
13693
|
*
|
|
13675
13694
|
*/
|
|
13676
|
-
declare function BMWindowMakeWithFrame(frame: BMRect, {toolbar
|
|
13695
|
+
declare function BMWindowMakeWithFrame(frame: BMRect, {toolbar, modal}?: {toolbar?: boolean | null | undefined, modal?: boolean | null | undefined}): BMWindow;
|
|
13677
13696
|
|
|
13678
13697
|
|
|
13679
13698
|
|
|
@@ -13704,7 +13723,7 @@ declare class BMToolWindow extends BMWindow {
|
|
|
13704
13723
|
* @return This tool window.
|
|
13705
13724
|
*
|
|
13706
13725
|
*/
|
|
13707
|
-
initWithFrame(frame: BMRect, {forWindow
|
|
13726
|
+
initWithFrame(frame: BMRect, {forWindow}: {forWindow: BMWindow}): BMToolWindow;
|
|
13708
13727
|
|
|
13709
13728
|
|
|
13710
13729
|
/**
|
|
@@ -13714,7 +13733,7 @@ declare class BMToolWindow extends BMWindow {
|
|
|
13714
13733
|
* @return This tool window.
|
|
13715
13734
|
*
|
|
13716
13735
|
*/
|
|
13717
|
-
static toolWindowWithFrame (frame: BMRect, {forWindow
|
|
13736
|
+
static toolWindowWithFrame (frame: BMRect, {forWindow}: {forWindow: BMWindow}): BMToolWindow;
|
|
13718
13737
|
|
|
13719
13738
|
}
|
|
13720
13739
|
|
|
@@ -14199,7 +14218,7 @@ declare class BMPopover extends BMWindow {
|
|
|
14199
14218
|
* @return The SVG path.
|
|
14200
14219
|
*
|
|
14201
14220
|
*/
|
|
14202
|
-
private _pathForPopoverWithFrame(frame: BMRect, {indicatorSize
|
|
14221
|
+
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
14222
|
|
|
14204
14223
|
|
|
14205
14224
|
/**
|
|
@@ -14319,7 +14338,7 @@ declare class BMAlertPopup extends BMWindow {
|
|
|
14319
14338
|
* @return This alert popup.
|
|
14320
14339
|
*
|
|
14321
14340
|
*/
|
|
14322
|
-
initWithTitle(title: string, {text
|
|
14341
|
+
initWithTitle(title: string, {text, actionText}: {text: string, actionText?: string | null | undefined}): BMAlertPopup;
|
|
14323
14342
|
|
|
14324
14343
|
|
|
14325
14344
|
/**
|
|
@@ -14355,7 +14374,7 @@ declare class BMAlertPopup extends BMWindow {
|
|
|
14355
14374
|
* @return An alert popup.
|
|
14356
14375
|
*
|
|
14357
14376
|
*/
|
|
14358
|
-
static alertPopupWithTitle (title: string, {text
|
|
14377
|
+
static alertPopupWithTitle (title: string, {text, actionText}: {text: string, actionText?: string | null | undefined}): BMAlertPopup;
|
|
14359
14378
|
|
|
14360
14379
|
}
|
|
14361
14380
|
|
|
@@ -14393,7 +14412,7 @@ declare class BMConfirmationPopup extends BMAlertPopup {
|
|
|
14393
14412
|
* @return This confirmation popup.
|
|
14394
14413
|
*
|
|
14395
14414
|
*/
|
|
14396
|
-
initWithTitle(title: string, {text
|
|
14415
|
+
initWithTitle(title: string, {text, positiveActionText, negativeActionText}: {text: string, positiveActionText: string, negativeActionText: string}): BMConfirmationPopup;
|
|
14397
14416
|
|
|
14398
14417
|
|
|
14399
14418
|
/**
|
|
@@ -14421,7 +14440,7 @@ declare class BMConfirmationPopup extends BMAlertPopup {
|
|
|
14421
14440
|
* @return A confirmation popup.
|
|
14422
14441
|
*
|
|
14423
14442
|
*/
|
|
14424
|
-
static confirmationPopupWithTitle (title: string, {text
|
|
14443
|
+
static confirmationPopupWithTitle (title: string, {text, positiveActionText, negativeActionText}: {text: string, positiveActionText: string, negativeActionText: string}): BMConfirmationPopup;
|
|
14425
14444
|
|
|
14426
14445
|
}
|
|
14427
14446
|
|
|
@@ -14522,7 +14541,7 @@ declare class BMKeyboardShortcut {
|
|
|
14522
14541
|
* @return This keyboard shortcut.
|
|
14523
14542
|
*
|
|
14524
14543
|
*/
|
|
14525
|
-
initWithKeyCode(key: string, {modifiers
|
|
14544
|
+
initWithKeyCode(key: string, {modifiers, target, action, preventsDefault}: {modifiers?: BMKeyboardShortcutModifier[] | null | undefined, target: any, action: string, preventsDefault?: boolean | null | undefined}): BMKeyboardShortcut;
|
|
14526
14545
|
|
|
14527
14546
|
|
|
14528
14547
|
/**
|
|
@@ -14536,7 +14555,7 @@ declare class BMKeyboardShortcut {
|
|
|
14536
14555
|
*
|
|
14537
14556
|
*
|
|
14538
14557
|
*/
|
|
14539
|
-
initWithKeyboardEvent(event: KeyboardEvent, {target
|
|
14558
|
+
initWithKeyboardEvent(event: KeyboardEvent, {target, action, preventsDefault}: {target: any, action: string, preventsDefault?: boolean | null | undefined}): void;
|
|
14540
14559
|
|
|
14541
14560
|
|
|
14542
14561
|
/**
|
|
@@ -14548,7 +14567,7 @@ declare class BMKeyboardShortcut {
|
|
|
14548
14567
|
* @return This keyboard shortcut.
|
|
14549
14568
|
*
|
|
14550
14569
|
*/
|
|
14551
|
-
initWithSerializedKeyboardShortcut(shortcut: any, {targetID
|
|
14570
|
+
initWithSerializedKeyboardShortcut(shortcut: any, {targetID}: {targetID: (($0: string) => any)}): any;
|
|
14552
14571
|
|
|
14553
14572
|
|
|
14554
14573
|
/**
|
|
@@ -14578,7 +14597,7 @@ declare class BMKeyboardShortcut {
|
|
|
14578
14597
|
* @return A keyboard shortcut.
|
|
14579
14598
|
*
|
|
14580
14599
|
*/
|
|
14581
|
-
static keyboardShortcutWithKeyCode (key: string, {modifiers
|
|
14600
|
+
static keyboardShortcutWithKeyCode (key: string, {modifiers, target, action, preventsDefault}: {modifiers?: BMKeyboardShortcutModifier[] | null | undefined, target: any, action: string, preventsDefault?: boolean | null | undefined}): BMKeyboardShortcut;
|
|
14582
14601
|
|
|
14583
14602
|
|
|
14584
14603
|
/**
|
|
@@ -14592,7 +14611,7 @@ declare class BMKeyboardShortcut {
|
|
|
14592
14611
|
*
|
|
14593
14612
|
*
|
|
14594
14613
|
*/
|
|
14595
|
-
static keyboardShortcutWithKeyboardEvent (event: KeyboardEvent, {target
|
|
14614
|
+
static keyboardShortcutWithKeyboardEvent (event: KeyboardEvent, {target, action, preventsDefault}: {target: any, action: string, preventsDefault?: boolean | null | undefined}): void;
|
|
14596
14615
|
|
|
14597
14616
|
|
|
14598
14617
|
/**
|
|
@@ -14604,7 +14623,7 @@ declare class BMKeyboardShortcut {
|
|
|
14604
14623
|
* @return A keyboard shortcut.
|
|
14605
14624
|
*
|
|
14606
14625
|
*/
|
|
14607
|
-
static keyboardShortcutWithSerializedKeyboardShortcut (shortcut: any, {targetID
|
|
14626
|
+
static keyboardShortcutWithSerializedKeyboardShortcut (shortcut: any, {targetID}: {targetID: (($0: string) => any)}): any;
|
|
14608
14627
|
|
|
14609
14628
|
}
|
|
14610
14629
|
|
|
@@ -14667,7 +14686,7 @@ declare class BMCodeEditor {
|
|
|
14667
14686
|
* @return This code editor.
|
|
14668
14687
|
*
|
|
14669
14688
|
*/
|
|
14670
|
-
initWithContainer(container: DOMNode, {code
|
|
14689
|
+
initWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeEditor;
|
|
14671
14690
|
|
|
14672
14691
|
|
|
14673
14692
|
/**
|
|
@@ -14719,7 +14738,7 @@ declare class BMCodeEditor {
|
|
|
14719
14738
|
* be needed for the environment.
|
|
14720
14739
|
*
|
|
14721
14740
|
*/
|
|
14722
|
-
setBuiltinES6Library(ES6Library: string, {jQueryLibrary
|
|
14741
|
+
setBuiltinES6Library(ES6Library: string, {jQueryLibrary, additionalLibraries}: {jQueryLibrary: string, additionalLibraries?: string[] | null | undefined}): void;
|
|
14723
14742
|
|
|
14724
14743
|
|
|
14725
14744
|
/**
|
|
@@ -14744,7 +14763,7 @@ declare class BMCodeEditor {
|
|
|
14744
14763
|
* @param code The contents of the library.
|
|
14745
14764
|
*
|
|
14746
14765
|
*/
|
|
14747
|
-
addExternalLibraryNamed(name: string, {code
|
|
14766
|
+
addExternalLibraryNamed(name: string, {code}: {code: string}): void;
|
|
14748
14767
|
|
|
14749
14768
|
|
|
14750
14769
|
/**
|
|
@@ -14756,7 +14775,7 @@ declare class BMCodeEditor {
|
|
|
14756
14775
|
* @param code The contents of the library.
|
|
14757
14776
|
*
|
|
14758
14777
|
*/
|
|
14759
|
-
removeExternalLibraryNamed(name: string, {code
|
|
14778
|
+
removeExternalLibraryNamed(name: string, {code}: {code: string}): void;
|
|
14760
14779
|
|
|
14761
14780
|
|
|
14762
14781
|
/**
|
|
@@ -14841,7 +14860,7 @@ declare class BMCodeMirrorCodeEditor {
|
|
|
14841
14860
|
* @return This code editor.
|
|
14842
14861
|
*
|
|
14843
14862
|
*/
|
|
14844
|
-
initWithContainer(container: DOMNode, {code
|
|
14863
|
+
initWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeMirrorCodeEditor;
|
|
14845
14864
|
|
|
14846
14865
|
|
|
14847
14866
|
/**
|
|
@@ -14862,7 +14881,7 @@ declare class BMCodeMirrorCodeEditor {
|
|
|
14862
14881
|
* @return A code editor.
|
|
14863
14882
|
*
|
|
14864
14883
|
*/
|
|
14865
|
-
declare function BMCodeMirrorCodeEditorMakeWithContainer(container: DOMNode, {code
|
|
14884
|
+
declare function BMCodeMirrorCodeEditorMakeWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeMirrorCodeEditor;
|
|
14866
14885
|
|
|
14867
14886
|
|
|
14868
14887
|
|
|
@@ -14898,7 +14917,7 @@ declare class BMMonacoCodeEditor extends BMCodeEditor {
|
|
|
14898
14917
|
* @return This code editor.
|
|
14899
14918
|
*
|
|
14900
14919
|
*/
|
|
14901
|
-
initWithContainer(container: DOMNode, {code
|
|
14920
|
+
initWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMMonacoCodeEditor;
|
|
14902
14921
|
|
|
14903
14922
|
|
|
14904
14923
|
/**
|
|
@@ -14909,7 +14928,7 @@ declare class BMMonacoCodeEditor extends BMCodeEditor {
|
|
|
14909
14928
|
* be needed for the environment.
|
|
14910
14929
|
*
|
|
14911
14930
|
*/
|
|
14912
|
-
setBuiltinES6Library(ES6Library: string, {jQueryLibrary
|
|
14931
|
+
setBuiltinES6Library(ES6Library: string, {jQueryLibrary, additionalLibraries}: {jQueryLibrary: string, additionalLibraries?: string[] | null | undefined}): void;
|
|
14913
14932
|
|
|
14914
14933
|
|
|
14915
14934
|
/**
|
|
@@ -14946,5 +14965,5 @@ declare class BMMonacoCodeEditor extends BMCodeEditor {
|
|
|
14946
14965
|
* @return A code editor.
|
|
14947
14966
|
*
|
|
14948
14967
|
*/
|
|
14949
|
-
declare function BMMonacoCodeEditorMakeWithContainer(container: DOMNode, {code
|
|
14968
|
+
declare function BMMonacoCodeEditorMakeWithContainer(container: DOMNode, {code, language}?: {code?: string | null | undefined, language?: BMCodeEditorLanguage | null | undefined}): BMCodeMirrorCodeEditor;
|
|
14950
14969
|
|