orcasvn-react-diagrams 0.1.56 → 0.1.57
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/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -8319,7 +8319,7 @@ var Port1 = React.forwardRef(function (props, ref) {
|
|
|
8319
8319
|
var renderedShape = React.useMemo(function () {
|
|
8320
8320
|
if (renderShape) {
|
|
8321
8321
|
var RenderShape = renderShape;
|
|
8322
|
-
return (React.createElement(RenderShape, __assign({ ref: ref }, props, { rotation: rotationAngle
|
|
8322
|
+
return (React.createElement(RenderShape, __assign({ ref: ref }, props, { rotation: rotationAngle }), children));
|
|
8323
8323
|
}
|
|
8324
8324
|
else {
|
|
8325
8325
|
return React.createElement(Circle, { onMouseDown: function (e) { return onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(id, e); }, onMouseUp: function (e) { return onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(id, e); }, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseMove: function (e) { return onMouseMove === null || onMouseMove === void 0 ? void 0 : onMouseMove(id, e); }, onClick: function (e) { return onSelected === null || onSelected === void 0 ? void 0 : onSelected(id, e); }, onContextMenu: function (e) { return onContextMenu === null || onContextMenu === void 0 ? void 0 : onContextMenu(id, e); }, ref: ref, x: x, y: y, positioningAnchor: exports.PositioningAnchor.Center, height: height, width: width, stroke: "black", fill: "black" }, children);
|
package/dist/esm/index.js
CHANGED
|
@@ -8315,7 +8315,7 @@ var Port1 = forwardRef(function (props, ref) {
|
|
|
8315
8315
|
var renderedShape = useMemo(function () {
|
|
8316
8316
|
if (renderShape) {
|
|
8317
8317
|
var RenderShape = renderShape;
|
|
8318
|
-
return (React.createElement(RenderShape, __assign({ ref: ref }, props, { rotation: rotationAngle
|
|
8318
|
+
return (React.createElement(RenderShape, __assign({ ref: ref }, props, { rotation: rotationAngle }), children));
|
|
8319
8319
|
}
|
|
8320
8320
|
else {
|
|
8321
8321
|
return React.createElement(Circle, { onMouseDown: function (e) { return onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(id, e); }, onMouseUp: function (e) { return onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(id, e); }, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseMove: function (e) { return onMouseMove === null || onMouseMove === void 0 ? void 0 : onMouseMove(id, e); }, onClick: function (e) { return onSelected === null || onSelected === void 0 ? void 0 : onSelected(id, e); }, onContextMenu: function (e) { return onContextMenu === null || onContextMenu === void 0 ? void 0 : onContextMenu(id, e); }, ref: ref, x: x, y: y, positioningAnchor: PositioningAnchor.Center, height: height, width: width, stroke: "black", fill: "black" }, children);
|