mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-12-14 19:20:17 +00:00
update ark graphics 3d api
Change-Id: I615217a919e3464324c83cf855287472a3ccb9e4 Signed-off-by: huxiaoming5@huawei.com <huxiaoming5@huawei.com>
This commit is contained in:
parent
3fcdcef983
commit
8974b8065c
2
api/@internal/component/ets/component3d.d.ts
vendored
2
api/@internal/component/ets/component3d.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2023-2023 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2023-2024 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
|
||||
|
12
api/@ohos.graphics.scene.d.ts
vendored
12
api/@ohos.graphics.scene.d.ts
vendored
@ -23,14 +23,14 @@
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export { TonemapType, TonemapSettings, PostProcessSettings } from './graphics3d/scenePostProcessSettings';
|
||||
export { TonemapType, TonemapSettings, PostProcessSettings } from './graphics3d/ScenePostProcessSettings';
|
||||
|
||||
/**
|
||||
* Export scene types
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3 } from './graphics3d/sceneTypes';
|
||||
export { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3 } from './graphics3d/SceneTypes';
|
||||
|
||||
/**
|
||||
* Export scene resources
|
||||
@ -38,19 +38,19 @@ export { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3,
|
||||
* @since 12
|
||||
*/
|
||||
export { SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
|
||||
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image } from './graphics3d/sceneResources';
|
||||
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image } from './graphics3d/SceneResources';
|
||||
|
||||
/**
|
||||
* Export scene nodes
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export { Layermask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight,
|
||||
Camera } from './graphics3d/sceneNodes';
|
||||
export { LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight,
|
||||
Camera } from './graphics3d/SceneNodes';
|
||||
|
||||
/**
|
||||
* Export scene
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export { SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from './graphics3d/scene';
|
||||
export { SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from './graphics3d/Scene';
|
||||
|
8
api/graphics3d/Scene.d.ts
vendored
8
api/graphics3d/Scene.d.ts
vendored
@ -18,8 +18,8 @@
|
||||
* @kit ArkGraphics3D
|
||||
*/
|
||||
|
||||
import { Shader, MaterialType, Material, Animation, Environment, Image } from './sceneResources'
|
||||
import { Camera, LightType, Light, Node, NodeType } from './sceneNodes'
|
||||
import { Shader, MaterialType, Material, Animation, Environment, Image } from './SceneResources'
|
||||
import { Camera, LightType, Light, Node, NodeType } from './SceneNodes'
|
||||
import { Resource } from 'GlobalResource';
|
||||
|
||||
/**
|
||||
@ -167,7 +167,7 @@ export class Scene {
|
||||
/**
|
||||
* Create a new scene from a Resource.
|
||||
*
|
||||
* @param { ?Resource } uri - the resource of creating a scene
|
||||
* @param { Resource } uri - the resource of creating a scene
|
||||
* @returns { Promise<Scene> } promise a scene
|
||||
* @static
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
@ -208,7 +208,7 @@ export class Scene {
|
||||
* Get a node by path.
|
||||
*
|
||||
* @param { string } path - the path of the node
|
||||
* @param { ?NodeType } type - verify the type of node, if it does not match, return null
|
||||
* @param { NodeType } type - verify the type of node, if it does not match, return null
|
||||
* @returns { Node | null } if the node is found by it's path
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
|
6
api/graphics3d/SceneNodes.d.ts
vendored
6
api/graphics3d/SceneNodes.d.ts
vendored
@ -18,9 +18,9 @@
|
||||
* @kit ArkGraphics3D
|
||||
*/
|
||||
|
||||
import { SceneResource, Mesh } from './sceneResources';
|
||||
import { Position3, Quaternion, Scale3, Color } from './sceneTypes';
|
||||
import { PostProcessSettings } from './scenePostProcessSettings';
|
||||
import { SceneResource, Mesh } from './SceneResources';
|
||||
import { Position3, Quaternion, Scale3, Color } from './SceneTypes';
|
||||
import { PostProcessSettings } from './ScenePostProcessSettings';
|
||||
|
||||
/**
|
||||
* Defines the layer mask of the node.
|
||||
|
2
api/graphics3d/SceneResources.d.ts
vendored
2
api/graphics3d/SceneResources.d.ts
vendored
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Vec2, Vec3, Vec4, Aabb } from './sceneTypes';
|
||||
import { Vec2, Vec3, Vec4, Aabb } from './SceneTypes';
|
||||
import { Resource } from 'GlobalResource';
|
||||
|
||||
/**
|
||||
|
4
kits/@kit.ArkGraphics3D.d.ts
vendored
4
kits/@kit.ArkGraphics3D.d.ts
vendored
@ -22,12 +22,12 @@ import { TonemapType, TonemapSettings, PostProcessSettings,
|
||||
Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3,
|
||||
SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
|
||||
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image,
|
||||
Layermask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
|
||||
LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
|
||||
SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from '@ohos.graphics.scene';
|
||||
|
||||
export { TonemapType, TonemapSettings, PostProcessSettings,
|
||||
Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3,
|
||||
SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
|
||||
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image,
|
||||
Layermask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
|
||||
LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera,
|
||||
SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene };
|
||||
|
Loading…
Reference in New Issue
Block a user