@pan-ya/libgeo3dviewer 1.7.39 → 1.7.41

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/index.d.ts CHANGED
@@ -438,6 +438,8 @@ declare type DensitySliceProps = {
438
438
  actions?: MeshActions;
439
439
  };
440
440
 
441
+ export declare function describePlaneProjectionFromCorners(corners: [Point3D, Point3D, Point3D, Point3D], options?: Pick<SliceRenderOptions, "widthScale" | "heightScale">): PlaneProjectionInfo;
442
+
441
443
  declare type DiffuseTerrainMaterialProps = {
442
444
  lightPosition?: Vector3;
443
445
  contrast?: number;
@@ -891,6 +893,13 @@ declare interface ParticleSystemProps {
891
893
  capacity?: number;
892
894
  }
893
895
 
896
+ declare interface PlaneBasis {
897
+ origin: Point3D;
898
+ uDir: Point3D;
899
+ vDir: Point3D;
900
+ normal: Point3D;
901
+ }
902
+
894
903
  export declare const PlaneImage: React.ForwardRefExoticComponent<PlaneImageProps & React.RefAttributes<RefObject<DynamicTexture>>>;
895
904
 
896
905
  declare type PlaneImageDynamicCanvasProps = {
@@ -914,6 +923,24 @@ declare type PlaneImageProps = {
914
923
  labelStyle?: GUITextProps;
915
924
  };
916
925
 
926
+ declare interface PlaneProjectionInfo {
927
+ basis: PlaneBasis;
928
+ points2D: [Point2D, Point2D, Point2D, Point2D];
929
+ bounds: {
930
+ minU: number;
931
+ maxU: number;
932
+ minV: number;
933
+ maxV: number;
934
+ };
935
+ width: number;
936
+ height: number;
937
+ }
938
+
939
+ declare interface Point2D {
940
+ u: number;
941
+ v: number;
942
+ }
943
+
917
944
  declare interface Point3D {
918
945
  x: number;
919
946
  y: number;