diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index a5b54323d3e5463868c7bd6544d691a8535a47a0..ba769b90c690b6a592b0712e8b0f4cd35ef96de1 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -1269,6 +1269,23 @@ export declare class FrameNode { * @since 20 */ getNodePropertyValue(property: AnimationPropertyType): number[]; + + /** + * Converts a point's coordinates from the current node's coordinate system + * to the target node's coordinate system. + * + * @param { Position } position - The point's coordinates in the current node's local coordinate system. + * @param { FrameNode } targetNode - The destination node whose coordinate system will be used + * for conversion. + * @returns { Position } The converted coordinates in the target node's local coordinate system. + * @throws { BusinessError } 100024 - The current FrameNode and the target FrameNode do not have a common ancestor node. + * @throws { BusinessError } 100025 - The parameter is invalid. The error message provides specific details about which parameter is invalid and why, e.g., "The parameter 'targetNode' is invalid: it cannot be disposed". + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ + convertPoint(position: Position, targetNode: FrameNode): Position; } /**