mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
remove lengthMetric
Signed-off-by: xiangshouxing <xiangshouxing@huawei.com> Change-Id: I30bce634cb5e4adf762611c9bc4bb678be687acd
This commit is contained in:
parent
7ef8972acd
commit
9a12c8c2a0
2
api/@ohos.arkui.node.d.ts
vendored
2
api/@ohos.arkui.node.d.ts
vendored
@ -61,7 +61,7 @@ export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
export { LengthUnit, SizeT, LengthMetric, LengthMetrics, ColorMetrics } from './arkui/Graphics';
|
||||
export { LengthUnit, SizeT, LengthMetrics, ColorMetrics } from './arkui/Graphics';
|
||||
|
||||
/**
|
||||
* Export RenderNode. RenderNode contains node tree operations and render property operations on node.
|
||||
|
101
api/arkui/Graphics.d.ts
vendored
101
api/arkui/Graphics.d.ts
vendored
@ -620,107 +620,6 @@ export interface SizeT<T> {
|
||||
height: T;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the Length Metric.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
declare class LengthMetric {
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param { number } value - The value of length.
|
||||
* @param { LengthUnit } unit - The length unit.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
constructor(value: number, unit?:LengthUnit);
|
||||
|
||||
/**
|
||||
* Init a lengthMetric with px unit.
|
||||
*
|
||||
* @param { number } value - The value of the length metric.
|
||||
* @returns { LengthMetric } Returns the lengthMetric object with unit px.
|
||||
* @static
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
static px(value: number): LengthMetric;
|
||||
|
||||
/**
|
||||
* Init a lengthMetric with vp unit.
|
||||
*
|
||||
* @param { number } value - The value of the length metric.
|
||||
* @returns { LengthMetric } - Returns the lengthMetric object with unit vp.
|
||||
* @static
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
static vp(value: number): LengthMetric;
|
||||
|
||||
/**
|
||||
* Init a lengthMetric with fp unit.
|
||||
*
|
||||
* @param { number } value - The value of the length metric.
|
||||
* @returns { LengthMetric } Returns the lengthMetric object with unit fp.
|
||||
* @static
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
static fp(value: number): LengthMetric;
|
||||
|
||||
/**
|
||||
* Init a lengthMetric with percent unit.
|
||||
*
|
||||
* @param { number } value - The value of the length metric.
|
||||
* @returns { LengthMetric } Returns the lengthMetric object with unit percent.
|
||||
* @static
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
static percent(value: number): LengthMetric;
|
||||
|
||||
/**
|
||||
* Init a lengthMetric with lpx unit.
|
||||
*
|
||||
* @param { number } value - The value of the length metric.
|
||||
* @returns { LengthMetric } Returns the lengthMetric object with unit lpx.
|
||||
* @static
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
static lpx(value: number): LengthMetric;
|
||||
|
||||
/**
|
||||
* The unit of the LengthMetric. The default value is VP.
|
||||
*
|
||||
* @type { LengthUnit }
|
||||
* @default VP
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
public unit: LengthUnit;
|
||||
|
||||
/**
|
||||
* The value of the LengthMetric.
|
||||
*
|
||||
* @type { number }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
public value: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the Length Metrics.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user