From e9c848e9c6f9d0ffafee18295e598ba48a670846 Mon Sep 17 00:00:00 2001 From: shenshiyi2 Date: Mon, 4 Aug 2025 10:50:27 +0800 Subject: [PATCH 1/5] [Graphics3D] export class Scene -> export declare class Scene Signed-off-by: shenshiyi2 --- api/graphics3d/Scene.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/graphics3d/Scene.d.ts b/api/graphics3d/Scene.d.ts index 362feae4ff..c0796d9d17 100644 --- a/api/graphics3d/Scene.d.ts +++ b/api/graphics3d/Scene.d.ts @@ -358,7 +358,7 @@ export interface RenderParameters { * @syscap SystemCapability.ArkUi.Graphics3D * @since 12 */ -export class Scene { +export declare class Scene { /** * Get default render context * -- Gitee From 7271dde92ab9ee9bf9c72ff68036493283522b6a Mon Sep 17 00:00:00 2001 From: shenshiyi2 Date: Mon, 4 Aug 2025 11:21:37 +0800 Subject: [PATCH 2/5] =?UTF-8?q?[Graphics3D]=20raycast=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenshiyi2 --- api/graphics3d/SceneNodes.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/graphics3d/SceneNodes.d.ts b/api/graphics3d/SceneNodes.d.ts index 021e109526..d20a9371a5 100644 --- a/api/graphics3d/SceneNodes.d.ts +++ b/api/graphics3d/SceneNodes.d.ts @@ -461,11 +461,11 @@ export interface Camera extends Node { clearColor: Color | null; /** - * Cast a ray to a position on the screen and list what it hits. + * Casts a ray to a position on the screen and lists what the ray hits. * - * @param { Vec2 } viewPosition - a position in normalized viewport coordiantes towards which to cast - * @param { RaycastParameters } params - options for performing the ray cast - * @returns { Promise } an array of hit results, sorted from closest to farthest, possibly empty + * @param { Vec2 } viewPosition - Position to cast in the normalized device coordinates. + * @param { RaycastParameters } params - Options used to execute the ray cast. + * @returns { Promise } - Promise used to return an array of hit results, sorted from the closest to the farthest. The array may be empty. * @syscap SystemCapability.ArkUi.Graphics3D * @since 20 */ -- Gitee From 406508d3404ea1f1e5444577204b508e0bb92e94 Mon Sep 17 00:00:00 2001 From: shenshiyi2 Date: Mon, 4 Aug 2025 11:32:54 +0800 Subject: [PATCH 3/5] =?UTF-8?q?[Graphics3D]=20rootNode=20=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenshiyi2 --- api/graphics3d/Scene.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/graphics3d/Scene.d.ts b/api/graphics3d/Scene.d.ts index c0796d9d17..4749f9b67c 100644 --- a/api/graphics3d/Scene.d.ts +++ b/api/graphics3d/Scene.d.ts @@ -121,7 +121,7 @@ export interface RaycastResult { */ export interface RaycastParameters { /** - * If defined, search only the nodes in the hierarchy under this node. + * If defined, search only the nodes in the hierarchy under this node * If undefined, search all the nodes in the scene * * @type { ?Node } -- Gitee From e923da7e6a28692ab879286aff7514a7d16bfdc0 Mon Sep 17 00:00:00 2001 From: shenshiyi2 Date: Mon, 4 Aug 2025 11:35:19 +0800 Subject: [PATCH 4/5] =?UTF-8?q?[Graphics3D]=20raycast=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenshiyi2 --- api/graphics3d/SceneNodes.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/graphics3d/SceneNodes.d.ts b/api/graphics3d/SceneNodes.d.ts index d20a9371a5..39f598773b 100644 --- a/api/graphics3d/SceneNodes.d.ts +++ b/api/graphics3d/SceneNodes.d.ts @@ -462,7 +462,6 @@ export interface Camera extends Node { /** * Casts a ray to a position on the screen and lists what the ray hits. - * * @param { Vec2 } viewPosition - Position to cast in the normalized device coordinates. * @param { RaycastParameters } params - Options used to execute the ray cast. * @returns { Promise } - Promise used to return an array of hit results, sorted from the closest to the farthest. The array may be empty. -- Gitee From a601beabc6038f3b68249f891975e19304878bb6 Mon Sep 17 00:00:00 2001 From: shenshiyi2 Date: Mon, 4 Aug 2025 16:48:58 +0800 Subject: [PATCH 5/5] =?UTF-8?q?[Graphics3D]=20export=20class=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E5=8F=98=E6=9B=B4=E4=B8=BA=20export=20declare=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenshiyi2 --- api/graphics3d/SceneTypes.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/graphics3d/SceneTypes.d.ts b/api/graphics3d/SceneTypes.d.ts index d871789102..2deb5dd950 100644 --- a/api/graphics3d/SceneTypes.d.ts +++ b/api/graphics3d/SceneTypes.d.ts @@ -379,7 +379,7 @@ export enum PrimitiveTopology { * @syscap SystemCapability.ArkUi.Graphics3D * @since 18 */ -export class CustomGeometry extends GeometryDefinition { +export declare class CustomGeometry extends GeometryDefinition { /** * How to form mesh triangles from the indexed vertices. * @@ -453,7 +453,7 @@ export class CustomGeometry extends GeometryDefinition { * @syscap SystemCapability.ArkUi.Graphics3D * @since 18 */ -export class CubeGeometry extends GeometryDefinition { +export declare class CubeGeometry extends GeometryDefinition { /** * The width, height and depth of the cube. * @@ -471,7 +471,7 @@ export class CubeGeometry extends GeometryDefinition { * @syscap SystemCapability.ArkUi.Graphics3D * @since 18 */ -export class PlaneGeometry extends GeometryDefinition { +export declare class PlaneGeometry extends GeometryDefinition { /** * The width and length of the plane. * @@ -489,7 +489,7 @@ export class PlaneGeometry extends GeometryDefinition { * @syscap SystemCapability.ArkUi.Graphics3D * @since 18 */ -export class SphereGeometry extends GeometryDefinition { +export declare class SphereGeometry extends GeometryDefinition { /** * The raduis of the sphere. * -- Gitee