@buerli.io/react-cad 0.10.0 → 0.11.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 (27) hide show
  1. package/build/components/UI/CAD/PluginsWindows.d.ts +11 -0
  2. package/build/components/UI/CAD/common/Img.d.ts +1 -0
  3. package/build/components/UI/editors/ColorEditor/ColorEditor.d.ts +9 -0
  4. package/build/components/UI/editors/ColorEditor/index.d.ts +2 -0
  5. package/build/components/UI/editors/ColorEditor/useColorParam.d.ts +9 -0
  6. package/build/components/UI/editors/ToleranceEditor/ToleranceEditor.d.ts +7 -0
  7. package/build/components/UI/editors/ToleranceEditor/index.d.ts +2 -0
  8. package/build/components/UI/editors/ToleranceEditor/useToleranceParam.d.ts +3 -0
  9. package/build/index.cjs.js +1991 -1490
  10. package/build/index.d.ts +3 -1
  11. package/build/index.js +1980 -1481
  12. package/build/plugins/AppearanceEditor/Root.d.ts +7 -0
  13. package/build/plugins/AppearanceEditor/index.d.ts +7 -0
  14. package/build/plugins/Dimensions/DimContext.d.ts +5 -3
  15. package/build/plugins/Dimensions/Root.d.ts +1 -1
  16. package/build/plugins/Dimensions/View.d.ts +3 -3
  17. package/build/plugins/Dimensions/graphics/DimensionSet.d.ts +8 -0
  18. package/build/plugins/Dimensions/index.d.ts +5 -4
  19. package/build/plugins/Dimensions/utils.d.ts +2 -0
  20. package/build/plugins/Sketch/types.d.ts +2 -0
  21. package/build/plugins/Sketch/utils/Interaction.d.ts +4 -3
  22. package/build/plugins/Sketch/utils/getConstrEntities.d.ts +2 -0
  23. package/build/plugins/Twist/Root.d.ts +6 -0
  24. package/build/plugins/Twist/index.d.ts +4 -0
  25. package/build/plugins/components/PluginForm.d.ts +2 -1
  26. package/package.json +6 -6
  27. package/build/components/UI/CAD/Solids/ColorPicker.d.ts +0 -7
@@ -1,9 +1,20 @@
1
1
  import React from 'react';
2
2
  import 'antd/dist/antd.css';
3
3
  import { DrawingID } from '@buerli.io/core';
4
+ declare type ModalProps = {
5
+ width?: string | number;
6
+ minPosition?: {
7
+ x?: number;
8
+ y?: number;
9
+ };
10
+ bodyStyle?: React.CSSProperties;
11
+ };
4
12
  export declare const FeaturePlugin: React.FC<{
5
13
  drawingId: DrawingID;
14
+ modalProps?: ModalProps;
6
15
  }>;
7
16
  export declare const GlobalPlugins: React.FC<{
8
17
  drawingId: DrawingID;
18
+ modalProps?: ModalProps;
9
19
  }>;
20
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Img: import("styled-components").StyledComponent<"img", any, {}, never>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ObjectID } from '@buerli.io/core';
3
+ import './colorEditor.css';
4
+ import { Color } from './useColorParam';
5
+ import { MemberParam } from '../../../../types';
6
+ export declare const ColorEditor: React.FC<{
7
+ param: MemberParam<Color>;
8
+ solidIds: ObjectID[];
9
+ }>;
@@ -0,0 +1,2 @@
1
+ export * from './ColorEditor';
2
+ export * from './useColorParam';
@@ -0,0 +1,9 @@
1
+ import { DrawingID, ObjectID } from '@buerli.io/core';
2
+ import { MemberParam } from '../../../../types';
3
+ export declare type Color = {
4
+ r: number;
5
+ g: number;
6
+ b: number;
7
+ a: number;
8
+ };
9
+ export declare function useColorParam(drawingId: DrawingID, solidId: ObjectID): MemberParam<Color>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { MemberParam } from '../../../../types';
3
+ export declare const ToleranceEditor: React.FC<{
4
+ param: MemberParam<number>;
5
+ thumbValues: number[];
6
+ caption?: string;
7
+ }>;
@@ -0,0 +1,2 @@
1
+ export * from './ToleranceEditor';
2
+ export * from './useToleranceParam';
@@ -0,0 +1,3 @@
1
+ import { DrawingID, ObjectID } from '@buerli.io/core';
2
+ import { MemberParam } from '../../../../types';
3
+ export declare function useToleranceParam(drawingId: DrawingID, solidId: ObjectID, propName: 'chordHeightTol' | 'angleTol'): MemberParam<number>;