@plait/core 0.31.0 → 0.32.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/core",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0",
@@ -7,6 +7,12 @@
7
7
  position: relative;
8
8
  overflow: hidden;
9
9
 
10
+ // safari can not set this style, it will prevent text being from selected in edit mode
11
+ // resolve the issue text being selected when user drag and move on board in firefox
12
+ &.firefox {
13
+ user-select: none;
14
+ }
15
+
10
16
  .viewport-container {
11
17
  width: 100%;
12
18
  height: 100%;
@@ -1,7 +1,7 @@
1
1
  import { RoughSVG } from 'roughjs/bin/svg';
2
2
  import { Options } from 'roughjs/bin/core';
3
3
  import { Point } from '../../interfaces';
4
- export declare function arrowPoints(start: Point, end: Point, maxHypotenuseLength?: number, degree?: number): {
4
+ export declare function arrowPoints(start: Point, end: Point, degree?: number): {
5
5
  pointLeft: Point;
6
6
  pointRight: Point;
7
7
  };
package/utils/math.d.ts CHANGED
@@ -12,3 +12,4 @@ export declare const isPolylineHitRectangle: (points: Point[], rectangle: Rectan
12
12
  export declare const isPointInPolygon: (point: Point, points: Point[]) => boolean;
13
13
  export declare const isPointInEllipse: (point: Point, center: Point, rx: number, ry: number, rotation?: number) => boolean;
14
14
  export declare const isPointInRoundRectangle: (point: Point, rectangle: RectangleClient, radius: number) => boolean;
15
+ export declare const downScale: (number: number) => number;