@buerli.io/react-cad 0.0.23-beta.1 → 0.0.23

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.
@@ -13,6 +13,6 @@ declare const Plugin: {
13
13
  drawingId: string | number;
14
14
  pluginId: string | number;
15
15
  }>;
16
- description: import("@buerli.io/core/build/types/store/states/plugin").PluginDescription<any>;
16
+ description: import("@buerli.io/core/build/store/states/plugin").PluginDescription<any>;
17
17
  };
18
18
  export { Plugin };
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
+ import * as THREE from 'three';
3
+ export declare const getCylBB: () => THREE.Box3;
4
+ export declare const getSphereBB: () => THREE.Box3;
2
5
  export declare const MeshContext: React.Context<{
3
6
  Cylinder: any;
4
7
  Sphere: any;
@@ -1,3 +1,3 @@
1
1
  import { DrawingID, PluginID } from '@buerli.io/core';
2
2
  import { Handler } from '../../types';
3
- export declare function Drag(drawingId: DrawingID, pluginId: PluginID): Handler;
3
+ export declare function Drag(drawingId: DrawingID, pluginId: PluginID, camControls: any): Handler;
@@ -1,3 +1,3 @@
1
1
  import { DrawingID, PluginID } from '@buerli.io/core';
2
2
  import { Handler } from '../../types';
3
- export declare function Fillet(drawingId: DrawingID, pluginId: PluginID): Handler;
3
+ export declare function Fillet(drawingId: DrawingID, pluginId: PluginID, camControls: any): Handler;
@@ -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.1",
3
+ "version": "0.0.23",
4
4
  "description": "buerli CAD components",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "repository": {},
@@ -47,6 +47,8 @@
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",
51
+ "@react-three/fiber": "^7.0.19",
50
52
  "@rollup/plugin-babel": "^5.3.0",
51
53
  "@rollup/plugin-image": "^2.1.0",
52
54
  "@rollup/plugin-node-resolve": "^13.0.4",
@@ -87,16 +89,15 @@
87
89
  "typescript": "4.1.2"
88
90
  },
89
91
  "peerDependencies": {
92
+ "@react-three/drei": ">= 7.26.1",
90
93
  "@react-three/fiber": ">= 7.0.17",
91
94
  "three": ">=0.129"
92
95
  },
93
96
  "dependencies": {
94
97
  "@ant-design/compatible": "^1.0.8",
95
- "@buerli.io/classcad": "0.0.35-beta.1",
96
- "@buerli.io/react": "0.0.35-beta.1",
97
- "@react-three/drei": "^7.12.6",
98
- "@react-three/fiber": "^7.0.17",
99
- "antd": "4.11.2",
98
+ "@buerli.io/classcad": "0.0.35",
99
+ "@buerli.io/react": "0.0.35",
100
+ "antd": "^4.15.3",
100
101
  "react": "^17.0.2",
101
102
  "react-colorful": "^5.3.0",
102
103
  "react-movable": "^2.3.0",
@@ -104,7 +105,6 @@
104
105
  "react-uid": "^2.3.1",
105
106
  "styled-components": "^4.3.2",
106
107
  "three-rounded-box": "^0.1.1",
107
- "three-stdlib": "^2.4.0",
108
108
  "uuid": "^3.3.2",
109
109
  "zustand": "^3.5.7"
110
110
  }