@buerli.io/react-cad 0.0.23-beta.2 → 0.0.24-beta.0

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.
@@ -4,7 +4,6 @@ import { IStructureObject, ObjectID, PluginID } from '@buerli.io/core';
4
4
  import { CCClasses } from '@buerli.io/classcad';
5
5
  import { InfinityPlane } from '../../components/graphics/InfinityPlane';
6
6
  import { Geometry } from 'three-stdlib';
7
- export declare const UNDEFINEDID = -1;
8
7
  export declare type HighlightedConstraintsT = Array<{
9
8
  constraintId: ObjectID;
10
9
  geometryId: ObjectID;
@@ -0,0 +1,3 @@
1
+ export declare const EMPTYARRAY: never[];
2
+ export declare const NOCCID: number;
3
+ export declare const EMPTYSTR = "";
@@ -0,0 +1,3 @@
1
+ export { useDrawingArr } from './useDrawingArr';
2
+ export { useDrawingCCId } from './useDrawingCCId';
3
+ export { useDrawingStr } from './useDrawingStr';
@@ -0,0 +1,2 @@
1
+ import { DrawingID, DrawingState } from '@buerli.io/core';
2
+ export declare function useDrawingArr<T>(drawingId: DrawingID, selector: (state: DrawingState) => Array<T> | undefined): Array<T>;
@@ -0,0 +1,2 @@
1
+ import { DrawingID, DrawingState, ObjectID } from '@buerli.io/core';
2
+ export declare function useDrawingCCId(drawingId: DrawingID, selector: (state: DrawingState) => ObjectID | undefined): ObjectID;
@@ -0,0 +1,2 @@
1
+ import { DrawingID, DrawingState } from '@buerli.io/core';
2
+ export declare function useDrawingStr(drawingId: DrawingID, selector: (state: DrawingState) => string | undefined): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerli.io/react-cad",
3
- "version": "0.0.23-beta.2",
3
+ "version": "0.0.24-beta.0",
4
4
  "description": "buerli CAD components",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "repository": {},
@@ -47,7 +47,7 @@
47
47
  "@babel/preset-react": "^7.14.5",
48
48
  "@babel/preset-typescript": "^7.10.4",
49
49
  "@buerli.io/icons": "^1.0.9",
50
- "@react-three/drei": "^7.26.1",
50
+ "@react-three/drei": "^8.1.0",
51
51
  "@react-three/fiber": "^7.0.19",
52
52
  "@rollup/plugin-babel": "^5.3.0",
53
53
  "@rollup/plugin-image": "^2.1.0",
@@ -57,6 +57,7 @@
57
57
  "@testing-library/react-hooks": "^3.4.2",
58
58
  "@types/jest": "^26.0.8",
59
59
  "@types/node": "^11.13.8",
60
+ "@types/path-browserify": "^1.0.0",
60
61
  "@types/react": "^16.9.55",
61
62
  "@types/styled-components": "^4.1.16",
62
63
  "@types/three": "^0.130.0",
@@ -89,15 +90,16 @@
89
90
  "typescript": "4.1.2"
90
91
  },
91
92
  "peerDependencies": {
92
- "@react-three/drei": ">= 7.26.1",
93
+ "@react-three/drei": "^8.1.0",
93
94
  "@react-three/fiber": ">= 7.0.17",
94
95
  "three": ">=0.129"
95
96
  },
96
97
  "dependencies": {
97
98
  "@ant-design/compatible": "^1.0.8",
98
- "@buerli.io/classcad": "0.0.35-beta.2",
99
- "@buerli.io/react": "0.0.35-beta.2",
100
- "antd": "4.11.2",
99
+ "@buerli.io/classcad": "0.0.36-beta.0",
100
+ "@buerli.io/react": "0.0.36-beta.0",
101
+ "antd": "^4.15.3",
102
+ "path-browserify": "^1.0.1",
101
103
  "react": "^17.0.2",
102
104
  "react-colorful": "^5.3.0",
103
105
  "react-movable": "^2.3.0",