@oliasoft-open-source/charts-library 4.7.0-beta-3 → 4.7.0-beta-4
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.js +25 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23130,28 +23130,31 @@ const DragOptions = ({
|
|
|
23130
23130
|
dragToMoveAnnotation
|
|
23131
23131
|
}
|
|
23132
23132
|
}) => {
|
|
23133
|
-
const options =
|
|
23134
|
-
|
|
23135
|
-
|
|
23136
|
-
|
|
23137
|
-
|
|
23138
|
-
|
|
23139
|
-
|
|
23140
|
-
|
|
23141
|
-
|
|
23142
|
-
|
|
23143
|
-
|
|
23144
|
-
|
|
23145
|
-
|
|
23146
|
-
|
|
23147
|
-
|
|
23148
|
-
|
|
23149
|
-
|
|
23150
|
-
|
|
23151
|
-
|
|
23152
|
-
|
|
23153
|
-
|
|
23154
|
-
|
|
23133
|
+
const options = useMemo(
|
|
23134
|
+
() => getDragOptions({
|
|
23135
|
+
onTogglePan,
|
|
23136
|
+
onToggleZoom,
|
|
23137
|
+
panEnabled,
|
|
23138
|
+
zoomEnabled,
|
|
23139
|
+
enableDragPoints,
|
|
23140
|
+
enableDragAnnotation,
|
|
23141
|
+
isDragDataAllowed,
|
|
23142
|
+
isDragAnnotationAllowed,
|
|
23143
|
+
onToggleDragAnnotation,
|
|
23144
|
+
onToggleDragPoints,
|
|
23145
|
+
onDisableDragOptions,
|
|
23146
|
+
translations: {
|
|
23147
|
+
dragToZoom,
|
|
23148
|
+
doubleClickToReset,
|
|
23149
|
+
dragToPan,
|
|
23150
|
+
orDoubleClickToCanvas,
|
|
23151
|
+
dragToMovePoints,
|
|
23152
|
+
dragDisabled,
|
|
23153
|
+
dragToMoveAnnotation
|
|
23154
|
+
}
|
|
23155
|
+
}),
|
|
23156
|
+
[zoomEnabled, panEnabled, enableDragPoints, isDragDataAllowed]
|
|
23157
|
+
);
|
|
23155
23158
|
const selectedOption = options.find((option) => option.selected);
|
|
23156
23159
|
const optionsWithDragPoints = options.map(
|
|
23157
23160
|
({ icon, label, onClick, selected }) => ({
|