From 6a6b6a57f10727d92b0b974972fc78837541d5d9 Mon Sep 17 00:00:00 2001 From: chenyuchi Date: Mon, 8 Sep 2025 16:35:55 +0800 Subject: [PATCH] remove matrix2d.static.d.ets from ArkTS1.2 Signed-off-by: chenyuchi --- api/@ohos.arkui.component.d.ets | 1 - api/arkui/component/canvas.static.d.ets | 35 ---- api/arkui/component/matrix2d.static.d.ets | 191 ---------------------- 3 files changed, 227 deletions(-) delete mode 100644 api/arkui/component/matrix2d.static.d.ets diff --git a/api/@ohos.arkui.component.d.ets b/api/@ohos.arkui.component.d.ets index 47cd879d9e..36844983ff 100644 --- a/api/@ohos.arkui.component.d.ets +++ b/api/@ohos.arkui.component.d.ets @@ -84,7 +84,6 @@ export * from './arkui/component/listItem'; export * from './arkui/component/listItemGroup'; export * from './arkui/component/loadingProgress'; export * from './arkui/component/marquee'; -export * from './arkui/component/matrix2d'; export * from './arkui/component/mediaCachedImage'; export * from './arkui/component/menu'; export * from './arkui/component/menuItem'; diff --git a/api/arkui/component/canvas.static.d.ets b/api/arkui/component/canvas.static.d.ets index 2edb1ceeeb..c03841464a 100644 --- a/api/arkui/component/canvas.static.d.ets +++ b/api/arkui/component/canvas.static.d.ets @@ -20,7 +20,6 @@ import { CommonMethod, Callback, PixelMap } from './common'; import { FrameNode } from '../FrameNode'; import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon'; -import { Matrix2D } from './matrix2d'; import { DrawingCanvas, VoidCallback, LengthMetricsUnit, LengthMetrics } from './units'; import { Size } from '../Graphics'; import { memo, ComponentBuilder } from './../stateManagement/runtime'; @@ -266,15 +265,6 @@ export declare class CanvasPath { * @since 20 */ export declare class Path2D extends CanvasPath { - /** - * Adds a path according to the specified path variable. - * - * @param { Path2D } path - Indicates the path object to be added. - * @param { Matrix2D } [transform] - Transformation matrix of the new trail. The default value is null. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - addPath(path: Path2D, transform?: Matrix2D): void; /** * Create an empty path object. * @@ -335,14 +325,6 @@ export declare class Path2D extends CanvasPath { * @since 20 */ export declare interface CanvasPattern { - /** - * Adds the matrix transformation effect to the current template. - * - * @param { Matrix2D } [transform] - transformation matrix. The default value is null. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - setTransform(transform?: Matrix2D): void; } /** @@ -1370,14 +1352,6 @@ export declare class CanvasRenderer extends CanvasPath { * @since 20 */ set textBaseline(textBaseline: CanvasTextBaseline); - /** - * Obtains the currently applied transformation matrix. - * - * @returns { Matrix2D } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - getTransform(): Matrix2D; /** * Resets the current transformation matrix using the identity matrix * @@ -1417,15 +1391,6 @@ export declare class CanvasRenderer extends CanvasPath { * @since 20 */ setTransform(a: double, b: double, c: double, d: double, e: double, f: double): void; - /** - * The 2D transformation effect is added. The current transformation matrix is not overwritten and - * the transformations are superimposed for multiple times. - * - * @param { Matrix2D } [transform] - 2D transformation matrix. For details, see {@link Matrix2D}. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - setTransform(transform?: Matrix2D): void; /** * Adds the 2D transformation effect, including rotation, translation, and scaling, * and overwrites the current transformation matrix. diff --git a/api/arkui/component/matrix2d.static.d.ets b/api/arkui/component/matrix2d.static.d.ets deleted file mode 100644 index ed9bb8cdd1..0000000000 --- a/api/arkui/component/matrix2d.static.d.ets +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright (c) 2025 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 - * @arkts 1.2 - */ -import { LengthMetricsUnit } from '../Graphics'; -import { memo, ComponentBuilder } from './../stateManagement/runtime'; -import { AttributeModifier, CommonMethod } from './common'; - -/** - * 2D transformation matrix, supporting rotation, translation, and scaling of the X-axis and Y-axis - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ -export declare class Matrix2D { - /** - * Get the horizontal zoom. - * - * @returns { double | undefined } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - get scaleX(): double | undefined; - /** - * Set the horizontal zoom. - * - * @param { double | undefined } scaleX - The horizontal zoom. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - set scaleX(scaleX: double | undefined); - /** - * Get the vertical zoom. - * - * @returns { double | undefined } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - get scaleY(): double | undefined; - /** - * Set the vertical zoom. - * - * @param { double | undefined } scaleY - The vertical zoom. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - set scaleY(scaleY: double | undefined); - /** - * Get the horizontal tilt. - * - * @returns { double | undefined } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - get rotateX(): double | undefined; - /** - * Set the horizontal tilt. - * - * @param { double | undefined } rotateX - The horizontal tilt. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - set rotateX(rotateX: double | undefined); - /** - * Get the vertical tilt. - * - * @returns { double | undefined } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - get rotateY(): double | undefined; - /** - * Set the vertical tilt. - * - * @param { double | undefined } rotateY - The vertical tilt. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - set rotateY(rotateY: double | undefined); - /** - * Get the horizontal movement. - * - * @returns { double | undefined } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - get translateX(): double | undefined; - /** - * Set the horizontal movement. - * - * @param { double | undefined } translateX - The horizontal movement. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - set translateX(translateX: double | undefined); - /** - * Get the vertical movement. - * - * @returns { double | undefined } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - get translateY(): double | undefined; - /** - * Set the vertical movement. - * - * @param { double | undefined } translateY - The vertical movement. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - set translateY(translateY: double | undefined); - /** - * Transforms the current 2D matrix back to the identity matrix (i.e., without any rotational - * translation scaling effect) - * - * @returns { Matrix2D } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - identity(): Matrix2D; - /** - * Transform the current 2D matrix into an inverse matrix (that is, the transformation effect - * is the opposite effect of the original) - * - * @returns { Matrix2D } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - invert(): Matrix2D; - /** - * Adds the rotation effect of the X and Y axes to the current matrix. - * - * @param { double } degree - The rotation angle, clockwise in radians. - * @param { double } [rx] - Rotation effect of the X-axis - * @param { double } [ry] - Rotation effect of the Y-axis - * @returns { Matrix2D } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - rotate(degree: double, rx?: double, ry?: double): Matrix2D; - /** - * Adds the translation effect of the X and Y axes to the current matrix. - * - * @param { double } [tx] - X-axis translation effect - * @param { double } [ty] - Y-axis translation effect - * @returns { Matrix2D } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - translate(tx?: double, ty?: double): Matrix2D; - /** - * Adds the scaling effect of the X and Y axes to the current matrix. - * - * @param { double } [sx] - X-axis scaling effect - * @param { double } [sy] - Y-axis scaling effect - * @returns { Matrix2D } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - scale(sx?: double, sy?: double): Matrix2D; - /** - * Constructs a 2D change matrix object. The default value is the unit matrix. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - constructor(); - /** - * Constructs a 2D change matrix object. The default value is the unit matrix. - * - * @param { LengthMetricsUnit } unit - the unit mode - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - constructor(unit: LengthMetricsUnit); -} -- Gitee