@3dverse/api 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
@@ -895,11 +895,12 @@ export declare function packageAsset({ asset_container, asset_id }: {
|
|
895
895
|
asset_container: "action_maps" | "algorithms" | "animations" | "animation_graphs" | "animation_sequences" | "animation_sets" | "collision_geometries" | "cubemaps" | "event_maps" | "materials" | "meshes" | "modules" | "point_clouds" | "render_graphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "textures_1d" | "textures_3d" | "volume_materials";
|
896
896
|
asset_id: string;
|
897
897
|
}): AxiosPromise<ArrayBuffer>;
|
898
|
-
export declare function exportAsset({ asset_container_exportable, asset_id, format, scale }: {
|
898
|
+
export declare function exportAsset({ asset_container_exportable, asset_id, format, scale, sub_mesh_index }: {
|
899
899
|
asset_container_exportable: "meshes" | "sounds";
|
900
900
|
asset_id: string;
|
901
901
|
format: "obj" | "stl";
|
902
902
|
scale?: number;
|
903
|
+
sub_mesh_index?: number;
|
903
904
|
}): AxiosPromise<ArrayBuffer>;
|
904
905
|
export type GetSceneSessions_Session = {
|
905
906
|
session_id: string;
|
package/dist/index.js
CHANGED
@@ -787,14 +787,16 @@ function exportAsset({
|
|
787
787
|
asset_container_exportable,
|
788
788
|
asset_id,
|
789
789
|
format,
|
790
|
-
scale = 1
|
790
|
+
scale = 1,
|
791
|
+
sub_mesh_index
|
791
792
|
}) {
|
792
793
|
return axiosInstance({
|
793
794
|
method: "get",
|
794
795
|
url: "/assets/" + asset_container_exportable + "/" + asset_id + "/exports/" + format,
|
795
796
|
responseType: "arraybuffer",
|
796
797
|
params: {
|
797
|
-
scale
|
798
|
+
scale,
|
799
|
+
sub_mesh_index
|
798
800
|
}
|
799
801
|
});
|
800
802
|
}
|