@plait/mind 0.29.0 → 0.31.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/mind",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0"
@@ -56,6 +56,18 @@ $primary: #4e8afa;
56
56
  }
57
57
  }
58
58
 
59
+ &[class*='-resizing'] {
60
+ :not(.collapsed) > .extend {
61
+ display: none;
62
+ }
63
+ }
64
+
65
+ &[class*='pointer-']:not(.pointer-selection) {
66
+ :not(.collapsed) > .extend {
67
+ display: none;
68
+ }
69
+ }
70
+
59
71
  &.pointer-hand {
60
72
  .board-host-svg {
61
73
  cursor: grab;
@@ -139,5 +151,9 @@ $primary: #4e8afa;
139
151
  display: block;
140
152
  }
141
153
 
154
+ &.mind-ew-resize {
155
+ cursor: ew-resize;
156
+ }
157
+
142
158
  @include mixins.node-color();
143
159
  }
@@ -1,7 +1,5 @@
1
1
  import { PlaitBoard } from '@plait/core';
2
2
  import { MindElement } from '../../interfaces/element';
3
3
  import { ImageData } from '../../interfaces/element-data';
4
- export declare const getSelectedImageElement: (board: PlaitBoard) => MindElement<ImageData> | undefined;
5
- export declare const addSelectedImageElement: (board: PlaitBoard, element: MindElement<ImageData>) => void;
6
- export declare const removeSelectedImageElement: (board: PlaitBoard) => void;
7
- export declare const setImageFocus: (board: PlaitBoard, element: MindElement<ImageData>, isFocus: boolean) => void;
4
+ export declare const addImageFocus: (board: PlaitBoard, element: MindElement<ImageData>) => void;
5
+ export declare const removeImageFocus: (board: PlaitBoard, element: MindElement<ImageData>) => void;
@@ -1,9 +1,9 @@
1
- import { PlaitBoard, Point, Range, RectangleClient } from '@plait/core';
1
+ import { PlaitBoard, Point, RectangleClient } from '@plait/core';
2
2
  import { MindElement } from '../../interfaces/element';
3
3
  import { ImageData } from '../../interfaces/element-data';
4
4
  import { PlaitMindBoard } from '../../plugins/with-mind.board';
5
5
  export declare function getImageForeignRectangle(board: PlaitMindBoard, element: MindElement<ImageData>): RectangleClient;
6
- export declare const isHitImage: (board: PlaitBoard, element: MindElement<ImageData>, range: Range) => boolean;
6
+ export declare const isHitImage: (board: PlaitBoard, element: MindElement<ImageData>, point: Point) => boolean;
7
7
  export declare const getHitImageResizeHandleDirection: (board: PlaitBoard, element: MindElement<ImageData>, point: Point) => {
8
8
  rectangle: {
9
9
  x: number;
@@ -19,4 +19,4 @@ export declare const NodeSpace: {
19
19
  getEmojiTopSpace(board: PlaitMindBoard, element: MindElement): number;
20
20
  };
21
21
  export declare const getFontSizeBySlateElement: (text: string | Element) => number;
22
- export declare const getNodeDefaultFontSize: (isRoot?: boolean) => 14 | 18;
22
+ export declare const getNodeDefaultFontSize: (isRoot?: boolean) => 18 | 14;