@solostylist/image-editor 1.0.13 → 1.0.15
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/lib/actions/add-filter.js +2 -1
- package/lib/actions/enable-text-content-edit.js +2 -1
- package/lib/actions/set-canvas-size.d.ts.map +1 -1
- package/lib/actions/set-crop.js +6 -1
- package/lib/actions/set-shown-image-dimensions.js +3 -2
- package/lib/components/app/index.d.ts.map +1 -1
- package/lib/components/app/index.js +111 -41
- package/lib/components/assembly-point/index.d.ts +1 -2
- package/lib/components/assembly-point/index.d.ts.map +1 -1
- package/lib/components/assembly-point/index.js +1 -5
- package/lib/components/common/annotation-options/index.js +3 -3
- package/lib/components/common/annotation-options/shadow-fields.js +2 -2
- package/lib/components/common/color-picker-modal/index.js +1 -1
- package/lib/components/common/icon-wrapper/index.js +1 -1
- package/lib/components/common/image-preview-tile/index.js +1 -1
- package/lib/components/common/slider/index.js +4 -4
- package/lib/components/feedback-popup/index.js +2 -2
- package/lib/components/layers/design-layer/index.d.ts.map +1 -1
- package/lib/components/layers/design-layer/index.js +11 -8
- package/lib/components/layers/transformers-layer/crop-transformer.js +3 -2
- package/lib/components/layers/transformers-layer/index.js +3 -2
- package/lib/components/main-canvas/canvas-node.d.ts.map +1 -1
- package/lib/components/main-canvas/canvas-node.js +8 -6
- package/lib/components/main-canvas/index.d.ts.map +1 -1
- package/lib/components/main-canvas/index.js +135 -33
- package/lib/components/main-canvas/touch-zooming-events.js +3 -2
- package/lib/components/node-controls/index.d.ts.map +1 -1
- package/lib/components/node-controls/index.js +4 -3
- package/lib/components/tabs/index.d.ts.map +1 -1
- package/lib/components/tabs/index.js +165 -23
- package/lib/components/tabs-drawer/index.d.ts +3 -3
- package/lib/components/tabs-drawer/index.d.ts.map +1 -1
- package/lib/components/tabs-drawer/index.js +66 -43
- package/lib/components/tools/crop/crop.d.ts.map +1 -1
- package/lib/components/tools/crop/crop.js +3 -3
- package/lib/components/tools/filters/filter-item.d.ts +4 -3
- package/lib/components/tools/filters/filter-item.d.ts.map +1 -1
- package/lib/components/tools/filters/filter-item.js +4 -1
- package/lib/components/tools/filters/filters.constants.d.ts +2 -2
- package/lib/components/tools/filters/filters.constants.d.ts.map +1 -1
- package/lib/components/tools/filters/filters.d.ts +4 -1
- package/lib/components/tools/filters/filters.d.ts.map +1 -1
- package/lib/components/tools/filters/filters.js +9 -3
- package/lib/components/tools/image/image-options.js +5 -4
- package/lib/components/tools/image/images-gallery.js +1 -1
- package/lib/components/tools/pen/pen-options.js +4 -3
- package/lib/components/tools/resize/resize.d.ts +1 -1
- package/lib/components/tools/resize/resize.d.ts.map +1 -1
- package/lib/components/tools/resize/resize.js +5 -2
- package/lib/components/tools/rotate/rotate-options.js +1 -1
- package/lib/components/tools/text/text-options/handle-text-change-area.d.ts.map +1 -1
- package/lib/components/tools/text/text-options/text-alignment-fields.js +1 -1
- package/lib/components/tools/text/text-options/text-controls.js +8 -6
- package/lib/components/tools/tools.constants.d.ts +2 -2
- package/lib/components/tools/tools.constants.d.ts.map +1 -1
- package/lib/components/tools/watermark/watermark-padding.js +2 -1
- package/lib/components/tools/watermark/watermark.js +9 -8
- package/lib/components/tools-bar/index.d.ts.map +1 -1
- package/lib/components/tools-bar/index.js +47 -22
- package/lib/components/tools-bar/tools-bar-item-button.d.ts.map +1 -1
- package/lib/components/tools-bar/tools-bar-item-button.js +8 -3
- package/lib/components/topbar/canvas-zooming.d.ts.map +1 -1
- package/lib/components/topbar/canvas-zooming.js +5 -5
- package/lib/components/topbar/confirmation-modal.js +2 -2
- package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts.map +1 -1
- package/lib/components/topbar/image-dimensions-and-display-toggle.js +8 -6
- package/lib/components/topbar/index.d.ts.map +1 -1
- package/lib/components/topbar/index.js +33 -24
- package/lib/components/topbar/redo-button.js +1 -1
- package/lib/components/topbar/reset-button.js +1 -1
- package/lib/components/topbar/save-button.js +9 -6
- package/lib/components/topbar/topbar-action-buttons.d.ts +3 -0
- package/lib/components/topbar/topbar-action-buttons.d.ts.map +1 -0
- package/lib/components/topbar/topbar-action-buttons.js +27 -0
- package/lib/components/topbar/undo-button.js +1 -1
- package/lib/context/app-provider.d.ts.map +1 -1
- package/lib/context/app-provider.js +8 -6
- package/lib/context/app-reducer.js +2 -1
- package/lib/context/default-config.d.ts.map +1 -1
- package/lib/context/default-config.js +1 -1
- package/lib/context/default-translations.d.ts +1 -0
- package/lib/context/default-translations.d.ts.map +1 -1
- package/lib/context/default-translations.js +465 -113
- package/lib/context/get-initial-app-state.js +4 -4
- package/lib/custom/filters/moon.d.ts.map +1 -1
- package/lib/demo/app.d.ts.map +1 -1
- package/lib/demo/app.js +62 -18
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/index.js +2 -1
- package/lib/hooks/use-annotation/get-new-annotation-preview.js +2 -2
- package/lib/hooks/use-annotation/index.d.ts.map +1 -1
- package/lib/hooks/use-annotation/index.js +15 -2
- package/lib/hooks/use-annotation-events.d.ts.map +1 -1
- package/lib/hooks/use-app-reducer.d.ts.map +1 -1
- package/lib/hooks/use-app-reducer.js +2 -1
- package/lib/hooks/use-image-editor-actions.d.ts +16 -0
- package/lib/hooks/use-image-editor-actions.d.ts.map +1 -0
- package/lib/hooks/use-image-editor-actions.js +147 -0
- package/lib/hooks/use-resize-observer.d.ts.map +1 -1
- package/lib/hooks/use-resize-observer.js +2 -3
- package/lib/hooks/use-transformed-img-data.d.ts +1 -1
- package/lib/hooks/use-transformed-img-data.d.ts.map +1 -1
- package/lib/hooks/use-transformed-img-data.js +13 -9
- package/lib/types/actions.d.ts +0 -7
- package/lib/types/actions.d.ts.map +1 -1
- package/lib/types/config.d.ts +52 -3
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/state.d.ts +1 -1
- package/lib/types/state.d.ts.map +1 -1
- package/lib/utils/calculate-zoom-data.js +5 -4
- package/lib/utils/crop-image.d.ts +3 -1
- package/lib/utils/crop-image.d.ts.map +1 -1
- package/lib/utils/crop-image.js +10 -4
- package/lib/utils/extract-current-design-state.js +3 -2
- package/lib/utils/filter-str-to-class.js +2 -1
- package/lib/utils/finetunes-strs-to-classes.js +2 -1
- package/lib/utils/get-file-full-name.d.ts.map +1 -1
- package/lib/utils/get-file-full-name.js +3 -3
- package/lib/utils/get-pointer-offset-position-bounded-to-object.js +2 -1
- package/lib/utils/get-proper-dimensions.js +3 -2
- package/lib/utils/is-same-image.d.ts +1 -1
- package/lib/utils/is-same-image.d.ts.map +1 -1
- package/lib/utils/load-image.d.ts +1 -1
- package/lib/utils/load-image.d.ts.map +1 -1
- package/lib/utils/load-image.js +1 -3
- package/lib/utils/restrict-number.js +2 -2
- package/lib/utils/serialize-design-state.js +5 -3
- package/lib/utils/translator.d.ts +4 -1
- package/lib/utils/translator.d.ts.map +1 -1
- package/lib/utils/translator.js +11 -2
- package/package.json +14 -5
|
@@ -1,115 +1,467 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
export var translationsByLanguage = {
|
|
5
|
+
en: {
|
|
6
|
+
tabs: 'Tools',
|
|
7
|
+
name: 'Name',
|
|
8
|
+
save: 'Save',
|
|
9
|
+
saveAs: 'Save as',
|
|
10
|
+
back: 'Back',
|
|
11
|
+
loading: 'Loading...',
|
|
12
|
+
resetOperations: 'Reset/delete all operations',
|
|
13
|
+
changesLoseWarningHint: 'If you press button "reset" your changes will lost. Would you like to continue?',
|
|
14
|
+
discardChangesWarningHint: 'If you close modal, your last change will not be saved.',
|
|
15
|
+
cancel: 'Cancel',
|
|
16
|
+
apply: 'Apply',
|
|
17
|
+
warning: 'Warning',
|
|
18
|
+
confirm: 'Confirm',
|
|
19
|
+
discardChanges: 'Discard changes',
|
|
20
|
+
undoTitle: 'Undo last operation',
|
|
21
|
+
redoTitle: 'Redo last operation',
|
|
22
|
+
showImageTitle: 'Show original image',
|
|
23
|
+
zoomInTitle: 'Zoom in',
|
|
24
|
+
zoomOutTitle: 'Zoom out',
|
|
25
|
+
toggleZoomMenuTitle: 'Toggle zoom menu',
|
|
26
|
+
adjustTab: 'Adjust',
|
|
27
|
+
finetuneTab: 'Finetune',
|
|
28
|
+
filtersTab: 'Filters',
|
|
29
|
+
watermarkTab: 'Watermark',
|
|
30
|
+
annotateTabLabel: 'Annotate',
|
|
31
|
+
resize: 'Resize',
|
|
32
|
+
resizeTab: 'Resize',
|
|
33
|
+
imageName: 'Image name',
|
|
34
|
+
invalidImageError: 'Invalid image provided.',
|
|
35
|
+
uploadImageError: 'Error while uploading the image.',
|
|
36
|
+
areNotImages: 'are not images',
|
|
37
|
+
isNotImage: 'is not image',
|
|
38
|
+
toBeUploaded: 'to be uploaded',
|
|
39
|
+
cropTool: 'Crop',
|
|
40
|
+
original: 'Original',
|
|
41
|
+
custom: 'Custom',
|
|
42
|
+
square: 'Square',
|
|
43
|
+
landscape: 'Landscape',
|
|
44
|
+
portrait: 'Portrait',
|
|
45
|
+
ellipse: 'Ellipse',
|
|
46
|
+
classicTv: 'Classic TV',
|
|
47
|
+
cinemascope: 'Cinemascope',
|
|
48
|
+
arrowTool: 'Arrow',
|
|
49
|
+
blurTool: 'Blur',
|
|
50
|
+
brightnessTool: 'Brightness',
|
|
51
|
+
contrastTool: 'Contrast',
|
|
52
|
+
ellipseTool: 'Ellipse',
|
|
53
|
+
unFlipX: 'Un-Flip X',
|
|
54
|
+
flipX: 'Flip X',
|
|
55
|
+
unFlipY: 'Un-Flip Y',
|
|
56
|
+
flipY: 'Flip Y',
|
|
57
|
+
hsvTool: 'HSV',
|
|
58
|
+
hue: 'Hue',
|
|
59
|
+
brightness: 'Brightness',
|
|
60
|
+
saturation: 'Saturation',
|
|
61
|
+
value: 'Value',
|
|
62
|
+
imageTool: 'Image',
|
|
63
|
+
importing: 'Importing...',
|
|
64
|
+
addImage: 'Add image',
|
|
65
|
+
uploadImage: 'Upload image',
|
|
66
|
+
fromGallery: 'From gallery',
|
|
67
|
+
lineTool: 'Line',
|
|
68
|
+
penTool: 'Pen',
|
|
69
|
+
polygonTool: 'Polygon',
|
|
70
|
+
sides: 'Sides',
|
|
71
|
+
rectangleTool: 'Rectangle',
|
|
72
|
+
cornerRadius: 'Corner Radius',
|
|
73
|
+
resizeWidthTitle: 'Width in pixels',
|
|
74
|
+
resizeHeightTitle: 'Height in pixels',
|
|
75
|
+
toggleRatioLockTitle: 'Toggle ratio lock',
|
|
76
|
+
resetSize: 'Reset to original image size',
|
|
77
|
+
rotateTool: 'Rotate',
|
|
78
|
+
textTool: 'Text',
|
|
79
|
+
textSpacings: 'Text spacings',
|
|
80
|
+
textAlignment: 'Text alignment',
|
|
81
|
+
fontFamily: 'Font family',
|
|
82
|
+
size: 'Size',
|
|
83
|
+
letterSpacing: 'Letter Spacing',
|
|
84
|
+
lineHeight: 'Line height',
|
|
85
|
+
warmthTool: 'Warmth',
|
|
86
|
+
addWatermark: 'Add watermark',
|
|
87
|
+
addTextWatermark: 'Add text watermark',
|
|
88
|
+
addWatermarkTitle: 'Choose the watermark type',
|
|
89
|
+
uploadWatermark: 'Upload watermark',
|
|
90
|
+
addWatermarkAsText: 'Add as text',
|
|
91
|
+
padding: 'Padding',
|
|
92
|
+
paddings: 'Paddings',
|
|
93
|
+
shadow: 'Shadow',
|
|
94
|
+
horizontal: 'Horizontal',
|
|
95
|
+
vertical: 'Vertical',
|
|
96
|
+
blur: 'Blur',
|
|
97
|
+
opacity: 'Opacity',
|
|
98
|
+
transparency: 'Transparency',
|
|
99
|
+
position: 'Position',
|
|
100
|
+
stroke: 'Stroke',
|
|
101
|
+
saveAsModalTitle: 'Save as',
|
|
102
|
+
extension: 'Extension',
|
|
103
|
+
format: 'Format',
|
|
104
|
+
nameIsRequired: 'Name is required.',
|
|
105
|
+
quality: 'Quality',
|
|
106
|
+
imageDimensionsHoverTitle: 'Saved image size (width x height)',
|
|
107
|
+
cropSizeLowerThanResizedWarning: 'Note, the selected crop area is lower than the applied resize which might cause quality decrease',
|
|
108
|
+
actualSize: 'Actual size (100%)',
|
|
109
|
+
fitSize: 'Fit size',
|
|
110
|
+
addImageTitle: 'Select image to add...',
|
|
111
|
+
mutualizedFailedToLoadImg: 'Failed to load image.',
|
|
112
|
+
tabsMenu: 'Menu',
|
|
113
|
+
download: 'Download',
|
|
114
|
+
width: 'Width',
|
|
115
|
+
height: 'Height',
|
|
116
|
+
plus: '+',
|
|
117
|
+
cropItemNoEffect: 'No preview available for this crop item',
|
|
118
|
+
colorPickerModalTitleLabel: 'Pick color'
|
|
119
|
+
},
|
|
120
|
+
vi: {
|
|
121
|
+
tabs: 'Công cụ',
|
|
122
|
+
name: 'Tên',
|
|
123
|
+
save: 'Lưu',
|
|
124
|
+
saveAs: 'Lưu thành',
|
|
125
|
+
back: 'Quay lại',
|
|
126
|
+
loading: 'Đang tải...',
|
|
127
|
+
resetOperations: 'Đặt lại/xóa tất cả thao tác',
|
|
128
|
+
changesLoseWarningHint: 'Nếu bạn nhấn "đặt lại" thì thay đổi sẽ mất. Bạn có muốn tiếp tục?',
|
|
129
|
+
discardChangesWarningHint: 'Nếu bạn đóng cửa sổ, thay đổi gần nhất sẽ không được lưu.',
|
|
130
|
+
cancel: 'Hủy',
|
|
131
|
+
apply: 'Áp dụng',
|
|
132
|
+
warning: 'Cảnh báo',
|
|
133
|
+
confirm: 'Xác nhận',
|
|
134
|
+
discardChanges: 'Bỏ thay đổi',
|
|
135
|
+
undoTitle: 'Hoàn tác thao tác cuối',
|
|
136
|
+
redoTitle: 'Làm lại thao tác cuối',
|
|
137
|
+
showImageTitle: 'Hiển thị ảnh gốc',
|
|
138
|
+
zoomInTitle: 'Phóng to',
|
|
139
|
+
zoomOutTitle: 'Thu nhỏ',
|
|
140
|
+
toggleZoomMenuTitle: 'Bật/tắt menu zoom',
|
|
141
|
+
adjustTab: 'Điều chỉnh',
|
|
142
|
+
finetuneTab: 'Tinh chỉnh',
|
|
143
|
+
filtersTab: 'Bộ lọc',
|
|
144
|
+
watermarkTab: 'Hình mờ',
|
|
145
|
+
annotateTabLabel: 'Ghi chú',
|
|
146
|
+
resize: 'Đổi kích thước',
|
|
147
|
+
resizeTab: 'Đổi kích thước',
|
|
148
|
+
imageName: 'Tên ảnh',
|
|
149
|
+
invalidImageError: 'Ảnh không hợp lệ.',
|
|
150
|
+
uploadImageError: 'Lỗi khi tải ảnh lên.',
|
|
151
|
+
areNotImages: 'không phải ảnh',
|
|
152
|
+
isNotImage: 'không phải ảnh',
|
|
153
|
+
toBeUploaded: 'sẽ được tải lên',
|
|
154
|
+
cropTool: 'Cắt',
|
|
155
|
+
original: 'Gốc',
|
|
156
|
+
custom: 'Tùy chỉnh',
|
|
157
|
+
square: 'Vuông',
|
|
158
|
+
landscape: 'Ngang',
|
|
159
|
+
portrait: 'Dọc',
|
|
160
|
+
ellipse: 'Elip',
|
|
161
|
+
classicTv: 'TV cổ điển',
|
|
162
|
+
cinemascope: 'Cinemascope',
|
|
163
|
+
arrowTool: 'Mũi tên',
|
|
164
|
+
blurTool: 'Làm mờ',
|
|
165
|
+
brightnessTool: 'Độ sáng',
|
|
166
|
+
contrastTool: 'Tương phản',
|
|
167
|
+
ellipseTool: 'Elip',
|
|
168
|
+
unFlipX: 'Bỏ lật X',
|
|
169
|
+
flipX: 'Lật X',
|
|
170
|
+
unFlipY: 'Bỏ lật Y',
|
|
171
|
+
flipY: 'Lật Y',
|
|
172
|
+
hsvTool: 'HSV',
|
|
173
|
+
hue: 'Sắc độ',
|
|
174
|
+
brightness: 'Độ sáng',
|
|
175
|
+
saturation: 'Bão hòa',
|
|
176
|
+
value: 'Giá trị',
|
|
177
|
+
imageTool: 'Ảnh',
|
|
178
|
+
importing: 'Đang nhập...',
|
|
179
|
+
addImage: 'Thêm ảnh',
|
|
180
|
+
uploadImage: 'Tải ảnh lên',
|
|
181
|
+
fromGallery: 'Từ thư viện',
|
|
182
|
+
lineTool: 'Đường thẳng',
|
|
183
|
+
penTool: 'Bút',
|
|
184
|
+
polygonTool: 'Đa giác',
|
|
185
|
+
sides: 'Số cạnh',
|
|
186
|
+
rectangleTool: 'Hình chữ nhật',
|
|
187
|
+
cornerRadius: 'Bo góc',
|
|
188
|
+
resizeWidthTitle: 'Chiều rộng (px)',
|
|
189
|
+
resizeHeightTitle: 'Chiều cao (px)',
|
|
190
|
+
toggleRatioLockTitle: 'Bật/tắt khóa tỉ lệ',
|
|
191
|
+
resetSize: 'Đặt lại về kích thước gốc',
|
|
192
|
+
rotateTool: 'Xoay',
|
|
193
|
+
textTool: 'Văn bản',
|
|
194
|
+
textSpacings: 'Khoảng cách chữ',
|
|
195
|
+
textAlignment: 'Căn lề chữ',
|
|
196
|
+
fontFamily: 'Phông chữ',
|
|
197
|
+
size: 'Cỡ chữ',
|
|
198
|
+
letterSpacing: 'Giãn chữ',
|
|
199
|
+
lineHeight: 'Chiều cao dòng',
|
|
200
|
+
warmthTool: 'Nhiệt độ màu',
|
|
201
|
+
addWatermark: 'Thêm hình mờ',
|
|
202
|
+
addTextWatermark: 'Thêm chữ mờ',
|
|
203
|
+
addWatermarkTitle: 'Chọn loại hình mờ',
|
|
204
|
+
uploadWatermark: 'Tải hình mờ',
|
|
205
|
+
addWatermarkAsText: 'Thêm dạng chữ',
|
|
206
|
+
padding: 'Khoảng đệm',
|
|
207
|
+
paddings: 'Khoảng đệm',
|
|
208
|
+
shadow: 'Bóng',
|
|
209
|
+
horizontal: 'Ngang',
|
|
210
|
+
vertical: 'Dọc',
|
|
211
|
+
blur: 'Làm mờ',
|
|
212
|
+
opacity: 'Độ mờ',
|
|
213
|
+
transparency: 'Độ trong suốt',
|
|
214
|
+
position: 'Vị trí',
|
|
215
|
+
stroke: 'Viền',
|
|
216
|
+
saveAsModalTitle: 'Lưu thành',
|
|
217
|
+
extension: 'Đuôi',
|
|
218
|
+
format: 'Định dạng',
|
|
219
|
+
nameIsRequired: 'Bắt buộc nhập tên.',
|
|
220
|
+
quality: 'Chất lượng',
|
|
221
|
+
imageDimensionsHoverTitle: 'Kích thước ảnh lưu (rộng x cao)',
|
|
222
|
+
cropSizeLowerThanResizedWarning: 'Lưu ý: vùng cắt nhỏ hơn kích thước đã đổi, có thể giảm chất lượng',
|
|
223
|
+
actualSize: 'Kích thước thật (100%)',
|
|
224
|
+
fitSize: 'Vừa khung',
|
|
225
|
+
addImageTitle: 'Chọn ảnh để thêm...',
|
|
226
|
+
mutualizedFailedToLoadImg: 'Không thể tải ảnh.',
|
|
227
|
+
tabsMenu: 'Menu',
|
|
228
|
+
download: 'Tải xuống',
|
|
229
|
+
width: 'Rộng',
|
|
230
|
+
height: 'Cao',
|
|
231
|
+
plus: '+',
|
|
232
|
+
cropItemNoEffect: 'Không có xem trước cho mục này',
|
|
233
|
+
colorPickerModalTitleLabel: 'Chọn màu'
|
|
234
|
+
},
|
|
235
|
+
zh: {
|
|
236
|
+
tabs: '工具',
|
|
237
|
+
name: '名称',
|
|
238
|
+
save: '保存',
|
|
239
|
+
saveAs: '另存为',
|
|
240
|
+
back: '返回',
|
|
241
|
+
loading: '加载中...',
|
|
242
|
+
resetOperations: '重置/删除所有操作',
|
|
243
|
+
changesLoseWarningHint: '如果你点击“重置”,更改将丢失。是否继续?',
|
|
244
|
+
discardChangesWarningHint: '如果关闭弹窗,你的更改将不会保存。',
|
|
245
|
+
cancel: '取消',
|
|
246
|
+
apply: '应用',
|
|
247
|
+
warning: '警告',
|
|
248
|
+
confirm: '确认',
|
|
249
|
+
discardChanges: '放弃更改',
|
|
250
|
+
undoTitle: '撤销上一步',
|
|
251
|
+
redoTitle: '重做上一步',
|
|
252
|
+
showImageTitle: '显示原图',
|
|
253
|
+
zoomInTitle: '放大',
|
|
254
|
+
zoomOutTitle: '缩小',
|
|
255
|
+
toggleZoomMenuTitle: '切换缩放菜单',
|
|
256
|
+
adjustTab: '调整',
|
|
257
|
+
finetuneTab: '微调',
|
|
258
|
+
filtersTab: '滤镜',
|
|
259
|
+
watermarkTab: '水印',
|
|
260
|
+
annotateTabLabel: '标注',
|
|
261
|
+
resize: '调整大小',
|
|
262
|
+
resizeTab: '调整大小',
|
|
263
|
+
imageName: '图片名称',
|
|
264
|
+
invalidImageError: '无效的图片。',
|
|
265
|
+
uploadImageError: '上传图片时出错。',
|
|
266
|
+
areNotImages: '不是图片',
|
|
267
|
+
isNotImage: '不是图片',
|
|
268
|
+
toBeUploaded: '将被上传',
|
|
269
|
+
cropTool: '裁剪',
|
|
270
|
+
original: '原图',
|
|
271
|
+
custom: '自定义',
|
|
272
|
+
square: '方形',
|
|
273
|
+
landscape: '横向',
|
|
274
|
+
portrait: '纵向',
|
|
275
|
+
ellipse: '椭圆',
|
|
276
|
+
classicTv: '经典电视',
|
|
277
|
+
cinemascope: '宽银幕',
|
|
278
|
+
arrowTool: '箭头',
|
|
279
|
+
blurTool: '模糊',
|
|
280
|
+
brightnessTool: '亮度',
|
|
281
|
+
contrastTool: '对比度',
|
|
282
|
+
ellipseTool: '椭圆',
|
|
283
|
+
unFlipX: '取消水平翻转',
|
|
284
|
+
flipX: '水平翻转',
|
|
285
|
+
unFlipY: '取消垂直翻转',
|
|
286
|
+
flipY: '垂直翻转',
|
|
287
|
+
hsvTool: 'HSV',
|
|
288
|
+
hue: '色相',
|
|
289
|
+
brightness: '亮度',
|
|
290
|
+
saturation: '饱和度',
|
|
291
|
+
value: '明度',
|
|
292
|
+
imageTool: '图片',
|
|
293
|
+
importing: '导入中...',
|
|
294
|
+
addImage: '添加图片',
|
|
295
|
+
uploadImage: '上传图片',
|
|
296
|
+
fromGallery: '来自图库',
|
|
297
|
+
lineTool: '直线',
|
|
298
|
+
penTool: '画笔',
|
|
299
|
+
polygonTool: '多边形',
|
|
300
|
+
sides: '边数',
|
|
301
|
+
rectangleTool: '矩形',
|
|
302
|
+
cornerRadius: '圆角',
|
|
303
|
+
resizeWidthTitle: '宽度(像素)',
|
|
304
|
+
resizeHeightTitle: '高度(像素)',
|
|
305
|
+
toggleRatioLockTitle: '切换比例锁定',
|
|
306
|
+
resetSize: '重置为原始尺寸',
|
|
307
|
+
rotateTool: '旋转',
|
|
308
|
+
textTool: '文本',
|
|
309
|
+
textSpacings: '文本间距',
|
|
310
|
+
textAlignment: '文本对齐',
|
|
311
|
+
fontFamily: '字体',
|
|
312
|
+
size: '大小',
|
|
313
|
+
letterSpacing: '字间距',
|
|
314
|
+
lineHeight: '行高',
|
|
315
|
+
warmthTool: '色温',
|
|
316
|
+
addWatermark: '添加水印',
|
|
317
|
+
addTextWatermark: '添加文字水印',
|
|
318
|
+
addWatermarkTitle: '选择水印类型',
|
|
319
|
+
uploadWatermark: '上传水印',
|
|
320
|
+
addWatermarkAsText: '以文字添加',
|
|
321
|
+
padding: '内边距',
|
|
322
|
+
paddings: '内边距',
|
|
323
|
+
shadow: '阴影',
|
|
324
|
+
horizontal: '水平',
|
|
325
|
+
vertical: '垂直',
|
|
326
|
+
blur: '模糊',
|
|
327
|
+
opacity: '不透明度',
|
|
328
|
+
transparency: '透明度',
|
|
329
|
+
position: '位置',
|
|
330
|
+
stroke: '描边',
|
|
331
|
+
saveAsModalTitle: '另存为',
|
|
332
|
+
extension: '扩展名',
|
|
333
|
+
format: '格式',
|
|
334
|
+
nameIsRequired: '名称为必填项。',
|
|
335
|
+
quality: '质量',
|
|
336
|
+
imageDimensionsHoverTitle: '保存图片尺寸(宽 x 高)',
|
|
337
|
+
cropSizeLowerThanResizedWarning: '注意:裁剪区域小于调整后的尺寸,可能影响质量',
|
|
338
|
+
actualSize: '实际大小(100%)',
|
|
339
|
+
fitSize: '适合大小',
|
|
340
|
+
addImageTitle: '选择要添加的图片...',
|
|
341
|
+
mutualizedFailedToLoadImg: '加载图片失败。',
|
|
342
|
+
tabsMenu: '菜单',
|
|
343
|
+
download: '下载',
|
|
344
|
+
width: '宽度',
|
|
345
|
+
height: '高度',
|
|
346
|
+
plus: '+',
|
|
347
|
+
cropItemNoEffect: '该裁剪项暂无预览',
|
|
348
|
+
colorPickerModalTitleLabel: '选择颜色'
|
|
349
|
+
},
|
|
350
|
+
fr: {
|
|
351
|
+
tabs: 'Outils',
|
|
352
|
+
name: 'Nom',
|
|
353
|
+
save: 'Enregistrer',
|
|
354
|
+
saveAs: 'Enregistrer sous',
|
|
355
|
+
back: 'Retour',
|
|
356
|
+
loading: 'Chargement...',
|
|
357
|
+
resetOperations: 'Réinitialiser/supprimer toutes les opérations',
|
|
358
|
+
changesLoseWarningHint: 'Si vous appuyez sur « réinitialiser », vos modifications seront perdues. Continuer ?',
|
|
359
|
+
discardChangesWarningHint: 'Si vous fermez la fenêtre, votre dernière modification ne sera pas enregistrée.',
|
|
360
|
+
cancel: 'Annuler',
|
|
361
|
+
apply: 'Appliquer',
|
|
362
|
+
warning: 'Avertissement',
|
|
363
|
+
confirm: 'Confirmer',
|
|
364
|
+
discardChanges: 'Ignorer les modifications',
|
|
365
|
+
undoTitle: 'Annuler la dernière opération',
|
|
366
|
+
redoTitle: 'Rétablir la dernière opération',
|
|
367
|
+
showImageTitle: 'Afficher l’image originale',
|
|
368
|
+
zoomInTitle: 'Zoomer',
|
|
369
|
+
zoomOutTitle: 'Dézoomer',
|
|
370
|
+
toggleZoomMenuTitle: 'Afficher/masquer le menu de zoom',
|
|
371
|
+
adjustTab: 'Ajuster',
|
|
372
|
+
finetuneTab: 'Affiner',
|
|
373
|
+
filtersTab: 'Filtres',
|
|
374
|
+
watermarkTab: 'Filigrane',
|
|
375
|
+
annotateTabLabel: 'Annoter',
|
|
376
|
+
resize: 'Redimensionner',
|
|
377
|
+
resizeTab: 'Redimensionner',
|
|
378
|
+
imageName: 'Nom de l’image',
|
|
379
|
+
invalidImageError: 'Image fournie invalide.',
|
|
380
|
+
uploadImageError: 'Erreur lors du téléversement de l’image.',
|
|
381
|
+
areNotImages: 'ne sont pas des images',
|
|
382
|
+
isNotImage: 'n’est pas une image',
|
|
383
|
+
toBeUploaded: 'à téléverser',
|
|
384
|
+
cropTool: 'Rogner',
|
|
385
|
+
original: 'Original',
|
|
386
|
+
custom: 'Personnalisé',
|
|
387
|
+
square: 'Carré',
|
|
388
|
+
landscape: 'Paysage',
|
|
389
|
+
portrait: 'Portrait',
|
|
390
|
+
ellipse: 'Ellipse',
|
|
391
|
+
classicTv: 'TV classique',
|
|
392
|
+
cinemascope: 'Cinémascope',
|
|
393
|
+
arrowTool: 'Flèche',
|
|
394
|
+
blurTool: 'Flou',
|
|
395
|
+
brightnessTool: 'Luminosité',
|
|
396
|
+
contrastTool: 'Contraste',
|
|
397
|
+
ellipseTool: 'Ellipse',
|
|
398
|
+
unFlipX: 'Annuler le miroir X',
|
|
399
|
+
flipX: 'Miroir X',
|
|
400
|
+
unFlipY: 'Annuler le miroir Y',
|
|
401
|
+
flipY: 'Miroir Y',
|
|
402
|
+
hsvTool: 'HSV',
|
|
403
|
+
hue: 'Teinte',
|
|
404
|
+
brightness: 'Luminosité',
|
|
405
|
+
saturation: 'Saturation',
|
|
406
|
+
value: 'Valeur',
|
|
407
|
+
imageTool: 'Image',
|
|
408
|
+
importing: 'Importation...',
|
|
409
|
+
addImage: 'Ajouter une image',
|
|
410
|
+
uploadImage: 'Téléverser une image',
|
|
411
|
+
fromGallery: 'Depuis la galerie',
|
|
412
|
+
lineTool: 'Ligne',
|
|
413
|
+
penTool: 'Stylo',
|
|
414
|
+
polygonTool: 'Polygone',
|
|
415
|
+
sides: 'Côtés',
|
|
416
|
+
rectangleTool: 'Rectangle',
|
|
417
|
+
cornerRadius: 'Rayon des coins',
|
|
418
|
+
resizeWidthTitle: 'Largeur en pixels',
|
|
419
|
+
resizeHeightTitle: 'Hauteur en pixels',
|
|
420
|
+
toggleRatioLockTitle: 'Verrouiller/déverrouiller le ratio',
|
|
421
|
+
resetSize: 'Réinitialiser à la taille d’origine',
|
|
422
|
+
rotateTool: 'Rotation',
|
|
423
|
+
textTool: 'Texte',
|
|
424
|
+
textSpacings: 'Espacements du texte',
|
|
425
|
+
textAlignment: 'Alignement du texte',
|
|
426
|
+
fontFamily: 'Police',
|
|
427
|
+
size: 'Taille',
|
|
428
|
+
letterSpacing: 'Espacement des lettres',
|
|
429
|
+
lineHeight: 'Hauteur de ligne',
|
|
430
|
+
warmthTool: 'Température',
|
|
431
|
+
addWatermark: 'Ajouter un filigrane',
|
|
432
|
+
addTextWatermark: 'Ajouter un filigrane texte',
|
|
433
|
+
addWatermarkTitle: 'Choisir le type de filigrane',
|
|
434
|
+
uploadWatermark: 'Téléverser un filigrane',
|
|
435
|
+
addWatermarkAsText: 'Ajouter en texte',
|
|
436
|
+
padding: 'Marge interne',
|
|
437
|
+
paddings: 'Marges internes',
|
|
438
|
+
shadow: 'Ombre',
|
|
439
|
+
horizontal: 'Horizontal',
|
|
440
|
+
vertical: 'Vertical',
|
|
441
|
+
blur: 'Flou',
|
|
442
|
+
opacity: 'Opacité',
|
|
443
|
+
transparency: 'Transparence',
|
|
444
|
+
position: 'Position',
|
|
445
|
+
stroke: 'Contour',
|
|
446
|
+
saveAsModalTitle: 'Enregistrer sous',
|
|
447
|
+
extension: 'Extension',
|
|
448
|
+
format: 'Format',
|
|
449
|
+
nameIsRequired: 'Le nom est requis.',
|
|
450
|
+
quality: 'Qualité',
|
|
451
|
+
imageDimensionsHoverTitle: 'Taille de l’image enregistrée (largeur x hauteur)',
|
|
452
|
+
cropSizeLowerThanResizedWarning: 'Note : la zone de recadrage est plus petite que la taille redimensionnée, la qualité peut en souffrir',
|
|
453
|
+
actualSize: 'Taille réelle (100%)',
|
|
454
|
+
fitSize: 'Adapter à la taille',
|
|
455
|
+
addImageTitle: 'Sélectionnez une image à ajouter...',
|
|
456
|
+
mutualizedFailedToLoadImg: 'Échec du chargement de l’image.',
|
|
457
|
+
tabsMenu: 'Menu',
|
|
458
|
+
download: 'Télécharger',
|
|
459
|
+
width: 'Largeur',
|
|
460
|
+
height: 'Hauteur',
|
|
461
|
+
plus: '+',
|
|
462
|
+
cropItemNoEffect: 'Aucun aperçu disponible pour cet élément',
|
|
463
|
+
colorPickerModalTitleLabel: 'Choisir une couleur'
|
|
464
|
+
}
|
|
114
465
|
};
|
|
466
|
+
var defaultTranslations = _objectSpread({}, translationsByLanguage.en);
|
|
115
467
|
export default defaultTranslations;
|
|
@@ -5,7 +5,7 @@ import { DEFAULT_ZOOM_FACTOR, POINTER_ICONS, TOOLS_IDS } from "../utils/constant
|
|
|
5
5
|
import filterStrToClass from "../utils/filter-str-to-class";
|
|
6
6
|
import finetunesStrsToClasses from "../utils/finetunes-strs-to-classes";
|
|
7
7
|
var getInitialAppState = function getInitialAppState() {
|
|
8
|
-
var _config$source, _config$TOOLS_IDS$CRO, _config$TOOLS_IDS$CRO2, _config$TOOLS_IDS$CRO3, _config$TOOLS_IDS$CRO4;
|
|
8
|
+
var _config$source$src, _config$source, _config$TOOLS_IDS$CRO, _config$TOOLS_IDS$CRO2, _config$TOOLS_IDS$CRO3, _config$TOOLS_IDS$CRO4, _config$defaultTabId, _config$defaultToolId;
|
|
9
9
|
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
10
10
|
var loadedConfigPrepared = _objectSpread({}, config.loadableDesignState);
|
|
11
11
|
if (Array.isArray(loadedConfigPrepared.finetunes)) {
|
|
@@ -16,7 +16,7 @@ var getInitialAppState = function getInitialAppState() {
|
|
|
16
16
|
}
|
|
17
17
|
var hasLoadableDesignState = Boolean(config.loadableDesignState);
|
|
18
18
|
return _objectSpread(_objectSpread({
|
|
19
|
-
imgSrc: typeof config.source === 'string' ? config.source : ((_config$source = config.source) === null || _config$source === void 0 ? void 0 : _config$source.src)
|
|
19
|
+
imgSrc: typeof config.source === 'string' ? config.source : (_config$source$src = (_config$source = config.source) === null || _config$source === void 0 ? void 0 : _config$source.src) !== null && _config$source$src !== void 0 ? _config$source$src : '',
|
|
20
20
|
finetunes: [],
|
|
21
21
|
finetunesProps: {},
|
|
22
22
|
filter: null,
|
|
@@ -46,8 +46,8 @@ var getInitialAppState = function getInitialAppState() {
|
|
|
46
46
|
},
|
|
47
47
|
isLoadingGlobally: true,
|
|
48
48
|
selectionsIds: [],
|
|
49
|
-
tabId: config.defaultTabId
|
|
50
|
-
toolId: config.defaultToolId
|
|
49
|
+
tabId: (_config$defaultTabId = config.defaultTabId) !== null && _config$defaultTabId !== void 0 ? _config$defaultTabId : null,
|
|
50
|
+
toolId: (_config$defaultToolId = config.defaultToolId) !== null && _config$defaultToolId !== void 0 ? _config$defaultToolId : null,
|
|
51
51
|
feedback: {},
|
|
52
52
|
pastDesignStates: [],
|
|
53
53
|
futureDesignStates: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moon.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/moon.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iBAAS,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"moon.d.ts","sourceRoot":"","sources":["../../../src/custom/filters/moon.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iBAAS,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAMxC;kBANQ,IAAI;;;AAUb,eAAe,IAAI,CAAC"}
|
package/lib/demo/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/demo/app.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AA+CpC,QAAA,MAAM,OAAO,+
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/demo/app.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AA+CpC,QAAA,MAAM,OAAO,+CAiLZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|