@conboai/storybook.components 0.5.75 → 0.5.76

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.
@@ -1,5 +1,4 @@
1
1
  import { Point } from '../types';
2
2
 
3
3
  export declare const getMidpoint: (points: Point[]) => Point;
4
- export declare const toPixelCoords: (x: number, y: number, rect: DOMRect) => Point;
5
4
  export declare const getLineAngle: (p1: Point, p2: Point, rect: DOMRect) => number;
@@ -4,7 +4,9 @@ export interface IHeaderProps {
4
4
  header: {
5
5
  text: string;
6
6
  };
7
- styles?: Record<string, any>;
7
+ styles?: {
8
+ stroke?: string;
9
+ };
8
10
  rect: DOMRect | null;
9
11
  point: Point;
10
12
  }
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { IShapesProps } from './types';
3
3
 
4
- declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected: selectedShapeFromProps, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showId, showOnlyPoints, showPoints, showDirection, selectedShapeZIndex, snapToBoundaries, styles, polygonMaxLength, polylineMaxLength, polylineProps, }: IShapesProps) => React.JSX.Element;
4
+ declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected: selectedShapeFromProps, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showId, showOnlyPoints, showPoints, showDirection, selectedShapeZIndex, snapToBoundaries, styles, polygonMaxLength, polylineMaxLength, polylineProps }: IShapesProps) => React.JSX.Element;
5
5
  export default Shapes;
@@ -19,6 +19,7 @@ export interface Shape {
19
19
  id: string;
20
20
  name?: string;
21
21
  type: ShapeType;
22
+ forbidEdit?: boolean;
22
23
  isCompleted?: boolean;
23
24
  points: Point[];
24
25
  isInFov?: boolean;