@classcad/react-cad 3.0.0-beta.20261120103437 → 3.0.0-beta.20261120143517
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/CHANGELOG.md +4 -3
- package/README.md +1 -1
- package/build/index.cjs.js +310 -75
- package/build/index.js +313 -78
- package/build/plugins/Chamfer/index.d.ts +2 -1
- package/build/plugins/Fillet/index.d.ts +2 -1
- package/build/plugins/TangentChainPreview.d.ts +21 -0
- package/build/plugins/tangentPreviewStore.d.ts +21 -0
- package/package.json +5 -5
- package/tsconfig.build.json +1 -1
- package/vitest.config.mts +1 -1
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
*/
|
|
27
27
|
import { PluginDescription } from '@classcad/sdkjs';
|
|
28
28
|
import { Root } from './Root';
|
|
29
|
+
import { TangentChainPreview as View } from '../TangentChainPreview';
|
|
29
30
|
/**
|
|
30
31
|
* The plugin's description for the SDK's plugin system.
|
|
31
32
|
*
|
|
32
33
|
* @internal
|
|
33
34
|
*/
|
|
34
35
|
declare const description: PluginDescription;
|
|
35
|
-
export { Root, description };
|
|
36
|
+
export { Root, View, description };
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
*/
|
|
27
27
|
import { PluginDescription } from '@classcad/sdkjs';
|
|
28
28
|
import { Root } from './Root';
|
|
29
|
+
import { TangentChainPreview as View } from '../TangentChainPreview';
|
|
29
30
|
/**
|
|
30
31
|
* The plugin's description for the SDK's plugin system.
|
|
31
32
|
*
|
|
32
33
|
* @internal
|
|
33
34
|
*/
|
|
34
35
|
declare const description: PluginDescription;
|
|
35
|
-
export { Root, description };
|
|
36
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the tangent-continuous chains of the picked edges through v1.brep.getTangentContinuation
|
|
5
|
+
* and publishes the picked edges together with the edges that ClassCAD will add on recompute as the
|
|
6
|
+
* preview of the feature: everything the blend will touch, in one look. The picked edges themselves
|
|
7
|
+
* stay the only stored references.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const useTangentChainPreview: (drawingId: DrawingID, objectId: ObjectID, pickedIds: ObjectID[], enabled: boolean) => void;
|
|
12
|
+
/**
|
|
13
|
+
* 3D view of an edge based operation plugin: draws the picked edges and the edges of the tangent
|
|
14
|
+
* chains that ClassCAD adds to them on recompute, so the whole blend is visible before Apply.
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const TangentChainPreview: React.FC<{
|
|
19
|
+
drawingId: DrawingID;
|
|
20
|
+
pluginId: PluginID;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
2
|
+
/**
|
|
3
|
+
* The edges a blend will touch, as shown by the tangent-chain preview of an edge based operation
|
|
4
|
+
* (fillet, chamfer), keyed by drawing and feature: the edges the user picked, and the edges of the
|
|
5
|
+
* tangent-continuous chains ClassCAD extends them to on every recompute. ClassCAD stores only the
|
|
6
|
+
* picked edges; the client shows what the chain will be.
|
|
7
|
+
*/
|
|
8
|
+
export type TangentPreview = {
|
|
9
|
+
picked: ObjectID[];
|
|
10
|
+
chain: ObjectID[];
|
|
11
|
+
};
|
|
12
|
+
type TangentPreviewState = {
|
|
13
|
+
previews: Record<string, TangentPreview>;
|
|
14
|
+
setPreview: (key: string, preview: TangentPreview) => void;
|
|
15
|
+
clearPreview: (key: string) => void;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const useTangentPreviewStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TangentPreviewState>>;
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const previewKey: (drawingId: DrawingID, objectId: ObjectID) => string;
|
|
21
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classcad/react-cad",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.20261120143517",
|
|
4
4
|
"homepage": "https://sdkjs.classcad.ch",
|
|
5
5
|
"description": "The CAD user interface on the ClassCAD SDK: feature dialogs, model tree, sketcher",
|
|
6
6
|
"author": "AWV Informatik AG <info@awv-informatik.ch>",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@babel/runtime": "^7.29.10",
|
|
87
|
-
"@classcad/client": "3.0.0-beta.
|
|
88
|
-
"@classcad/react": "3.0.0-beta.
|
|
87
|
+
"@classcad/client": "3.0.0-beta.20261120143517",
|
|
88
|
+
"@classcad/react": "3.0.0-beta.20261120143517",
|
|
89
89
|
"@dnd-kit/core": "^6.3.1",
|
|
90
90
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
91
91
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"zustand": "^5.0.15"
|
|
105
105
|
},
|
|
106
106
|
"classcadEngine": {
|
|
107
|
-
"version": "21.2.1-alpha.
|
|
107
|
+
"version": "21.2.1-alpha.232",
|
|
108
108
|
"quality": "alpha",
|
|
109
|
-
"url": "https://awvstatic.com/classcad/download/alpha/21.2.1-alpha.
|
|
109
|
+
"url": "https://awvstatic.com/classcad/download/alpha/21.2.1-alpha.232"
|
|
110
110
|
}
|
|
111
111
|
}
|
package/tsconfig.build.json
CHANGED
package/vitest.config.mts
CHANGED