@buerli.io/react-cad 0.12.0 → 0.13.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.
Files changed (33) hide show
  1. package/build/components/UI/CAD/ModelTree/AssemblyNode.d.ts +3 -0
  2. package/build/components/UI/CAD/common/Collapse.d.ts +8 -0
  3. package/build/components/UI/CAD/common/ContextMenu.d.ts +4 -2
  4. package/build/components/UI/CAD/common/primitives.d.ts +1 -0
  5. package/build/components/UI/CAD/hooks/index.d.ts +1 -0
  6. package/build/components/UI/CAD/hooks/useGlobalMateInfo.d.ts +6 -0
  7. package/build/components/UI/CAD/store/CADActions.d.ts +1 -0
  8. package/build/components/UI/CAD/store/CADStore.d.ts +8 -1
  9. package/build/components/graphics/CSysDisplay.d.ts +19 -2
  10. package/build/index.cjs.js +8988 -7722
  11. package/build/index.d.ts +8 -3
  12. package/build/index.js +8948 -7690
  13. package/build/plugins/HLConstraints/CircularPattern/Root.d.ts +6 -0
  14. package/build/plugins/HLConstraints/CircularPattern/View.d.ts +6 -0
  15. package/build/plugins/HLConstraints/CircularPattern/index.d.ts +5 -0
  16. package/build/plugins/HLConstraints/Gear/Root.d.ts +6 -0
  17. package/build/plugins/HLConstraints/Gear/View.d.ts +6 -0
  18. package/build/plugins/HLConstraints/Gear/index.d.ts +5 -0
  19. package/build/plugins/HLConstraints/Group/Root.d.ts +6 -0
  20. package/build/plugins/HLConstraints/Group/index.d.ts +4 -0
  21. package/build/plugins/HLConstraints/LinearPattern/Root.d.ts +6 -0
  22. package/build/plugins/HLConstraints/LinearPattern/View.d.ts +6 -0
  23. package/build/plugins/HLConstraints/LinearPattern/index.d.ts +5 -0
  24. package/build/plugins/HLConstraints/Spherical/Root.d.ts +6 -0
  25. package/build/plugins/HLConstraints/Spherical/View.d.ts +6 -0
  26. package/build/plugins/HLConstraints/Spherical/index.d.ts +5 -0
  27. package/build/plugins/HLConstraints/components/CSysDisplayWrapper.d.ts +7 -0
  28. package/build/plugins/HLConstraints/components/HLConstrIcon.d.ts +7 -0
  29. package/build/plugins/HLConstraints/components/LimitedValue.d.ts +1 -1
  30. package/build/plugins/HLConstraints/components/Limits.d.ts +6 -0
  31. package/build/utils/mateUtils.d.ts +4 -0
  32. package/build/utils/selection/filters.d.ts +1 -0
  33. package/package.json +4 -4
@@ -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,5 @@
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ import { View } from './View';
4
+ declare const description: PluginDescription;
5
+ export { Root, View, description };
@@ -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,5 @@
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ import { View } from './View';
4
+ declare const description: PluginDescription;
5
+ export { Root, View, description };
@@ -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,4 @@
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ declare const description: PluginDescription;
4
+ export { Root, description };
@@ -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,5 @@
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ import { View } from './View';
4
+ declare const description: PluginDescription;
5
+ export { Root, View, description };
@@ -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,5 @@
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ import { View } from './View';
4
+ declare const description: PluginDescription;
5
+ export { Root, View, description };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DrawingID, PluginID } from '@buerli.io/core';
3
+ export declare const CSysDisplayWrapper: React.FC<{
4
+ drawingId: DrawingID;
5
+ pluginId: PluginID;
6
+ onlySelInstance?: boolean;
7
+ }>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DrawingID, ObjectID } from '@buerli.io/core';
3
+ export declare const HLConstrIcon: React.FC<{
4
+ drawingId: DrawingID;
5
+ objectId: ObjectID;
6
+ isInteractable?: boolean;
7
+ }>;
@@ -4,7 +4,7 @@ export declare const LimitedValue: React.FC<{
4
4
  drawingId: DrawingID;
5
5
  objId: ObjectID;
6
6
  memberName: string;
7
- limitsName: string;
7
+ limitsName?: string;
8
8
  onUpdate: (value: number | string) => Promise<void>;
9
9
  caption?: string;
10
10
  angle?: boolean;
@@ -2,12 +2,18 @@ import React from 'react';
2
2
  import { DrawingID, ObjectID } from '@buerli.io/core';
3
3
  import { LimitsParam } from '@buerli.io/classcad';
4
4
  import { MemberParam } from '../../../types';
5
+ export declare enum LimitsDiplayType {
6
+ MIN = 0,
7
+ MAX = 1,
8
+ MINMAX = 2
9
+ }
5
10
  export declare function useLimitsParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
6
11
  angle?: boolean;
7
12
  forceNoLimits?: boolean;
8
13
  }): MemberParam<LimitsParam>;
9
14
  export declare const Limits: React.FC<{
10
15
  param: MemberParam<LimitsParam>;
16
+ displayType?: LimitsDiplayType;
11
17
  onUpdate?: any;
12
18
  caption?: string;
13
19
  validator?: (numParam: LimitsParam, pName?: string) => string[];
@@ -0,0 +1,4 @@
1
+ import { DrawingID, ObjectID } from '@buerli.io/core';
2
+ export declare const getAncestors: (drawingId: DrawingID, objectId: ObjectID) => number[];
3
+ export declare const getActiveReference: (drawingId: DrawingID, matePath: ObjectID[], activeRefs: ObjectID[]) => number | undefined;
4
+ export declare const getProductRigidSet: (drawingId: DrawingID, productId: ObjectID, rigidSets: ObjectID[]) => number | undefined;
@@ -8,4 +8,5 @@ export declare const workPlaneFilter: (scope: any, data: any) => boolean;
8
8
  export declare const workAxisFilter: (scope: any, data: any) => boolean;
9
9
  export declare const csysFilter: (scope: any, data: any) => boolean;
10
10
  export declare const mateFilter: (scope: any, data: any) => boolean;
11
+ export declare const instanceFilter: (scope: any, data: any) => boolean;
11
12
  export declare const curveEntityFilter: (scope: any, data: any) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerli.io/react-cad",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "buerli CAD components",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "repository": {},
@@ -37,7 +37,7 @@
37
37
  "@babel/preset-env": "^7.15.0",
38
38
  "@babel/preset-react": "^7.14.5",
39
39
  "@babel/preset-typescript": "^7.10.4",
40
- "@buerli.io/icons": "^1.0.13",
40
+ "@buerli.io/icons": "^1.0.14",
41
41
  "@react-three/drei": "9.92.3",
42
42
  "@react-three/fiber": "8.15.14",
43
43
  "@rollup/plugin-babel": "^5.3.0",
@@ -90,8 +90,8 @@
90
90
  "react": ">=18.0"
91
91
  },
92
92
  "dependencies": {
93
- "@buerli.io/classcad": "0.12.0",
94
- "@buerli.io/react": "0.12.0",
93
+ "@buerli.io/classcad": "0.13.0",
94
+ "@buerli.io/react": "0.13.0",
95
95
  "@dnd-kit/core": "^6.0.8",
96
96
  "@dnd-kit/modifiers": "^6.0.1",
97
97
  "@dnd-kit/sortable": "^7.0.2",