@buerli.io/react-cad 1.0.1 → 1.1.0-beta.7

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/ThemeToggle.d.ts +2 -0
  2. package/build/components/UI/CAD/ToolBar/ToolBar.d.ts +2 -0
  3. package/build/components/UI/CAD/common/Menu.d.ts +1 -0
  4. package/build/components/UI/CAD/plugins/ProductManagement/Root.d.ts +1 -0
  5. package/build/components/UI/ThemeVars.d.ts +6 -0
  6. package/build/components/UI/editors/ColorEditor/ColorEditor.d.ts +1 -0
  7. package/build/components/UI/editors/NumberEditor/NumOrExpr.d.ts +1 -0
  8. package/build/components/UI/editors/RefsEditors/ChainFinder.d.ts +4 -6
  9. package/build/components/UI/editors/RefsEditors/MateOrientationEditor.d.ts +1 -0
  10. package/build/components/UI/editors/ToleranceEditor/ToleranceEditor.d.ts +1 -0
  11. package/build/components/UI/editors/TypeEditor/TypeEditor.d.ts +1 -0
  12. package/build/index.cjs.js +2502 -1602
  13. package/build/index.d.ts +2 -0
  14. package/build/index.js +2441 -1545
  15. package/build/plugins/Sketch/Root/Constraints/Constraints.d.ts +1 -0
  16. package/build/plugins/Sketch/Root/CopyPatterns.d.ts +1 -0
  17. package/build/plugins/Sketch/Root/Details.d.ts +1 -0
  18. package/build/plugins/Sketch/Root/Handlers.d.ts +1 -0
  19. package/build/plugins/Sketch/Root/useContextMenuItems.d.ts +2 -2
  20. package/build/plugins/Sketch/View/graphics/Merged/Arc.d.ts +8 -0
  21. package/build/plugins/Sketch/View/graphics/Merged/Circle.d.ts +1 -0
  22. package/build/plugins/Sketch/View/graphics/Merged/Line.d.ts +5 -0
  23. package/build/plugins/Sketch/View/graphics/Merged/LineGeometry.d.ts +2 -0
  24. package/build/plugins/Sketch/View/graphics/Merged/LineMaterial.d.ts +2 -0
  25. package/build/plugins/Sketch/View/graphics/Merged/MergedWrapper.d.ts +0 -10
  26. package/build/plugins/Sketch/View/graphics/hooks.d.ts +3 -0
  27. package/build/plugins/Sketch/View/graphics/transform.d.ts +4 -0
  28. package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +2 -0
  29. package/build/plugins/Sketch/types.d.ts +4 -0
  30. package/build/theme/themeStore.d.ts +68 -0
  31. package/build/utils/FileUtils.d.ts +3 -1
  32. package/build/utils/sketchUtils.d.ts +14 -0
  33. package/package.json +5 -4
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ThemeToggle: React.FC;
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { DrawingID } from '@buerli.io/core';
3
3
  import './ToolBar.css';
4
+ import '../common/Menu.css';
5
+ import '../../editors/antd-theme.css';
4
6
  export declare const ToolBar: React.FC<{
5
7
  drawingId: DrawingID;
6
8
  }>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DropDownProps } from 'antd';
3
3
  import 'antd/dist/antd.css';
4
+ import './Menu.css';
4
5
  export declare type MenuItem = {
5
6
  caption: string | JSX.Element;
6
7
  icon?: JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { DrawingID, PluginID } from '@buerli.io/core';
3
+ import '../../../../UI/editors/antd-theme.css';
3
4
  export declare const Root: React.FC<{
4
5
  drawingId: DrawingID;
5
6
  pluginId: PluginID;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Sets CSS custom properties on the parent Drawing container
4
+ * so that styled-components using var(--rcad-*) pick up theme colors.
5
+ */
6
+ export declare const ThemeVars: React.FC;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ObjectID } from '@buerli.io/core';
3
+ import '../antd-theme.css';
3
4
  import './colorEditor.css';
4
5
  import { Color } from './useColorParam';
5
6
  import { MemberParam } from '../../../../types';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { DrawingID } from '@buerli.io/core';
3
+ import '../antd-theme.css';
3
4
  export declare function isDegValue(expr: string): boolean;
4
5
  export declare const NumOrExpr: React.FC<{
5
6
  drawingId: DrawingID;
@@ -3,12 +3,10 @@ export declare class ChainFinder {
3
3
  private tree;
4
4
  private drawingId;
5
5
  private visited;
6
+ private nodes;
6
7
  constructor(drawingId: DrawingID);
7
- private findIncConstraints;
8
- private findSibiling;
9
- private findIncPoint;
10
- private findIncCurve;
11
- private findIncCurves;
12
- private getPointId;
8
+ private getPointByName;
9
+ private processPoint;
10
+ private processCurve;
13
11
  findChained(curve: ScgObject): ScgObject[];
14
12
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { DrawingID, SelectorID } from '@buerli.io/core';
3
+ import '../antd-theme.css';
3
4
  import { MemberParam } from '../../../../types';
4
5
  import { MateParam } from './useMateParam';
5
6
  export declare const MateOrientationEditor: React.FC<{
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MemberParam } from '../../../../types';
3
+ import '../antd-theme.css';
3
4
  export declare const ToleranceEditor: React.FC<{
4
5
  param: MemberParam<number>;
5
6
  thumbValues: number[];
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MemberParam } from '../../../../types';
3
+ import '../antd-theme.css';
3
4
  export declare const TypeEditor: React.FC<{
4
5
  param: MemberParam<number>;
5
6
  caption?: string;