@3dverse/api 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_prebuild/wrapper.d.ts +7 -9
- package/dist/index.js +3 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -1306,7 +1306,7 @@ export declare function getAssetThumbnail({ asset_container, asset_id, size, def
|
|
|
1306
1306
|
asset_id: string;
|
|
1307
1307
|
size: "large" | "medium" | "small" | "tiny";
|
|
1308
1308
|
default_url?: string;
|
|
1309
|
-
}):
|
|
1309
|
+
}): AxiosPromise<ArrayBuffer>;
|
|
1310
1310
|
export declare function setAssetThumbnail({ asset_container, asset_id, body }: {
|
|
1311
1311
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
1312
1312
|
asset_id: string;
|
|
@@ -1629,6 +1629,8 @@ export type GetEntity_ShadowCaster = {
|
|
|
1629
1629
|
nearDist?: number;
|
|
1630
1630
|
farDist?: number;
|
|
1631
1631
|
quality?: number;
|
|
1632
|
+
cascadeSplitLambda?: number;
|
|
1633
|
+
cascadeMaxZ?: number;
|
|
1632
1634
|
accumulateShadowCascades?: boolean;
|
|
1633
1635
|
};
|
|
1634
1636
|
export type GetEntity_entity_components_skeleton_ref = {
|
|
@@ -1985,6 +1987,8 @@ export type UpdateEntity_ShadowCaster = {
|
|
|
1985
1987
|
nearDist?: number;
|
|
1986
1988
|
farDist?: number;
|
|
1987
1989
|
quality?: number;
|
|
1990
|
+
cascadeSplitLambda?: number;
|
|
1991
|
+
cascadeMaxZ?: number;
|
|
1988
1992
|
accumulateShadowCascades?: boolean;
|
|
1989
1993
|
};
|
|
1990
1994
|
export type UpdateEntity_entity_components_skeleton_ref = {
|
|
@@ -2058,16 +2062,10 @@ export type UpdateEntity_volume_ref = {
|
|
|
2058
2062
|
export type UpdateEntity_VolumeReference = {
|
|
2059
2063
|
texture3dRef: string;
|
|
2060
2064
|
};
|
|
2061
|
-
export
|
|
2062
|
-
euid: UpdateEntity_EntityUid;
|
|
2063
|
-
};
|
|
2064
|
-
export type UpdateEntity_EntityUid = {
|
|
2065
|
-
value: string;
|
|
2066
|
-
};
|
|
2067
|
-
export declare function updateEntity({ scene_id, entity_id, entity }: {
|
|
2065
|
+
export declare function updateEntity({ scene_id, entity_id, entityComponents }: {
|
|
2068
2066
|
scene_id: string;
|
|
2069
2067
|
entity_id: string;
|
|
2070
|
-
|
|
2068
|
+
entityComponents: (UpdateEntity_animation_controller | UpdateEntity_bone | UpdateEntity_box_geometry | UpdateEntity_camera | UpdateEntity_capsule_geometry | UpdateEntity_character_controller | UpdateEntity_collision_geometry_ref | UpdateEntity_cylinder_geometry | UpdateEntity_debug_name | UpdateEntity_decal_projector | UpdateEntity_environment | UpdateEntity_joint | UpdateEntity_lineage | UpdateEntity_local_aabb | UpdateEntity_local_transform | UpdateEntity_material | UpdateEntity_material_ref | UpdateEntity_mesh_ref | UpdateEntity_orthographic_lens | UpdateEntity_overrider | UpdateEntity_perspective_lens | UpdateEntity_physics_material | UpdateEntity_plane_geometry | UpdateEntity_point_cloud_ref | UpdateEntity_point_light | UpdateEntity_reflection_probe | UpdateEntity_revolute_joint | UpdateEntity_rigid_body | UpdateEntity_scene_ref | UpdateEntity_script_element | UpdateEntity_script_map | UpdateEntity_shadow_caster | UpdateEntity_entity_components_skeleton_ref | UpdateEntity_sound_ref | UpdateEntity_sphere_geometry | UpdateEntity_spot_light | UpdateEntity_stereoscopic_lens | UpdateEntity_tags | UpdateEntity_volume_filter | UpdateEntity_volume_material_ref | UpdateEntity_volume_ref);
|
|
2071
2069
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2072
2070
|
export declare function deleteEntity({ scene_id, entity_id }: {
|
|
2073
2071
|
scene_id: string;
|
package/dist/index.js
CHANGED
|
@@ -768,6 +768,7 @@ function getAssetThumbnail({
|
|
|
768
768
|
operationId: "getAssetThumbnail",
|
|
769
769
|
method: "get",
|
|
770
770
|
url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
|
|
771
|
+
responseType: "arraybuffer",
|
|
771
772
|
params: {
|
|
772
773
|
size,
|
|
773
774
|
default_url
|
|
@@ -861,13 +862,13 @@ function getEntity({
|
|
|
861
862
|
function updateEntity({
|
|
862
863
|
scene_id,
|
|
863
864
|
entity_id,
|
|
864
|
-
|
|
865
|
+
entityComponents
|
|
865
866
|
}) {
|
|
866
867
|
return axiosInstance({
|
|
867
868
|
operationId: "updateEntity",
|
|
868
869
|
method: "patch",
|
|
869
870
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id,
|
|
870
|
-
data:
|
|
871
|
+
data: entityComponents
|
|
871
872
|
});
|
|
872
873
|
}
|
|
873
874
|
function deleteEntity({
|