@classcad/react-cad 3.0.0-beta.20261119090857 → 3.0.0-beta.20261119100608
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 +5 -3
- package/README.md +2 -2
- package/build/components/UI/CAD/Drawing.d.ts +3 -3
- package/build/components/UI/CAD/Messages/Messages.d.ts +1 -1
- package/build/components/UI/CAD/ViewOptionsBar/ViewOptionButtons.d.ts +1 -1
- package/build/components/UI/CAD/ViewOptionsBar/useOptionCommands.d.ts +2 -2
- package/build/components/UI/CAD/common/ContextMenu.d.ts +2 -2
- package/build/components/UI/CAD/plugins/ProductManagement/index.d.ts +1 -1
- package/build/components/UI/CAD/plugins/SessionManagement/index.d.ts +1 -1
- package/build/components/UI/CAD/store/CADStore.d.ts +1 -1
- package/build/elements/index.d.ts +1 -1
- package/build/index.cjs.js +58 -58
- package/build/index.js +58 -58
- package/build/plugins/AppearanceEditor/index.d.ts +1 -1
- package/build/plugins/Boolean/index.d.ts +1 -1
- package/build/plugins/BoundingBoxInfo/index.d.ts +1 -1
- package/build/plugins/Box/index.d.ts +1 -1
- package/build/plugins/Chamfer/index.d.ts +1 -1
- package/build/plugins/CircularPattern/index.d.ts +1 -1
- package/build/plugins/CompositeCurve/index.d.ts +1 -1
- package/build/plugins/Cone/index.d.ts +1 -1
- package/build/plugins/Cylinder/index.d.ts +1 -1
- package/build/plugins/Dimensions/index.d.ts +1 -1
- package/build/plugins/EntityDeletion/index.d.ts +1 -1
- package/build/plugins/Expressions/index.d.ts +1 -1
- package/build/plugins/Extrusion/index.d.ts +1 -1
- package/build/plugins/Fillet/index.d.ts +1 -1
- package/build/plugins/HLConstraints/CircularPattern/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Cylindrical/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Fastened/index.d.ts +1 -1
- package/build/plugins/HLConstraints/FastenedOrigin/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Gear/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Group/index.d.ts +1 -1
- package/build/plugins/HLConstraints/LinearPattern/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Parallel/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Planar/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Revolute/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Slider/index.d.ts +1 -1
- package/build/plugins/HLConstraints/Spherical/index.d.ts +1 -1
- package/build/plugins/Import/index.d.ts +1 -1
- package/build/plugins/LinearPattern/index.d.ts +1 -1
- package/build/plugins/Measure/index.d.ts +1 -1
- package/build/plugins/Mirror/index.d.ts +1 -1
- package/build/plugins/Revolve/index.d.ts +1 -1
- package/build/plugins/Rotate/index.d.ts +1 -1
- package/build/plugins/Sketch/description.d.ts +1 -1
- package/build/plugins/Slice/index.d.ts +1 -1
- package/build/plugins/SliceBySheet/index.d.ts +1 -1
- package/build/plugins/Sphere/index.d.ts +1 -1
- package/build/plugins/TransformByCsys/index.d.ts +1 -1
- package/build/plugins/Translate/index.d.ts +1 -1
- package/build/plugins/Twist/index.d.ts +1 -1
- package/build/plugins/WorkAxis/index.d.ts +1 -1
- package/build/plugins/WorkCSys/index.d.ts +1 -1
- package/build/plugins/WorkCoordSystem/index.d.ts +1 -1
- package/build/plugins/WorkPlane/index.d.ts +1 -1
- package/build/plugins/WorkPoint/index.d.ts +1 -1
- package/build/session/sessionClient.d.ts +1 -1
- package/build/theme/stage.d.ts +1 -1
- package/doc/api/advanced/session.md +1 -1
- package/doc/api/graphics.md +1 -1
- package/doc/api/hooks.md +1 -1
- package/doc/api/icons.md +1 -1
- package/doc/api/index.md +2 -2
- package/doc/api/panels.md +8 -8
- package/doc/api/theme.md +2 -2
- package/doc/api/tool-plugins.md +1 -1
- package/doc/api/ui-elements.md +2 -2
- package/doc/api/work-geometry.md +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @buerli.io/react-cad
|
|
2
2
|
|
|
3
|
-
## 3.0.0-beta.
|
|
3
|
+
## 3.0.0-beta.20261119100608
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
|
|
20
20
|
### Patch Changes
|
|
21
21
|
|
|
22
|
+
- The packages name their repository, awv-informatik/sdkjs, and their sites, sdkjs.classcad.ch and
|
|
23
|
+
modeler.classcad.ch. The API reference calls the SDK by its name.
|
|
22
24
|
- On WebGPU a curved body's silhouette follows the view. It stayed where it was first drawn, a black line across the body. Seams, where a curved face meets itself, are now drawn like every other edge, so the edge that can be picked is the edge that is seen.
|
|
23
25
|
- The sidebar's lists follow what is picked on the stage: a feature, an instance, a body, a constraint or a sketch element picked in the view is scrolled into view in its list, however long the list. An instance picked inside a folded sub-assembly is found at the sub-assembly's row. Only the list moves, never the page; rows picked together show the topmost of them.
|
|
24
26
|
- Updated dependencies
|
|
25
|
-
- @classcad/client@3.0.0-beta.
|
|
26
|
-
- @classcad/react@3.0.0-beta.
|
|
27
|
+
- @classcad/client@3.0.0-beta.20261119100608
|
|
28
|
+
- @classcad/react@3.0.0-beta.20261119100608
|
|
27
29
|
|
|
28
30
|
## 2.0.0
|
|
29
31
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @classcad/react-cad
|
|
2
2
|
|
|
3
|
-
The UI of a CAD app on [
|
|
3
|
+
The UI of a CAD app on [the ClassCAD SDK](https://sdkjs.classcad.ch): the frame around a drawing, the model's tree,
|
|
4
4
|
its tools and the windows of its features, the sketcher, and what is drawn over the model.
|
|
5
|
-
[
|
|
5
|
+
[ClassCAD Modeler](https://modeler.classcad.ch) is built from it.
|
|
6
6
|
|
|
7
7
|
Built against the ClassCAD engine 21.2.1-alpha.185 (alpha): the bundle at https://awvstatic.com/classcad/download/alpha/21.2.1-alpha.185. A server host installs that version, from the [Downloads](https://classcad.ch/account#downloads) of a classcad.ch account (channel Alpha); in WASM mode it is loaded from there by itself.
|
|
8
8
|
|
|
@@ -39,13 +39,13 @@ export type DrawingProps = {
|
|
|
39
39
|
* ({@link AppStyle}) itself. The sidebar's edge is dragged to set its width, and a button in the bar puts it away;
|
|
40
40
|
* both are kept for the next visit (in `localStorage`).
|
|
41
41
|
*
|
|
42
|
-
* Drawing contains no canvas: the app's canvas is its child, and fills the stage. The plugins need
|
|
42
|
+
* Drawing contains no canvas: the app's canvas is its child, and fills the stage. The plugins need the SDK's
|
|
43
43
|
* `PluginManager` mounted once in the app, and `BuerliPluginsGeometry` in the canvas for what they draw (both from
|
|
44
44
|
* `@classcad/react`).
|
|
45
45
|
*
|
|
46
|
-
* Where the app's `init` left
|
|
46
|
+
* Where the app's `init` left the SDK's stock form controls in, Drawing hands the SDK react-cad's {@link elements}
|
|
47
47
|
* instead; an app that brought controls of its own keeps them. It also sets the colour of the model's edges and
|
|
48
|
-
* points in
|
|
48
|
+
* points in the SDK's geometry config to the theme's ink, whenever the theme changes.
|
|
49
49
|
*
|
|
50
50
|
* Its props: {@link DrawingProps}.
|
|
51
51
|
*
|
|
@@ -13,7 +13,7 @@ export type MessagesProps = {
|
|
|
13
13
|
drawingId: DrawingID;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* The app's messages: what
|
|
16
|
+
* The app's messages: what the SDK's `showMessage` (`@classcad/sdkjs`) says, as toasts and in a log.
|
|
17
17
|
*
|
|
18
18
|
* A new message comes up as a toast and leaves again after a few seconds; an error stays until the log has been
|
|
19
19
|
* opened. The button under the toasts opens the log of all of them, and a dot on it says that there are new ones;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Switches for what of the model is shown: its faces, its wires, its edges, its points.
|
|
4
4
|
*
|
|
5
|
-
* Each is a switch over
|
|
5
|
+
* Each is a switch over the SDK's geometry config, the one {@link setViewOptions} sets; the wireframe is only there
|
|
6
6
|
* while the faces are shown. They take no props: they are the same for every drawing. {@link Drawing} docks them on
|
|
7
7
|
* the stage's right-hand side.
|
|
8
8
|
*
|
|
@@ -15,7 +15,7 @@ export type ViewOptions = {
|
|
|
15
15
|
vertices: boolean;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* What of the model is drawn now, as
|
|
18
|
+
* What of the model is drawn now, as the SDK's geometry config says (which the stage draws from).
|
|
19
19
|
*
|
|
20
20
|
* The example of {@link setViewOptions} switches one of them with it.
|
|
21
21
|
*
|
|
@@ -26,7 +26,7 @@ export declare const getViewOptions: () => ViewOptions;
|
|
|
26
26
|
/**
|
|
27
27
|
* Shows or hides what of the model is drawn, for every drawing.
|
|
28
28
|
*
|
|
29
|
-
* It merges the options into
|
|
29
|
+
* It merges the options into the SDK's geometry config (`init`'s `config.geometry`); what it leaves out stays as it
|
|
30
30
|
* is. The {@link ViewOptionButtons} show what is set here, whoever sets it: the user, or the app (Buerligons switches
|
|
31
31
|
* the edges off in its realistic look).
|
|
32
32
|
*
|
|
@@ -3,12 +3,12 @@ import type { DropDownProps } from 'antd';
|
|
|
3
3
|
import type { MenuDividerType, MenuItemGroupType, MenuItemType, SubMenuType } from 'antd/es/menu/interface';
|
|
4
4
|
import { InteractionInfo } from '@classcad/sdkjs';
|
|
5
5
|
/**
|
|
6
|
-
* What a {@link ContextMenu} is opened on:
|
|
6
|
+
* What a {@link ContextMenu} is opened on: the SDK's interaction info of the thing.
|
|
7
7
|
*
|
|
8
8
|
* @inline
|
|
9
9
|
*/
|
|
10
10
|
type MenuInfoBase = {
|
|
11
|
-
/** The thing the menu is on (its object, its product, its graphic), as
|
|
11
|
+
/** The thing the menu is on (its object, its product, its graphic), as the SDK's `createInfo` makes it. */
|
|
12
12
|
interactionInfo: InteractionInfo;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
@@ -25,7 +25,7 @@ import { PluginDescription } from '@classcad/sdkjs';
|
|
|
25
25
|
import { Root } from './Root';
|
|
26
26
|
import { View } from './View';
|
|
27
27
|
/**
|
|
28
|
-
* The plugin's description for
|
|
28
|
+
* The plugin's description for the SDK's plugin system: a global plugin, not kept when its window closes; its state
|
|
29
29
|
* holds the product that is being placed.
|
|
30
30
|
*
|
|
31
31
|
* @internal
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
import { PluginDescription } from '@classcad/sdkjs';
|
|
28
28
|
import { Root } from './Root';
|
|
29
29
|
/**
|
|
30
|
-
* The plugin's description for
|
|
30
|
+
* The plugin's description for the SDK's plugin system: a global plugin with no state of its own (the invites live on
|
|
31
31
|
* the session's client).
|
|
32
32
|
*
|
|
33
33
|
* @internal
|
|
@@ -27,7 +27,7 @@ export type CADStateT = {
|
|
|
27
27
|
api: ReturnType<typeof appApi>;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* react-cad's own store (zustand, vanilla), beside
|
|
30
|
+
* react-cad's own store (zustand, vanilla), beside the SDK's: what its components share that is not the drawing's.
|
|
31
31
|
*
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
@@ -82,7 +82,7 @@ declare function Menu({ ...props }: MenuProps): React.JSX.Element;
|
|
|
82
82
|
declare function MenuItem({ ...props }: MenuItemProps): React.JSX.Element;
|
|
83
83
|
declare function Dropdown({ ...props }: DropDownProps): React.JSX.Element;
|
|
84
84
|
/**
|
|
85
|
-
* The form controls the feature dialogs are made of, in the app's look: react-cad's set of
|
|
85
|
+
* The form controls the feature dialogs are made of, in the app's look: react-cad's set of the SDK's `elements`.
|
|
86
86
|
*
|
|
87
87
|
* They take the place of the ones `@classcad/react` ships, prop for prop: plugins take their controls from `init`'s
|
|
88
88
|
* `elements` option, so an app passes these there. {@link Drawing} does so by itself where the app left the stock
|
package/build/index.cjs.js
CHANGED
|
@@ -2627,7 +2627,7 @@ function Dropdown(_ref16) {
|
|
|
2627
2627
|
}
|
|
2628
2628
|
|
|
2629
2629
|
/**
|
|
2630
|
-
* The form controls the feature dialogs are made of, in the app's look: react-cad's set of
|
|
2630
|
+
* The form controls the feature dialogs are made of, in the app's look: react-cad's set of the SDK's `elements`.
|
|
2631
2631
|
*
|
|
2632
2632
|
* They take the place of the ones `@classcad/react` ships, prop for prop: plugins take their controls from `init`'s
|
|
2633
2633
|
* `elements` option, so an app passes these there. {@link Drawing} does so by itself where the app left the stock
|
|
@@ -3969,7 +3969,7 @@ const createAppState = (set, get) => ({
|
|
|
3969
3969
|
});
|
|
3970
3970
|
|
|
3971
3971
|
/**
|
|
3972
|
-
* react-cad's own store (zustand, vanilla), beside
|
|
3972
|
+
* react-cad's own store (zustand, vanilla), beside the SDK's: what its components share that is not the drawing's.
|
|
3973
3973
|
*
|
|
3974
3974
|
* @internal
|
|
3975
3975
|
*/
|
|
@@ -4503,7 +4503,7 @@ const useStage = () => stageColors(useThemeStore(s => s.mode));
|
|
|
4503
4503
|
* import { init, WASMClient } from '@classcad/client'
|
|
4504
4504
|
* import { elements, getStage } from '@classcad/react-cad'
|
|
4505
4505
|
*
|
|
4506
|
-
* //
|
|
4506
|
+
* // the SDK's highlight colours from the stage's, as Buerligons sets them
|
|
4507
4507
|
* const stage = getStage()
|
|
4508
4508
|
* init((drawingId) => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
4509
4509
|
* elements,
|
|
@@ -5530,7 +5530,7 @@ const Root$J = ({
|
|
|
5530
5530
|
*/
|
|
5531
5531
|
|
|
5532
5532
|
/**
|
|
5533
|
-
* The plugin's description for
|
|
5533
|
+
* The plugin's description for the SDK's plugin system. Its state holds whether the dimensions are shown.
|
|
5534
5534
|
*
|
|
5535
5535
|
* @internal
|
|
5536
5536
|
*/
|
|
@@ -9021,7 +9021,7 @@ const Root$I = ({
|
|
|
9021
9021
|
*/
|
|
9022
9022
|
|
|
9023
9023
|
/**
|
|
9024
|
-
* The plugin's description for
|
|
9024
|
+
* The plugin's description for the SDK's plugin system. Its state holds the type of the operation.
|
|
9025
9025
|
*
|
|
9026
9026
|
* @internal
|
|
9027
9027
|
*/
|
|
@@ -10002,7 +10002,7 @@ const View$m = ({
|
|
|
10002
10002
|
*/
|
|
10003
10003
|
|
|
10004
10004
|
/**
|
|
10005
|
-
* The plugin's description for
|
|
10005
|
+
* The plugin's description for the SDK's plugin system. Its state holds the profile's coordinate system.
|
|
10006
10006
|
*
|
|
10007
10007
|
* @internal
|
|
10008
10008
|
*/
|
|
@@ -10302,7 +10302,7 @@ const View$l = ({
|
|
|
10302
10302
|
*/
|
|
10303
10303
|
|
|
10304
10304
|
/**
|
|
10305
|
-
* The plugin's description for
|
|
10305
|
+
* The plugin's description for the SDK's plugin system. Its state holds the profile's coordinate system.
|
|
10306
10306
|
*
|
|
10307
10307
|
* @internal
|
|
10308
10308
|
*/
|
|
@@ -10550,7 +10550,7 @@ const Root$F = ({
|
|
|
10550
10550
|
*/
|
|
10551
10551
|
|
|
10552
10552
|
/**
|
|
10553
|
-
* The plugin's description for
|
|
10553
|
+
* The plugin's description for the SDK's plugin system.
|
|
10554
10554
|
*
|
|
10555
10555
|
* @internal
|
|
10556
10556
|
*/
|
|
@@ -10756,7 +10756,7 @@ const Root$E = ({
|
|
|
10756
10756
|
*/
|
|
10757
10757
|
|
|
10758
10758
|
/**
|
|
10759
|
-
* The plugin's description for
|
|
10759
|
+
* The plugin's description for the SDK's plugin system.
|
|
10760
10760
|
*
|
|
10761
10761
|
* @internal
|
|
10762
10762
|
*/
|
|
@@ -10875,7 +10875,7 @@ const Root$D = ({
|
|
|
10875
10875
|
*/
|
|
10876
10876
|
|
|
10877
10877
|
/**
|
|
10878
|
-
* The plugin's description for
|
|
10878
|
+
* The plugin's description for the SDK's plugin system.
|
|
10879
10879
|
*
|
|
10880
10880
|
* @internal
|
|
10881
10881
|
*/
|
|
@@ -11008,7 +11008,7 @@ const Root$C = ({
|
|
|
11008
11008
|
*/
|
|
11009
11009
|
|
|
11010
11010
|
/**
|
|
11011
|
-
* The plugin's description for
|
|
11011
|
+
* The plugin's description for the SDK's plugin system.
|
|
11012
11012
|
*
|
|
11013
11013
|
* @internal
|
|
11014
11014
|
*/
|
|
@@ -11283,7 +11283,7 @@ const View$k = ({
|
|
|
11283
11283
|
*/
|
|
11284
11284
|
|
|
11285
11285
|
/**
|
|
11286
|
-
* The plugin's description for
|
|
11286
|
+
* The plugin's description for the SDK's plugin system.
|
|
11287
11287
|
*
|
|
11288
11288
|
* @internal
|
|
11289
11289
|
*/
|
|
@@ -11432,7 +11432,7 @@ const Root$A = ({
|
|
|
11432
11432
|
*/
|
|
11433
11433
|
|
|
11434
11434
|
/**
|
|
11435
|
-
* The plugin's description for
|
|
11435
|
+
* The plugin's description for the SDK's plugin system.
|
|
11436
11436
|
*
|
|
11437
11437
|
* @internal
|
|
11438
11438
|
*/
|
|
@@ -11541,7 +11541,7 @@ const Root$z = ({
|
|
|
11541
11541
|
*/
|
|
11542
11542
|
|
|
11543
11543
|
/**
|
|
11544
|
-
* The plugin's description for
|
|
11544
|
+
* The plugin's description for the SDK's plugin system.
|
|
11545
11545
|
*
|
|
11546
11546
|
* @internal
|
|
11547
11547
|
*/
|
|
@@ -11702,7 +11702,7 @@ const Root$y = ({
|
|
|
11702
11702
|
*/
|
|
11703
11703
|
|
|
11704
11704
|
/**
|
|
11705
|
-
* The plugin's description for
|
|
11705
|
+
* The plugin's description for the SDK's plugin system.
|
|
11706
11706
|
*
|
|
11707
11707
|
* @internal
|
|
11708
11708
|
*/
|
|
@@ -11831,7 +11831,7 @@ const Root$x = ({
|
|
|
11831
11831
|
*/
|
|
11832
11832
|
|
|
11833
11833
|
/**
|
|
11834
|
-
* The plugin's description for
|
|
11834
|
+
* The plugin's description for the SDK's plugin system.
|
|
11835
11835
|
*
|
|
11836
11836
|
* @internal
|
|
11837
11837
|
*/
|
|
@@ -11963,7 +11963,7 @@ const Root$w = ({
|
|
|
11963
11963
|
*/
|
|
11964
11964
|
|
|
11965
11965
|
/**
|
|
11966
|
-
* The plugin's description for
|
|
11966
|
+
* The plugin's description for the SDK's plugin system.
|
|
11967
11967
|
*
|
|
11968
11968
|
* @internal
|
|
11969
11969
|
*/
|
|
@@ -12087,7 +12087,7 @@ const Root$v = ({
|
|
|
12087
12087
|
*/
|
|
12088
12088
|
|
|
12089
12089
|
/**
|
|
12090
|
-
* The plugin's description for
|
|
12090
|
+
* The plugin's description for the SDK's plugin system.
|
|
12091
12091
|
*
|
|
12092
12092
|
* @internal
|
|
12093
12093
|
*/
|
|
@@ -12206,7 +12206,7 @@ const Root$u = ({
|
|
|
12206
12206
|
*/
|
|
12207
12207
|
|
|
12208
12208
|
/**
|
|
12209
|
-
* The plugin's description for
|
|
12209
|
+
* The plugin's description for the SDK's plugin system.
|
|
12210
12210
|
*
|
|
12211
12211
|
* @internal
|
|
12212
12212
|
*/
|
|
@@ -12329,7 +12329,7 @@ const Root$t = ({
|
|
|
12329
12329
|
*/
|
|
12330
12330
|
|
|
12331
12331
|
/**
|
|
12332
|
-
* The plugin's description for
|
|
12332
|
+
* The plugin's description for the SDK's plugin system.
|
|
12333
12333
|
*
|
|
12334
12334
|
* @internal
|
|
12335
12335
|
*/
|
|
@@ -12529,7 +12529,7 @@ const Root$s = ({
|
|
|
12529
12529
|
*/
|
|
12530
12530
|
|
|
12531
12531
|
/**
|
|
12532
|
-
* The plugin's description for
|
|
12532
|
+
* The plugin's description for the SDK's plugin system.
|
|
12533
12533
|
*
|
|
12534
12534
|
* @internal
|
|
12535
12535
|
*/
|
|
@@ -12682,7 +12682,7 @@ const Root$r = ({
|
|
|
12682
12682
|
*/
|
|
12683
12683
|
|
|
12684
12684
|
/**
|
|
12685
|
-
* The plugin's description for
|
|
12685
|
+
* The plugin's description for the SDK's plugin system.
|
|
12686
12686
|
*
|
|
12687
12687
|
* @internal
|
|
12688
12688
|
*/
|
|
@@ -12793,7 +12793,7 @@ const Root$q = ({
|
|
|
12793
12793
|
*/
|
|
12794
12794
|
|
|
12795
12795
|
/**
|
|
12796
|
-
* The plugin's description for
|
|
12796
|
+
* The plugin's description for the SDK's plugin system.
|
|
12797
12797
|
*
|
|
12798
12798
|
* @internal
|
|
12799
12799
|
*/
|
|
@@ -13329,7 +13329,7 @@ const View$j = ({
|
|
|
13329
13329
|
* @module
|
|
13330
13330
|
*/
|
|
13331
13331
|
/**
|
|
13332
|
-
* The plugin's description for
|
|
13332
|
+
* The plugin's description for the SDK's plugin system. Its state holds what was measured and the number of digits.
|
|
13333
13333
|
*
|
|
13334
13334
|
* @internal
|
|
13335
13335
|
*/
|
|
@@ -13409,7 +13409,7 @@ const tolerance$8 = 1e-6;
|
|
|
13409
13409
|
const deltaTolerance = 4;
|
|
13410
13410
|
|
|
13411
13411
|
/**
|
|
13412
|
-
* The plugin's description for
|
|
13412
|
+
* The plugin's description for the SDK's plugin system. Its state holds the sketcher's tools, hover and display options.
|
|
13413
13413
|
*
|
|
13414
13414
|
* @internal
|
|
13415
13415
|
*/
|
|
@@ -23298,7 +23298,7 @@ function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
23298
23298
|
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23299
23299
|
|
|
23300
23300
|
/**
|
|
23301
|
-
* What a {@link ContextMenu} is opened on:
|
|
23301
|
+
* What a {@link ContextMenu} is opened on: the SDK's interaction info of the thing.
|
|
23302
23302
|
*
|
|
23303
23303
|
* @inline
|
|
23304
23304
|
*/
|
|
@@ -25120,7 +25120,7 @@ const View$h = ({
|
|
|
25120
25120
|
*/
|
|
25121
25121
|
|
|
25122
25122
|
/**
|
|
25123
|
-
* The plugin's description for
|
|
25123
|
+
* The plugin's description for the SDK's plugin system.
|
|
25124
25124
|
*
|
|
25125
25125
|
* @internal
|
|
25126
25126
|
*/
|
|
@@ -25611,7 +25611,7 @@ const View$g = ({
|
|
|
25611
25611
|
*/
|
|
25612
25612
|
|
|
25613
25613
|
/**
|
|
25614
|
-
* The plugin's description for
|
|
25614
|
+
* The plugin's description for the SDK's plugin system.
|
|
25615
25615
|
*
|
|
25616
25616
|
* @internal
|
|
25617
25617
|
*/
|
|
@@ -25920,7 +25920,7 @@ const View$f = ({
|
|
|
25920
25920
|
*/
|
|
25921
25921
|
|
|
25922
25922
|
/**
|
|
25923
|
-
* The plugin's description for
|
|
25923
|
+
* The plugin's description for the SDK's plugin system.
|
|
25924
25924
|
*
|
|
25925
25925
|
* @internal
|
|
25926
25926
|
*/
|
|
@@ -26596,7 +26596,7 @@ const View$e = ({
|
|
|
26596
26596
|
*/
|
|
26597
26597
|
|
|
26598
26598
|
/**
|
|
26599
|
-
* The plugin's description for
|
|
26599
|
+
* The plugin's description for the SDK's plugin system. Its state holds the preview of the coordinate system.
|
|
26600
26600
|
*
|
|
26601
26601
|
* @internal
|
|
26602
26602
|
*/
|
|
@@ -27092,7 +27092,7 @@ const View$d = ({
|
|
|
27092
27092
|
*/
|
|
27093
27093
|
|
|
27094
27094
|
/**
|
|
27095
|
-
* The plugin's description for
|
|
27095
|
+
* The plugin's description for the SDK's plugin system. Its state holds the preview of the coordinate system.
|
|
27096
27096
|
*
|
|
27097
27097
|
* @internal
|
|
27098
27098
|
*/
|
|
@@ -27498,7 +27498,7 @@ function Root$i({
|
|
|
27498
27498
|
*/
|
|
27499
27499
|
|
|
27500
27500
|
/**
|
|
27501
|
-
* The plugin's description for
|
|
27501
|
+
* The plugin's description for the SDK's plugin system. Its state holds the display options.
|
|
27502
27502
|
*
|
|
27503
27503
|
* @internal
|
|
27504
27504
|
*/
|
|
@@ -32652,7 +32652,7 @@ const MessageList = ({
|
|
|
32652
32652
|
*/
|
|
32653
32653
|
|
|
32654
32654
|
/**
|
|
32655
|
-
* The app's messages: what
|
|
32655
|
+
* The app's messages: what the SDK's `showMessage` (`@classcad/sdkjs`) says, as toasts and in a log.
|
|
32656
32656
|
*
|
|
32657
32657
|
* A new message comes up as a toast and leaves again after a few seconds; an error stays until the log has been
|
|
32658
32658
|
* opened. The button under the toasts opens the log of all of them, and a dot on it says that there are new ones;
|
|
@@ -35161,7 +35161,7 @@ const FileUtils = {
|
|
|
35161
35161
|
* The session this page shares, for react-cad's components: which client it is, this page's role in it, and what its
|
|
35162
35162
|
* host offers.
|
|
35163
35163
|
*
|
|
35164
|
-
* A thin React layer over the sharing API of `@classcad/client` (`session/share.ts`); any
|
|
35164
|
+
* A thin React layer over the sharing API of `@classcad/client` (`session/share.ts`); any sdkjs app can build its
|
|
35165
35165
|
* own UI on that API without react-cad. Which client is "the session client" is decided by the app, with
|
|
35166
35166
|
* {@link setSessionClient}: a `WSClient` (the session is a ClassCAD server's, or a ClassCAD MCP's) or a `WASMClient`
|
|
35167
35167
|
* (the page hosts it itself). Both have the same surface (role, peers, invites, `createInvite`/`revokeInvite`,
|
|
@@ -36574,7 +36574,7 @@ const fromConfig = geometry => {
|
|
|
36574
36574
|
};
|
|
36575
36575
|
|
|
36576
36576
|
/**
|
|
36577
|
-
* What of the model is drawn now, as
|
|
36577
|
+
* What of the model is drawn now, as the SDK's geometry config says (which the stage draws from).
|
|
36578
36578
|
*
|
|
36579
36579
|
* The example of {@link setViewOptions} switches one of them with it.
|
|
36580
36580
|
*
|
|
@@ -36586,7 +36586,7 @@ const getViewOptions = () => fromConfig(sdkjs.api.getState().options.config.geom
|
|
|
36586
36586
|
/**
|
|
36587
36587
|
* Shows or hides what of the model is drawn, for every drawing.
|
|
36588
36588
|
*
|
|
36589
|
-
* It merges the options into
|
|
36589
|
+
* It merges the options into the SDK's geometry config (`init`'s `config.geometry`); what it leaves out stays as it
|
|
36590
36590
|
* is. The {@link ViewOptionButtons} show what is set here, whoever sets it: the user, or the app (Buerligons switches
|
|
36591
36591
|
* the edges off in its realistic look).
|
|
36592
36592
|
*
|
|
@@ -36723,7 +36723,7 @@ const ViewOptionButton = ({
|
|
|
36723
36723
|
/**
|
|
36724
36724
|
* Switches for what of the model is shown: its faces, its wires, its edges, its points.
|
|
36725
36725
|
*
|
|
36726
|
-
* Each is a switch over
|
|
36726
|
+
* Each is a switch over the SDK's geometry config, the one {@link setViewOptions} sets; the wireframe is only there
|
|
36727
36727
|
* while the faces are shown. They take no props: they are the same for every drawing. {@link Drawing} docks them on
|
|
36728
36728
|
* the stage's right-hand side.
|
|
36729
36729
|
*
|
|
@@ -37158,13 +37158,13 @@ const Bar = ({
|
|
|
37158
37158
|
* ({@link AppStyle}) itself. The sidebar's edge is dragged to set its width, and a button in the bar puts it away;
|
|
37159
37159
|
* both are kept for the next visit (in `localStorage`).
|
|
37160
37160
|
*
|
|
37161
|
-
* Drawing contains no canvas: the app's canvas is its child, and fills the stage. The plugins need
|
|
37161
|
+
* Drawing contains no canvas: the app's canvas is its child, and fills the stage. The plugins need the SDK's
|
|
37162
37162
|
* `PluginManager` mounted once in the app, and `BuerliPluginsGeometry` in the canvas for what they draw (both from
|
|
37163
37163
|
* `@classcad/react`).
|
|
37164
37164
|
*
|
|
37165
|
-
* Where the app's `init` left
|
|
37165
|
+
* Where the app's `init` left the SDK's stock form controls in, Drawing hands the SDK react-cad's {@link elements}
|
|
37166
37166
|
* instead; an app that brought controls of its own keeps them. It also sets the colour of the model's edges and
|
|
37167
|
-
* points in
|
|
37167
|
+
* points in the SDK's geometry config to the theme's ink, whenever the theme changes.
|
|
37168
37168
|
*
|
|
37169
37169
|
* Its props: {@link DrawingProps}.
|
|
37170
37170
|
*
|
|
@@ -37709,7 +37709,7 @@ const Root$h = ({
|
|
|
37709
37709
|
*/
|
|
37710
37710
|
|
|
37711
37711
|
/**
|
|
37712
|
-
* The plugin's description for
|
|
37712
|
+
* The plugin's description for the SDK's plugin system.
|
|
37713
37713
|
*
|
|
37714
37714
|
* @internal
|
|
37715
37715
|
*/
|
|
@@ -38114,7 +38114,7 @@ function Root$g({
|
|
|
38114
38114
|
* @module
|
|
38115
38115
|
*/
|
|
38116
38116
|
/**
|
|
38117
|
-
* The plugin's description for
|
|
38117
|
+
* The plugin's description for the SDK's plugin system. Its state holds the ids of the solids that are edited.
|
|
38118
38118
|
*
|
|
38119
38119
|
* @internal
|
|
38120
38120
|
*/
|
|
@@ -38773,7 +38773,7 @@ const View$b = ({
|
|
|
38773
38773
|
*/
|
|
38774
38774
|
|
|
38775
38775
|
/**
|
|
38776
|
-
* The plugin's description for
|
|
38776
|
+
* The plugin's description for the SDK's plugin system.
|
|
38777
38777
|
*
|
|
38778
38778
|
* @internal
|
|
38779
38779
|
*/
|
|
@@ -38975,7 +38975,7 @@ const View$a = ({
|
|
|
38975
38975
|
*/
|
|
38976
38976
|
|
|
38977
38977
|
/**
|
|
38978
|
-
* The plugin's description for
|
|
38978
|
+
* The plugin's description for the SDK's plugin system.
|
|
38979
38979
|
*
|
|
38980
38980
|
* @internal
|
|
38981
38981
|
*/
|
|
@@ -39615,7 +39615,7 @@ const View$9 = ({
|
|
|
39615
39615
|
*/
|
|
39616
39616
|
|
|
39617
39617
|
/**
|
|
39618
|
-
* The plugin's description for
|
|
39618
|
+
* The plugin's description for the SDK's plugin system.
|
|
39619
39619
|
*
|
|
39620
39620
|
* @internal
|
|
39621
39621
|
*/
|
|
@@ -39804,7 +39804,7 @@ const View$8 = ({
|
|
|
39804
39804
|
*/
|
|
39805
39805
|
|
|
39806
39806
|
/**
|
|
39807
|
-
* The plugin's description for
|
|
39807
|
+
* The plugin's description for the SDK's plugin system.
|
|
39808
39808
|
*
|
|
39809
39809
|
* @internal
|
|
39810
39810
|
*/
|
|
@@ -40011,7 +40011,7 @@ const View$7 = ({
|
|
|
40011
40011
|
*/
|
|
40012
40012
|
|
|
40013
40013
|
/**
|
|
40014
|
-
* The plugin's description for
|
|
40014
|
+
* The plugin's description for the SDK's plugin system.
|
|
40015
40015
|
*
|
|
40016
40016
|
* @internal
|
|
40017
40017
|
*/
|
|
@@ -40254,7 +40254,7 @@ const View$6 = ({
|
|
|
40254
40254
|
*/
|
|
40255
40255
|
|
|
40256
40256
|
/**
|
|
40257
|
-
* The plugin's description for
|
|
40257
|
+
* The plugin's description for the SDK's plugin system.
|
|
40258
40258
|
*
|
|
40259
40259
|
* @internal
|
|
40260
40260
|
*/
|
|
@@ -40515,7 +40515,7 @@ const View$5 = ({
|
|
|
40515
40515
|
*/
|
|
40516
40516
|
|
|
40517
40517
|
/**
|
|
40518
|
-
* The plugin's description for
|
|
40518
|
+
* The plugin's description for the SDK's plugin system.
|
|
40519
40519
|
*
|
|
40520
40520
|
* @internal
|
|
40521
40521
|
*/
|
|
@@ -40668,7 +40668,7 @@ const View$4 = ({
|
|
|
40668
40668
|
*/
|
|
40669
40669
|
|
|
40670
40670
|
/**
|
|
40671
|
-
* The plugin's description for
|
|
40671
|
+
* The plugin's description for the SDK's plugin system.
|
|
40672
40672
|
*
|
|
40673
40673
|
* @internal
|
|
40674
40674
|
*/
|
|
@@ -40770,7 +40770,7 @@ const Root$7 = ({
|
|
|
40770
40770
|
*/
|
|
40771
40771
|
|
|
40772
40772
|
/**
|
|
40773
|
-
* The plugin's description for
|
|
40773
|
+
* The plugin's description for the SDK's plugin system.
|
|
40774
40774
|
*
|
|
40775
40775
|
* @internal
|
|
40776
40776
|
*/
|
|
@@ -40967,7 +40967,7 @@ const View$3 = ({
|
|
|
40967
40967
|
*/
|
|
40968
40968
|
|
|
40969
40969
|
/**
|
|
40970
|
-
* The plugin's description for
|
|
40970
|
+
* The plugin's description for the SDK's plugin system. Its state holds the picked instance.
|
|
40971
40971
|
*
|
|
40972
40972
|
* @internal
|
|
40973
40973
|
*/
|
|
@@ -41139,7 +41139,7 @@ const View$2 = ({
|
|
|
41139
41139
|
*/
|
|
41140
41140
|
|
|
41141
41141
|
/**
|
|
41142
|
-
* The plugin's description for
|
|
41142
|
+
* The plugin's description for the SDK's plugin system. Its state holds the picked instance.
|
|
41143
41143
|
*
|
|
41144
41144
|
* @internal
|
|
41145
41145
|
*/
|
|
@@ -41410,7 +41410,7 @@ const View$1 = ({
|
|
|
41410
41410
|
*/
|
|
41411
41411
|
|
|
41412
41412
|
/**
|
|
41413
|
-
* The plugin's description for
|
|
41413
|
+
* The plugin's description for the SDK's plugin system.
|
|
41414
41414
|
*
|
|
41415
41415
|
* @internal
|
|
41416
41416
|
*/
|
|
@@ -41588,7 +41588,7 @@ const Root$3 = ({
|
|
|
41588
41588
|
*/
|
|
41589
41589
|
|
|
41590
41590
|
/**
|
|
41591
|
-
* The plugin's description for
|
|
41591
|
+
* The plugin's description for the SDK's plugin system.
|
|
41592
41592
|
*
|
|
41593
41593
|
* @internal
|
|
41594
41594
|
*/
|
|
@@ -41687,7 +41687,7 @@ const Root$2 = ({
|
|
|
41687
41687
|
*/
|
|
41688
41688
|
|
|
41689
41689
|
/**
|
|
41690
|
-
* The plugin's description for
|
|
41690
|
+
* The plugin's description for the SDK's plugin system.
|
|
41691
41691
|
*
|
|
41692
41692
|
* @internal
|
|
41693
41693
|
*/
|
|
@@ -42383,7 +42383,7 @@ const View = ({
|
|
|
42383
42383
|
*/
|
|
42384
42384
|
|
|
42385
42385
|
/**
|
|
42386
|
-
* The plugin's description for
|
|
42386
|
+
* The plugin's description for the SDK's plugin system: a global plugin, not kept when its window closes; its state
|
|
42387
42387
|
* holds the product that is being placed.
|
|
42388
42388
|
*
|
|
42389
42389
|
* @internal
|
|
@@ -42711,7 +42711,7 @@ const Root = ({
|
|
|
42711
42711
|
*/
|
|
42712
42712
|
|
|
42713
42713
|
/**
|
|
42714
|
-
* The plugin's description for
|
|
42714
|
+
* The plugin's description for the SDK's plugin system: a global plugin with no state of its own (the invites live on
|
|
42715
42715
|
* the session's client).
|
|
42716
42716
|
*
|
|
42717
42717
|
* @internal
|