@plait/draw 0.92.0-next.0 → 0.92.0-next.2
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/fesm2022/plait-draw.mjs.map +1 -1
- package/index.d.ts +18 -18
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -987,6 +987,9 @@ declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
987
987
|
} | {
|
|
988
988
|
width: number;
|
|
989
989
|
height: number;
|
|
990
|
+
} | {
|
|
991
|
+
width: number;
|
|
992
|
+
height: number;
|
|
990
993
|
} | {
|
|
991
994
|
width: number;
|
|
992
995
|
height: number;
|
|
@@ -998,12 +1001,25 @@ declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
998
1001
|
} | {
|
|
999
1002
|
width: number;
|
|
1000
1003
|
height: number;
|
|
1004
|
+
texts: {
|
|
1005
|
+
id: _plait_draw.GeometryCommonTextKeys;
|
|
1006
|
+
text: string;
|
|
1007
|
+
align: Alignment;
|
|
1008
|
+
}[];
|
|
1001
1009
|
} | {
|
|
1002
1010
|
width: number;
|
|
1003
1011
|
height: number;
|
|
1012
|
+
texts: {
|
|
1013
|
+
text: string;
|
|
1014
|
+
align: Alignment;
|
|
1015
|
+
}[];
|
|
1004
1016
|
} | {
|
|
1005
1017
|
width: number;
|
|
1006
1018
|
height: number;
|
|
1019
|
+
texts: {
|
|
1020
|
+
text: string;
|
|
1021
|
+
align: Alignment;
|
|
1022
|
+
}[];
|
|
1007
1023
|
} | {
|
|
1008
1024
|
width: number;
|
|
1009
1025
|
height: number;
|
|
@@ -1022,25 +1038,9 @@ declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
1022
1038
|
} | {
|
|
1023
1039
|
width: number;
|
|
1024
1040
|
height: number;
|
|
1025
|
-
texts: {
|
|
1026
|
-
id: _plait_draw.GeometryCommonTextKeys;
|
|
1027
|
-
text: string;
|
|
1028
|
-
align: Alignment;
|
|
1029
|
-
}[];
|
|
1030
|
-
} | {
|
|
1031
|
-
width: number;
|
|
1032
|
-
height: number;
|
|
1033
|
-
texts: {
|
|
1034
|
-
text: string;
|
|
1035
|
-
align: Alignment;
|
|
1036
|
-
}[];
|
|
1037
1041
|
} | {
|
|
1038
1042
|
width: number;
|
|
1039
1043
|
height: number;
|
|
1040
|
-
texts: {
|
|
1041
|
-
text: string;
|
|
1042
|
-
align: Alignment;
|
|
1043
|
-
}[];
|
|
1044
1044
|
};
|
|
1045
1045
|
declare const getAutoCompletePoints: (board: PlaitBoard, element: PlaitShapeElement, isToActive?: boolean) => [Point, Point, Point, Point];
|
|
1046
1046
|
declare const getHitIndexOfAutoCompletePoint: (movingPoint: Point, points: Point[]) => number;
|
|
@@ -1102,7 +1102,7 @@ declare const isRectangleHitRotatedPoints: (rectangle: RectangleClient, points:
|
|
|
1102
1102
|
declare const getHitDrawElement: (board: PlaitBoard, elements: (PlaitDrawElement | PlaitCustomGeometry)[]) => PlaitElement;
|
|
1103
1103
|
declare const getFirstFilledDrawElement: (board: PlaitBoard, elements: (PlaitDrawElement | PlaitCustomGeometry)[]) => PlaitGeometry | PlaitCustomGeometry<string, Point[], string> | null;
|
|
1104
1104
|
declare const isFilledDrawElement: (board: PlaitBoard, element: PlaitDrawElement | PlaitCustomGeometry) => boolean;
|
|
1105
|
-
declare const getSolidElements: (elements: PlaitElement[]) => (PlaitLine | _plait_draw.PlaitText | PlaitImage)[] | null;
|
|
1105
|
+
declare const getSolidElements: (elements: PlaitElement[]) => (PlaitLine | _plait_draw.PlaitText | _plait_draw.PlaitImage)[] | null;
|
|
1106
1106
|
declare const isHitDrawElement: (board: PlaitBoard, element: PlaitElement, point: Point, isStrict?: boolean) => boolean | null;
|
|
1107
1107
|
declare const isHitEdgeOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
|
|
1108
1108
|
declare const isInsideOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
|
|
@@ -1413,4 +1413,4 @@ declare class TableGenerator<T extends PlaitElement = PlaitBaseTable> extends Ge
|
|
|
1413
1413
|
}
|
|
1414
1414
|
|
|
1415
1415
|
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, 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, 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 };
|
|
1416
|
-
export type { ActiveData, ArrowLineAutoCompleteOptions, ArrowLineHandle, ArrowLineHandleRef, ArrowLineHandleRefPair, ArrowLineText, DrawOptions, DrawPointerType, DrawShapes, DrawTextInfo, GeometryShapes, GeometryStyleOptions, PlaitBaseGeometry, PlaitBaseTable, PlaitCommonGeometry, PlaitCurveArrowLine, PlaitCustomGeometry, PlaitDiamond, PlaitElbowArrowLine, PlaitEllipse, PlaitMultipleTextGeometry, PlaitRectangle, PlaitShapeElement, PlaitStraightArrowLine, PlaitSwimlane, PlaitSwimlaneHorizontal, PlaitSwimlaneVertical, PlaitTable, PlaitTableBoard, PlaitTableCell, PlaitTableCellParagraph, PlaitTableCellWithPoints, PlaitTableDrawOptions, PlaitText, PlaitVectorLine, PreCommitRef, ResizeSnapOptions, ResizeSnapRef, ShapeData, ShapeEngine, SwimlaneDirection, TableData, TextGeneratorOptions, TextProperties, TextRectangleOptions, WithDrawOptions };
|
|
1416
|
+
export type { ActiveData, ArrowLineAutoCompleteOptions, ArrowLineHandle, ArrowLineHandleRef, ArrowLineHandleRefPair, ArrowLineText, DrawOptions, DrawPointerType, DrawShapes, DrawTextInfo, GeometryShapes, GeometryStyleOptions, PlaitBaseGeometry, PlaitBaseTable, PlaitCommonGeometry, PlaitCommonImage, PlaitCurveArrowLine, PlaitCustomGeometry, PlaitDiamond, PlaitElbowArrowLine, PlaitEllipse, PlaitImage, PlaitMultipleTextGeometry, PlaitRectangle, PlaitShapeElement, PlaitStraightArrowLine, PlaitSwimlane, PlaitSwimlaneHorizontal, PlaitSwimlaneVertical, PlaitTable, PlaitTableBoard, PlaitTableCell, PlaitTableCellParagraph, PlaitTableCellWithPoints, PlaitTableDrawOptions, PlaitText, PlaitVectorLine, PreCommitRef, ResizeSnapOptions, ResizeSnapRef, ShapeData, ShapeEngine, SwimlaneDirection, TableData, TextGeneratorOptions, TextProperties, TextRectangleOptions, WithDrawOptions };
|