remove lengthMetric

Signed-off-by: xiangshouxing <xiangshouxing@huawei.com>
Change-Id: I30bce634cb5e4adf762611c9bc4bb678be687acd
This commit is contained in:
xiangshouxing 2024-04-19 04:24:03 +00:00
parent 7ef8972acd
commit 9a12c8c2a0
2 changed files with 1 additions and 102 deletions

View File

@ -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.

View File

@ -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.
*