@3dverse/api 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 type UpdateEntity_Entity = {
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
- entity: (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) & UpdateEntity_Entity;
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
@@ -862,13 +862,13 @@ function getEntity({
862
862
  function updateEntity({
863
863
  scene_id,
864
864
  entity_id,
865
- entity
865
+ entityComponents
866
866
  }) {
867
867
  return axiosInstance({
868
868
  operationId: "updateEntity",
869
869
  method: "patch",
870
870
  url: "/assets/scenes/" + scene_id + "/entities/" + entity_id,
871
- data: entity
871
+ data: entityComponents
872
872
  });
873
873
  }
874
874
  function deleteEntity({