/* * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file * @kit ArkUI */ /*** if arkts 1.2 */ import { CommonShapeMethod } from './common'; import { ShapePoint } from './line'; /*** endif */ /** * Define options used to construct a polyline. * * @interface PolylineOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since arkts {'1.1':'18','1.2':'20'} * @arkts 1.1&1.2 */ declare interface PolylineOptions { /** * Polyline width. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Polyline width. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Polyline width. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Polyline width. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Polyline width. * Anonymous Object Rectification. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ /** * Polyline width. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 */ width?: Length; /** * Polyline width. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 * @arkts 1.2 */ width?: string | number; /** * Polyline height. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Polyline height. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Polyline height. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Polyline height. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Polyline height. * Anonymous Object Rectification. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ /** * Polyline height. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 */ height?: Length; /** * Polyline height. * * @type { ?(string | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 * @arkts 1.2 */ height?: string | number } /** * Provides an interface for drawing polylines. * * @interface PolylineInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Provides an interface for drawing polylines. * * @interface PolylineInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Provides an interface for drawing polylines. * * @interface PolylineInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Provides an interface for drawing polylines. * * @interface PolylineInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ interface PolylineInterface { /** * Uses new to create Polyline. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Uses new to create Polyline. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Uses new to create Polyline. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Uses new to create Polyline. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Uses new to create Polyline. * Anonymous Object Rectification. * * @param { PolylineOptions } [options] - Poly line options * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ new (options?: PolylineOptions): PolylineAttribute; /** * Called when using the draw fold. * * @param { object } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Called when using the draw fold. * * @param { object } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Called when using the draw fold. * * @param { object } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Called when using the draw fold. * * @param { object } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Called when using the draw fold. * Anonymous Object Rectification. * * @param { PolylineOptions } [options] - Poly line options * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ (options?: PolylineOptions): PolylineAttribute; } /** * @extends CommonShapeMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * @extends CommonShapeMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @extends CommonShapeMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @extends CommonShapeMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ declare class PolylineAttribute extends CommonShapeMethod { /** * Called when the polyline is set to pass through the coordinate point list. * * @param { Array } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Called when the polyline is set to pass through the coordinate point list. * * @param { Array } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Called when the polyline is set to pass through the coordinate point list. * * @param { Array } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Called when the polyline is set to pass through the coordinate point list. * * @param { Array } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ points(value: Array): PolylineAttribute; /** * Called when the polyline is set to pass through the coordinate point list. * * @param { Array } value * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 * @arkts 1.2 */ points(value: Array): PolylineAttribute; } /** * Defines Polyline Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Polyline Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Defines Polyline Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Defines Polyline Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare const Polyline: PolylineInterface; /** * Defines Polyline Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Polyline Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Defines Polyline Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Defines Polyline Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare const PolylineInstance: PolylineAttribute; /** * Provides an interface for drawing polylines. * * @interface PolylineInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 * @arkts 1.2 */ interface PolylineInterface { /** * Set options for polyline component. * * @param { PolylineOptions } [options] - Poly line options * @returns { PolylineAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 20 * @arkts 1.2 */ (options?: PolylineOptions): PolylineAttribute; }