1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15declare type KNode = number | null; 16declare function getUINativeModule(): any; 17declare enum ModifierType { 18 ORIGIN = 0, 19 STATE = 1, 20 FRAME_NODE = 2, 21 EXPOSE_MODIFIER = 3, 22} 23declare class JsPointerClass { 24 invalid(): boolean; 25} 26declare class ArkLogConsole { 27 public static log(...args: Object[]): void; 28 public static debug(...args: Object[]): void; 29 public static info(...args: Object[]): void; 30 public static warn(...args: Object[]): void; 31 public static error(...args: Object[]): void; 32} 33interface Equable { 34 isEqual(value: Equable): boolean; 35} 36declare type AttributeModifierWithKey = ModifierWithKey<number | string | boolean | object>; 37declare class ModifierWithKey<T extends number | string | boolean | object> { 38 stageValue?: T; 39 value?: T; 40 constructor(value: T); 41 applyStage(node: KNode): boolean; 42 applyPeer(node: KNode, reset: boolean): void; 43 checkObjectDiff(): boolean; 44} 45declare class ArkComponent implements CommonMethod<CommonAttribute> { 46 _changed: boolean; 47 _modifiersWithKeys: Map<Symbol, AttributeModifierWithKey>; 48 nativePtr: KNode; 49 _weakPtr: JsPointerClass; 50 _classType: ModifierType | undefined; 51 _nativePtrChanged: boolean; 52 constructor(nativePtr: KNode, classType?: ModifierType); 53 initialize(...args: Object[]); 54 applyModifierPatch(): void; 55 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 56 outline(value: OutlineOptions): this; 57 outlineColor(value: ResourceColor | EdgeColors): this; 58 outlineRadius(value: Dimension | OutlineRadiuses): this; 59 outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this; 60 outlineWidth(value: Dimension | EdgeOutlineWidths): this; 61 width(value: Length): this; 62 height(value: Length): this; 63 expandSafeArea(types?: Array<SafeAreaType>, edges?: Array<SafeAreaEdge>): this; 64 backgroundEffect(options: BackgroundEffectOptions): this; 65 backgroundBrightness(params: BackgroundBrightnessOptions): this; 66 backgroundBrightnessInternal(params: BrightnessOptions): this; 67 foregroundBrightness(params: BrightnessOptions): this; 68 dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this; 69 responseRegion(value: Array<Rectangle> | Rectangle): this; 70 mouseResponseRegion(value: Array<Rectangle> | Rectangle): this; 71 size(value: SizeOptions): this; 72 constraintSize(value: ConstraintSizeOptions): this; 73 touchable(value: boolean): this; 74 hitTestBehavior(value: HitTestMode): this; 75 layoutWeight(value: number | string): this; 76 padding(value: Padding | Length): this; 77 margin(value: Margin | Length): this; 78 background(builder: CustomBuilder, options?: { 79 align?: Alignment; 80 }): this; 81 backgroundColor(value: ResourceColor): this; 82 backgroundImage(src: ResourceStr, repeat?: ImageRepeat): this; 83 backgroundImageSize(value: SizeOptions | ImageSize): this; 84 backgroundImagePosition(value: Position | Alignment): this; 85 backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this; 86 foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this; 87 opacity(value: number | Resource): this; 88 border(value: BorderOptions): this; 89 borderStyle(value: BorderStyle | EdgeStyles): this; 90 borderWidth(value: Length | EdgeWidths): this; 91 borderColor(value: ResourceColor | EdgeColors): this; 92 borderRadius(value: Length | BorderRadiuses): this; 93 borderImage(value: BorderImageOption): this; 94 foregroundColor(value: ResourceColor | ColoringStrategy): this; 95 onClick(event: (event?: ClickEvent) => void): this; 96 onHover(event: (isHover?: boolean, event?: HoverEvent) => void): this; 97 hoverEffect(value: HoverEffect): this; 98 onMouse(event: (event?: MouseEvent) => void): this; 99 onTouch(event: (event?: TouchEvent) => void): this; 100 onKeyEvent(event: (event?: KeyEvent) => void): this; 101 focusable(value: boolean): this; 102 tabStop(value: boolean): this; 103 onFocus(event: () => void): this; 104 onBlur(event: () => void): this; 105 tabIndex(index: number): this; 106 defaultFocus(value: boolean): this; 107 groupDefaultFocus(value: boolean): this; 108 focusOnTouch(value: boolean): this; 109 animation(value: AnimateParam): this; 110 transition(value: TransitionOptions | TransitionEffect): this; 111 gesture(gesture: GestureType, mask?: GestureMask): this; 112 priorityGesture(gesture: GestureType, mask?: GestureMask): this; 113 parallelGesture(gesture: GestureType, mask?: GestureMask): this; 114 blur(value: number): this; 115 linearGradientBlur(value: number, options: LinearGradientBlurOptions): this; 116 brightness(value: number): this; 117 contrast(value: number): this; 118 grayscale(value: number): this; 119 colorBlend(value: Color | string | Resource): this; 120 saturate(value: number): this; 121 sepia(value: number): this; 122 invert(value: number): this; 123 hueRotate(value: number | string): this; 124 useEffect(value: boolean): this; 125 backdropBlur(value: number): this; 126 renderGroup(value: boolean): this; 127 translate(value: TranslateOptions): this; 128 scale(value: ScaleOptions): this; 129 gridSpan(value: number): this; 130 gridOffset(value: number): this; 131 rotate(value: RotateOptions): this; 132 transform(value: object): this; 133 onAppear(event: () => void): this; 134 onDisAppear(event: () => void): this; 135 onAreaChange(event: (oldValue: Area, newValue: Area) => void): this; 136 visibility(value: Visibility): this; 137 flexGrow(value: number): this; 138 flexShrink(value: number): this; 139 flexBasis(value: number | string): this; 140 alignSelf(value: ItemAlign): this; 141 displayPriority(value: number): this; 142 zIndex(value: number): this; 143 sharedTransition(id: string, options?: sharedTransitionOptions): this; 144 direction(value: Direction): this; 145 align(value: Alignment): this; 146 position(value: Position): this; 147 markAnchor(value: Position): this; 148 offset(value: Position): this; 149 enabled(value: boolean): this; 150 useShadowBatching(value: boolean): this; 151 monopolizeEvents(value: boolean): this; 152 useSizeType(value: { 153 xs?: number | { 154 span: number; 155 offset: number; 156 }; 157 sm?: number | { 158 span: number; 159 offset: number; 160 }; 161 md?: number | { 162 span: number; 163 offset: number; 164 }; 165 lg?: number | { 166 span: number; 167 offset: number; 168 }; 169 }): this; 170 alignRules(value: AlignRuleOption): this; 171 aspectRatio(value: number): this; 172 clickEffect(value: ClickEffect | null): this; 173 onDragStart(event: (event?: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): this; 174 onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): this; 175 onDragMove(event: (event?: DragEvent, extraParams?: string) => void): this; 176 onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): this; 177 onDrop(event: (event?: DragEvent, extraParams?: string) => void): this; 178 onDragEnd(event: (event: DragEvent, extraParams?: string) => void): this; 179 onPreDrag(event: (preDragStatus: PreDragStatus) => void): this; 180 allowDrop(value: Array<UniformDataType>): this; 181 draggable(value: boolean): this; 182 dragPreview(value: CustomBuilder | DragItemInfo | string): this; 183 overlay(value: string | CustomBuilder, options?: { 184 align?: Alignment; 185 offset?: { 186 x?: number; 187 y?: number; 188 }; 189 }): this; 190 linearGradient(value: { 191 angle?: number | string; 192 direction?: GradientDirection; 193 colors: Array<any>; 194 repeating?: boolean; 195 }): this; 196 sweepGradient(value: { 197 center: Array<any>; 198 start?: number | string; 199 end?: number | string; 200 rotation?: number | string; 201 colors: Array<any>; 202 repeating?: boolean; 203 }): this; 204 radialGradient(value: { 205 center: Array<any>; 206 radius: number | string; 207 colors: Array<any>; 208 repeating?: boolean; 209 }): this; 210 motionPath(value: MotionPathOptions): this; 211 shadow(value: ShadowOptions | ShadowStyle): this; 212 mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this; 213 key(value: string): this; 214 id(value: string): this; 215 geometryTransition(id: string): this; 216 bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this; 217 bindMenu(content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): this; 218 bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): this; 219 bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition | ContentCoverOptions): this; 220 blendMode(blendMode: BlendMode, blendApplyType?: BlendApplyType): this; 221 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 222 bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): this; 223 stateStyles(value: StateStyles): this; 224 restoreId(value: number): this; 225 onVisibleAreaChange(ratios: Array<number>, event: (isVisible: boolean, currentRatio: number) => void): this; 226 sphericalEffect(value: number): this; 227 lightUpEffect(value: number): this; 228 pixelStretchEffect(options: PixelStretchEffectOptions): this; 229 keyboardShortcut(value: string | FunctionKey, keys: Array<ModifierKey>, action?: () => void): this; 230 accessibilityGroup(value: boolean): this; 231 accessibilityText(value: string | Resource): this; 232 accessibilityDescription(value: string | Resource): this; 233 accessibilityLevel(value: string): this; 234 obscured(reasons: Array<ObscuredReasons>): this; 235 reuseId(id: string): this; 236 renderFit(fitMode: RenderFit): this; 237 attributeModifier(modifier: AttributeModifier<CommonAttribute>): this; 238 systemBarEffect(value: null): this; 239} 240declare class ArkBlankComponent extends ArkComponent implements CommonMethod<BlankAttribute> { 241 constructor(nativePtr: KNode, classType?: ModifierType); 242 color(value: ResourceColor): BlankAttribute; 243 height(value: Length): this; 244} 245declare class ArkColumnComponent extends ArkComponent implements CommonMethod<ColumnAttribute> { 246 constructor(nativePtr: KNode, classType?: ModifierType); 247 alignItems(value: HorizontalAlign): ColumnAttribute; 248 justifyContent(value: FlexAlign): ColumnAttribute; 249 pointLight(value: PointLightStyle): ColumnAttribute; 250} 251declare class ArkColumnSplitComponent extends ArkComponent implements CommonMethod<ColumnSplitAttribute> { 252 constructor(nativePtr: KNode, classType?: ModifierType); 253 resizeable(value: boolean): ColumnSplitAttribute; 254 divider(value: ColumnSplitDividerStyle | null): ColumnSplitAttribute; 255 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 256} 257declare class ArkDividerComponent extends ArkComponent implements DividerAttribute { 258 constructor(nativePtr: KNode, classType?: ModifierType); 259 vertical(value: boolean): DividerAttribute; 260 color(value: ResourceColor): DividerAttribute; 261 strokeWidth(value: number | string): DividerAttribute; 262 lineCap(value: LineCapStyle): DividerAttribute; 263} 264declare class ArkFlexComponent extends ArkComponent implements FlexAttribute { 265 constructor(nativePtr: KNode, classType?: ModifierType); 266 pointLight(value: PointLightStyle): this; 267} 268declare class ArkGridRowComponent extends ArkComponent implements CommonMethod<GridRowAttribute> { 269 constructor(nativePtr: KNode, classType?: ModifierType); 270 onBreakpointChange(callback: (breakpoints: string) => void): GridRowAttribute; 271 alignItems(value: ItemAlign): GridRowAttribute; 272} 273declare class ArkGridComponent extends ArkComponent implements GridAttribute { 274 constructor(nativePtr: KNode, classType?: ModifierType); 275 columnsTemplate(value: string): this; 276 rowsTemplate(value: string): this; 277 columnsGap(value: Length): this; 278 rowsGap(value: Length): this; 279 scrollBarWidth(value: string | number): this; 280 scrollBarColor(value: string | number | Color): this; 281 scrollBar(value: BarState): this; 282 onScrollBarUpdate(event: (index: number, offset: number) => ComputedBarAttribute): this; 283 onScrollIndex(event: (first: number, last: number) => void): this; 284 cachedCount(value: number): this; 285 editMode(value: boolean): this; 286 multiSelectable(value: boolean): this; 287 maxCount(value: number): this; 288 minCount(value: number): this; 289 cellLength(value: number): this; 290 layoutDirection(value: GridDirection): this; 291 supportAnimation(value: boolean): this; 292 onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => void | (() => any)): this; 293 onItemDragEnter(event: (event: ItemDragInfo) => void): this; 294 onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void): this; 295 onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void): this; 296 onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void): this; 297 edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions | undefined): this; 298 fadingEdge(value: boolean, options?: FadingEdgeOptions | undefined): this; 299 nestedScroll(value: NestedScrollOptions): this; 300 enableScrollInteraction(value: boolean): this; 301 friction(value: number | Resource): this; 302 onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): this; 303 onReachStart(event: () => void): this; 304 onReachEnd(event: () => void): this; 305 onScrollStart(event: () => void): this; 306 onScrollStop(event: () => void): this; 307 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { 308 offsetRemain: number; 309 }): this; 310 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 311 flingSpeedLimit(value: number): this; 312 alignItems(value: GridItemAlignment): this; 313} 314declare class ArkGridColComponent extends ArkComponent implements GridColAttribute { 315 constructor(nativePtr: KNode, classType?: ModifierType); 316 span(value: number | GridColColumnOption): GridColAttribute; 317 gridColOffset(value: number | GridColColumnOption): GridColAttribute; 318 order(value: number | GridColColumnOption): GridColAttribute; 319} 320declare class ImageColorFilterModifier extends ModifierWithKey<ColorFilter | DrawingColorFilter> { 321 constructor(value: ColorFilter); 322 static identity: Symbol; 323 applyPeer(node: KNode, reset: boolean): void; 324 checkObjectDiff(): boolean; 325} 326declare class ArkImageComponent extends ArkComponent implements ImageAttribute { 327 constructor(nativePtr: KNode, classType?: ModifierType); 328 onGestureJudgeBegin(callback: any): this; 329 draggable(value: boolean): this; 330 edgeAntialiasing(value: number): this; 331 alt(value: ResourceStr): this; 332 matchTextDirection(value: boolean): this; 333 fitOriginalSize(value: boolean): this; 334 fillColor(value: ResourceColor): this; 335 objectFit(value: ImageFit): this; 336 objectRepeat(value: ImageRepeat): this; 337 orientation(value: ImageRotateOrientation): this; 338 autoResize(value: boolean): this; 339 renderMode(value: ImageRenderMode): this; 340 interpolation(value: ImageInterpolation): this; 341 sourceSize(value: { 342 width: number; 343 height: number; 344 }): this; 345 syncLoad(value: boolean): this; 346 colorFilter(value: ColorFilter): this; 347 copyOption(value: CopyOptions): this; 348 borderRadius(value: Length | BorderRadiuses): this; 349 onComplete(callback: (event?: { 350 width: number; 351 height: number; 352 componentWidth: number; 353 componentHeight: number; 354 loadingStatus: number; 355 contentWidth: number; 356 contentHeight: number; 357 contentOffsetX: number; 358 contentOffsetY: number; 359 }) => void): this; 360 onError(callback: (event: { 361 componentWidth: number; 362 componentHeight: number; 363 message: string; 364 }) => void): this; 365 onFinish(event: () => void): this; 366 border(value: BorderOptions): this; 367 opacity(value: number | Resource): this; 368 transition(value: TransitionOptions | TransitionEffect): this; 369} 370declare class ImageAnimatorImagesModifier extends ModifierWithKey<Array<ImageFrameInfo>> { 371 constructor(value: Array<ImageFrameInfo>); 372 static identity: Symbol; 373 applyPeer(node: KNode, reset: boolean): void; 374 checkObjectDiff(): boolean; 375 isEqual(one: ImageFrameInfo, another: ImageFrameInfo): boolean; 376 convertImageFrames(value: Array<ImageFrameInfo>): ArkImageFrameInfoToArray; 377} 378declare class ArkImageAnimatorComponent extends ArkComponent implements CommonMethod<ImageAnimatorAttribute> { 379 constructor(nativePtr: KNode, classType?: ModifierType); 380 images(value: Array<ImageFrameInfo>): ImageAnimatorAttribute; 381 state(value: AnimationStatus): ImageAnimatorAttribute; 382 duration(value: number): ImageAnimatorAttribute; 383 reverse(value: boolean): ImageAnimatorAttribute; 384 fixedSize(value: boolean): ImageAnimatorAttribute; 385 preDecode(value: number): ImageAnimatorAttribute; 386 fillMode(value: FillMode): ImageAnimatorAttribute; 387 iterations(value: number): ImageAnimatorAttribute; 388 onStart(event: () => void): ImageAnimatorAttribute; 389 onPause(event: () => void): ImageAnimatorAttribute; 390 onRepeat(event: () => void): ImageAnimatorAttribute; 391 onCancel(event: () => void): ImageAnimatorAttribute; 392 onFinish(event: () => void): ImageAnimatorAttribute; 393} 394declare class ArkImageSpanComponent extends ArkComponent implements ImageSpanAttribute { 395 constructor(nativePtr: KNode, classType?: ModifierType); 396 objectFit(value: ImageFit): ImageSpanAttribute; 397 verticalAlign(value: ImageSpanAlignment): ImageSpanAttribute; 398 onComplete(callback: (event?: { 399 width: number; 400 height: number; 401 componentWidth: number; 402 componentHeight: number; 403 loadingStatus: number; 404 contentWidth: number; 405 contentHeight: number; 406 contentOffsetX: number; 407 contentOffsetY: number; 408 }) => void): ImageSpanAttribute; 409 onError(callback: (event: { 410 componentWidth: number; 411 componentHeight: number; 412 message: string; 413 }) => void): ImageSpanAttribute; 414} 415declare class ArkPatternLockComponent extends ArkComponent implements PatternLockAttribute { 416 constructor(nativePtr: KNode, classType?: ModifierType); 417 sideLength(value: Length): PatternLockAttribute; 418 circleRadius(value: Length): PatternLockAttribute; 419 regularColor(value: ResourceColor): PatternLockAttribute; 420 selectedColor(value: ResourceColor): PatternLockAttribute; 421 activeColor(value: ResourceColor): PatternLockAttribute; 422 pathColor(value: ResourceColor): PatternLockAttribute; 423 pathStrokeWidth(value: number | string): PatternLockAttribute; 424 autoReset(value: boolean): PatternLockAttribute; 425 onPatternComplete(callback: (input: Array<number>) => void): PatternLockAttribute; 426 onDotConnect(callback: any): PatternLockAttribute; 427} 428declare class ArkRichEditorComponent extends ArkComponent implements CommonMethod<RichEditorAttribute> { 429 constructor(nativePtr: KNode, classType?: ModifierType); 430 enableDataDetector(enable: boolean): RichEditorAttribute; 431 dataDetectorConfig(config: any): RichEditorAttribute; 432 copyOptions(value: CopyOptions): RichEditorAttribute; 433 onPaste(callback: (event?: PasteEvent) => void): RichEditorAttribute; 434 onReady(callback: () => void): RichEditorAttribute; 435 onSelect(callback: (value: RichEditorSelection) => void): RichEditorAttribute; 436 aboutToIMEInput(callback: (value: RichEditorInsertValue) => boolean): RichEditorAttribute; 437 onIMEInputComplete(callback: (value: RichEditorTextSpanResult) => void): RichEditorAttribute; 438 aboutToDelete(callback: (value: RichEditorDeleteValue) => boolean): RichEditorAttribute; 439 onDeleteComplete(callback: () => void): RichEditorAttribute; 440 bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType, options?: SelectionMenuOptions): RichEditorAttribute; 441 customKeyboard(value: CustomBuilder): RichEditorAttribute; 442} 443declare class ArkRowComponent extends ArkComponent implements RowAttribute { 444 constructor(nativePtr: KNode, classType?: ModifierType); 445 alignItems(value: VerticalAlign): RowAttribute; 446 justifyContent(value: FlexAlign): RowAttribute; 447 pointLight(value: PointLightStyle): RowAttribute; 448} 449declare class ArkRowSplitComponent extends ArkComponent implements RowSplitAttribute { 450 constructor(nativePtr: KNode, classType?: ModifierType); 451 resizeable(value: boolean): RowSplitAttribute; 452 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 453} 454declare class ArkSearchComponent extends ArkComponent implements CommonMethod<SearchAttribute> { 455 constructor(nativePtr: KNode, classType?: ModifierType); 456 onEditChange(callback: (isEditing: boolean) => void): SearchAttribute; 457 type(value: SearchType): SearchAttribute; 458 maxLength(value: number): SearchAttribute; 459 onEditChanged(callback: (isEditing: boolean) => void): SearchAttribute; 460 customKeyboard(event: () => void): SearchAttribute; 461 showUnit(event: () => void): SearchAttribute; 462 onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): SearchAttribute; 463 onChange(callback: (value: string) => void): SearchAttribute; 464 onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): SearchAttribute; 465 onCopy(callback: (value: string) => void): SearchAttribute; 466 onCut(callback: (value: string) => void): SearchAttribute; 467 onSubmit(callback: (value: string) => void): SearchAttribute; 468 onPaste(callback: (value: string) => void): SearchAttribute; 469 showCounter(value: boolean): SearchAttribute; 470 searchButton(value: string, option?: SearchButtonOptions): SearchAttribute; 471 selectionMenuHidden(value: boolean): SearchAttribute; 472 enableKeyboardOnFocus(value: boolean): SearchAttribute; 473 caretStyle(value: CaretStyle): SearchAttribute; 474 cancelButton(value: { 475 style?: CancelButtonStyle; 476 icon?: IconOptions; 477 }): SearchAttribute; 478 searchIcon(value: IconOptions): SearchAttribute; 479 fontColor(value: ResourceColor): SearchAttribute; 480 placeholderColor(value: ResourceColor): SearchAttribute; 481 placeholderFont(value?: Font): SearchAttribute; 482 textFont(value?: Font): SearchAttribute; 483 copyOption(value: CopyOptions): SearchAttribute; 484 textAlign(value: TextAlign): SearchAttribute; 485 height(value: Length): this; 486} 487declare class ArkSpanComponent implements CommonMethod<SpanAttribute> { 488 _changed: boolean; 489 _modifiersWithKeys: Map<Symbol, AttributeModifierWithKey>; 490 nativePtr: KNode; 491 _weakPtr: JsPointerClass; 492 _classType: ModifierType | undefined; 493 _nativePtrChanged: boolean; 494 constructor(nativePtr: KNode, classType?: ModifierType); 495 applyModifierPatch(): void; 496 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 497 outline(value: OutlineOptions): this; 498 outlineColor(value: ResourceColor | EdgeColors): this; 499 outlineRadius(value: Dimension | OutlineRadiuses): this; 500 outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this; 501 outlineWidth(value: Dimension | EdgeOutlineWidths): this; 502 width(value: Length): this; 503 height(value: Length): this; 504 expandSafeArea(types?: Array<SafeAreaType>, edges?: Array<SafeAreaEdge>): this; 505 responseRegion(value: Array<Rectangle> | Rectangle): this; 506 mouseResponseRegion(value: Array<Rectangle> | Rectangle): this; 507 size(value: SizeOptions): this; 508 constraintSize(value: ConstraintSizeOptions): this; 509 touchable(value: boolean): this; 510 hitTestBehavior(value: HitTestMode): this; 511 layoutWeight(value: number | string): this; 512 padding(value: Padding | Length): this; 513 margin(value: Margin | Length): this; 514 background(builder: CustomBuilder, options?: { 515 align?: Alignment; 516 }): this; 517 backgroundColor(value: ResourceColor): this; 518 backgroundImage(src: ResourceStr, repeat?: ImageRepeat): this; 519 backgroundImageSize(value: SizeOptions | ImageSize): this; 520 backgroundImagePosition(value: Position | Alignment): this; 521 backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this; 522 foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this; 523 opacity(value: number | Resource): this; 524 border(value: BorderOptions): this; 525 borderStyle(value: BorderStyle | EdgeStyles): this; 526 borderWidth(value: Length | EdgeWidths): this; 527 borderColor(value: ResourceColor | EdgeColors): this; 528 borderRadius(value: Length | BorderRadiuses): this; 529 borderImage(value: BorderImageOption): this; 530 foregroundColor(value: ResourceColor | ColoringStrategy): this; 531 onClick(event: (event?: ClickEvent) => void): this; 532 onHover(event: (isHover?: boolean, event?: HoverEvent) => void): this; 533 hoverEffect(value: HoverEffect): this; 534 onMouse(event: (event?: MouseEvent) => void): this; 535 onTouch(event: (event?: TouchEvent) => void): this; 536 onKeyEvent(event: (event?: KeyEvent) => void): this; 537 focusable(value: boolean): this; 538 onFocus(event: () => void): this; 539 onBlur(event: () => void): this; 540 tabIndex(index: number): this; 541 defaultFocus(value: boolean): this; 542 groupDefaultFocus(value: boolean): this; 543 focusOnTouch(value: boolean): this; 544 animation(value: AnimateParam): this; 545 transition(value: TransitionOptions | TransitionEffect): this; 546 gesture(gesture: GestureType, mask?: GestureMask): this; 547 priorityGesture(gesture: GestureType, mask?: GestureMask): this; 548 parallelGesture(gesture: GestureType, mask?: GestureMask): this; 549 blur(value: number): this; 550 linearGradientBlur(value: number, options: LinearGradientBlurOptions): this; 551 brightness(value: number): this; 552 contrast(value: number): this; 553 grayscale(value: number): this; 554 colorBlend(value: Color | string | Resource): this; 555 saturate(value: number): this; 556 sepia(value: number): this; 557 invert(value: number): this; 558 hueRotate(value: number | string): this; 559 useEffect(value: boolean): this; 560 backdropBlur(value: number): this; 561 renderGroup(value: boolean): this; 562 translate(value: TranslateOptions): this; 563 scale(value: ScaleOptions): this; 564 gridSpan(value: number): this; 565 gridOffset(value: number): this; 566 rotate(value: RotateOptions): this; 567 transform(value: object): this; 568 onAppear(event: () => void): this; 569 onDisAppear(event: () => void): this; 570 onAreaChange(event: (oldValue: Area, newValue: Area) => void): this; 571 visibility(value: Visibility): this; 572 flexGrow(value: number): this; 573 flexShrink(value: number): this; 574 flexBasis(value: number | string): this; 575 alignSelf(value: ItemAlign): this; 576 displayPriority(value: number): this; 577 zIndex(value: number): this; 578 sharedTransition(id: string, options?: sharedTransitionOptions): this; 579 direction(value: Direction): this; 580 align(value: Alignment): this; 581 position(value: Position): this; 582 markAnchor(value: Position): this; 583 offset(value: Position): this; 584 enabled(value: boolean): this; 585 useSizeType(value: { 586 xs?: number | { 587 span: number; 588 offset: number; 589 }; 590 sm?: number | { 591 span: number; 592 offset: number; 593 }; 594 md?: number | { 595 span: number; 596 offset: number; 597 }; 598 lg?: number | { 599 span: number; 600 offset: number; 601 }; 602 }): this; 603 alignRules(value: AlignRuleOption): this; 604 aspectRatio(value: number): this; 605 clickEffect(value: ClickEffect | null): this; 606 onDragStart(event: (event?: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): this; 607 onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): this; 608 onDragMove(event: (event?: DragEvent, extraParams?: string) => void): this; 609 onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): this; 610 onDrop(event: (event?: DragEvent, extraParams?: string) => void): this; 611 onDragEnd(event: (event: DragEvent, extraParams?: string) => void): this; 612 allowDrop(value: Array<UniformDataType>): this; 613 draggable(value: boolean): this; 614 overlay(value: string | CustomBuilder, options?: { 615 align?: Alignment; 616 offset?: { 617 x?: number; 618 y?: number; 619 }; 620 }): this; 621 linearGradient(value: { 622 angle?: number | string; 623 direction?: GradientDirection; 624 colors: Array<any>; 625 repeating?: boolean; 626 }): this; 627 sweepGradient(value: { 628 center: Array<any>; 629 start?: number | string; 630 end?: number | string; 631 rotation?: number | string; 632 colors: Array<any>; 633 repeating?: boolean; 634 }): this; 635 radialGradient(value: { 636 center: Array<any>; 637 radius: number | string; 638 colors: Array<any>; 639 repeating?: boolean; 640 }): this; 641 motionPath(value: MotionPathOptions): this; 642 shadow(value: ShadowOptions | ShadowStyle): this; 643 mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this; 644 key(value: string): this; 645 id(value: string): this; 646 geometryTransition(id: string): this; 647 bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this; 648 bindMenu(content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): this; 649 bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): this; 650 bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition | ContentCoverOptions): this; 651 blendMode(value: BlendMode): this; 652 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 653 bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): this; 654 stateStyles(value: StateStyles): this; 655 restoreId(value: number): this; 656 onVisibleAreaChange(ratios: Array<number>, event: (isVisible: boolean, currentRatio: number) => void): this; 657 sphericalEffect(value: number): this; 658 lightUpEffect(value: number): this; 659 pixelStretchEffect(options: PixelStretchEffectOptions): this; 660 keyboardShortcut(value: string | FunctionKey, keys: Array<ModifierKey>, action?: () => void): this; 661 accessibilityGroup(value: boolean): this; 662 accessibilityText(value: string | Resource): this; 663 accessibilityDescription(value: string | Resource): this; 664 accessibilityLevel(value: string): this; 665 obscured(reasons: Array<ObscuredReasons>): this; 666 reuseId(id: string): this; 667 renderFit(fitMode: RenderFit): this; 668 attributeModifier(modifier: AttributeModifier<CommonAttribute>): this; 669 decoration(value: { 670 type: TextDecorationType; 671 color?: ResourceColor; 672 }): SpanAttribute; 673 font(value: Font): SpanAttribute; 674 lineHeight(value: Length): SpanAttribute; 675 fontSize(value: Length): SpanAttribute; 676 fontColor(value: ResourceColor): SpanAttribute; 677 fontStyle(value: FontStyle): SpanAttribute; 678 fontWeight(value: number | FontWeight | string): SpanAttribute; 679 fontFamily(value: string | Resource): SpanAttribute; 680 letterSpacing(value: number | string): SpanAttribute; 681 textCase(value: TextCase): SpanAttribute; 682} 683declare class ArkSideBarContainerComponent extends ArkComponent implements SideBarContainerAttribute { 684 constructor(nativePtr: KNode, classType?: ModifierType); 685 onChange(callback: (value: boolean) => void): SideBarContainerAttribute; 686 autoHide(value: boolean): SideBarContainerAttribute; 687 showSideBar(value: boolean): SideBarContainerAttribute; 688 maxSideBarWidth(value: number | Length): SideBarContainerAttribute; 689 minSideBarWidth(value: number | Length): SideBarContainerAttribute; 690 minContentWidth(value: Dimension): SideBarContainerAttribute; 691 controlButton(value: ButtonStyle): SideBarContainerAttribute; 692 divider(value: DividerStyle | null): SideBarContainerAttribute; 693 sideBarPosition(value: SideBarPosition): SideBarContainerAttribute; 694 sideBarWidth(value: number | Length): SideBarContainerAttribute; 695 showControlButton(value: boolean): SideBarContainerAttribute; 696} 697declare class ArkStackComponent extends ArkComponent implements StackAttribute { 698 constructor(nativePtr: KNode, classType?: ModifierType); 699 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 700 alignContent(value: Alignment): StackAttribute; 701 align(value: Alignment): this; 702} 703declare class ArkTextComponent extends ArkComponent implements TextAttribute { 704 constructor(nativePtr: KNode, classType?: ModifierType); 705 enableDataDetector(enable: boolean): this; 706 dataDetectorConfig(config: any): this; 707 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 708 font(value: Font): TextAttribute; 709 fontColor(value: ResourceColor): TextAttribute; 710 fontSize(value: any): TextAttribute; 711 minFontSize(value: number | string | Resource): TextAttribute; 712 maxFontSize(value: number | string | Resource): TextAttribute; 713 fontStyle(value: FontStyle): TextAttribute; 714 fontWeight(value: number | FontWeight | string): TextAttribute; 715 textAlign(value: TextAlign): TextAttribute; 716 lineHeight(value: number | string | Resource): TextAttribute; 717 textOverflow(value: { 718 overflow: TextOverflow; 719 }): TextAttribute; 720 fontFamily(value: string | Resource): TextAttribute; 721 maxLines(value: number): TextAttribute; 722 decoration(value: { 723 type: TextDecorationType; 724 color?: ResourceColor; 725 }): TextAttribute; 726 letterSpacing(value: number | string): TextAttribute; 727 lineSpacing(value: LengthMetrics): TextAttribute; 728 textCase(value: TextCase): TextAttribute; 729 baselineOffset(value: number | string): TextAttribute; 730 copyOption(value: CopyOptions): TextAttribute; 731 draggable(value: boolean): this; 732 textShadow(value: ShadowOptions | Array<ShadowOptions>): TextAttribute; 733 heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAttribute; 734 textIndent(value: Length): TextAttribute; 735 wordBreak(value: WordBreak): TextAttribute; 736 lineBreakStrategy(value: LineBreakStrategy): TextAttribute; 737 onCopy(callback: (value: string) => void): TextAttribute; 738 selection(selectionStart: number, selectionEnd: number): TextAttribute; 739 textSelectable(value: TextSelectableMode): TextAttribute; 740 ellipsisMode(value: EllipsisMode): TextAttribute; 741 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 742} 743declare class ArkTextAreaComponent extends ArkComponent implements CommonMethod<TextAreaAttribute> { 744 constructor(nativePtr: KNode, classType?: ModifierType); 745 type(value: TextAreaType): TextAreaAttribute; 746 placeholderColor(value: ResourceColor): TextAreaAttribute; 747 placeholderFont(value: Font): TextAreaAttribute; 748 textAlign(value: TextAlign): TextAreaAttribute; 749 caretColor(value: ResourceColor): TextAreaAttribute; 750 fontColor(value: ResourceColor): TextAreaAttribute; 751 fontSize(value: Length): TextAreaAttribute; 752 fontStyle(value: FontStyle): TextAreaAttribute; 753 fontWeight(value: number | FontWeight | string): TextAreaAttribute; 754 fontFamily(value: ResourceStr): TextAreaAttribute; 755 inputFilter(value: ResourceStr, error?: (value: string) => void): TextAreaAttribute; 756 onChange(callback: (value: string) => void): TextAreaAttribute; 757 onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAreaAttribute; 758 onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextAreaAttribute; 759 onEditChange(callback: (isEditing: boolean) => void): TextAreaAttribute; 760 onCopy(callback: (value: string) => void): TextAreaAttribute; 761 onCut(callback: (value: string) => void): TextAreaAttribute; 762 onPaste(callback: (value: string) => void): TextAreaAttribute; 763 copyOption(value: CopyOptions): TextAreaAttribute; 764 enableKeyboardOnFocus(value: boolean): TextAreaAttribute; 765 maxLength(value: number): TextAreaAttribute; 766 showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute; 767 style(value: TextContentStyle): TextAreaAttribute; 768 barState(value: BarState): TextAreaAttribute; 769 selectionMenuHidden(value: boolean): TextAreaAttribute; 770 maxLines(value: number): TextAreaAttribute; 771 customKeyboard(value: CustomBuilder): TextAreaAttribute; 772} 773declare class ArkTextInputComponent extends ArkComponent implements CommonMethod<TextInputAttribute> { 774 constructor(nativePtr: KNode, classType?: ModifierType); 775 cancelButton(value: { 776 style?: CancelButtonStyle; 777 icon?: IconOptions; 778 }): TextInputAttribute; 779 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 780 selectAll(value: boolean): TextInputAttribute; 781 enableAutoFill(value: boolean): TextInputAttribute; 782 passwordRules(value: string): TextInputAttribute; 783 showCounter(value: boolean): TextInputAttribute; 784 type(value: InputType): TextInputAttribute; 785 placeholderColor(value: ResourceColor): TextInputAttribute; 786 placeholderFont(value?: Font): TextInputAttribute; 787 enterKeyType(value: EnterKeyType): TextInputAttribute; 788 caretColor(value: ResourceColor): TextInputAttribute; 789 onEditChanged(callback: (isEditing: boolean) => void): TextInputAttribute; 790 onEditChange(callback: (isEditing: boolean) => void): TextInputAttribute; 791 onSubmit(callback: (enterKey: EnterKeyType) => void): TextInputAttribute; 792 onChange(callback: (value: string) => void): TextInputAttribute; 793 onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextInputAttribute; 794 onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextInputAttribute; 795 maxLength(value: number): TextInputAttribute; 796 fontColor(value: ResourceColor): TextInputAttribute; 797 fontSize(value: Length): TextInputAttribute; 798 fontStyle(value: FontStyle): TextInputAttribute; 799 fontWeight(value: number | FontWeight | string): TextInputAttribute; 800 fontFamily(value: ResourceStr): TextInputAttribute; 801 inputFilter(value: ResourceStr, error?: (value: string) => void): TextInputAttribute; 802 onCopy(callback: (value: string) => void): TextInputAttribute; 803 onCut(callback: (value: string) => void): TextInputAttribute; 804 onPaste(callback: (value: string) => void): TextInputAttribute; 805 copyOption(value: CopyOptions): TextInputAttribute; 806 showPasswordIcon(value: boolean): TextInputAttribute; 807 textAlign(value: TextAlign): TextInputAttribute; 808 style(value: TextInputStyle | TextContentStyle): TextInputAttribute; 809 caretStyle(value: CaretStyle): this; 810 selectedBackgroundColor(value: ResourceColor): TextInputAttribute; 811 caretPosition(value: number): TextInputAttribute; 812 enableKeyboardOnFocus(value: boolean): TextInputAttribute; 813 passwordIcon(value: PasswordIcon): TextInputAttribute; 814 showError(value: string | undefined): TextInputAttribute; 815 showUnit(event: () => void): TextInputAttribute; 816 showUnderline(value: boolean): TextInputAttribute; 817 selectionMenuHidden(value: boolean): TextInputAttribute; 818 barState(value: BarState): TextInputAttribute; 819 maxLines(value: number): TextInputAttribute; 820 customKeyboard(event: () => void): TextInputAttribute; 821} 822declare class ArkVideoComponent extends ArkComponent implements CommonMethod<VideoAttribute> { 823 constructor(nativePtr: KNode, classType?: ModifierType); 824 muted(value: boolean): VideoAttribute; 825 autoPlay(value: boolean): VideoAttribute; 826 controls(value: boolean): VideoAttribute; 827 loop(value: boolean): VideoAttribute; 828 objectFit(value: ImageFit): VideoAttribute; 829 onStart(callback: () => void): VideoAttribute; 830 onPause(callback: () => void): VideoAttribute; 831 onFinish(event: () => void): VideoAttribute; 832 onFullscreenChange(callback: (event: { 833 fullscreen: boolean; 834 }) => void): VideoAttribute; 835 onPrepared(callback: (event: { 836 duration: number; 837 }) => void): VideoAttribute; 838 onSeeking(callback: (event: { 839 time: number; 840 }) => void): VideoAttribute; 841 onSeeked(callback: (event: { 842 time: number; 843 }) => void): VideoAttribute; 844 onUpdate(callback: (event: { 845 time: number; 846 }) => void): VideoAttribute; 847 onError(callback: () => void): VideoAttribute; 848} 849declare class ArkImageFrameInfoToArray { 850 arrSrc: Array<string> | undefined; 851 arrWidth: Array<number | string> | undefined; 852 arrHeight: Array<number | string> | undefined; 853 arrTop: Array<number | string> | undefined; 854 arrLeft: Array<number | string> | undefined; 855 arrDuration: Array<number> | undefined; 856 constructor(); 857 isEqual(another: ArkImageFrameInfoToArray): boolean; 858} 859declare class ArkButtonComponent extends ArkComponent implements ButtonAttribute { 860 constructor(nativePtr: KNode, classType?: ModifierType); 861 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 862 backgroundColor(value: ResourceColor): this; 863 type(value: ButtonType): this; 864 stateEffect(value: boolean): this; 865 fontColor(value: ResourceColor): this; 866 fontSize(value: Length): this; 867 fontWeight(value: string | number | FontWeight): this; 868 fontStyle(value: FontStyle): this; 869 fontFamily(value: string | Resource): this; 870 labelStyle(value: LabelStyle): this; 871 borderRadius(value: Length | BorderRadiuses): this; 872 border(value: BorderOptions): this; 873 size(value: SizeOptions): this; 874} 875declare class ArkLoadingProgressComponent extends ArkComponent implements LoadingProgressAttribute { 876 constructor(nativePtr: KNode, classType?: ModifierType); 877 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 878 color(value: ResourceColor): this; 879 enableLoading(value: boolean): this; 880 foregroundColor(value: ResourceColor): this; 881} 882declare class ArkRefreshComponent extends ArkComponent implements RefreshAttribute { 883 constructor(nativePtr: KNode, classType?: ModifierType); 884 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 885 onStateChange(callback: (state: RefreshStatus) => void): this; 886 onRefreshing(callback: () => void): this; 887} 888declare class ArkScrollComponent extends ArkComponent implements ScrollAttribute { 889 constructor(nativePtr: KNode, classType?: ModifierType); 890 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 891 scrollable(value: ScrollDirection): this; 892 onScroll(event: (xOffset: number, yOffset: number) => void): this; 893 onScrollEdge(event: (side: Edge) => void): this; 894 onScrollStart(event: () => void): this; 895 onScrollEnd(event: () => void): this; 896 onScrollStop(event: () => void): this; 897 enablePaging(value: boolean): this; 898 scrollBar(value: BarState): this; 899 scrollBarColor(color: ResourceColor): this; 900 scrollBarWidth(value: string | number): this; 901 edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this; 902 fadingEdge(value: boolean, options?: FadingEdgeOptions | undefined): this; 903 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { 904 offsetRemain: number; 905 }): this; 906 nestedScroll(value: NestedScrollOptions): ScrollAttribute; 907 enableScrollInteraction(value: boolean): ScrollAttribute; 908 friction(value: number | Resource): ScrollAttribute; 909 scrollSnap(value: ScrollSnapOptions): ScrollAttribute; 910 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 911 initialOffset(value: OffsetOptions): this; 912 flingSpeedLimit(value: number): this; 913 onReachStart(event: () => void): this; 914 onReachEnd(event: () => void): this; 915} 916declare class ArkToggleComponent extends ArkComponent implements ToggleAttribute { 917 constructor(nativePtr: KNode, classType?: ModifierType); 918 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 919 onChange(callback: (isOn: boolean) => void): this; 920 selectedColor(value: ResourceColor): this; 921 switchPointColor(value: ResourceColor): this; 922 height(value: Length): this; 923 responseRegion(value: Rectangle | Rectangle[]): this; 924 padding(value: Padding | Length): this; 925 backgroundColor(value: ResourceColor): this; 926 hoverEffect(value: HoverEffect): this; 927} 928declare class ArkSelectComponent extends ArkComponent implements SelectAttribute { 929 constructor(nativePtr: KNode, classType?: ModifierType); 930 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 931 optionWidth(value: Dimension | OptionWidthMode): this; 932 optionHeight(value: Dimension): this; 933 width(value: Length): this; 934 height(value: Length): this; 935 size(value: SizeOptions): this; 936 selected(value: number | Resource): this; 937 value(value: ResourceStr): this; 938 font(value: Font): this; 939 fontColor(value: ResourceColor): this; 940 selectedOptionBgColor(value: ResourceColor): this; 941 selectedOptionFont(value: Font): this; 942 selectedOptionFontColor(value: ResourceColor): this; 943 optionBgColor(value: ResourceColor): this; 944 optionFont(value: Font): this; 945 optionFontColor(value: ResourceColor): this; 946 onSelect(callback: (index: number, value: string) => void): this; 947 space(value: Length): this; 948 arrowPosition(value: ArrowPosition): this; 949 menuAlign(alignType: MenuAlignType, offset?: Offset): this; 950} 951declare class ArkRadioComponent extends ArkComponent implements RadioAttribute { 952 constructor(nativePtr: KNode, classType?: ModifierType); 953 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 954 checked(value: boolean): this; 955 onChange(callback: (isChecked: boolean) => void): this; 956 radioStyle(value: RadioStyle): this; 957 width(value: Length): this; 958 height(value: Length): this; 959 size(value: { 960 width: Length; 961 height: Length; 962 }): this; 963 hoverEffect(value: HoverEffect): this; 964 padding(value: Padding | Length): this; 965 responseRegion(value: Array<Rectangle> | Rectangle): this; 966} 967declare class ArkTimePickerComponent extends ArkComponent implements TimePickerAttribute { 968 constructor(nativePtr: KNode, classType?: ModifierType); 969 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 970 loop(value: boolean): this; 971 useMilitaryTime(value: boolean): this; 972 disappearTextStyle(value: PickerTextStyle): this; 973 textStyle(value: PickerTextStyle): this; 974 selectedTextStyle(value: PickerTextStyle): this; 975 onChange(callback: (value: TimePickerResult) => void): this; 976} 977declare class ArkTextPickerComponent extends ArkComponent implements TextPickerAttribute { 978 constructor(nativePtr: KNode, classType?: ModifierType); 979 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 980 defaultPickerItemHeight(value: string | number): this; 981 canLoop(value: boolean): this; 982 disappearTextStyle(value: PickerTextStyle): this; 983 textStyle(value: PickerTextStyle): this; 984 selectedTextStyle(value: PickerTextStyle): this; 985 onAccept(callback: (value: string, index: number) => void): this; 986 onCancel(callback: () => void): this; 987 onChange(callback: (value: string | string[], index: number | number[]) => void): this; 988 selectedIndex(value: number | number[]): this; 989} 990declare class ArkSliderComponent extends ArkComponent implements SliderAttribute { 991 constructor(nativePtr: KNode, classType?: ModifierType); 992 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 993 blockColor(value: ResourceColor): this; 994 trackColor(value: ResourceColor): this; 995 selectedColor(value: ResourceColor): this; 996 minLabel(value: string): this; 997 maxLabel(value: string): this; 998 showSteps(value: boolean): this; 999 showTips(value: boolean, content?: any): this; 1000 trackThickness(value: Length): this; 1001 onChange(callback: (value: number, mode: SliderChangeMode) => void): this; 1002 blockBorderColor(value: ResourceColor): this; 1003 blockBorderWidth(value: Length): this; 1004 stepColor(value: ResourceColor): this; 1005 trackBorderRadius(value: Length): this; 1006 blockSize(value: SizeOptions): this; 1007 blockStyle(value: SliderBlockStyle): this; 1008 stepSize(value: Length): this; 1009} 1010declare class ArkRatingComponent extends ArkComponent implements RatingAttribute { 1011 constructor(nativePtr: KNode, classType?: ModifierType); 1012 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 1013 stars(value: number): this; 1014 stepSize(value: number): this; 1015 starStyle(value: { 1016 backgroundUri: string; 1017 foregroundUri: string; 1018 secondaryUri?: string | undefined; 1019 }): this; 1020 onChange(callback: (value: number) => void): this; 1021} 1022declare class ArkCheckboxComponent extends ArkComponent implements CheckboxAttribute { 1023 constructor(nativePtr: KNode, classType?: ModifierType); 1024 shape(value: CheckBoxShape): this; 1025 width(value: Length): this; 1026 height(value: Length): this; 1027 select(value: boolean): this; 1028 selectedColor(value: ResourceColor): this; 1029 unselectedColor(value: ResourceColor): this; 1030 mark(value: MarkStyle): this; 1031 padding(value: Padding | Length): this; 1032 size(value: SizeOptions): this; 1033 responseRegion(value: Array<Rectangle> | Rectangle): this; 1034 onChange(callback: (value: boolean) => void): this; 1035} 1036declare class ArkNavDestinationComponent extends ArkComponent implements NavDestinationAttribute { 1037 constructor(nativePtr: KNode, classType?: ModifierType); 1038 title(value: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined, 1039 options?: NavigationTitleOptions): this; 1040 menus(value: Array<NavigationMenuItem> | undefined): this; 1041 hideTitleBar(value: boolean): this; 1042 onShown(callback: () => void): this; 1043 onHidden(callback: () => void): this; 1044 onBackPressed(callback: () => boolean): this; 1045 ignoreLayoutSafeArea(types?: SafeAreaType[], edges?: SafeAreaEdge[]): this; 1046 recoverable(value: boolean | undefined): this; 1047} 1048declare class ArkCounterComponent extends ArkComponent implements CounterAttribute { 1049 constructor(nativePtr: KNode, classType?: ModifierType); 1050 onInc(event: () => void): this; 1051 onDec(event: () => void): this; 1052 enableDec(value: boolean): this; 1053 enableInc(value: boolean): this; 1054 backgroundColor(value: ResourceColor): this; 1055 width(value: Length): this; 1056 height(value: Length): this; 1057 size(value: SizeOptions): this; 1058} 1059declare class ArkCheckboxGroupComponent extends ArkComponent implements CheckboxGroupAttribute { 1060 constructor(nativePtr: KNode, classType?: ModifierType); 1061 selectAll(value: boolean): this; 1062 selectedColor(value: ResourceColor): this; 1063 unselectedColor(value: ResourceColor): this; 1064 mark(value: MarkStyle): this; 1065 onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute; 1066 size(value: SizeOptions): this; 1067 width(value: Length): this; 1068 height(value: Length): this; 1069} 1070declare class ArkPanelComponent extends ArkComponent implements PanelAttribute { 1071 constructor(nativePtr: KNode, classType?: ModifierType); 1072 mode(value: PanelMode): this; 1073 type(value: PanelType): this; 1074 dragBar(value: boolean): this; 1075 customHeight(value: any): this; 1076 fullHeight(value: string | number): this; 1077 halfHeight(value: string | number): this; 1078 miniHeight(value: string | number): this; 1079 show(value: boolean): this; 1080 backgroundMask(color: ResourceColor): this; 1081 showCloseIcon(value: boolean): this; 1082 onChange(event: (width: number, height: number, mode: PanelMode) => void): this; 1083 onHeightChange(callback: (value: number) => void): this; 1084} 1085declare class ArkNavigationComponent extends ArkComponent implements NavigationAttribute { 1086 constructor(nativePtr: KNode, classType?: ModifierType); 1087 navBarWidth(value: Length): NavigationAttribute; 1088 navBarPosition(value: number): NavigationAttribute; 1089 navBarWidthRange(value: [Dimension, Dimension]): NavigationAttribute; 1090 minContentWidth(value: Dimension): NavigationAttribute; 1091 mode(value: number): NavigationAttribute; 1092 backButtonIcon(value: any): NavigationAttribute; 1093 hideNavBar(value: boolean): NavigationAttribute; 1094 title(value: ResourceStr | CustomBuilder | NavigationCommonTitle | NavigationCustomTitle | undefined, 1095 options?: NavigationTitleOptions): NavigationAttribute; 1096 subTitle(value: string): NavigationAttribute; 1097 hideTitleBar(value: boolean): NavigationAttribute; 1098 hideBackButton(value: boolean): NavigationAttribute; 1099 titleMode(value: NavigationTitleMode): NavigationAttribute; 1100 menus(value: Array<NavigationMenuItem> | undefined): NavigationAttribute; 1101 toolBar(value: any): NavigationAttribute; 1102 toolbarConfiguration(value: any): NavigationAttribute; 1103 hideToolBar(value: boolean): NavigationAttribute; 1104 onTitleModeChange(callback: (titleMode: NavigationTitleMode) => void): NavigationAttribute; 1105 onNavBarStateChange(callback: (isVisible: boolean) => void): NavigationAttribute; 1106 onNavigationModeChange(callback: (mode: NavigationMode) => void): NavigationAttribute; 1107 navDestination(builder: (name: string, param: unknown) => void): NavigationAttribute; 1108 ignoreLayoutSafeArea(types?: SafeAreaType[], edges?: SafeAreaEdge[]): NavigationAttribute; 1109 enableDragBar(value: boolean | undefined): NavigationAttribute; 1110 recoverable(value: boolean | undefined): NavigationAttribute; 1111} 1112declare class ArkNavRouterComponent extends ArkComponent implements NavRouterAttribute { 1113 constructor(nativePtr: KNode, classType?: ModifierType); 1114 onStateChange(callback: (isActivated: boolean) => void): NavRouterAttribute; 1115 mode(mode: NavRouteMode): NavRouterAttribute; 1116} 1117declare class ArkNavigatorComponent extends ArkComponent implements NavigatorAttribute { 1118 constructor(nativePtr: KNode, classType?: ModifierType); 1119 active(value: boolean): this; 1120 type(value: NavigationType): this; 1121 target(value: string): this; 1122 params(value: object): this; 1123} 1124declare class ArkAlphabetIndexerComponent extends ArkComponent implements AlphabetIndexerAttribute { 1125 constructor(nativePtr: KNode, classType?: ModifierType); 1126 onSelected(callback: (index: number) => void): this; 1127 color(value: ResourceColor): this; 1128 selectedColor(value: ResourceColor): this; 1129 popupColor(value: ResourceColor): this; 1130 selectedBackgroundColor(value: ResourceColor): this; 1131 popupBackground(value: ResourceColor): this; 1132 popupSelectedColor(value: ResourceColor): this; 1133 popupUnselectedColor(value: ResourceColor): this; 1134 popupItemBackgroundColor(value: ResourceColor): this; 1135 usingPopup(value: boolean): this; 1136 selectedFont(value: Font): this; 1137 popupFont(value: Font): this; 1138 popupItemFont(value: Font): this; 1139 itemSize(value: string | number): this; 1140 font(value: Font): this; 1141 alignStyle(value: IndexerAlign, offset?: any): this; 1142 onSelect(callback: (index: number) => void): this; 1143 onRequestPopupData(callback: (index: number) => string[]): this; 1144 onPopupSelect(callback: (index: number) => void): this; 1145 selected(index: number): this; 1146 popupPosition(value: Position): this; 1147} 1148declare class ArkCalendarPickerComponent extends ArkComponent implements CalendarPickerAttribute { 1149 constructor(nativePtr: KNode, classType?: ModifierType); 1150 edgeAlign(alignType: CalendarAlign, offset?: Offset | undefined): this; 1151 textStyle(value: PickerTextStyle): this; 1152 onChange(callback: (value: Date) => void): this; 1153 padding(value: Padding | Length): this; 1154 border(value: BorderOptions): this; 1155} 1156declare class ArkDataPanelComponent extends ArkComponent implements DataPanelAttribute { 1157 constructor(nativePtr: KNode, classType?: ModifierType); 1158 closeEffect(value: boolean): this; 1159 valueColors(value: Array<ResourceColor | LinearGradient>): this; 1160 trackBackgroundColor(value: any): this; 1161 strokeWidth(value: any): this; 1162 trackShadow(value: DataPanelShadowOptions): this; 1163} 1164declare class ArkDatePickerComponent extends ArkComponent implements DatePickerAttribute { 1165 constructor(nativePtr: KNode, classType?: ModifierType); 1166 lunar(value: boolean): DatePickerAttribute; 1167 disappearTextStyle(value: PickerTextStyle): DatePickerAttribute; 1168 textStyle(value: PickerTextStyle): DatePickerAttribute; 1169 selectedTextStyle(value: PickerTextStyle): DatePickerAttribute; 1170 onChange(callback: (value: DatePickerResult) => void): DatePickerAttribute; 1171 onDateChange(callback: (value: Date) => void): DatePickerAttribute; 1172 backgroundColor(value: ResourceColor): this; 1173} 1174declare class ArkFormComponentComponent extends ArkComponent implements FormComponentAttribute { 1175 constructor(nativePtr: KNode, classType?: ModifierType); 1176 size(value: { 1177 width: Length; 1178 height: Length; 1179 }): this; 1180 visibility(value: Visibility): this; 1181 moduleName(value: string): this; 1182 dimension(value: FormDimension): this; 1183 allowUpdate(value: boolean): this; 1184 onAcquired(callback: (info: { 1185 id: number; 1186 }) => void): this; 1187 onError(callback: (info: { 1188 errcode: number; 1189 msg: string; 1190 }) => void): this; 1191 onRouter(callback: (info: any) => void): this; 1192 onUninstall(callback: (info: { 1193 id: number; 1194 }) => void): this; 1195 onLoad(callback: () => void): this; 1196} 1197declare class ArkGaugeComponent extends ArkComponent implements GaugeAttribute { 1198 constructor(nativePtr: KNode, classType?: ModifierType); 1199 value(value: number): this; 1200 startAngle(angle: number): this; 1201 endAngle(angle: number): this; 1202 colors(colors: ResourceColor | LinearGradient | Array<[ResourceColor | LinearGradient, number]>): this; 1203 strokeWidth(length: any): this; 1204 description(value: CustomBuilder): this; 1205 trackShadow(value: GaugeShadowOptions): this; 1206 indicator(value: GaugeIndicatorOptions): this; 1207} 1208declare class ArkMarqueeComponent extends ArkComponent implements MarqueeAttribute { 1209 constructor(nativePtr: KNode, classType?: ModifierType); 1210 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 1211 fontSize(value: Length): this; 1212 fontColor(value: ResourceColor): this; 1213 allowScale(value: boolean): this; 1214 fontWeight(value: string | number | FontWeight): this; 1215 fontFamily(value: any): this; 1216 onStart(event: () => void): this; 1217 onBounce(event: () => void): this; 1218 onFinish(event: () => void): this; 1219} 1220declare class ArkMenuComponent extends ArkComponent implements MenuAttribute { 1221 constructor(nativePtr: KNode, classType?: ModifierType); 1222 width(value: Length): this; 1223 fontSize(value: any): this; 1224 font(value: Font): this; 1225 fontColor(value: ResourceColor): this; 1226 radius(value: any): this; 1227} 1228declare class ArkMenuItemComponent extends ArkComponent implements MenuItemAttribute { 1229 constructor(nativePtr: KNode, classType?: ModifierType); 1230 selected(value: boolean): this; 1231 selectIcon(value: boolean | ResourceStr): this; 1232 onChange(callback: (selected: boolean) => void): this; 1233 contentFont(value: Font): this; 1234 contentFontColor(value: ResourceColor): this; 1235 labelFont(value: Font): this; 1236 labelFontColor(value: ResourceColor): this; 1237} 1238declare class ArkMenuItemGroupComponent extends ArkComponent implements MenuItemGroupAttribute { 1239 constructor(nativePtr: KNode, classType?: ModifierType); 1240} 1241declare class ArkPluginComponent extends ArkComponent implements PluginComponentAttribute { 1242 constructor(nativePtr: KNode, classType?: ModifierType); 1243 onComplete(callback: () => void): this; 1244 onError(callback: (info: { 1245 errcode: number; 1246 msg: string; 1247 }) => void): this; 1248 size(value: SizeOptions): this; 1249 width(value: Length): this; 1250 height(value: Length): this; 1251} 1252declare class ArkProgressComponent extends ArkComponent implements ProgressAttribute { 1253 constructor(nativePtr: KNode, classType?: ModifierType); 1254 value(value: number): ProgressAttribute<keyof ProgressStyleMap, LinearStyleOptions | ProgressStyleOptions | RingStyleOptions | 1255 EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions>; 1256 color(value: ResourceColor | LinearGradient): ProgressAttribute<keyof ProgressStyleMap, LinearStyleOptions | ProgressStyleOptions | 1257 RingStyleOptions | EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions>; 1258 style(value: LinearStyleOptions | ProgressStyleOptions | RingStyleOptions | EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions): 1259 ProgressAttribute<keyof ProgressStyleMap, LinearStyleOptions | ProgressStyleOptions | RingStyleOptions | 1260 EclipseStyleOptions | ScaleRingStyleOptions | CapsuleStyleOptions>; 1261 backgroundColor(value: ResourceColor): this; 1262} 1263declare class ArkQRCodeComponent extends ArkComponent implements QRCodeAttribute { 1264 constructor(nativePtr: KNode, classType?: ModifierType); 1265 color(value: ResourceColor): this; 1266 backgroundColor(value: ResourceColor): this; 1267 contentOpacity(value: number | Resource): this; 1268} 1269declare class ArkRichTextComponent extends ArkComponent implements CommonMethod<RichTextAttribute> { 1270 constructor(nativePtr: KNode, classType?: ModifierType); 1271 onStart(callback: () => void): RichTextAttribute; 1272 onComplete(callback: () => void): RichTextAttribute; 1273} 1274declare class ArkScrollBarComponent extends ArkComponent implements ScrollBarAttribute { 1275 constructor(nativePtr: KNode, classType?: ModifierType); 1276 enableNestedScroll(value: boolean): this; 1277} 1278declare class ArkStepperComponent extends ArkComponent implements StepperAttribute { 1279 constructor(nativePtr: KNode, classType?: ModifierType); 1280 onFinish(callback: () => void): this; 1281 onSkip(callback: () => void): this; 1282 onChange(callback: (prevIndex: number, index: number) => void): this; 1283 onNext(callback: (index: number, pendingIndex: number) => void): this; 1284 onPrevious(callback: (index: number, pendingIndex: number) => void): this; 1285} 1286declare class ArkStepperItemComponent extends ArkComponent implements StepperItemAttribute { 1287 constructor(nativePtr: KNode, classType?: ModifierType); 1288 prevLabel(value: string): this; 1289 nextLabel(value: string): this; 1290 status(value?: ItemState | undefined): this; 1291} 1292declare class ArkTextClockComponent extends ArkComponent implements TextClockAttribute { 1293 constructor(nativePtr: KNode, classType?: ModifierType); 1294 format(value: string): this; 1295 onDateChange(event: (value: number) => void): this; 1296 fontColor(value: ResourceColor): this; 1297 fontSize(value: Length): this; 1298 fontStyle(value: FontStyle): this; 1299 fontWeight(value: string | number | FontWeight): this; 1300 fontFamily(value: ResourceStr): this; 1301 textShadow(value: ShadowOptions): this; 1302 fontFeature(value: string): this; 1303} 1304declare class ArkTextTimerComponent extends ArkComponent implements TextTimerAttribute { 1305 constructor(nativePtr: KNode, classType?: ModifierType); 1306 fontColor(value: any): this; 1307 fontSize(value: any): this; 1308 fontWeight(value: number | FontWeight | string): this; 1309 fontStyle(value: FontStyle): this; 1310 fontFamily(value: string | Resource): this; 1311 format(value: string): this; 1312 onTimer(event: (utc: number, elapsedTime: number) => void): this; 1313} 1314declare class ArkWebComponent extends ArkComponent implements WebAttribute { 1315 constructor(nativePtr: KNode, classType?: ModifierType); 1316 javaScriptAccess(javaScriptAccess: boolean): this; 1317 fileAccess(fileAccess: boolean): this; 1318 onlineImageAccess(onlineImageAccess: boolean): this; 1319 domStorageAccess(domStorageAccess: boolean): this; 1320 imageAccess(imageAccess: boolean): this; 1321 mixedMode(mixedMode: MixedMode): this; 1322 zoomAccess(zoomAccess: boolean): this; 1323 geolocationAccess(geolocationAccess: boolean): this; 1324 javaScriptProxy(javaScriptProxy: { 1325 object: object; 1326 name: string; 1327 methodList: string[]; 1328 controller: any; 1329 }): this; 1330 password(password: boolean): this; 1331 cacheMode(cacheMode: CacheMode): this; 1332 darkMode(mode: WebDarkMode): this; 1333 forceDarkAccess(access: boolean): this; 1334 mediaOptions(options: WebMediaOptions): this; 1335 tableData(tableData: boolean): this; 1336 wideViewModeAccess(wideViewModeAccess: boolean): this; 1337 overviewModeAccess(overviewModeAccess: boolean): this; 1338 overScrollMode(mode: OverScrollMode): this; 1339 textZoomAtio(textZoomAtio: number): this; 1340 textZoomRatio(textZoomRatio: number): this; 1341 databaseAccess(databaseAccess: boolean): this; 1342 initialScale(percent: number): this; 1343 userAgent(userAgent: string): this; 1344 onPageEnd(callback: (event?: { 1345 url: string; 1346 } | undefined) => void): this; 1347 onPageBegin(callback: (event?: { 1348 url: string; 1349 } | undefined) => void): this; 1350 onProgressChange(callback: (event?: { 1351 newProgress: number; 1352 } | undefined) => void): this; 1353 onTitleReceive(callback: (event?: { 1354 title: string; 1355 } | undefined) => void): this; 1356 onGeolocationHide(callback: () => void): this; 1357 onGeolocationShow(callback: (event?: { 1358 origin: string; 1359 geolocation: JsGeolocation; 1360 } | undefined) => void): this; 1361 onRequestSelected(callback: () => void): this; 1362 onAlert(callback: (event?: { 1363 url: string; 1364 message: string; 1365 result: JsResult; 1366 } | undefined) => boolean): this; 1367 onBeforeUnload(callback: (event?: { 1368 url: string; 1369 message: string; 1370 result: JsResult; 1371 } | undefined) => boolean): this; 1372 onConfirm(callback: (event?: { 1373 url: string; 1374 message: string; 1375 result: JsResult; 1376 } | undefined) => boolean): this; 1377 onPrompt(callback: (event?: { 1378 url: string; 1379 message: string; 1380 value: string; 1381 result: JsResult; 1382 } | undefined) => boolean): this; 1383 onConsole(callback: (event?: { 1384 message: ConsoleMessage; 1385 } | undefined) => boolean): this; 1386 onErrorReceive(callback: (event?: { 1387 request: WebResourceRequest; 1388 error: WebResourceError; 1389 } | undefined) => void): this; 1390 onHttpErrorReceive(callback: (event?: { 1391 request: WebResourceRequest; 1392 response: WebResourceResponse; 1393 } | undefined) => void): this; 1394 onDownloadStart(callback: (event?: { 1395 url: string; 1396 userAgent: string; 1397 contentDisposition: string; 1398 mimetype: string; 1399 contentLength: number; 1400 } | undefined) => void): this; 1401 onRefreshAccessedHistory(callback: (event?: { 1402 url: string; 1403 isRefreshed: boolean; 1404 } | undefined) => void): this; 1405 onUrlLoadIntercept(callback: (event?: { 1406 data: string | WebResourceRequest; 1407 } | undefined) => boolean): this; 1408 onSslErrorReceive(callback: (event?: { 1409 handler: Function; 1410 error: object; 1411 } | undefined) => void): this; 1412 onRenderExited(callback: (event?: { 1413 renderExitReason: RenderExitReason; 1414 } | undefined) => void): this; 1415 onRenderExited(callback: (event?: { 1416 detail: object; 1417 } | undefined) => boolean): this; 1418 onShowFileSelector(callback: (event?: { 1419 result: FileSelectorResult; 1420 fileSelector: FileSelectorParam; 1421 } | undefined) => boolean): this; 1422 onFileSelectorShow(callback: (event?: { 1423 callback: Function; 1424 fileSelector: object; 1425 } | undefined) => void): this; 1426 onResourceLoad(callback: (event: { 1427 url: string; 1428 }) => void): this; 1429 onFullScreenExit(callback: () => void): this; 1430 onFullScreenEnter(callback: (event: { 1431 handler: FullScreenExitHandler; 1432 }) => void): this; 1433 onScaleChange(callback: (event: { 1434 oldScale: number; 1435 newScale: number; 1436 }) => void): this; 1437 onHttpAuthRequest(callback: (event?: { 1438 handler: HttpAuthHandler; 1439 host: string; 1440 realm: string; 1441 } | undefined) => boolean): this; 1442 onInterceptRequest(callback: (event?: { 1443 request: WebResourceRequest; 1444 } | undefined) => WebResourceResponse): this; 1445 onPermissionRequest(callback: (event?: { 1446 request: PermissionRequest; 1447 } | undefined) => void): this; 1448 onScreenCaptureRequest(callback: (event?: { 1449 handler: ScreenCaptureHandler; 1450 } | undefined) => void): this; 1451 onContextMenuShow(callback: (event?: { 1452 param: WebContextMenuParam; 1453 result: WebContextMenuResult; 1454 } | undefined) => boolean): this; 1455 mediaPlayGestureAccess(access: boolean): this; 1456 onSearchResultReceive(callback: (event?: { 1457 activeMatchOrdinal: number; 1458 numberOfMatches: number; 1459 isDoneCounting: boolean; 1460 } | undefined) => void): this; 1461 onScroll(callback: (event: { 1462 xOffset: number; 1463 yOffset: number; 1464 }) => void): this; 1465 onSslErrorEventReceive(callback: (event: { 1466 handler: SslErrorHandler; 1467 error: SslError; 1468 }) => void): this; 1469 onClientAuthenticationRequest(callback: (event: { 1470 handler: ClientAuthenticationHandler; 1471 host: string; 1472 port: number; 1473 keyTypes: string[]; 1474 issuers: string[]; 1475 }) => void): this; 1476 onWindowNew(callback: (event: { 1477 isAlert: boolean; 1478 isUserTrigger: boolean; 1479 targetUrl: string; 1480 handler: ControllerHandler; 1481 }) => void): this; 1482 onWindowExit(callback: () => void): this; 1483 multiWindowAccess(multiWindow: boolean): this; 1484 onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): this; 1485 webStandardFont(family: string): this; 1486 webSerifFont(family: string): this; 1487 webSansSerifFont(family: string): this; 1488 webFixedFont(family: string): this; 1489 webFantasyFont(family: string): this; 1490 webCursiveFont(family: string): this; 1491 defaultFixedFontSize(size: number): this; 1492 defaultFontSize(size: number): this; 1493 minFontSize(size: number): this; 1494 minLogicalFontSize(size: number): this; 1495 blockNetwork(block: boolean): this; 1496 horizontalScrollBarAccess(horizontalScrollBar: boolean): this; 1497 verticalScrollBarAccess(verticalScrollBar: boolean): this; 1498 onTouchIconUrlReceived(callback: (event: { 1499 url: string; 1500 precomposed: boolean; 1501 }) => void): this; 1502 onFaviconReceived(callback: (event: { 1503 favicon: any; 1504 }) => void): this; 1505 onPageVisible(callback: (event: { 1506 url: string; 1507 }) => void): this; 1508 onDataResubmitted(callback: (event: { 1509 handler: DataResubmissionHandler; 1510 }) => void): this; 1511 pinchSmooth(isEnabled: boolean): this; 1512 allowWindowOpenMethod(flag: boolean): this; 1513 onAudioStateChanged(callback: (event: { 1514 playing: boolean; 1515 }) => void): this; 1516 onFirstContentfulPaint(callback: (event?: { 1517 navigationStartTick: number; 1518 firstContentfulPaintMs: number; 1519 } | undefined) => void): this; 1520 onLoadIntercept(callback: (event: { 1521 data: WebResourceRequest; 1522 }) => boolean): this; 1523 onControllerAttached(callback: () => void): this; 1524 onOverScroll(callback: (event: { 1525 xOffset: number; 1526 yOffset: number; 1527 }) => void): this; 1528 javaScriptOnDocumentStart(scripts: ScriptItem[]): this; 1529 layoutMode(mode: WebLayoutMode): this; 1530 nestedScroll(value: NestedScrollOptions): this; 1531 onRenderProcessNotResponding(callback: (event: { 1532 data: RenderProcessNotRespondingData; 1533 }) => void): this; 1534 onRenderProcessResponding(callback: () => void): this; 1535 onViewportFitChanged(callback: (event: { 1536 viewportFit: ViewportFit; 1537 }) => void): this; 1538 onAdsBlocked(callback: (details?: AdsBlockedDetails | undefined) => void): this; 1539} 1540declare class ArkXComponentComponent implements CommonMethod<XComponentAttribute> { 1541 _modifiersWithKeys: Map<Symbol, AttributeModifierWithKey>; 1542 nativePtr: KNode; 1543 constructor(nativePtr: KNode); 1544 applyModifierPatch(): void; 1545 outline(value: OutlineOptions): this; 1546 outlineColor(value: ResourceColor | EdgeColors): this; 1547 outlineRadius(value: Dimension | OutlineRadiuses): this; 1548 outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this; 1549 outlineWidth(value: Dimension | EdgeOutlineWidths): this; 1550 width(value: Length): this; 1551 height(value: Length): this; 1552 expandSafeArea(types?: SafeAreaType[], edges?: SafeAreaEdge[]): this; 1553 responseRegion(value: Rectangle | Rectangle[]): this; 1554 mouseResponseRegion(value: Rectangle | Rectangle[]): this; 1555 size(value: SizeOptions): this; 1556 constraintSize(value: ConstraintSizeOptions): this; 1557 touchable(value: boolean): this; 1558 hitTestBehavior(value: HitTestMode): this; 1559 layoutWeight(value: string | number): this; 1560 padding(value: Length | Padding): this; 1561 margin(value: Length | Padding): this; 1562 background(builder: CustomBuilder, options?: { 1563 align?: Alignment; 1564 }): this; 1565 backgroundColor(value: ResourceColor): this; 1566 backgroundImage(src: ResourceStr, repeat?: ImageRepeat): this; 1567 backgroundImageSize(value: SizeOptions | ImageSize): this; 1568 backgroundImagePosition(value: Alignment | Position): this; 1569 backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this; 1570 foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this; 1571 opacity(value: number | Resource): this; 1572 border(value: BorderOptions): this; 1573 borderStyle(value: BorderStyle | EdgeStyles): this; 1574 borderWidth(value: Length | EdgeWidths): this; 1575 borderColor(value: ResourceColor | EdgeColors): this; 1576 borderRadius(value: Length | BorderRadiuses): this; 1577 borderImage(value: BorderImageOption): this; 1578 foregroundColor(value: string | number | Resource | Color): this; 1579 onClick(event: (event: ClickEvent) => void): this; 1580 onHover(event: (isHover: boolean, event: HoverEvent) => void): this; 1581 hoverEffect(value: HoverEffect): this; 1582 onMouse(event: (event: MouseEvent) => void): this; 1583 onTouch(event: (event: TouchEvent) => void): this; 1584 onKeyEvent(event: (event: KeyEvent) => void): this; 1585 focusable(value: boolean): this; 1586 onFocus(event: () => void): this; 1587 onBlur(event: () => void): this; 1588 tabIndex(index: number): this; 1589 defaultFocus(value: boolean): this; 1590 groupDefaultFocus(value: boolean): this; 1591 focusOnTouch(value: boolean): this; 1592 animation(value: AnimateParam): this; 1593 transition(value: TransitionOptions | TransitionEffect): this; 1594 gesture(gesture: GestureType, mask?: GestureMask): this; 1595 priorityGesture(gesture: GestureType, mask?: GestureMask): this; 1596 parallelGesture(gesture: GestureType, mask?: GestureMask): this; 1597 blur(value: number): this; 1598 linearGradientBlur(value: number, options: LinearGradientBlurOptions): this; 1599 brightness(value: number): this; 1600 contrast(value: number): this; 1601 grayscale(value: number): this; 1602 colorBlend(value: string | Resource | Color): this; 1603 saturate(value: number): this; 1604 sepia(value: number): this; 1605 invert(value: number): this; 1606 hueRotate(value: string | number): this; 1607 useEffect(value: boolean): this; 1608 backdropBlur(value: number): this; 1609 renderGroup(value: boolean): this; 1610 translate(value: TranslateOptions): this; 1611 scale(value: ScaleOptions): this; 1612 gridSpan(value: number): this; 1613 gridOffset(value: number): this; 1614 rotate(value: RotateOptions): this; 1615 transform(value: object): this; 1616 onAppear(event: () => void): this; 1617 onDisAppear(event: () => void): this; 1618 onAreaChange(event: (oldValue: Area, newValue: Area) => void): this; 1619 visibility(value: Visibility): this; 1620 flexGrow(value: number): this; 1621 flexShrink(value: number): this; 1622 flexBasis(value: string | number): this; 1623 alignSelf(value: ItemAlign): this; 1624 displayPriority(value: number): this; 1625 zIndex(value: number): this; 1626 sharedTransition(id: string, options?: sharedTransitionOptions): this; 1627 direction(value: Direction): this; 1628 align(value: Alignment): this; 1629 position(value: Position): this; 1630 markAnchor(value: Position): this; 1631 offset(value: Position): this; 1632 enabled(value: boolean): this; 1633 useSizeType(value: { 1634 xs?: number | { 1635 span: number; 1636 offset: number; 1637 }; 1638 sm?: number | { 1639 span: number; 1640 offset: number; 1641 }; 1642 md?: number | { 1643 span: number; 1644 offset: number; 1645 }; 1646 lg?: number | { 1647 span: number; 1648 offset: number; 1649 }; 1650 }): this; 1651 alignRules(value: AlignRuleOption): this; 1652 aspectRatio(value: number): this; 1653 clickEffect(value: ClickEffect): this; 1654 onDragStart(event: (event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): this; 1655 onDragEnter(event: (event: DragEvent, extraParams?: string) => void): this; 1656 onDragMove(event: (event: DragEvent, extraParams?: string) => void): this; 1657 onDragLeave(event: (event: DragEvent, extraParams?: string) => void): this; 1658 onDrop(event: (event: DragEvent, extraParams?: string) => void): this; 1659 onDragEnd(event: (event: DragEvent, extraParams?: string) => void): this; 1660 allowDrop(value: Array<UniformDataType>): this; 1661 draggable(value: boolean): this; 1662 overlay(value: string | CustomBuilder, options?: { 1663 align?: Alignment; 1664 offset?: { 1665 x?: number; 1666 y?: number; 1667 }; 1668 }): this; 1669 linearGradient(value: { 1670 angle?: number | string; 1671 direction?: GradientDirection; 1672 colors: Array<any>; 1673 repeating?: boolean; 1674 }): this; 1675 sweepGradient(value: { 1676 center: Array<any>; 1677 start?: number | string; 1678 end?: number | string; 1679 rotation?: number | string; 1680 colors: Array<any>; 1681 repeating?: boolean; 1682 }): this; 1683 radialGradient(value: { 1684 center: Array<any>; 1685 radius: number | string; 1686 colors: Array<any>; 1687 repeating?: boolean; 1688 }): this; 1689 motionPath(value: MotionPathOptions): this; 1690 shadow(value: ShadowOptions | ShadowStyle): this; 1691 blendMode(value: BlendMode): this; 1692 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 1693 mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this; 1694 key(value: string): this; 1695 id(value: string): this; 1696 geometryTransition(id: string): this; 1697 bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this; 1698 bindMenu(content: CustomBuilder | MenuElement[], options?: MenuOptions): this; 1699 bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): this; 1700 bindContentCover(isShow: unknown, builder: unknown, options?: unknown): this; 1701 bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): this; 1702 stateStyles(value: StateStyles): this; 1703 restoreId(value: number): this; 1704 onVisibleAreaChange(ratios: number[], event: (isVisible: boolean, currentRatio: number) => void): this; 1705 sphericalEffect(value: number): this; 1706 lightUpEffect(value: number): this; 1707 pixelStretchEffect(options: PixelStretchEffectOptions): this; 1708 keyboardShortcut(value: string | FunctionKey, keys: ModifierKey[], action?: () => void): this; 1709 accessibilityGroup(value: boolean): this; 1710 accessibilityText(value: string | Resource): this; 1711 accessibilityDescription(value: string | Resource): this; 1712 accessibilityLevel(value: string): this; 1713 obscured(reasons: ObscuredReasons[]): this; 1714 reuseId(id: string): this; 1715 renderFit(fitMode: RenderFit): this; 1716 attributeModifier(modifier: AttributeModifier<CommonAttribute>): this; 1717 onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): this; 1718 onLoad(callback: (event?: object) => void): this; 1719 onDestroy(event: () => void): this; 1720 enableSecure(value: boolean): this; 1721} 1722declare class ArkBadgeComponent extends ArkComponent implements BadgeAttribute { 1723 constructor(nativePtr: KNode, classType?: ModifierType); 1724} 1725declare class ArkFlowItemComponent extends ArkComponent implements FlowItemAttribute { 1726 constructor(nativePtr: KNode, classType?: ModifierType); 1727} 1728declare class ArkFormLinkComponent extends ArkComponent implements FormLinkAttribute { 1729 constructor(nativePtr: KNode, classType?: ModifierType); 1730} 1731declare class ArkGridItemComponent extends ArkComponent implements GridItemAttribute { 1732 constructor(nativePtr: KNode, classType?: ModifierType); 1733 rowStart(value: number): this; 1734 rowEnd(value: number): this; 1735 columnStart(value: number): this; 1736 columnEnd(value: number): this; 1737 forceRebuild(value: boolean): this; 1738 selectable(value: boolean): this; 1739 selected(value: boolean): this; 1740 onSelect(event: (isSelected: boolean) => void): this; 1741} 1742declare class ArkHyperlinkComponent extends ArkComponent implements HyperlinkAttribute { 1743 constructor(nativePtr: KNode, classType?: ModifierType); 1744 color(value: ResourceColor): this; 1745 draggable(value: boolean): this; 1746} 1747declare class ArkListComponent extends ArkComponent implements ListAttribute { 1748 constructor(nativePtr: KNode, classType?: ModifierType); 1749 lanes(value: number | LengthConstrain, gutter?: any): this; 1750 alignListItem(value: ListItemAlign): this; 1751 listDirection(value: Axis): this; 1752 scrollBar(value: BarState): this; 1753 scrollBarWidth(value: string | number): this; 1754 scrollBarColor(value: string | number | Color): this; 1755 flingSpeedLimit(value: number): this; 1756 edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions | undefined): this; 1757 fadingEdge(value: boolean, options?: FadingEdgeOptions | undefined): this; 1758 contentStartOffset(value: number): this; 1759 contentEndOffset(value: number): this; 1760 divider(value: { 1761 strokeWidth: any; 1762 color?: any; 1763 startMargin?: any; 1764 endMargin?: any; 1765 } | null): this; 1766 editMode(value: boolean): this; 1767 multiSelectable(value: boolean): this; 1768 cachedCount(value: number): this; 1769 chainAnimation(value: boolean): this; 1770 chainAnimationOptions(value: ChainAnimationOptions): this; 1771 sticky(value: StickyStyle): this; 1772 scrollSnapAlign(value: ScrollSnapAlign): this; 1773 nestedScroll(value: NestedScrollOptions): this; 1774 enableScrollInteraction(value: boolean): this; 1775 friction(value: any): this; 1776 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 1777 onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): this; 1778 onScrollIndex(event: (start: number, end: number, center: number) => void): this; 1779 onScrollVisibleContentChange(callback: OnScrollVisibleContentChangeCallback): this; 1780 onItemDelete(event: (index: number) => boolean): this; 1781 onItemMove(event: (from: number, to: number) => boolean): this; 1782 onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => void | (() => any)): this; 1783 onItemDragEnter(event: (event: ItemDragInfo) => void): this; 1784 onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void): this; 1785 onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void): this; 1786 onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void): this; 1787 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { 1788 offsetRemain: number; 1789 }): this; 1790 onWillScroll(callback: (xOffset: number, yOffset: number, 1791 scrollState: ScrollState, scrollSource: ScrollSource) => void | OffsetResult): this; 1792 onDidScroll(callback: (xOffset: number, yOffset: number, scrollState: ScrollState) => void): this; 1793 onReachStart(event: () => void): this; 1794 onReachEnd(event: () => void): this; 1795 onScrollStart(event: () => void): this; 1796 onScrollStop(event: () => void): this; 1797 childrenMainSize(value: ChildrenMainSize): this; 1798} 1799declare class ArkListItemComponent extends ArkComponent implements ListItemAttribute { 1800 constructor(nativePtr: KNode, classType?: ModifierType); 1801 sticky(value: Sticky): this; 1802 editable(value: boolean | EditMode): this; 1803 selectable(value: boolean): this; 1804 selected(value: boolean): this; 1805 swipeAction(value: SwipeActionOptions): this; 1806 onSelect(event: (isSelected: boolean) => void): this; 1807} 1808declare class ArkListItemGroupComponent extends ArkComponent implements ListItemGroupAttribute { 1809 constructor(nativePtr: KNode, classType?: ModifierType); 1810 divider(value: { 1811 strokeWidth: any; 1812 color?: any; 1813 startMargin?: any; 1814 endMargin?: any; 1815 } | null): this; 1816 childrenMainSize(value: ChildrenMainSize): this; 1817} 1818declare class ArkRelativeContainerComponent extends ArkComponent implements RelativeContainerAttribute { 1819 constructor(nativePtr: KNode, classType?: ModifierType); 1820} 1821declare class ArkSwiperComponent extends ArkComponent implements SwiperAttribute { 1822 constructor(nativePtr: KNode, classType?: ModifierType); 1823 index(value: number): this; 1824 autoPlay(value: boolean): this; 1825 interval(value: number): this; 1826 indicator(value: boolean | DotIndicator | DigitIndicator): this; 1827 displayArrow(value: boolean | ArrowStyle, isHoverShow?: boolean | undefined): this; 1828 loop(value: boolean): this; 1829 duration(value: number): this; 1830 vertical(value: boolean): this; 1831 itemSpace(value: string | number): this; 1832 displayMode(value: SwiperDisplayMode): this; 1833 cachedCount(value: number): this; 1834 displayCount(value: string | number | SwiperAutoFill, swipeByGroup?: boolean | undefined): this; 1835 effectMode(value: EdgeEffect): this; 1836 disableSwipe(value: boolean): this; 1837 curve(value: string | Curve | ICurve): this; 1838 onChange(event: (index: number) => void): this; 1839 indicatorStyle(value?: IndicatorStyle | undefined): this; 1840 prevMargin(value: Length): this; 1841 nextMargin(value: Length): this; 1842 enabled(value: boolean): this; 1843 onAnimationStart(event: (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void): this; 1844 onAnimationEnd(event: (index: number, extraInfo: SwiperAnimationEvent) => void): this; 1845 onGestureSwipe(event: (index: number, extraInfo: SwiperAnimationEvent) => void): this; 1846 nestedScroll(value: SwiperNestedScrollMode): this; 1847} 1848declare class ArkTabsComponent extends ArkComponent implements TabsAttribute { 1849 constructor(nativePtr: KNode, classType?: ModifierType); 1850 onAnimationStart(handler: (index: number, targetIndex: number, event: TabsAnimationEvent) => void): TabsAttribute; 1851 onAnimationEnd(handler: (index: number, event: TabsAnimationEvent) => void): TabsAttribute; 1852 onGestureSwipe(handler: (index: number, event: TabsAnimationEvent) => void): TabsAttribute; 1853 vertical(value: boolean): TabsAttribute; 1854 barPosition(value: BarPosition): TabsAttribute; 1855 scrollable(value: boolean): TabsAttribute; 1856 barMode(value: BarMode, options?: ScrollableBarModeOptions | undefined): TabsAttribute; 1857 barWidth(value: Length): TabsAttribute; 1858 barHeight(value: Length): TabsAttribute; 1859 animationDuration(value: number): TabsAttribute; 1860 animationMode(value: AnimationMode): TabsAttribute; 1861 onChange(event: (index: number) => void): TabsAttribute; 1862 onTabBarClick(event: (index: number) => void): TabsAttribute; 1863 fadingEdge(value: boolean): TabsAttribute; 1864 divider(value: DividerStyle | null): TabsAttribute; 1865 barOverlap(value: boolean): TabsAttribute; 1866 barBackgroundColor(value: ResourceColor): TabsAttribute; 1867 barBackgroundBlurStyle(value: BlurStyle): TabsAttribute; 1868 barGridAlign(value: BarGridColumnOptions): TabsAttribute; 1869 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 1870 edgeEffect(value: EdgeEffect): TabsAttribute; 1871} 1872declare class ArkTabContentComponent extends ArkComponent implements TabContentAttribute { 1873 constructor(nativePtr: KNode, classType?: ModifierType); 1874 tabBar(value: any): this; 1875 tabBar(value: SubTabBarStyle | BottomTabBarStyle): this; 1876 size(value: SizeOptions): this; 1877 width(value: Length): this; 1878 height(value: Length): this; 1879} 1880declare class ArkUIExtensionComponentComponent extends ArkComponent implements UIExtensionComponentAttribute { 1881 constructor(nativePtr: KNode, classType?: ModifierType); 1882 onRemoteReady(callback: any): UIExtensionComponentAttribute; 1883 onReceive(callback: any): UIExtensionComponentAttribute; 1884 onResult(callback: any): UIExtensionComponentAttribute; 1885 onRelease(callback: any): UIExtensionComponentAttribute; 1886 onError(callback: any): UIExtensionComponentAttribute; 1887} 1888declare class ArkWaterFlowComponent extends ArkComponent implements WaterFlowAttribute { 1889 constructor(nativePtr: KNode, classType?: ModifierType); 1890 columnsTemplate(value: string): this; 1891 rowsTemplate(value: string): this; 1892 itemConstraintSize(value: ConstraintSizeOptions): this; 1893 columnsGap(value: Length): this; 1894 rowsGap(value: Length): this; 1895 layoutDirection(value: FlexDirection): this; 1896 nestedScroll(value: NestedScrollOptions): this; 1897 enableScrollInteraction(value: boolean): this; 1898 friction(value: number | Resource): this; 1899 cachedCount(value: number): this; 1900 onReachStart(event: () => void): this; 1901 onReachEnd(event: () => void): this; 1902 onScrollFrameBegin(event: (offset: number, state: ScrollState) => { 1903 offsetRemain: number; 1904 }): this; 1905 clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this; 1906 edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions | undefined): this; 1907 fadingEdge(value: boolean, options?: FadingEdgeOptions | undefined): this; 1908 scrollBarWidth(value: string | number): this; 1909 scrollBarColor(value: string | number | Color): this; 1910 scrollBar(value: BarState): this; 1911 flingSpeedLimit(value: number): this; 1912} 1913declare class ArkCommonShapeComponent extends ArkComponent implements CommonShapeMethod<ShapeAttribute> { 1914 constructor(nativePtr: KNode, classType?: ModifierType); 1915 viewPort(value: { 1916 x?: string | number | undefined; 1917 y?: string | number | undefined; 1918 width?: string | number | undefined; 1919 height?: string | number | undefined; 1920 }): this; 1921 stroke(value: ResourceColor): this; 1922 fill(value: ResourceColor): this; 1923 strokeDashOffset(value: string | number): this; 1924 strokeLineCap(value: LineCapStyle): this; 1925 strokeLineJoin(value: LineJoinStyle): this; 1926 strokeMiterLimit(value: string | number): this; 1927 strokeOpacity(value: number | string | Resource): this; 1928 fillOpacity(value: number | string | Resource): this; 1929 strokeWidth(value: string | number): this; 1930 antiAlias(value: boolean): this; 1931 strokeDashArray(value: any[]): this; 1932 mesh(value: any[], column: number, row: number): this; 1933 height(value: Length): this; 1934 width(value: Length): this; 1935 foregroundColor(value: string | number | Resource | Color): this; 1936} 1937declare class ArkCircleComponent extends ArkCommonShapeComponent implements CircleAttribute { 1938} 1939declare class ArkEllipseComponent extends ArkCommonShapeComponent implements EllipseAttribute { 1940} 1941declare class ArkLineComponent extends ArkCommonShapeComponent implements LineAttribute { 1942 constructor(nativePtr: KNode, classType?: ModifierType); 1943 startPoint(value: Array<Length>): this; 1944 endPoint(value: Array<Length>): this; 1945} 1946declare class ArkPolylineComponent extends ArkCommonShapeComponent implements PolylineAttribute { 1947 constructor(nativePtr: KNode, classType?: ModifierType); 1948 points(value: Array<any>): this; 1949} 1950declare class ArkPolygonComponent extends ArkCommonShapeComponent implements PolygonAttribute { 1951 constructor(nativePtr: KNode, classType?: ModifierType); 1952 points(value: Array<any>): this; 1953} 1954declare class ArkPathComponent extends ArkCommonShapeComponent implements PathAttribute { 1955 constructor(nativePtr: KNode, classType?: ModifierType); 1956 commands(value: string): this; 1957} 1958declare class ArkRectComponent extends ArkCommonShapeComponent implements RectAttribute { 1959 constructor(nativePtr: KNode, classType?: ModifierType); 1960 radiusWidth(value: string | number): this; 1961 radiusHeight(value: string | number): this; 1962 radius(value: string | number | Array<any>): this; 1963} 1964declare class ArkShapeComponent extends ArkCommonShapeComponent implements ShapeAttribute { 1965 constructor(nativePtr: KNode, classType?: ModifierType); 1966 viewPort(value: { 1967 x?: string | number | undefined; 1968 y?: string | number | undefined; 1969 width?: string | number | undefined; 1970 height?: string | number | undefined; 1971 }): this; 1972 mesh(value: Array<any> | undefined, column: number | undefined, row: number | undefined): this; 1973 height(value: Length): this; 1974 width(value: Length): this; 1975} 1976declare class ArkCanvasComponent extends ArkComponent implements CanvasAttribute { 1977 constructor(nativePtr: KNode, classType?: ModifierType); 1978 onReady(event: () => void): this; 1979} 1980declare class ArkGridContainerComponent extends ArkComponent implements ColumnAttribute { 1981 constructor(nativePtr: KNode, classType?: ModifierType); 1982 alignItems(value: HorizontalAlign): ColumnAttribute; 1983 justifyContent(value: FlexAlign): ColumnAttribute; 1984 pointLight(value: PointLightStyle): ColumnAttribute; 1985} 1986declare class ArkEffectComponentComponent extends ArkComponent implements EffectComponentAttribute { 1987} 1988declare class ArkRemoteWindowComponent extends ArkComponent implements RemoteWindowAttribute { 1989} 1990declare class ArkParticleComponent extends ArkComponent implements ParticleAttribute { 1991 constructor(nativePtr: KNode, classType?: ModifierType); 1992 disturbanceFields(fields: Array<DisturbanceFieldsOptions>): ParticleAttribute; 1993} 1994declare class CheckboxWidthModifier extends ModifierWithKey<Length> {} 1995declare class CheckboxHeightModifier extends ModifierWithKey<ResourceColor> {} 1996declare class TextForegroundColorModifier extends ModifierWithKey<ResourceColor | ColoringStrategy> {} 1997 1998declare class ArkSymbolGlyphComponent extends ArkComponent implements SymbolGlyphAttribute { 1999 constructor(nativePtr: KNode, classType?: ModifierType); 2000 fontColor(value: ResourceColor[]): SymbolGlyphAttribute; 2001 fontSize(value: number | string | Resource): SymbolGlyphAttribute; 2002 fontWeight(value: number | FontWeight | string): SymbolGlyphAttribute; 2003 renderingStrategy(value: SymbolRenderingStrategy): SymbolGlyphAttribute; 2004 effectStrategy(value: SymbolEffectStrategy): SymbolGlyphAttribute; 2005} 2006 2007declare class ArkSymbolSpanComponent extends ArkComponent implements SymbolSpanAttribute { 2008 constructor(nativePtr: KNode, classType?: ModifierType); 2009 fontColor(value: ResourceColor[]): SymbolSpanAttribute; 2010 fontSize(value: number | string | Resource): SymbolSpanAttribute; 2011 fontWeight(value: number | FontWeight | string): SymbolSpanAttribute; 2012 renderingStrategy(value: SymbolRenderingStrategy): SymbolSpanAttribute; 2013 effectStrategy(value: SymbolEffectStrategy): SymbolSpanAttribute; 2014} 2015 2016declare class ArkParticleComponent extends ArkComponent implements ParticleAttribute { 2017 constructor(nativePtr: KNode, classType?: ModifierType); 2018 emitter(fields: Array<EmitterProps>): ParticleAttribute; 2019} 2020 2021declare class ArkComponent3DComponent extends ArkComponent implements Component3DAttribute { 2022 constructor(nativePtr: KNode, classType?: ModifierType); 2023 environment(uri: Resource): Component3DAttribute; 2024 customRender(uri: Resource, selfRenderUpdate: boolean): Component3DAttribute; 2025 shader(uri: Resource): Component3DAttribute; 2026 shaderImageTexture(uri: Resource): Component3DAttribute; 2027 shaderInputBuffer(buffer: Array<number>): Component3DAttribute; 2028 renderWidth(value: Dimension): Component3DAttribute; 2029 renderHeight(value: Dimension): Component3DAttribute; 2030} 2031 2032declare class ArkContainerSpanComponent extends ArkComponent implements ContainerSpanAttribute { 2033 constructor(nativePtr: KNode, classType?: ModifierType); 2034 textBackgroundStyle(value: TextBackgroundStyle): ContainerSpanAttribute; 2035} 2036