@abidibo/react-cam-roi 0.2.6 → 0.2.8
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/index.cjs.js
CHANGED
@@ -250,7 +250,7 @@ var validate = function (configuration, shapes, metadata, strings) {
|
|
250
250
|
case OperatorEnum.Eq:
|
251
251
|
if ((metadata.rois || []).filter(function (m) { return m.role === roi.role; }).length !== roi.multiplicity.threshold) {
|
252
252
|
errors.push(formatString(strings.shapesOfRoleShouldBeEqualToThreshold, {
|
253
|
-
role: String(roi.
|
253
|
+
role: String(roi.label),
|
254
254
|
threshold: roi.multiplicity.threshold,
|
255
255
|
}));
|
256
256
|
}
|
@@ -258,7 +258,7 @@ var validate = function (configuration, shapes, metadata, strings) {
|
|
258
258
|
case OperatorEnum.Lt:
|
259
259
|
if ((metadata.rois || []).filter(function (m) { return m.role === roi.role; }).length >= roi.multiplicity.threshold) {
|
260
260
|
errors.push(formatString(strings.shapesOfRoleShouldBeLessThanThreshold, {
|
261
|
-
role: String(roi.
|
261
|
+
role: String(roi.label),
|
262
262
|
threshold: roi.multiplicity.threshold,
|
263
263
|
}));
|
264
264
|
}
|
@@ -533,12 +533,12 @@ var DefaultUiContext = {
|
|
533
533
|
pointer: 'Selection',
|
534
534
|
pointerHelpText: 'click a shape to select it',
|
535
535
|
requiredField: 'This field is required',
|
536
|
-
roiMultiplicityEqRule: 'a number of {role} ({type}) equal to {threshold}',
|
537
|
-
roiMultiplicityGtRule: 'a number of {role} ({type}) greater than {threshold}',
|
538
|
-
roiMultiplicityGteRule: 'a number of {role} ({type}) greater than or equal to {threshold}',
|
539
|
-
roiMultiplicityLtRule: 'a number of {role} ({type}) less than {threshold}',
|
540
|
-
roiMultiplicityLteRule: 'a number of {role} ({type}) less than or equal to {threshold}',
|
541
|
-
roiMultiplicityNoRule: 'a number of {role} ({type})',
|
536
|
+
roiMultiplicityEqRule: 'a number of "{role}" ({type}) equal to {threshold}',
|
537
|
+
roiMultiplicityGtRule: 'a number of "{role}" ({type}) greater than {threshold}',
|
538
|
+
roiMultiplicityGteRule: 'a number of "{role}" ({type}) greater than or equal to {threshold}',
|
539
|
+
roiMultiplicityLtRule: 'a number of "{role}" ({type}) less than {threshold}',
|
540
|
+
roiMultiplicityLteRule: 'a number of "{role}" ({type}) less than or equal to {threshold}',
|
541
|
+
roiMultiplicityNoRule: 'a number of "{role}" ({type})',
|
542
542
|
roisToBeDrawn: 'ROIs to be drawn',
|
543
543
|
role: 'Role',
|
544
544
|
save: 'Save',
|
@@ -752,6 +752,7 @@ var handleDoubleClickPolygon = function (editorId, canvas, activeColor, setIsDra
|
|
752
752
|
fill: 'transparent',
|
753
753
|
stroke: activeColor,
|
754
754
|
strokeWidth: 2,
|
755
|
+
strokeUniform: true,
|
755
756
|
selectable: false,
|
756
757
|
hasControls: true,
|
757
758
|
hoverCursor: 'default',
|
@@ -828,6 +829,7 @@ var handleDoubleClickPolyline = function (editorId, canvas, activeColor, setIsDr
|
|
828
829
|
fill: 'transparent',
|
829
830
|
stroke: activeColor,
|
830
831
|
strokeWidth: 2,
|
832
|
+
strokeUniform: true,
|
831
833
|
selectable: false,
|
832
834
|
hasControls: true,
|
833
835
|
lockRotation: false,
|
@@ -852,6 +854,7 @@ var copyPolyline = function (editorId, canvas, polyline) {
|
|
852
854
|
fill: 'transparent',
|
853
855
|
stroke: polyline.stroke,
|
854
856
|
strokeWidth: polyline.strokeWidth,
|
857
|
+
strokeUniform: true,
|
855
858
|
selectable: false,
|
856
859
|
hasControls: true,
|
857
860
|
hoverCursor: 'default',
|
@@ -1025,6 +1028,7 @@ var initCanvasData = function (canvasRef, imageSize, addShapes, metadata, setMet
|
|
1025
1028
|
fill: 'transparent',
|
1026
1029
|
stroke: r.shape.color,
|
1027
1030
|
strokeWidth: 2,
|
1031
|
+
strokeUniform: true,
|
1028
1032
|
selectable: false,
|
1029
1033
|
hasControls: true,
|
1030
1034
|
hoverCursor: 'default',
|
@@ -1051,6 +1055,7 @@ var initCanvasData = function (canvasRef, imageSize, addShapes, metadata, setMet
|
|
1051
1055
|
fill: 'transparent',
|
1052
1056
|
stroke: r.shape.color,
|
1053
1057
|
strokeWidth: 2,
|
1058
|
+
strokeUniform: true,
|
1054
1059
|
selectable: false,
|
1055
1060
|
hasControls: true,
|
1056
1061
|
hoverCursor: 'default',
|