@@ -13,7 +13,7 @@ export type HorizontalConnectionPos = 'start' | 'center' | 'end';
1313/**
1414 * Vertical dimension of a connection point on the perimeter of the origin or overlay element.
1515 *
16- * 在原点周边或浮层元素上的连接点的垂直尺寸 。
16+ * 在原点周边或浮层元素上的连接点的垂直规格 。
1717 *
1818 */
1919export type VerticalConnectionPos = 'top' | 'center' | 'bottom' ;
@@ -97,31 +97,32 @@ export class ConnectionPositionPair {
9797 * Set of properties regarding the position of the origin and overlay relative to the viewport
9898 * with respect to the containing Scrollable elements.
9999 *
100+ * 一组属性,表示原点和浮层相对于包含可滚动元素的视口的位置。
101+ *
100102 * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the
101103 * bounds of any one of the strategy's Scrollable's bounding client rectangle.
102104 *
105+ * 如果浮层和原点的边界矩形的任何部分超出了本策略的可滚动边界矩形,则将对其进行裁剪。
106+ *
103107 * The overlay and origin are outside view if there is no overlap between their bounding client
104108 * rectangle and any one of the strategy's Scrollable's bounding client rectangle.
105109 *
106- * ```
107- * ----------- -----------
108- * | outside | | clipped |
109- * | view | --------------------------
110- * | | | | | |
111- * ---------- | ----------- |
112- * ```
110+ * 如果浮层和原点的边界矩形与本策略的可滚动对象边界矩形中的任何一个都没有重叠,则浮层和原点位于外部视图中。
113111 *
114- * \-------------------------- \| \|
112+ * ----------- -----------
113+ * | outside | | clipped |
114+ * | view | --------------------------
115+ * | | | | | |
116+ * ---------- | ----------- |
117+ * -------------------------- | |
115118 * | | | Scrollable |
116- * \ | \ | \ | \ |
117- * \ | \ | --------------------------
119+ * | | | |
120+ * | | --------------------------
118121 * | Scrollable |
119- * \| \|
122+ * | |
123+ * --------------------------
120124 *
121- * \-------------------------- | | | | | Scrollable | | | | | | | -------------------------- | Scrollable | | |
122- *
123- * * * *
124- * @docs -private
125+ * @docs -private
125126 */
126127export class ScrollingVisibility {
127128 isOriginClipped : boolean ;
@@ -133,7 +134,7 @@ export class ScrollingVisibility {
133134/**
134135 * The change event emitted by the strategy when a fallback position is used.
135136 *
136- * 使用后备位置时 ,本策略发出的更改事件。
137+ * 使用回退位置时 ,本策略发出的更改事件。
137138 *
138139 */
139140export class ConnectedOverlayPositionChange {
@@ -146,8 +147,17 @@ export class ConnectedOverlayPositionChange {
146147
147148/**
148149 * Validates whether a vertical position property matches the expected values.
150+ *
151+ * 验证垂直位置属性是否与期望值匹配。
152+ *
149153 * @param property Name of the property being validated.
154+ *
155+ * 要验证的属性的名称。
156+ *
150157 * @param value Value of the property being validated.
158+ *
159+ * 待验证属性的值。
160+ *
151161 * @docs -private
152162 */
153163export function validateVerticalPosition ( property : string , value : VerticalConnectionPos ) {
@@ -159,8 +169,17 @@ export function validateVerticalPosition(property: string, value: VerticalConnec
159169
160170/**
161171 * Validates whether a horizontal position property matches the expected values.
172+ *
173+ * 验证水平位置属性是否与期望值匹配。
174+ *
162175 * @param property Name of the property being validated.
176+ *
177+ * 要验证的属性的名称。
178+ *
163179 * @param value Value of the property being validated.
180+ *
181+ * 待验证属性的值。
182+ *
164183 * @docs -private
165184 */
166185export function validateHorizontalPosition ( property : string , value : HorizontalConnectionPos ) {
0 commit comments