@plait/draw 0.87.0-next.1 → 0.88.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.
@@ -1,4 +1,4 @@
1
- import { ACTIVE_STROKE_WIDTH, DEFAULT_COLOR, ThemeColorMode, PlaitElement, RectangleClient, getSelectedElements, idCreator, createDebugGenerator, Point, createG, arrowPoints, createPath, distanceBetweenPointAndPoint, drawLinearPath, rotate, catmullRomFitting, PlaitBoard, setStrokeLinecap, findElements, createMask, createRect, getNearestPointBetweenPointAndArc, setPathStrokeLinecap, distanceBetweenPointAndSegments, HIT_DISTANCE_BUFFER, isPointInPolygon, isLineHitRectangle, rotatePointsByAngle, rotateAntiPointsByElement, getEllipseArcCenter, Transforms, clearSelectedElement, depthFirstRecursion, getIsRecursionFunc, SNAPPING_STROKE_WIDTH, SELECTION_BORDER_COLOR, SELECTION_FILL_COLOR, drawCircle, getI18nValue, SELECTION_RECTANGLE_CLASS_NAME, toActivePointFromViewBoxPoint, toActiveRectangleFromViewBoxRectangle, drawRectangle, isSelectionMoving, rgbaToHEX, getElementById, rotatePointsByElement, PlaitNode, hasValidAngle, toViewBoxPoint, toHostPoint, Direction, rotatePoints, getSelectionAngle, rotatedDataPoints, isAxisChangedByAngle, getRectangleByElements, getRectangleByAngle, getSnapRectangles, getTripleAxis, getMinPointDelta, SNAP_TOLERANCE, drawPointSnapLines, drawSolidLines, getNearestPointBetweenPointAndSegments, getEllipseTangentSlope, getVectorFromPointAndSlope, getNearestPointBetweenPointAndEllipse, isPointInEllipse, isPointInRoundRectangle, drawRoundRectangle, getCrossingPointsBetweenEllipseAndSegment, drawLine, getNearestPointBetweenPointAndDiscreteSegments, getNearestPointBetweenPointAndSegment, Path, getHitElementByPoint, WritableClipboardOperationType, WritableClipboardType, addOrCreateClipboardContext, addSelectedElement, BoardTransforms, PlaitPointerType, setAngleForG, toActivePoint, temporaryDisableSelection, toScreenPointFromActivePoint, PRESS_AND_MOVE_BUFFER, CursorClass, isHorizontalDirection, isMainPointer, throttleRAF, getAngleBetweenPoints, normalizeAngle, degreesToRadians, rotateElements, MERGING, ROTATE_HANDLE_CLASS_NAME, isSelectedElement, isDragging } from '@plait/core';
1
+ import { ACTIVE_STROKE_WIDTH, DEFAULT_COLOR, ThemeColorMode, PlaitElement, RectangleClient, getSelectedElements, idCreator, createDebugGenerator, Point, createG, arrowPoints, createPath, distanceBetweenPointAndPoint, drawLinearPath, rotate, catmullRomFitting, PlaitBoard, setStrokeLinecap, findElements, createMask, createRect, getNearestPointBetweenPointAndArc, setPathStrokeLinecap, distanceBetweenPointAndSegments, HIT_DISTANCE_BUFFER, isPointInPolygon, isLineHitRectangle, rotatePointsByAngle, rotateAntiPointsByElement, getEllipseArcCenter, Transforms, clearSelectedElement, addSelectedElement, BoardTransforms, PlaitPointerType, depthFirstRecursion, getIsRecursionFunc, SNAPPING_STROKE_WIDTH, SELECTION_BORDER_COLOR, SELECTION_FILL_COLOR, drawCircle, getI18nValue, SELECTION_RECTANGLE_CLASS_NAME, toActivePointFromViewBoxPoint, toActiveRectangleFromViewBoxRectangle, drawRectangle, isSelectionMoving, rgbaToHEX, getElementById, rotatePointsByElement, PlaitNode, hasValidAngle, toViewBoxPoint, toHostPoint, Direction, rotatePoints, getSelectionAngle, rotatedDataPoints, isAxisChangedByAngle, getRectangleByElements, getRectangleByAngle, getSnapRectangles, getTripleAxis, getMinPointDelta, SNAP_TOLERANCE, drawPointSnapLines, drawSolidLines, getNearestPointBetweenPointAndSegments, getEllipseTangentSlope, getVectorFromPointAndSlope, getNearestPointBetweenPointAndEllipse, isPointInEllipse, isPointInRoundRectangle, drawRoundRectangle, getCrossingPointsBetweenEllipseAndSegment, drawLine, getNearestPointBetweenPointAndDiscreteSegments, getNearestPointBetweenPointAndSegment, Path, getHitElementByPoint, WritableClipboardOperationType, WritableClipboardType, addOrCreateClipboardContext, setAngleForG, toActivePoint, temporaryDisableSelection, toScreenPointFromActivePoint, PRESS_AND_MOVE_BUFFER, CursorClass, isHorizontalDirection, isMainPointer, throttleRAF, getAngleBetweenPoints, normalizeAngle, degreesToRadians, rotateElements, MERGING, ROTATE_HANDLE_CLASS_NAME, isSelectedElement, isDragging } from '@plait/core';
2
2
  import { DEFAULT_FILL, Alignment, WithTextPluginKey, TextManage, getMemorizedLatest, memorizeLatest, removeDuplicatePoints, generateElbowLineRoute, simplifyOrthogonalPoints, getExtendPoint, getUnitVectorByPointAndPoint, Generator, getElementSize, DEFAULT_FONT_FAMILY, getPointByVectorComponent, getStrokeLineDash, StrokeStyle, getPointOnPolyline, buildText, getCrossingPointsBetweenPointAndSegment, isPointOnSegment, getFirstTextEditor, sortElementsByArea, isFilled, getTextEditorsByElement, RESIZE_HANDLE_DIAMETER, drawPrimaryHandle, drawFillPrimaryHandle, PRIMARY_COLOR, measureElement, getFirstTextManage, isSourceAndTargetIntersect, getPoints, DEFAULT_ROUTE_MARGIN, normalizeShapePoints, resetPointsAfterResize, getDirectionByVector, getRectangleResizeHandleRefs, getRotatedResizeCursorClassByAngle, ROTATE_HANDLE_SIZE, ROTATE_HANDLE_DISTANCE_TO_ELEMENT, isCornerHandle, getIndexByResizeHandle, withResize, getSymmetricHandleIndex, getResizeHandlePointByIndex, drawHandle, getDirectionFactorByDirectionComponent, buildClipboardData as buildClipboardData$1, insertClipboardData as insertClipboardData$1, getDirectionByPointOfRectangle, getDirectionFactor, rotateVector, getOppositeDirection, rotateVectorAnti90, getSourceAndTargetOuterRectangle, getNextPoint, CommonElementFlavour, createActiveGenerator, hasResizeHandle, ActiveGenerator, isVirtualKey, isDelete, isSpaceHotkey, isDndMode, isDrawingMode, getElementsText, acceptImageTypes, getElementOfFocusedImage, buildImage, isResizingByCondition, getRatioByPoint, getTextManages, ImageGenerator, getDirectionByIndex, moveXOfPoint, getXDistanceBetweenPoint, ResizeHandle, addRotating, removeRotating, drawRotateHandle } from '@plait/common';
3
3
  import { pointsOnBezierCurves } from 'points-on-curve';
4
4
  import { DEFAULT_FONT_SIZE, AlignEditor } from '@plait/text-plugins';
@@ -1819,18 +1819,10 @@ const CloudEngine = {
1819
1819
  return RectangleClient.getEdgeCenterPoints(rectangle);
1820
1820
  },
1821
1821
  getTextRectangle: (board, element) => {
1822
- const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
1823
- const strokeWidth = getStrokeWidthByElement(element);
1824
- const originWidth = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
1825
- const width = originWidth / 1.5;
1826
- const text = element.text;
1827
- const textSize = getTextSize(board, text, width);
1828
- return {
1829
- height: textSize.height,
1830
- width: width > 0 ? width : 0,
1831
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth + originWidth / 6,
1832
- y: elementRectangle.y + elementRectangle.height / 6 + ((elementRectangle.height * 4) / 6 - textSize.height) / 2
1833
- };
1822
+ const widthRatio = 1 / 1.5;
1823
+ const rectangle = RectangleClient.getRectangleByPoints(element.points);
1824
+ const textRectangle = getCustomTextRectangle(board, element, widthRatio);
1825
+ return textRectangle;
1834
1826
  }
1835
1827
  };
1836
1828
 
@@ -2072,6 +2064,17 @@ const getTextRectangle$1 = (board, element) => {
2072
2064
  y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
2073
2065
  };
2074
2066
  };
2067
+ const getCustomTextRectangle = (board, element, widthRatio) => {
2068
+ const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
2069
+ const width = widthRatio * elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - getStrokeWidthByElement(element) * 2;
2070
+ const textSize = getTextSize(board, element.text, width);
2071
+ return {
2072
+ height: textSize.height,
2073
+ width: width,
2074
+ x: elementRectangle.x + (elementRectangle.width - width) / 2,
2075
+ y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
2076
+ };
2077
+ };
2075
2078
  const getStrokeWidthByElement = (element) => {
2076
2079
  if (PlaitDrawElement.isText(element)) {
2077
2080
  return 0;
@@ -2083,6 +2086,8 @@ const insertElement = (board, element) => {
2083
2086
  memorizeLatestShape(board, element.shape);
2084
2087
  Transforms.insertNode(board, element, [board.children.length]);
2085
2088
  clearSelectedElement(board);
2089
+ addSelectedElement(board, element);
2090
+ BoardTransforms.updatePointerType(board, PlaitPointerType.selection);
2086
2091
  };
2087
2092
  const isDrawElementIncludeText = (element) => {
2088
2093
  if (PlaitDrawElement.isText(element)) {
@@ -4088,16 +4093,9 @@ const CommentEngine = {
4088
4093
  },
4089
4094
  getTextRectangle: (board, element) => {
4090
4095
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4091
- const strokeWidth = getStrokeWidthByElement(element);
4092
- const width = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
4093
- const text = element.text;
4094
- const textSize = getTextSize(board, text, width);
4095
- return {
4096
- height: textSize.height,
4097
- width: width > 0 ? width : 0,
4098
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth,
4099
- y: elementRectangle.y + (elementRectangle.height * heightRatio$1 - textSize.height) / 2
4100
- };
4096
+ const textRectangle = getTextRectangle$1(board, element);
4097
+ textRectangle.y = elementRectangle.y + (elementRectangle.height * heightRatio$1 - textRectangle.height) / 2;
4098
+ return textRectangle;
4101
4099
  }
4102
4100
  };
4103
4101
  const getCommentPoints = (rectangle) => {
@@ -4188,11 +4186,8 @@ const CrossEngine = createPolygonEngine({
4188
4186
  return RectangleClient.getEdgeCenterPoints(rectangle);
4189
4187
  },
4190
4188
  getTextRectangle: (board, element) => {
4191
- const rectangle = getTextRectangle$1(board, element);
4192
- const width = rectangle.width;
4193
- rectangle.width = rectangle.width / 2;
4194
- rectangle.x += width / 4;
4195
- return rectangle;
4189
+ const widthRatio = 1 / 2;
4190
+ return getCustomTextRectangle(board, element, widthRatio);
4196
4191
  }
4197
4192
  });
4198
4193
 
@@ -4202,10 +4197,7 @@ const DiamondEngine = createPolygonEngine({
4202
4197
  return RectangleClient.getEdgeCenterPoints(rectangle);
4203
4198
  },
4204
4199
  getTextRectangle: (board, element) => {
4205
- const rectangle = getTextRectangle$1(board, element);
4206
- rectangle.width = rectangle.width / 2;
4207
- rectangle.x += rectangle.width / 2;
4208
- return rectangle;
4200
+ return getCustomTextRectangle(board, element, 1 / 2);
4209
4201
  }
4210
4202
  });
4211
4203
 
@@ -4243,11 +4235,7 @@ function createEllipseEngine(createOptions) {
4243
4235
  return RectangleClient.getEdgeCenterPoints(rectangle);
4244
4236
  },
4245
4237
  getTextRectangle: (board, element) => {
4246
- const rectangle = getTextRectangle$1(board, element);
4247
- const width = rectangle.width;
4248
- rectangle.width = (rectangle.width * 3) / 4;
4249
- rectangle.x += width / 8;
4250
- return rectangle;
4238
+ return getCustomTextRectangle(board, element, 3 / 4);
4251
4239
  }
4252
4240
  };
4253
4241
  if (createOptions?.draw) {
@@ -4276,11 +4264,7 @@ const HexagonEngine = createPolygonEngine({
4276
4264
  return RectangleClient.getEdgeCenterPoints(rectangle);
4277
4265
  },
4278
4266
  getTextRectangle: (board, element) => {
4279
- const rectangle = getTextRectangle$1(board, element);
4280
- const width = rectangle.width;
4281
- rectangle.width = (rectangle.width * 3) / 4;
4282
- rectangle.x += width / 8;
4283
- return rectangle;
4267
+ return getCustomTextRectangle(board, element, 3 / 4);
4284
4268
  }
4285
4269
  });
4286
4270
 
@@ -4304,11 +4288,10 @@ const LeftArrowEngine = createPolygonEngine({
4304
4288
  ];
4305
4289
  },
4306
4290
  getTextRectangle: (board, element) => {
4307
- const rectangle = getTextRectangle$1(board, element);
4308
- const width = rectangle.width;
4309
- rectangle.width = rectangle.width * (1 - 0.32);
4310
- rectangle.x += width * 0.32;
4311
- return rectangle;
4291
+ const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4292
+ const customTextRectangle = getCustomTextRectangle(board, element, 1 - 0.32);
4293
+ customTextRectangle.x = elementRectangle.x + elementRectangle.width * 0.32 + ShapeDefaultSpace.rectangleAndText;
4294
+ return customTextRectangle;
4312
4295
  }
4313
4296
  });
4314
4297
 
@@ -4330,11 +4313,7 @@ const OctagonEngine = createPolygonEngine({
4330
4313
  return RectangleClient.getEdgeCenterPoints(rectangle);
4331
4314
  },
4332
4315
  getTextRectangle: (board, element) => {
4333
- const rectangle = getTextRectangle$1(board, element);
4334
- const width = rectangle.width;
4335
- rectangle.width = (rectangle.width * 3) / 4;
4336
- rectangle.x += width / 8;
4337
- return rectangle;
4316
+ return getCustomTextRectangle(board, element, 3 / 4);
4338
4317
  }
4339
4318
  });
4340
4319
 
@@ -4353,11 +4332,7 @@ const ParallelogramEngine = createPolygonEngine({
4353
4332
  return getCenterPointsOnPolygon$1(cornerPoints);
4354
4333
  },
4355
4334
  getTextRectangle: (board, element) => {
4356
- const rectangle = getTextRectangle$1(board, element);
4357
- const width = rectangle.width;
4358
- rectangle.width = rectangle.width / 2;
4359
- rectangle.x += width / 4;
4360
- return rectangle;
4335
+ return getCustomTextRectangle(board, element, 1 / 2);
4361
4336
  }
4362
4337
  });
4363
4338
 
@@ -4374,17 +4349,11 @@ const PentagonEngine = createPolygonEngine({
4374
4349
  getPolygonPoints: getPentagonPoints,
4375
4350
  getTextRectangle: (board, element) => {
4376
4351
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4377
- const strokeWidth = getStrokeWidthByElement(element);
4378
- const originWidth = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
4379
- const width = (originWidth * 3) / 5;
4380
- const text = element.text;
4381
- const textSize = getTextSize(board, text, width);
4382
- return {
4383
- height: textSize.height,
4384
- width: width > 0 ? width : 0,
4385
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth + originWidth / 5,
4386
- y: elementRectangle.y + elementRectangle.height / 5 + ((elementRectangle.height * 4) / 5 - textSize.height) / 2
4387
- };
4352
+ const customTextRectangle = getCustomTextRectangle(board, element, 3 / 5);
4353
+ const startY = elementRectangle.y + elementRectangle.height / 5;
4354
+ const endY = elementRectangle.y + elementRectangle.height;
4355
+ customTextRectangle.y = startY + (endY - startY - customTextRectangle.height) / 2;
4356
+ return customTextRectangle;
4388
4357
  }
4389
4358
  });
4390
4359
 
@@ -4405,10 +4374,9 @@ const PentagonArrowEngine = createPolygonEngine({
4405
4374
  },
4406
4375
  getTextRectangle: (board, element) => {
4407
4376
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4408
- const rectangle = getTextRectangle$1(board, element);
4409
- const wider = elementRectangle.width > elementRectangle.height / 2 + 20;
4410
- rectangle.width = wider ? elementRectangle.width - elementRectangle.height / 2 : rectangle.width;
4411
- return rectangle;
4377
+ const customTextRectangle = getCustomTextRectangle(board, element, 3 / 4);
4378
+ customTextRectangle.x = elementRectangle.x + ShapeDefaultSpace.rectangleAndText;
4379
+ return customTextRectangle;
4412
4380
  }
4413
4381
  });
4414
4382
 
@@ -4427,11 +4395,10 @@ const ProcessArrowEngine = createPolygonEngine({
4427
4395
  getPolygonPoints: getProcessArrowPoints,
4428
4396
  getTextRectangle: (board, element) => {
4429
4397
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4430
- const rectangle = getTextRectangle$1(board, element);
4431
4398
  const wider = elementRectangle.width > elementRectangle.height + 20;
4432
- rectangle.width = wider ? elementRectangle.width - elementRectangle.height : rectangle.width;
4433
- rectangle.x = wider ? elementRectangle.x + elementRectangle.height / 2 : rectangle.x;
4434
- return rectangle;
4399
+ const widthRatio = wider ? (elementRectangle.width - elementRectangle.height) / elementRectangle.width : 3 / 4;
4400
+ const customTextRectangle = getCustomTextRectangle(board, element, widthRatio);
4401
+ return customTextRectangle;
4435
4402
  }
4436
4403
  });
4437
4404
 
@@ -4455,9 +4422,10 @@ const RightArrowEngine = createPolygonEngine({
4455
4422
  ];
4456
4423
  },
4457
4424
  getTextRectangle: (board, element) => {
4458
- const rectangle = getTextRectangle$1(board, element);
4459
- rectangle.width = rectangle.width * 0.68;
4460
- return rectangle;
4425
+ const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4426
+ const customTextRectangle = getCustomTextRectangle(board, element, 1 - 0.32);
4427
+ customTextRectangle.x = elementRectangle.x + ShapeDefaultSpace.rectangleAndText;
4428
+ return customTextRectangle;
4461
4429
  }
4462
4430
  });
4463
4431
 
@@ -4594,16 +4562,9 @@ const RoundCommentEngine = {
4594
4562
  },
4595
4563
  getTextRectangle: (board, element) => {
4596
4564
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4597
- const strokeWidth = getStrokeWidthByElement(element);
4598
- const width = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
4599
- const text = element.text;
4600
- const textSize = getTextSize(board, text, width);
4601
- return {
4602
- height: textSize.height,
4603
- width: width > 0 ? width : 0,
4604
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth,
4605
- y: elementRectangle.y + (elementRectangle.height * heightRatio - textSize.height) / 2
4606
- };
4565
+ const textRectangle = getTextRectangle$1(board, element);
4566
+ textRectangle.y = elementRectangle.y + (elementRectangle.height * heightRatio - textRectangle.height) / 2;
4567
+ return textRectangle;
4607
4568
  }
4608
4569
  };
4609
4570
  const getRoundCommentPoints = (rectangle) => {
@@ -4633,11 +4594,7 @@ const TrapezoidEngine = createPolygonEngine({
4633
4594
  return getCenterPointsOnPolygon$1(points);
4634
4595
  },
4635
4596
  getTextRectangle(board, element) {
4636
- const rectangle = getTextRectangle$1(board, element);
4637
- const width = rectangle.width;
4638
- rectangle.width = (rectangle.width * 3) / 4;
4639
- rectangle.x += width / 8;
4640
- return rectangle;
4597
+ return getCustomTextRectangle(board, element, 3 / 4);
4641
4598
  }
4642
4599
  });
4643
4600
 
@@ -4656,18 +4613,13 @@ const TriangleEngine = createPolygonEngine({
4656
4613
  return [...lineCenterPoints, ...cornerPoints];
4657
4614
  },
4658
4615
  getTextRectangle: (board, element) => {
4616
+ const customTextRectangle = getCustomTextRectangle(board, element, 1 / 2);
4659
4617
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4660
- const strokeWidth = getStrokeWidthByElement(element);
4661
- const originWidth = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
4662
- const width = (originWidth * 2) / 3;
4663
- const text = element.text;
4664
- const textSize = getTextSize(board, text, width);
4665
- return {
4666
- height: textSize.height,
4667
- width: width > 0 ? width : 0,
4668
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth + originWidth / 6,
4669
- y: elementRectangle.y + (elementRectangle.height * 3) / 5 + ((elementRectangle.height * 2) / 5 - textSize.height) / 2
4670
- };
4618
+ customTextRectangle.y =
4619
+ elementRectangle.y +
4620
+ (elementRectangle.height * 2.5) / 5 +
4621
+ (elementRectangle.height - (elementRectangle.height * 2.5) / 5 - customTextRectangle.height) / 2;
4622
+ return customTextRectangle;
4671
4623
  }
4672
4624
  });
4673
4625
 
@@ -4717,17 +4669,12 @@ const StarEngine = createPolygonEngine({
4717
4669
  },
4718
4670
  getTextRectangle: (board, element) => {
4719
4671
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
4720
- const strokeWidth = getStrokeWidthByElement(element);
4721
- const originWidth = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
4722
- const width = originWidth / 2;
4723
- const text = element.text;
4724
- const textSize = getTextSize(board, text, width);
4725
- return {
4726
- height: textSize.height,
4727
- width: width > 0 ? width : 0,
4728
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth + originWidth / 4,
4729
- y: elementRectangle.y + (elementRectangle.height * 1) / 6 + ((elementRectangle.height * 4) / 5 - textSize.height) / 2
4730
- };
4672
+ const customTextRectangle = getCustomTextRectangle(board, element, 1 / 2);
4673
+ customTextRectangle.y =
4674
+ elementRectangle.y +
4675
+ elementRectangle.height / 5 +
4676
+ (elementRectangle.height - elementRectangle.height / 5 - customTextRectangle.height) / 2;
4677
+ return customTextRectangle;
4731
4678
  }
4732
4679
  });
4733
4680
 
@@ -4949,10 +4896,7 @@ const DelayEngine = {
4949
4896
  const StoredDataEngine = {
4950
4897
  draw(board, rectangle, options) {
4951
4898
  const rs = PlaitBoard.getRoughSVG(board);
4952
- const shape = rs.path(`M${rectangle.x + rectangle.width / 10} ${rectangle.y} L${rectangle.x + rectangle.width} ${rectangle.y} A ${rectangle.width /
4953
- 10} ${rectangle.height / 2}, 0, 0, 0,${rectangle.x + rectangle.width} ${rectangle.y + rectangle.height} L${rectangle.x +
4954
- rectangle.width / 10} ${rectangle.y + rectangle.height}A ${rectangle.width / 10} ${rectangle.height /
4955
- 2}, 0, 0, 1,${rectangle.x + rectangle.width / 10} ${rectangle.y}`, { ...options, fillStyle: 'solid' });
4899
+ const shape = rs.path(`M${rectangle.x + rectangle.width / 10} ${rectangle.y} L${rectangle.x + rectangle.width} ${rectangle.y} A ${rectangle.width / 10} ${rectangle.height / 2}, 0, 0, 0,${rectangle.x + rectangle.width} ${rectangle.y + rectangle.height} L${rectangle.x + rectangle.width / 10} ${rectangle.y + rectangle.height}A ${rectangle.width / 10} ${rectangle.height / 2}, 0, 0, 1,${rectangle.x + rectangle.width / 10} ${rectangle.y}`, { ...options, fillStyle: 'solid' });
4956
4900
  setStrokeLinecap(shape, 'round');
4957
4901
  return shape;
4958
4902
  },
@@ -5003,7 +4947,7 @@ const StoredDataEngine = {
5003
4947
  const point = [connectionPoint[0] - centerPoint[0], -(connectionPoint[1] - centerPoint[1])];
5004
4948
  const slope = getEllipseTangentSlope(point[0], point[1], a, b);
5005
4949
  const vector = getVectorFromPointAndSlope(point[0], point[1], slope);
5006
- return isBackEllipse ? vector.map(num => -num) : vector;
4950
+ return isBackEllipse ? vector.map((num) => -num) : vector;
5007
4951
  },
5008
4952
  getConnectorPoints(rectangle) {
5009
4953
  return [
@@ -5014,11 +4958,8 @@ const StoredDataEngine = {
5014
4958
  ];
5015
4959
  },
5016
4960
  getTextRectangle(board, element) {
5017
- const rectangle = getTextRectangle$1(board, element);
5018
- const width = rectangle.width;
5019
- rectangle.width = (rectangle.width * 3) / 4;
5020
- rectangle.x += width / 8;
5021
- return rectangle;
4961
+ const widthRatio = 3 / 4;
4962
+ return getCustomTextRectangle(board, element, widthRatio);
5022
4963
  }
5023
4964
  };
5024
4965
 
@@ -5195,17 +5136,7 @@ const DocumentEngine = {
5195
5136
  return getUnitVectorByPointAndPoint(connectionPoint, [rectangle.x + rectangle.width / 4, rectangle.y + rectangle.height]);
5196
5137
  },
5197
5138
  getTextRectangle: (board, element) => {
5198
- const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5199
- const strokeWidth = getStrokeWidthByElement(element);
5200
- const width = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2 - elementRectangle.width * 0.06 * 2;
5201
- const text = element.text;
5202
- const textSize = getTextSize(board, text, width);
5203
- return {
5204
- height: textSize.height,
5205
- width: width > 0 ? width : 0,
5206
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth + elementRectangle.width * 0.06,
5207
- y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
5208
- };
5139
+ return getCustomTextRectangle(board, element, 0.88);
5209
5140
  }
5210
5141
  };
5211
5142
 
@@ -5308,17 +5239,7 @@ const MultiDocumentEngine = {
5308
5239
  return [factor.x, factor.y];
5309
5240
  },
5310
5241
  getTextRectangle: (board, element) => {
5311
- const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5312
- const strokeWidth = getStrokeWidthByElement(element);
5313
- const width = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2 - elementRectangle.width * 0.06 * 2;
5314
- const text = element.text;
5315
- const textSize = getTextSize(board, text, width);
5316
- return {
5317
- height: textSize.height,
5318
- width: width > 0 ? width - 10 : 0,
5319
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth + elementRectangle.width * 0.06,
5320
- y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
5321
- };
5242
+ return getCustomTextRectangle(board, element, 0.88);
5322
5243
  }
5323
5244
  };
5324
5245
 
@@ -5326,13 +5247,10 @@ const DatabaseEngine = {
5326
5247
  draw(board, rectangle, options) {
5327
5248
  const rs = PlaitBoard.getRoughSVG(board);
5328
5249
  const shape = rs.path(`M${rectangle.x} ${rectangle.y + rectangle.height * 0.15}
5329
- A${rectangle.width / 2} ${rectangle.height * 0.15}, 0, 0, 0,${rectangle.x + rectangle.width} ${rectangle.y +
5330
- rectangle.height * 0.15}
5250
+ A${rectangle.width / 2} ${rectangle.height * 0.15}, 0, 0, 0,${rectangle.x + rectangle.width} ${rectangle.y + rectangle.height * 0.15}
5331
5251
  A${rectangle.width / 2} ${rectangle.height * 0.15}, 0, 0, 0,${rectangle.x} ${rectangle.y + rectangle.height * 0.15}
5332
5252
  V${rectangle.y + rectangle.height - rectangle.height * 0.15}
5333
- A${rectangle.width / 2} ${rectangle.height * 0.15}, 0, 0, 0, ${rectangle.x + rectangle.width} ${rectangle.y +
5334
- rectangle.height -
5335
- rectangle.height * 0.15}
5253
+ A${rectangle.width / 2} ${rectangle.height * 0.15}, 0, 0, 0, ${rectangle.x + rectangle.width} ${rectangle.y + rectangle.height - rectangle.height * 0.15}
5336
5254
  V${rectangle.y + rectangle.height * 0.15}`, { ...options, fillStyle: 'solid' });
5337
5255
  setStrokeLinecap(shape, 'round');
5338
5256
  return shape;
@@ -5390,16 +5308,12 @@ const DatabaseEngine = {
5390
5308
  },
5391
5309
  getTextRectangle: (board, element) => {
5392
5310
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5393
- const strokeWidth = getStrokeWidthByElement(element);
5394
- const width = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
5395
- const text = element.text;
5396
- const textSize = getTextSize(board, text, width);
5397
- return {
5398
- height: textSize.height,
5399
- width: width > 0 ? width : 0,
5400
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth,
5401
- y: elementRectangle.y + elementRectangle.height * 0.3 + (elementRectangle.height - elementRectangle.height * 0.45 - textSize.height) / 2
5402
- };
5311
+ const textRectangle = getCustomTextRectangle(board, element, 1);
5312
+ textRectangle.y += getStrokeWidthByElement(element);
5313
+ const startY = elementRectangle.y + elementRectangle.height * 0.45;
5314
+ const endY = elementRectangle.y + elementRectangle.height - elementRectangle.height * 0.3;
5315
+ textRectangle.y = startY + (endY - startY - textRectangle.height) / 2;
5316
+ return textRectangle;
5403
5317
  }
5404
5318
  };
5405
5319
 
@@ -5595,16 +5509,9 @@ const NoteCurlyLeftEngine = {
5595
5509
  },
5596
5510
  getTextRectangle: (board, element) => {
5597
5511
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5598
- const strokeWidth = getStrokeWidthByElement(element);
5599
- const width = elementRectangle.width - elementRectangle.width * 0.09 - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
5600
- const text = element.text;
5601
- const textSize = getTextSize(board, text, width);
5602
- return {
5603
- height: textSize.height,
5604
- width: width > 0 ? width : 0,
5605
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth,
5606
- y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
5607
- };
5512
+ const textRectangle = getCustomTextRectangle(board, element, 0.9);
5513
+ textRectangle.x = elementRectangle.x + getStrokeWidthByElement(element) + ShapeDefaultSpace.rectangleAndText;
5514
+ return textRectangle;
5608
5515
  }
5609
5516
  };
5610
5517
 
@@ -5679,16 +5586,10 @@ const NoteCurlyRightEngine = {
5679
5586
  },
5680
5587
  getTextRectangle: (board, element) => {
5681
5588
  const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5682
- const strokeWidth = getStrokeWidthByElement(element);
5683
- const width = elementRectangle.width - elementRectangle.width * 0.09 - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
5684
- const text = element.text;
5685
- const textSize = getTextSize(board, text, width);
5686
- return {
5687
- height: textSize.height,
5688
- width: width > 0 ? width : 0,
5689
- x: elementRectangle.x + elementRectangle.width * 0.09 + ShapeDefaultSpace.rectangleAndText + strokeWidth,
5690
- y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
5691
- };
5589
+ const textRectangle = getCustomTextRectangle(board, element, 0.9);
5590
+ textRectangle.x =
5591
+ elementRectangle.x + getStrokeWidthByElement(element) + ShapeDefaultSpace.rectangleAndText + elementRectangle.width * 0.1;
5592
+ return textRectangle;
5692
5593
  }
5693
5594
  };
5694
5595
 
@@ -5720,17 +5621,7 @@ const NoteSquareEngine = {
5720
5621
  return RectangleClient.getEdgeCenterPoints(rectangle);
5721
5622
  },
5722
5623
  getTextRectangle: (board, element) => {
5723
- const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5724
- const strokeWidth = getStrokeWidthByElement(element);
5725
- const width = elementRectangle.width - ShapeDefaultSpace.rectangleAndText * 2 - strokeWidth * 2;
5726
- const text = element.text;
5727
- const textSize = getTextSize(board, text, width);
5728
- return {
5729
- height: textSize.height,
5730
- width: width > 0 ? width : 0,
5731
- x: elementRectangle.x + ShapeDefaultSpace.rectangleAndText + strokeWidth,
5732
- y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
5733
- };
5624
+ return getCustomTextRectangle(board, element, 0.88);
5734
5625
  }
5735
5626
  };
5736
5627
 
@@ -5793,17 +5684,7 @@ const DisplayEngine = {
5793
5684
  return RectangleClient.getEdgeCenterPoints(rectangle);
5794
5685
  },
5795
5686
  getTextRectangle: (board, element) => {
5796
- const elementRectangle = RectangleClient.getRectangleByPoints(element.points);
5797
- const strokeWidth = getStrokeWidthByElement(element);
5798
- const width = elementRectangle.width - strokeWidth * 2 - elementRectangle.width * 0.25;
5799
- const text = element.text;
5800
- const textSize = getTextSize(board, text, width);
5801
- return {
5802
- width: width > 0 ? width : 0,
5803
- height: textSize.height,
5804
- x: elementRectangle.x + strokeWidth + elementRectangle.width * 0.15,
5805
- y: elementRectangle.y + (elementRectangle.height - textSize.height) / 2
5806
- };
5687
+ return getCustomTextRectangle(board, element, 0.75);
5807
5688
  }
5808
5689
  };
5809
5690
 
@@ -9385,5 +9266,5 @@ const withDraw = (board) => {
9385
9266
  * Generated bundle index. Do not edit.
9386
9267
  */
9387
9268
 
9388
- export { ArrowLineAutoCompleteGenerator, ArrowLineComponent, ArrowLineHandleKey, ArrowLineMarkerType, ArrowLineShape, BOARD_TO_PRE_COMMIT, BasicShapes, DEFAULT_IMAGE_WIDTH, DefaultActivationProperty, DefaultActorProperty, DefaultArrowProperty, DefaultAssemblyProperty, DefaultBasicShapeProperty, DefaultBasicShapePropertyMap, DefaultClassProperty, DefaultCloudProperty, DefaultCombinedFragmentProperty, DefaultComponentBoxProperty, DefaultConnectorProperty, DefaultContainerProperty, DefaultDataBaseProperty, DefaultDataProperty, DefaultDecisionProperty, DefaultDeletionProperty, DefaultDocumentProperty, DefaultDrawActiveStyle, DefaultDrawStyle, DefaultFlowchartProperty, DefaultFlowchartPropertyMap, DefaultInterfaceProperty, DefaultInternalStorageProperty, DefaultLineStyle, DefaultManualInputProperty, DefaultMergeProperty, DefaultMultiDocumentProperty, DefaultNoteProperty, DefaultObjectProperty, DefaultPackageProperty, DefaultPentagonArrowProperty, DefaultPortProperty, DefaultProvidedInterfaceProperty, DefaultRequiredInterfaceProperty, DefaultSwimlaneHorizontalProperty, DefaultSwimlaneHorizontalWithHeaderProperty, DefaultSwimlanePropertyMap, DefaultSwimlaneVerticalProperty, DefaultSwimlaneVerticalWithHeaderProperty, DefaultTextProperty, DefaultTwoWayArrowProperty, DefaultUMLPropertyMap, DrawI18nKey, DrawThemeColors, DrawTransforms, FlowchartSymbols, GEOMETRY_NOT_CLOSED, GEOMETRY_WITHOUT_TEXT, GEOMETRY_WITH_MULTIPLE_TEXT, GeometryCommonTextKeys, GeometryComponent, GeometryShapeGenerator, GeometryThreshold, KEY_TO_TEXT_MANAGE, LINE_ALIGN_TOLERANCE, LINE_AUTO_COMPLETE_DIAMETER, LINE_AUTO_COMPLETE_HOVERED_DIAMETER, LINE_AUTO_COMPLETE_HOVERED_OPACITY, LINE_AUTO_COMPLETE_OPACITY, LINE_HIT_GEOMETRY_BUFFER, LINE_SNAPPING_BUFFER, LINE_SNAPPING_CONNECTOR_BUFFER, LINE_TEXT, LINE_TEXT_SPACE, LineActiveGenerator, MIN_TEXT_WIDTH, MemorizeKey, MultipleTextGeometryTextKeys, PlaitArrowLine, PlaitDrawElement, PlaitGeometry, PlaitTableElement, Q2C, SELECTED_CELLS, SWIMLANE_HEADER_SIZE, ShapeDefaultSpace, SingleTextGenerator, SwimlaneDrawSymbols, SwimlaneSymbols, TableGenerator, TableSymbols, TextGenerator, UMLSymbols, VectorLineComponent, VectorLinePointerType, VectorLineShape, WithArrowLineAutoCompletePluginKey, WithDrawPluginKey, adjustSwimlaneShape, alignElbowSegment, alignPoints, buildClipboardData, buildDefaultTextsByShape, buildSwimlaneTable, clearSelectedCells, collectArrowLineUpdatedRefsByGeometry, createArrowLineElement, createCell, createDefaultCells, createDefaultGeometry, createDefaultRowsOrColumns, createDefaultSwimlane, createGeometryElement, createGeometryElementWithText, createGeometryElementWithoutText, createMultipleTextGeometryElement, createTextElement, createUMLClassOrInterfaceGeometryElement, createVectorLineElement, debugGenerator$1 as debugGenerator, deleteTextManage, drawArrowLine, drawArrowLineArrow, drawBoundReaction, drawGeometry, drawShape, drawVectorLine, editCell, editText, getArrowLineHandleRefPair, getArrowLinePointers, getArrowLinePoints, getArrowLineTextRectangle, getArrowLines, getAutoCompletePoints, getBasicPointers, getCellWithPoints, getCellsRectangle, getCellsWithPoints, getCenterPointsOnPolygon, getConnectionPoint, getCurvePoints, getDefaultBasicShapeProperty, getDefaultFlowchartProperty, getDefaultGeometryPoints, getDefaultGeometryProperty, getDefaultGeometryText, getDefaultSwimlanePoints, getDefaultTextPoints, getDefaultUMLProperty, getDrawDefaultStrokeColor, getElbowLineRouteOptions, getElbowPoints, getFillByElement, getFirstFilledDrawElement, getFlowchartDefaultFill, getFlowchartPointers, getGeometryAlign, getGeometryPointers, getHitCell, getHitConnection, getHitConnectionFromConnectionPoint, getHitConnectorPoint, getHitDrawElement, getHitIndexOfAutoCompletePoint, getHitMultipleGeometryText, getHitShape, getIndexAndDeleteCountByKeyPoint, getLineMemorizedLatest, getMemorizeKey, getMemorizedLatestByPointer, getMemorizedLatestShape, getMidKeyPoints, getMiddlePoints, getMirrorDataPoints, getMultipleTextGeometryTextKeys, getNearestPoint, getNextRenderPoints, getNextSourceAndTargetPoints, getResizedPreviousAndNextPoint, getSelectedArrowLineElements, getSelectedCells, getSelectedCustomGeometryElements, getSelectedDrawElements, getSelectedGeometryElements, getSelectedImageElements, getSelectedSwimlane, getSelectedTableCellsEditor, getSelectedTableElements, getSelectedVectorLineElements, getSnapResizingRef, getSnapResizingRefOptions, getSnappingRef, getSnappingShape, getSolidElements, getSourceAndTargetRectangle, getStrokeColorByElement, getStrokeStyleByElement, getStrokeWidthByElement, getSwimlaneCount, getSwimlanePointers, getSwimlaneShapes, getTextKey, getTextManage, getTextManageByCell, getTextRectangle$1 as getTextRectangle, getTextShapeProperty, getUMLPointers, getVectorByConnection, getVectorLinePointers, getVectorLinePoints, handleArrowLineCreating, hasIllegalElbowPoint, insertClipboardData, insertElement, isCellIncludeText, isClosedCustomGeometry, isClosedDrawElement, isClosedPoints, isDrawElementIncludeText, isDrawElementsIncludeText, isEmptyTextElement, isFilledDrawElement, isGeometryClosed, isGeometryIncludeText, isHitArrowLine, isHitArrowLineText, isHitDrawElement, isHitEdgeOfShape, isHitElementInside, isHitElementText, isHitPolyLine, isHitVectorLine, isInsideOfShape, isMultipleTextGeometry, isMultipleTextShape, isRectangleHitDrawElement, isRectangleHitElementText, isRectangleHitRotatedElement, isRectangleHitRotatedPoints, isSelfLoop, isSingleSelectLine, isSingleSelectSwimlane, isSingleSelectTable, isSingleTextGeometry, isSingleTextShape, isSwimlanePointers, isSwimlaneShape, isSwimlaneWithHeader, isUpdatedHandleIndex, isUseDefaultOrthogonalRoute, memorizeLatestShape, memorizeLatestText, setSelectedCells, setTextManage, traverseDrawShapes, updateCellIds, updateCellIdsByRowOrColumn, updateColumns, updateRowOrColumnIds, updateRows, vectorLineCreating, withArrowLineAutoComplete, withDraw };
9269
+ export { ArrowLineAutoCompleteGenerator, ArrowLineComponent, ArrowLineHandleKey, ArrowLineMarkerType, ArrowLineShape, BOARD_TO_PRE_COMMIT, BasicShapes, DEFAULT_IMAGE_WIDTH, DefaultActivationProperty, DefaultActorProperty, DefaultArrowProperty, DefaultAssemblyProperty, DefaultBasicShapeProperty, DefaultBasicShapePropertyMap, DefaultClassProperty, DefaultCloudProperty, DefaultCombinedFragmentProperty, DefaultComponentBoxProperty, DefaultConnectorProperty, DefaultContainerProperty, DefaultDataBaseProperty, DefaultDataProperty, DefaultDecisionProperty, DefaultDeletionProperty, DefaultDocumentProperty, DefaultDrawActiveStyle, DefaultDrawStyle, DefaultFlowchartProperty, DefaultFlowchartPropertyMap, DefaultInterfaceProperty, DefaultInternalStorageProperty, DefaultLineStyle, DefaultManualInputProperty, DefaultMergeProperty, DefaultMultiDocumentProperty, DefaultNoteProperty, DefaultObjectProperty, DefaultPackageProperty, DefaultPentagonArrowProperty, DefaultPortProperty, DefaultProvidedInterfaceProperty, DefaultRequiredInterfaceProperty, DefaultSwimlaneHorizontalProperty, DefaultSwimlaneHorizontalWithHeaderProperty, DefaultSwimlanePropertyMap, DefaultSwimlaneVerticalProperty, DefaultSwimlaneVerticalWithHeaderProperty, DefaultTextProperty, DefaultTwoWayArrowProperty, DefaultUMLPropertyMap, DrawI18nKey, DrawThemeColors, DrawTransforms, FlowchartSymbols, GEOMETRY_NOT_CLOSED, GEOMETRY_WITHOUT_TEXT, GEOMETRY_WITH_MULTIPLE_TEXT, GeometryCommonTextKeys, GeometryComponent, GeometryShapeGenerator, GeometryThreshold, KEY_TO_TEXT_MANAGE, LINE_ALIGN_TOLERANCE, LINE_AUTO_COMPLETE_DIAMETER, LINE_AUTO_COMPLETE_HOVERED_DIAMETER, LINE_AUTO_COMPLETE_HOVERED_OPACITY, LINE_AUTO_COMPLETE_OPACITY, LINE_HIT_GEOMETRY_BUFFER, LINE_SNAPPING_BUFFER, LINE_SNAPPING_CONNECTOR_BUFFER, LINE_TEXT, LINE_TEXT_SPACE, LineActiveGenerator, MIN_TEXT_WIDTH, MemorizeKey, MultipleTextGeometryTextKeys, PlaitArrowLine, PlaitDrawElement, PlaitGeometry, PlaitTableElement, Q2C, SELECTED_CELLS, SWIMLANE_HEADER_SIZE, ShapeDefaultSpace, SingleTextGenerator, SwimlaneDrawSymbols, SwimlaneSymbols, TableGenerator, TableSymbols, TextGenerator, UMLSymbols, VectorLineComponent, VectorLinePointerType, VectorLineShape, WithArrowLineAutoCompletePluginKey, WithDrawPluginKey, adjustSwimlaneShape, alignElbowSegment, alignPoints, buildClipboardData, buildDefaultTextsByShape, buildSwimlaneTable, clearSelectedCells, collectArrowLineUpdatedRefsByGeometry, createArrowLineElement, createCell, createDefaultCells, createDefaultGeometry, createDefaultRowsOrColumns, createDefaultSwimlane, createGeometryElement, createGeometryElementWithText, createGeometryElementWithoutText, createMultipleTextGeometryElement, createTextElement, createUMLClassOrInterfaceGeometryElement, createVectorLineElement, debugGenerator$1 as debugGenerator, deleteTextManage, drawArrowLine, drawArrowLineArrow, drawBoundReaction, drawGeometry, drawShape, drawVectorLine, editCell, editText, getArrowLineHandleRefPair, getArrowLinePointers, getArrowLinePoints, getArrowLineTextRectangle, getArrowLines, getAutoCompletePoints, getBasicPointers, getCellWithPoints, getCellsRectangle, getCellsWithPoints, getCenterPointsOnPolygon, getConnectionPoint, getCurvePoints, getCustomTextRectangle, getDefaultBasicShapeProperty, getDefaultFlowchartProperty, getDefaultGeometryPoints, getDefaultGeometryProperty, getDefaultGeometryText, getDefaultSwimlanePoints, getDefaultTextPoints, getDefaultUMLProperty, getDrawDefaultStrokeColor, getElbowLineRouteOptions, getElbowPoints, getFillByElement, getFirstFilledDrawElement, getFlowchartDefaultFill, getFlowchartPointers, getGeometryAlign, getGeometryPointers, getHitCell, getHitConnection, getHitConnectionFromConnectionPoint, getHitConnectorPoint, getHitDrawElement, getHitIndexOfAutoCompletePoint, getHitMultipleGeometryText, getHitShape, getIndexAndDeleteCountByKeyPoint, getLineMemorizedLatest, getMemorizeKey, getMemorizedLatestByPointer, getMemorizedLatestShape, getMidKeyPoints, getMiddlePoints, getMirrorDataPoints, getMultipleTextGeometryTextKeys, getNearestPoint, getNextRenderPoints, getNextSourceAndTargetPoints, getResizedPreviousAndNextPoint, getSelectedArrowLineElements, getSelectedCells, getSelectedCustomGeometryElements, getSelectedDrawElements, getSelectedGeometryElements, getSelectedImageElements, getSelectedSwimlane, getSelectedTableCellsEditor, getSelectedTableElements, getSelectedVectorLineElements, getSnapResizingRef, getSnapResizingRefOptions, getSnappingRef, getSnappingShape, getSolidElements, getSourceAndTargetRectangle, getStrokeColorByElement, getStrokeStyleByElement, getStrokeWidthByElement, getSwimlaneCount, getSwimlanePointers, getSwimlaneShapes, getTextKey, getTextManage, getTextManageByCell, getTextRectangle$1 as getTextRectangle, getTextShapeProperty, getUMLPointers, getVectorByConnection, getVectorLinePointers, getVectorLinePoints, handleArrowLineCreating, hasIllegalElbowPoint, insertClipboardData, insertElement, isCellIncludeText, isClosedCustomGeometry, isClosedDrawElement, isClosedPoints, isDrawElementIncludeText, isDrawElementsIncludeText, isEmptyTextElement, isFilledDrawElement, isGeometryClosed, isGeometryIncludeText, isHitArrowLine, isHitArrowLineText, isHitDrawElement, isHitEdgeOfShape, isHitElementInside, isHitElementText, isHitPolyLine, isHitVectorLine, isInsideOfShape, isMultipleTextGeometry, isMultipleTextShape, isRectangleHitDrawElement, isRectangleHitElementText, isRectangleHitRotatedElement, isRectangleHitRotatedPoints, isSelfLoop, isSingleSelectLine, isSingleSelectSwimlane, isSingleSelectTable, isSingleTextGeometry, isSingleTextShape, isSwimlanePointers, isSwimlaneShape, isSwimlaneWithHeader, isUpdatedHandleIndex, isUseDefaultOrthogonalRoute, memorizeLatestShape, memorizeLatestText, setSelectedCells, setTextManage, traverseDrawShapes, updateCellIds, updateCellIdsByRowOrColumn, updateColumns, updateRowOrColumnIds, updateRows, vectorLineCreating, withArrowLineAutoComplete, withDraw };
9389
9270
  //# sourceMappingURL=plait-draw.mjs.map