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