mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
update arkgraphics 3d api
Signed-off-by: huxiaoming5@huawei.com <huxiaoming5@huawei.com> Change-Id: Ie2dd73ff97bce63c51745fb5b2ecb3bd70490ffd Signed-off-by: huxiaoming5@huawei.com <huxiaoming5@huawei.com>
This commit is contained in:
parent
6b81cb5c6e
commit
2f47c43a87
2
api/@ohos.graphics.scene.d.ts
vendored
2
api/@ohos.graphics.scene.d.ts
vendored
@ -23,7 +23,7 @@
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export { TonemapType, TonemapSettings, PostProcessSettings } from './graphics3d/ScenePostProcessSettings';
|
||||
export { ToneMappingType, ToneMappingSettings, PostProcessSettings } from './graphics3d/ScenePostProcessSettings';
|
||||
|
||||
/**
|
||||
* Export scene types
|
||||
|
14
api/graphics3d/ScenePostProcessSettings.d.ts
vendored
14
api/graphics3d/ScenePostProcessSettings.d.ts
vendored
@ -25,7 +25,7 @@
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export enum TonemapType {
|
||||
export enum ToneMappingType {
|
||||
/**
|
||||
* The tone mapping type is ACES.
|
||||
*
|
||||
@ -54,19 +54,19 @@ export enum TonemapType {
|
||||
/**
|
||||
* Defines tone mapping parameters.
|
||||
*
|
||||
* @typedef TonemapSettings
|
||||
* @typedef ToneMappingSettings
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
export interface TonemapSettings {
|
||||
export interface ToneMappingSettings {
|
||||
/**
|
||||
* Type of the tone mapping.
|
||||
*
|
||||
* @type { ?TonemapType }
|
||||
* @type { ?ToneMappingType }
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
type?: TonemapType;
|
||||
type?: ToneMappingType;
|
||||
|
||||
/**
|
||||
* Exposure of the tone mapping.
|
||||
@ -89,9 +89,9 @@ export interface PostProcessSettings {
|
||||
/**
|
||||
* Tone mapping settings of the post processing settings.
|
||||
*
|
||||
* @type { ?TonemapSettings }
|
||||
* @type { ?ToneMappingSettings }
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
tonemap?: TonemapSettings;
|
||||
toneMapping?: ToneMappingSettings;
|
||||
}
|
||||
|
9
api/graphics3d/SceneResources.d.ts
vendored
9
api/graphics3d/SceneResources.d.ts
vendored
@ -15,6 +15,7 @@
|
||||
|
||||
import { Vec2, Vec3, Vec4, Aabb } from './SceneTypes';
|
||||
import { Resource } from 'GlobalResource';
|
||||
import { Callback } from '../@ohos.base'
|
||||
|
||||
/**
|
||||
* @file
|
||||
@ -339,20 +340,20 @@ export interface Animation extends SceneResource {
|
||||
/**
|
||||
* Register a callback when animation finished.
|
||||
*
|
||||
* @param { function } callback - the callback invoked when animation finished
|
||||
* @param { Callback<void> } callback - the callback invoked when animation finished
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
onFinished(callback: () => void): void;
|
||||
onFinished(callback: Callback<void>): void;
|
||||
|
||||
/**
|
||||
* Register a callback when animation started.
|
||||
*
|
||||
* @param { function } callback - the callback invoked when animation started
|
||||
* @param { Callback<void> } callback - the callback invoked when animation started
|
||||
* @syscap SystemCapability.ArkUi.Graphics3D
|
||||
* @since 12
|
||||
*/
|
||||
onStarted(callback: () => void): void;
|
||||
onStarted(callback: Callback<void>): void;
|
||||
|
||||
/**
|
||||
* Pause the animation.
|
||||
|
4
kits/@kit.ArkGraphics3D.d.ts
vendored
4
kits/@kit.ArkGraphics3D.d.ts
vendored
@ -18,14 +18,14 @@
|
||||
* @kit ArkGraphics3D
|
||||
*/
|
||||
|
||||
import { TonemapType, TonemapSettings, PostProcessSettings,
|
||||
import { ToneMappingType, ToneMappingSettings, 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,
|
||||
SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene } from '@ohos.graphics.scene';
|
||||
|
||||
export { TonemapType, TonemapSettings, PostProcessSettings,
|
||||
export { ToneMappingType, ToneMappingmettings, PostProcessSettings,
|
||||
Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, Scale3,
|
||||
SceneResourceType, SceneResource, Shader, MaterialType, Material, ShaderMaterial,
|
||||
SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image,
|
||||
|
Loading…
Reference in New Issue
Block a user