@buerli.io/react-cad 0.7.1 → 0.9.0-beta.1

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.
Files changed (34) hide show
  1. package/build/components/UI/CAD/ModelTree/FeatureList/utils.d.ts +2 -2
  2. package/build/components/UI/CAD/ModelTree/ModelTreeHeader.d.ts +1 -1
  3. package/build/components/UI/CAD/hooks/index.d.ts +1 -1
  4. package/build/components/UI/CAD/hooks/useCurrentInstance.d.ts +2 -0
  5. package/build/components/UI/CAD/hooks/useObjectDetails.d.ts +1 -1
  6. package/build/components/graphics/GeometryOverrides/GeometryOverridesManager.d.ts +5 -0
  7. package/build/components/graphics/GeometryOverrides/GeometryOverridesStore.d.ts +18 -0
  8. package/build/components/graphics/GeometryOverrides/index.d.ts +2 -0
  9. package/build/components/graphics/GeometryOverrides/useOverrideGeometryColor.d.ts +3 -0
  10. package/build/components/graphics/Outlines/AAPass.d.ts +8 -0
  11. package/build/components/graphics/Outlines/IDPass.d.ts +1 -0
  12. package/build/components/graphics/Outlines/Outline.d.ts +3 -8
  13. package/build/components/graphics/Outlines/OutlineEffect.d.ts +16 -14
  14. package/build/components/graphics/Outlines/OutlineMaterial.d.ts +2 -0
  15. package/build/components/graphics/Outlines/WidenPass.d.ts +17 -0
  16. package/build/components/graphics/SelectedMateObj.d.ts +1 -1
  17. package/build/components/graphics/WorkAxisObj.d.ts +1 -1
  18. package/build/components/graphics/WorkCSysObj.d.ts +11 -0
  19. package/build/components/graphics/WorkCoordSystemObj.d.ts +2 -1
  20. package/build/components/graphics/WorkPlaneObj.d.ts +2 -1
  21. package/build/components/graphics/WorkPointObj.d.ts +1 -1
  22. package/build/components/graphics/graphics.d.ts +6 -6
  23. package/build/components/utils/CompValidation/validators/CSysDisplayValidator.d.ts +1 -1
  24. package/build/components/utils/CompValidation/verifiers.d.ts +1 -1
  25. package/build/index.cjs.js +2381 -1352
  26. package/build/index.d.ts +4 -1
  27. package/build/index.js +2357 -1332
  28. package/build/plugins/Sketch/View/graphics/Merged/ArcGeometry.d.ts +1 -1
  29. package/build/plugins/Sketch/View/graphics/hooks.d.ts +7 -2
  30. package/build/plugins/WorkCSys/Root.d.ts +6 -0
  31. package/build/plugins/WorkCSys/View.d.ts +6 -0
  32. package/build/plugins/WorkCSys/index.d.ts +14 -0
  33. package/package.json +12 -12
  34. package/build/components/UI/CAD/hooks/useCurrentNode.d.ts +0 -2
@@ -1,2 +1,2 @@
1
1
  import * as THREE from 'three';
2
- export declare const createArcGeometry: (radialSegments: number, tubularSegments: number, instanceLimit: number) => THREE.BufferGeometry;
2
+ export declare const createArcGeometry: (radialSegments: number, tubularSegments: number, instanceLimit: number) => THREE.BufferGeometry<THREE.NormalBufferAttributes>;
@@ -4,6 +4,7 @@ export declare const useGeomParams: (objId: ObjectID) => {
4
4
  polygonOffsetUnits: number;
5
5
  isHovered: boolean;
6
6
  isSelected: boolean;
7
+ isHighlighted: boolean;
7
8
  };
8
9
  declare type ObjState = {
9
10
  isSketchActive: boolean;
@@ -19,7 +20,7 @@ export declare const getColor: (object: IStructureObject, objState: ObjState) =>
19
20
  * @param objId
20
21
  * @returns
21
22
  */
22
- export declare const useSketchHandlers: (objId: ObjectID) => Record<string, (e: import("@react-three/fiber").ThreeEvent<PointerEvent> & import("../../types").PointerEventsT) => void> | undefined;
23
+ export declare const useSketchHandlers: (objId: ObjectID) => Record<string, (e: import("@react-three/fiber/dist/declarations/src/core/events").IntersectionEvent<PointerEvent> & import("@react-three/fiber").Properties<PointerEvent> & import("../../types").PointerEventsT) => void> | undefined;
23
24
  export declare const useColor: (objId: ObjectID, gHovered: boolean) => number;
24
25
  export declare const useUserData: (objId: ObjectID) => {
25
26
  objId: number;
@@ -29,7 +30,11 @@ export declare const useUserData: (objId: ObjectID) => {
29
30
  onHUD?: undefined;
30
31
  };
31
32
  export declare const useHandlersAndColor: (drawingId: DrawingID, objId: ObjectID) => {
32
- handlers: Record<string, (e: import("@react-three/fiber").ThreeEvent<PointerEvent> & import("../../types").PointerEventsT) => void>;
33
+ handlers: {
34
+ onClick: (e: MouseEvent | import("@react-three/fiber").ThreeEvent<MouseEvent>) => void;
35
+ onPointerOut: (e: PointerEvent | import("@react-three/fiber").ThreeEvent<PointerEvent>) => void;
36
+ onPointerOver: (e: PointerEvent | import("@react-three/fiber").ThreeEvent<PointerEvent>) => void;
37
+ } | Record<string, (e: import("@react-three/fiber/dist/declarations/src/core/events").IntersectionEvent<PointerEvent> & import("@react-three/fiber").Properties<PointerEvent> & import("../../types").PointerEventsT) => void>;
33
38
  color: number;
34
39
  };
35
40
  export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { DrawingID, PluginID } from '@buerli.io/core';
3
+ export declare const Root: React.FC<{
4
+ drawingId: DrawingID;
5
+ pluginId: PluginID;
6
+ }>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { DrawingID, PluginID } from '@buerli.io/core';
3
+ export declare const View: React.FC<{
4
+ drawingId: DrawingID;
5
+ pluginId: PluginID;
6
+ }>;
@@ -0,0 +1,14 @@
1
+ import * as THREE from 'three';
2
+ import { PluginDescription } from '@buerli.io/core';
3
+ import { Root } from './Root';
4
+ import { View } from './View';
5
+ export declare type InternalState = {
6
+ originPos: THREE.Vector3 | undefined;
7
+ xDir: THREE.Vector3 | undefined;
8
+ yDir: THREE.Vector3 | undefined;
9
+ offset: THREE.Vector3;
10
+ rotation: THREE.Vector3;
11
+ inverted: 0 | 1;
12
+ };
13
+ declare const description: PluginDescription<InternalState>;
14
+ export { Root, View, description };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerli.io/react-cad",
3
- "version": "0.7.1",
3
+ "version": "0.9.0-beta.1",
4
4
  "description": "buerli CAD components",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "repository": {},
@@ -38,8 +38,8 @@
38
38
  "@babel/preset-react": "^7.14.5",
39
39
  "@babel/preset-typescript": "^7.10.4",
40
40
  "@buerli.io/icons": "^1.0.10",
41
- "@react-three/drei": "9.34.1",
42
- "@react-three/fiber": "8.7.1",
41
+ "@react-three/drei": "9.77.1",
42
+ "@react-three/fiber": "8.13.0",
43
43
  "@rollup/plugin-babel": "^5.3.0",
44
44
  "@rollup/plugin-image": "^2.1.0",
45
45
  "@rollup/plugin-node-resolve": "^13.0.4",
@@ -50,7 +50,7 @@
50
50
  "@types/path-browserify": "^1.0.0",
51
51
  "@types/react": "18.0.0",
52
52
  "@types/styled-components": "^5.1.14",
53
- "@types/three": "^0.143",
53
+ "@types/three": "^0.152.1",
54
54
  "@types/uuid": "^3.4.5",
55
55
  "@typescript-eslint/eslint-plugin": "^5.21.0",
56
56
  "@typescript-eslint/parser": "^5.21.0",
@@ -80,23 +80,23 @@
80
80
  "rollup-plugin-postcss": "^4.0.1",
81
81
  "rollup-plugin-size-snapshot": "^0.12.0",
82
82
  "rollup-plugin-terser": "^7.0.2",
83
- "three": "^0.143",
83
+ "three": "^0.153",
84
84
  "typescript": "4.8.4"
85
85
  },
86
86
  "peerDependencies": {
87
- "@react-three/drei": ">=9.34.1",
88
- "@react-three/fiber": ">=8.7.1",
89
- "three": ">=0.143",
87
+ "@react-three/drei": ">=9.77.1",
88
+ "@react-three/fiber": ">=8.13.0",
89
+ "three": ">=0.153",
90
90
  "react": ">=18.0"
91
91
  },
92
92
  "dependencies": {
93
93
  "@ant-design/compatible": "^1.0.8",
94
- "@buerli.io/classcad": "0.7.1",
95
- "@buerli.io/react": "0.7.1",
96
- "@react-three/postprocessing": "2.6.2",
94
+ "@buerli.io/classcad": "0.9.0-beta.1",
95
+ "@buerli.io/react": "0.9.0-beta.1",
96
+ "@react-three/postprocessing": "2.14.9",
97
97
  "antd": "^4.23.4",
98
98
  "path-browserify": "^1.0.1",
99
- "postprocessing": "6.28.5",
99
+ "postprocessing": "6.31.0",
100
100
  "react-colorful": "^5.3.0",
101
101
  "react-movable": "^2.3.0",
102
102
  "react-sortable-hoc": "^2.0.0",
@@ -1,2 +0,0 @@
1
- import { DrawingID } from '@buerli.io/core';
2
- export declare const useCurrentNode: (drawingId: DrawingID) => import("@buerli.io/core").IStructureObject | undefined;