@progress/kendo-themes-html 14.7.0-dev.14 → 14.7.0-dev.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/dist/cjs/imageeditor/imageeditor-canvas.spec.js +1 -0
- package/dist/cjs/imageeditor/imageeditor-option-list.js +1 -1
- package/dist/cjs/imageeditor/imageeditor-pane.js +1 -1
- package/dist/cjs/imageeditor/imageeditor-preview-thumbnail.js +1 -1
- package/dist/cjs/imageeditor/imageeditor-sidebar.js +1 -1
- package/dist/cjs/imageeditor/imageeditor-toolbar.js +1 -1
- package/dist/cjs/imageeditor/imageeditor.spec.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-adjustments-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-adjustments.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-blur-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-blur.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-crop-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-crop.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-filters-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-filters.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-frames-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-frames.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-insert-line-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-insert-line.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-insert-shape-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-insert-shape.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-insert-text-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-insert-text.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-normal.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-pixelate-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-pixelate.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-resize-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-resize.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-rotate-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-rotate.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-shadow-adaptive.js +1 -0
- package/dist/cjs/imageeditor/templates/imageeditor-shadow.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/esm/imageeditor/imageeditor-canvas.spec.mjs +1 -0
- package/dist/esm/imageeditor/imageeditor-option-list.mjs +1 -1
- package/dist/esm/imageeditor/imageeditor-pane.mjs +1 -1
- package/dist/esm/imageeditor/imageeditor-preview-thumbnail.mjs +1 -1
- package/dist/esm/imageeditor/imageeditor-sidebar.mjs +1 -1
- package/dist/esm/imageeditor/imageeditor-toolbar.mjs +1 -1
- package/dist/esm/imageeditor/imageeditor.spec.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-adjustments-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-adjustments.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-blur-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-blur.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-crop-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-crop.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-filters-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-filters.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-frames-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-frames.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-insert-line-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-insert-line.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-insert-shape-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-insert-shape.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-insert-text-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-insert-text.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-normal.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-pixelate-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-pixelate.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-resize-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-resize.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-rotate-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-rotate.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-shadow-adaptive.mjs +1 -0
- package/dist/esm/imageeditor/templates/imageeditor-shadow.mjs +1 -1
- package/dist/esm/index.mjs +8 -8
- package/dist/types/imageeditor/constants.d.ts +9 -0
- package/dist/types/imageeditor/imageeditor-canvas.spec.d.ts +15 -0
- package/dist/types/imageeditor/imageeditor-option-list.d.ts +1 -0
- package/dist/types/imageeditor/imageeditor-pane.d.ts +2 -0
- package/dist/types/imageeditor/imageeditor-preview-thumbnail.d.ts +1 -0
- package/dist/types/imageeditor/imageeditor-sidebar.d.ts +8 -0
- package/dist/types/imageeditor/imageeditor-toolbar.d.ts +5 -4
- package/dist/types/imageeditor/imageeditor.spec.d.ts +7 -3
- package/dist/types/imageeditor/index.d.ts +13 -1
- package/dist/types/imageeditor/templates/imageeditor-adjustments-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-adjustments.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-blur-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-blur.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-crop-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-crop.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-filters-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-filters.d.ts +1 -6
- package/dist/types/imageeditor/templates/imageeditor-frames-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-frames.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-insert-line-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-insert-line.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-insert-shape-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-insert-shape.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-insert-text-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-insert-text.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-pixelate-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-pixelate.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-resize-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-resize.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-rotate-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-rotate.d.ts +1 -1
- package/dist/types/imageeditor/templates/imageeditor-shadow-adaptive.d.ts +1 -0
- package/dist/types/imageeditor/templates/imageeditor-shadow.d.ts +1 -1
- package/package.json +1 -1
- package/src/imageeditor/constants.ts +4 -0
- package/src/imageeditor/imageeditor-canvas.spec.tsx +30 -0
- package/src/imageeditor/imageeditor-option-list.tsx +2 -1
- package/src/imageeditor/imageeditor-pane.tsx +4 -1
- package/src/imageeditor/imageeditor-preview-thumbnail.tsx +3 -2
- package/src/imageeditor/imageeditor-sidebar.tsx +32 -19
- package/src/imageeditor/imageeditor-toolbar.tsx +27 -21
- package/src/imageeditor/imageeditor.spec.tsx +14 -6
- package/src/imageeditor/index.ts +13 -1
- package/src/imageeditor/templates/imageeditor-adjustments-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-adjustments.tsx +80 -57
- package/src/imageeditor/templates/imageeditor-blur-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-blur.tsx +9 -25
- package/src/imageeditor/templates/imageeditor-crop-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-crop.tsx +22 -28
- package/src/imageeditor/templates/imageeditor-filters-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-filters.tsx +32 -52
- package/src/imageeditor/templates/imageeditor-frames-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-frames.tsx +123 -149
- package/src/imageeditor/templates/imageeditor-insert-line-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-insert-line.tsx +24 -25
- package/src/imageeditor/templates/imageeditor-insert-shape-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-insert-shape.tsx +93 -50
- package/src/imageeditor/templates/imageeditor-insert-text-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-insert-text.tsx +24 -25
- package/src/imageeditor/templates/imageeditor-normal.tsx +2 -23
- package/src/imageeditor/templates/imageeditor-pixelate-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-pixelate.tsx +9 -24
- package/src/imageeditor/templates/imageeditor-resize-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-resize.tsx +10 -25
- package/src/imageeditor/templates/imageeditor-rotate-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-rotate.tsx +8 -23
- package/src/imageeditor/templates/imageeditor-shadow-adaptive.tsx +3 -0
- package/src/imageeditor/templates/imageeditor-shadow.tsx +20 -42
- package/src/imageeditor/tests/imageeditor-adaptive-panes.tsx +85 -0
- package/src/imageeditor/tests/imageeditor-adaptive-small.tsx +10 -305
- package/src/imageeditor/tests/imageeditor-adjustments-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-blur-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-crop-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-filters-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-frames-pane.tsx +4 -3
- package/src/imageeditor/tests/imageeditor-insert-shape-pane.tsx +1 -1
- package/src/imageeditor/tests/imageeditor-interactive-states.tsx +6 -6
- package/src/imageeditor/tests/imageeditor-pixelate-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-resize-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-responsive.tsx +4 -4
- package/src/imageeditor/tests/imageeditor-rotate-pane.tsx +2 -1
- package/src/imageeditor/tests/imageeditor-shadow-pane.tsx +2 -1
- package/dist/cjs/imageeditor/templates/imageeditor-disabled.js +0 -1
- package/dist/esm/imageeditor/templates/imageeditor-disabled.mjs +0 -1
- package/dist/types/imageeditor/templates/imageeditor-disabled.d.ts +0 -1
- package/src/imageeditor/templates/imageeditor-disabled.tsx +0 -54
|
@@ -1,83 +1,5 @@
|
|
|
1
|
-
import { ImageEditor,
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonGroup } from '../../button-group';
|
|
4
|
-
import { Combobox } from '../../combobox';
|
|
5
|
-
import { NumericTextbox } from '../../numerictextbox';
|
|
6
|
-
import { ColorPicker } from '../../colorpicker';
|
|
7
|
-
import { Form, FormField, Fieldset } from '../../form';
|
|
8
|
-
import { Icon } from '../../icon';
|
|
9
|
-
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
10
|
-
import { ToolbarSeparator } from '../../toolbar';
|
|
11
|
-
|
|
12
|
-
// Mobile top toolbar has no zoom-level combobox - just the 6 core icon actions, split into two edge-aligned groups
|
|
13
|
-
const mobileToolbarItems = [
|
|
14
|
-
<Button fillMode="flat" key="mobile-toolbar-button-1" icon="image-add" aria-label="Image Add"></Button>,
|
|
15
|
-
<ToolbarSeparator key="mobile-toolbar-separator-1"></ToolbarSeparator>,
|
|
16
|
-
<Button fillMode="flat" key="mobile-toolbar-button-2" icon="undo" aria-label="Undo"></Button>,
|
|
17
|
-
<Button fillMode="flat" key="mobile-toolbar-button-3" icon="redo" aria-label="Redo"></Button>,
|
|
18
|
-
<ToolbarSeparator key="mobile-toolbar-separator-2"></ToolbarSeparator>,
|
|
19
|
-
<Button fillMode="flat" key="mobile-toolbar-button-4" icon="download" aria-label="Download"></Button>,
|
|
20
|
-
<div className="k-spacer" key="mobile-toolbar-spacer"></div>,
|
|
21
|
-
<Button fillMode="flat" key="mobile-toolbar-button-5" icon="zoom-in" aria-label="Zoom In"></Button>,
|
|
22
|
-
<Button fillMode="flat" key="mobile-toolbar-button-6" icon="zoom-out" aria-label="Zoom Out"></Button>
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
// Same 5 actions as the desktop FloatingToolbar (imageeditor-insert-shape.tsx) - on mobile they dock at the top instead of floating over the canvas
|
|
26
|
-
const contextualToolbarItems = [
|
|
27
|
-
<Button fillMode="flat" key="contextual-button-1" icon="squares-overlapping-plus" aria-label="Duplicate"></Button>,
|
|
28
|
-
<Button fillMode="flat" key="contextual-button-2" icon="pencil" aria-label="Edit"></Button>,
|
|
29
|
-
<ToolbarSeparator key="contextual-separator-1"></ToolbarSeparator>,
|
|
30
|
-
<Button fillMode="flat" key="contextual-button-3" icon="flip-horizontal" aria-label="Flip Horizontal"></Button>,
|
|
31
|
-
<Button fillMode="flat" key="contextual-button-4" icon="flip-vertical" aria-label="Flip Vertical"></Button>,
|
|
32
|
-
<ToolbarSeparator key="contextual-separator-2"></ToolbarSeparator>,
|
|
33
|
-
<Button fillMode="flat" key="contextual-button-5" icon="trash" aria-label="Delete"></Button>
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
const sidebarItems = [
|
|
37
|
-
<Button fillMode="flat" key="sidebar-button-1" icon="image-resize" aria-label="Resize"></Button>,
|
|
38
|
-
<Button fillMode="flat" key="sidebar-button-2" icon="crop" aria-label="Crop"></Button>,
|
|
39
|
-
<Button fillMode="flat" key="sidebar-button-3" icon="rotate" aria-label="Rotate"></Button>,
|
|
40
|
-
<div className="k-separator k-separator-vertical" key="sidebar-separator-1"></div>,
|
|
41
|
-
<Button fillMode="flat" key="sidebar-button-4" icon="free-text" aria-label="Text"></Button>,
|
|
42
|
-
<Button fillMode="flat" key="sidebar-button-5" icon="shapes" aria-label="Shapes"></Button>,
|
|
43
|
-
<div className="k-separator k-separator-vertical" key="sidebar-separator-2"></div>,
|
|
44
|
-
<Button fillMode="flat" key="sidebar-button-6" icon="drop-half-pixelated" aria-label="Blur"></Button>,
|
|
45
|
-
<Button fillMode="flat" key="sidebar-button-7" icon="sliders-horizontal" aria-label="Adjustments"></Button>,
|
|
46
|
-
<Button fillMode="flat" key="sidebar-button-8" icon="circles-three-intersecting" aria-label="Filters"></Button>,
|
|
47
|
-
<div className="k-separator k-separator-vertical" key="sidebar-separator-3"></div>,
|
|
48
|
-
<Button fillMode="flat" key="sidebar-button-9" icon="frame-corners" aria-label="Frame"></Button>,
|
|
49
|
-
<Button fillMode="flat" key="sidebar-button-10" icon="circle-half-tilted" aria-label="Shadow"></Button>
|
|
50
|
-
];
|
|
51
|
-
|
|
52
|
-
const shapeSidebarItems = [
|
|
53
|
-
<Button fillMode="flat" key="sidebar-button-1" icon="image-resize" aria-label="Resize"></Button>,
|
|
54
|
-
<Button fillMode="flat" key="sidebar-button-2" icon="crop" aria-label="Crop"></Button>,
|
|
55
|
-
<Button fillMode="flat" key="sidebar-button-3" icon="rotate" aria-label="Rotate"></Button>,
|
|
56
|
-
<div className="k-separator k-separator-vertical" key="sidebar-separator-1"></div>,
|
|
57
|
-
<Button fillMode="flat" key="sidebar-button-4" icon="free-text" aria-label="Text"></Button>,
|
|
58
|
-
<Button fillMode="flat" key="sidebar-button-5" icon="shapes" selected aria-label="Shapes"></Button>,
|
|
59
|
-
<div className="k-separator k-separator-vertical" key="sidebar-separator-2"></div>,
|
|
60
|
-
<Button fillMode="flat" key="sidebar-button-6" icon="drop-half-pixelated" aria-label="Blur"></Button>,
|
|
61
|
-
<Button fillMode="flat" key="sidebar-button-7" icon="sliders-horizontal" aria-label="Adjustments"></Button>,
|
|
62
|
-
<Button fillMode="flat" key="sidebar-button-8" icon="circles-three-intersecting" aria-label="Filters"></Button>,
|
|
63
|
-
<div className="k-separator k-separator-vertical" key="sidebar-separator-3"></div>,
|
|
64
|
-
<Button fillMode="flat" key="sidebar-button-9" icon="frame-corners" aria-label="Frame"></Button>,
|
|
65
|
-
<Button fillMode="flat" key="sidebar-button-10" icon="circle-half-tilted" aria-label="Shadow"></Button>
|
|
66
|
-
];
|
|
67
|
-
|
|
68
|
-
const shapeTypes = [
|
|
69
|
-
{ label: "Square", icon: "checkbox" },
|
|
70
|
-
{ label: "Rectangle", icon: "rectangle-shape" },
|
|
71
|
-
{ label: "Circle", icon: "circle-shape" },
|
|
72
|
-
{ label: "Oval", icon: "oval-shape" },
|
|
73
|
-
{ label: "Triangle", icon: "kpi-status-hold" },
|
|
74
|
-
{ label: "Star", icon: "star" },
|
|
75
|
-
{ label: "Heart", icon: "heart" },
|
|
76
|
-
{ label: "Diamond", icon: "kpi-status-deny" },
|
|
77
|
-
{ label: "Hexagon", icon: "hexagon-shape" },
|
|
78
|
-
{ label: "Pentagon", icon: "pentagon-shape" },
|
|
79
|
-
{ label: "Arrow", icon: "arrow-right" }
|
|
80
|
-
];
|
|
1
|
+
import { ImageEditor, ImageEditorInsertShape, ImageEditorCanvas, ImageEditorResizeHandles, ImageEditorRotateHandle } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
81
3
|
|
|
82
4
|
const styles = `
|
|
83
5
|
#test-area {
|
|
@@ -98,123 +20,15 @@ export default () => (
|
|
|
98
20
|
|
|
99
21
|
<div>
|
|
100
22
|
<h4>Mobile / Adaptive / Unselected Tool</h4>
|
|
101
|
-
<ImageEditor adaptive
|
|
102
|
-
<
|
|
23
|
+
<ImageEditor adaptive>
|
|
24
|
+
<ImageEditorCanvas adaptive imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
103
25
|
</ImageEditor>
|
|
104
26
|
</div>
|
|
105
27
|
|
|
106
28
|
<div>
|
|
107
29
|
<h4>Mobile / Adaptive / Selected Tool / Panel Opened</h4>
|
|
108
|
-
<
|
|
109
|
-
adaptive
|
|
110
|
-
toolbarItems={contextualToolbarItems}
|
|
111
|
-
sidebarItems={shapeSidebarItems}
|
|
112
|
-
actionPane={
|
|
113
|
-
<ImageEditorPane adaptive title="Shape">
|
|
114
|
-
<SegmentedControl thumbStyles={{ width: "50%" }} stretched aria-label="Shape or Line" style={{ flexShrink: 0 }}>
|
|
115
|
-
<SegmentedControlButton icon="shapes" selected>Shape</SegmentedControlButton>
|
|
116
|
-
<SegmentedControlButton icon="shape-line">Line</SegmentedControlButton>
|
|
117
|
-
</SegmentedControl>
|
|
118
|
-
|
|
119
|
-
<Form tag="div">
|
|
120
|
-
<FormField
|
|
121
|
-
label="Type"
|
|
122
|
-
editor={
|
|
123
|
-
<ImageEditorOptionList scrollable scrollingPosition="both">
|
|
124
|
-
{shapeTypes.map((shape) => (
|
|
125
|
-
<ImageEditorOptionPreview key={shape.label} label={shape.label} selected={shape.label === "Oval"}>
|
|
126
|
-
<div className="k-imageeditor-option-content">
|
|
127
|
-
<Icon icon={shape.icon} />
|
|
128
|
-
<span className="k-imageeditor-option-label">{shape.label}</span>
|
|
129
|
-
</div>
|
|
130
|
-
</ImageEditorOptionPreview>
|
|
131
|
-
))}
|
|
132
|
-
</ImageEditorOptionList>
|
|
133
|
-
}
|
|
134
|
-
/>
|
|
135
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
136
|
-
<FormField
|
|
137
|
-
label="Stroke Color"
|
|
138
|
-
editor={ <ColorPicker id="mobile-shape-stroke-color" value="#b0e855" aria-label="Stroke Color" /> }
|
|
139
|
-
/>
|
|
140
|
-
<FormField
|
|
141
|
-
label="Stroke Width"
|
|
142
|
-
editorId="mobile-shape-stroke-width"
|
|
143
|
-
editor={ <NumericTextbox id="mobile-shape-stroke-width" showSpinButton={false} value="8" prefix={<Icon icon="border-width" />} /> }
|
|
144
|
-
/>
|
|
145
|
-
</Fieldset>
|
|
146
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
147
|
-
<FormField
|
|
148
|
-
label="Fill Color"
|
|
149
|
-
editor={ <ColorPicker id="mobile-shape-fill-color" value="#eae382" valueIconName="droplet" aria-label="Fill Color" /> }
|
|
150
|
-
/>
|
|
151
|
-
<FormField
|
|
152
|
-
label="Text Color"
|
|
153
|
-
editor={ <ColorPicker id="mobile-shape-text-color" value="#4a4500" valueIconName="foreground-color" aria-label="Text Color" /> }
|
|
154
|
-
/>
|
|
155
|
-
</Fieldset>
|
|
156
|
-
<FormField
|
|
157
|
-
label="Font Family"
|
|
158
|
-
editorId="mobile-shape-font-family"
|
|
159
|
-
editor={ <Combobox id="mobile-shape-font-family" prefix={<Icon icon="font-family" />} value="Trebuchet MS" /> }
|
|
160
|
-
/>
|
|
161
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
162
|
-
<FormField
|
|
163
|
-
label="Font Size"
|
|
164
|
-
editorId="mobile-shape-font-size"
|
|
165
|
-
editor={ <NumericTextbox id="mobile-shape-font-size" showSpinButton={false} value="24" prefix={<Icon icon="font-size" />} /> }
|
|
166
|
-
/>
|
|
167
|
-
<FormField
|
|
168
|
-
label="Alignment"
|
|
169
|
-
editor={
|
|
170
|
-
<ButtonGroup>
|
|
171
|
-
<Button className="k-group-start" icon="align-left" aria-label="Align Left"></Button>
|
|
172
|
-
<Button icon="align-center" selected aria-label="Align Center"></Button>
|
|
173
|
-
<Button className="k-group-end" icon="align-right" aria-label="Align Right"></Button>
|
|
174
|
-
</ButtonGroup>
|
|
175
|
-
}
|
|
176
|
-
/>
|
|
177
|
-
</Fieldset>
|
|
178
|
-
<FormField
|
|
179
|
-
label="Format"
|
|
180
|
-
editor={
|
|
181
|
-
<div className="k-imageeditor-controls">
|
|
182
|
-
<Button icon="bold" aria-label="Bold"></Button>
|
|
183
|
-
<Button icon="italic" aria-label="Italic"></Button>
|
|
184
|
-
<Button icon="underline" aria-label="Underline"></Button>
|
|
185
|
-
<Button icon="strikethrough" aria-label="Strikethrough"></Button>
|
|
186
|
-
<Button icon="convert-uppercase" aria-label="Uppercase"></Button>
|
|
187
|
-
<Button icon="convert-lowercase" aria-label="Lowercase"></Button>
|
|
188
|
-
</div>
|
|
189
|
-
}
|
|
190
|
-
/>
|
|
191
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
192
|
-
<FormField
|
|
193
|
-
label="Align Horizontal"
|
|
194
|
-
editor={
|
|
195
|
-
<ButtonGroup>
|
|
196
|
-
<Button className="k-group-start" icon="align-items-start" aria-label="Align Left"></Button>
|
|
197
|
-
<Button icon="align-items-center" aria-label="Align Center"></Button>
|
|
198
|
-
<Button className="k-group-end" icon="align-items-end" aria-label="Align Right"></Button>
|
|
199
|
-
</ButtonGroup>
|
|
200
|
-
}
|
|
201
|
-
/>
|
|
202
|
-
<FormField
|
|
203
|
-
label="Align Vertical"
|
|
204
|
-
editor={
|
|
205
|
-
<ButtonGroup>
|
|
206
|
-
<Button className="k-group-start" icon="align-items-start-alt" aria-label="Align Top"></Button>
|
|
207
|
-
<Button icon="align-items-center-alt" aria-label="Align Middle"></Button>
|
|
208
|
-
<Button className="k-group-end" icon="align-items-end-alt" aria-label="Align Bottom"></Button>
|
|
209
|
-
</ButtonGroup>
|
|
210
|
-
}
|
|
211
|
-
/>
|
|
212
|
-
</Fieldset>
|
|
213
|
-
</Form>
|
|
214
|
-
</ImageEditorPane>
|
|
215
|
-
}
|
|
216
|
-
>
|
|
217
|
-
<canvas width="326" height="203" role="img" aria-label="Image being edited" style={{ backgroundImage: "url('/packages/html/assets/sofia.jpg')", backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat" }}></canvas>
|
|
30
|
+
<ImageEditorInsertShape adaptive selected shapeType="Oval" alignment="center" strokeColor="#b0e855" strokeWidth={8} fillColor="#eae382" textColor="#4a4500" fontSize={24}>
|
|
31
|
+
<ImageEditorCanvas adaptive imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
218
32
|
<div className="k-imageeditor-resize" style={{ width: "165px", height: "54px", top: "75px", left: "81px" }}>
|
|
219
33
|
<div style={{
|
|
220
34
|
width: "100%",
|
|
@@ -241,122 +55,13 @@ export default () => (
|
|
|
241
55
|
<ImageEditorResizeHandles variant="mixed" />
|
|
242
56
|
<ImageEditorRotateHandle />
|
|
243
57
|
</div>
|
|
244
|
-
</
|
|
58
|
+
</ImageEditorInsertShape>
|
|
245
59
|
</div>
|
|
246
60
|
|
|
247
61
|
<div>
|
|
248
62
|
<h4>Tablet / Adaptive / Selected Tool / Panel Opened</h4>
|
|
249
|
-
<
|
|
250
|
-
|
|
251
|
-
style={{ width: "768px", height: "1024px" }}
|
|
252
|
-
toolbarItems={contextualToolbarItems}
|
|
253
|
-
sidebarItems={shapeSidebarItems}
|
|
254
|
-
actionPane={
|
|
255
|
-
<ImageEditorPane adaptive title="Shape">
|
|
256
|
-
<SegmentedControl thumbStyles={{ width: "50%" }} stretched aria-label="Shape or Line" style={{ flexShrink: 0 }}>
|
|
257
|
-
<SegmentedControlButton icon="shapes" selected>Shape</SegmentedControlButton>
|
|
258
|
-
<SegmentedControlButton icon="shape-line">Line</SegmentedControlButton>
|
|
259
|
-
</SegmentedControl>
|
|
260
|
-
|
|
261
|
-
<Form tag="div">
|
|
262
|
-
<FormField
|
|
263
|
-
label="Type"
|
|
264
|
-
editor={
|
|
265
|
-
<ImageEditorOptionList scrollable scrollingPosition="end">
|
|
266
|
-
{shapeTypes.map((shape) => (
|
|
267
|
-
<ImageEditorOptionPreview key={shape.label} label={shape.label} selected={shape.label === "Oval"}>
|
|
268
|
-
<div className="k-imageeditor-option-content">
|
|
269
|
-
<Icon icon={shape.icon} />
|
|
270
|
-
<span className="k-imageeditor-option-label">{shape.label}</span>
|
|
271
|
-
</div>
|
|
272
|
-
</ImageEditorOptionPreview>
|
|
273
|
-
))}
|
|
274
|
-
</ImageEditorOptionList>
|
|
275
|
-
}
|
|
276
|
-
/>
|
|
277
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
278
|
-
<FormField
|
|
279
|
-
label="Stroke Color"
|
|
280
|
-
editor={ <ColorPicker id="tablet-shape-stroke-color" value="#b0e855" aria-label="Stroke Color" /> }
|
|
281
|
-
/>
|
|
282
|
-
<FormField
|
|
283
|
-
label="Stroke Width"
|
|
284
|
-
editorId="tablet-shape-stroke-width"
|
|
285
|
-
editor={ <NumericTextbox id="tablet-shape-stroke-width" showSpinButton={false} value="8" prefix={<Icon icon="border-width" />} /> }
|
|
286
|
-
/>
|
|
287
|
-
</Fieldset>
|
|
288
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
289
|
-
<FormField
|
|
290
|
-
label="Fill Color"
|
|
291
|
-
editor={ <ColorPicker id="tablet-shape-fill-color" value="#eae382" valueIconName="droplet" aria-label="Fill Color" /> }
|
|
292
|
-
/>
|
|
293
|
-
<FormField
|
|
294
|
-
label="Text Color"
|
|
295
|
-
editor={ <ColorPicker id="tablet-shape-text-color" value="#4a4500" valueIconName="foreground-color" aria-label="Text Color" /> }
|
|
296
|
-
/>
|
|
297
|
-
</Fieldset>
|
|
298
|
-
<FormField
|
|
299
|
-
label="Font Family"
|
|
300
|
-
editorId="tablet-shape-font-family"
|
|
301
|
-
editor={ <Combobox id="tablet-shape-font-family" prefix={<Icon icon="font-family" />} value="Trebuchet MS" /> }
|
|
302
|
-
/>
|
|
303
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
304
|
-
<FormField
|
|
305
|
-
label="Font Size"
|
|
306
|
-
editorId="tablet-shape-font-size"
|
|
307
|
-
editor={ <NumericTextbox id="tablet-shape-font-size" showSpinButton={false} value="24" prefix={<Icon icon="font-size" />} /> }
|
|
308
|
-
/>
|
|
309
|
-
<FormField
|
|
310
|
-
label="Alignment"
|
|
311
|
-
editor={
|
|
312
|
-
<ButtonGroup>
|
|
313
|
-
<Button className="k-group-start" icon="align-left" aria-label="Align Left"></Button>
|
|
314
|
-
<Button icon="align-center" selected aria-label="Align Center"></Button>
|
|
315
|
-
<Button className="k-group-end" icon="align-right" aria-label="Align Right"></Button>
|
|
316
|
-
</ButtonGroup>
|
|
317
|
-
}
|
|
318
|
-
/>
|
|
319
|
-
</Fieldset>
|
|
320
|
-
<FormField
|
|
321
|
-
label="Format"
|
|
322
|
-
editor={
|
|
323
|
-
<div className="k-imageeditor-controls">
|
|
324
|
-
<Button icon="bold" aria-label="Bold"></Button>
|
|
325
|
-
<Button icon="italic" aria-label="Italic"></Button>
|
|
326
|
-
<Button icon="underline" aria-label="Underline"></Button>
|
|
327
|
-
<Button icon="strikethrough" aria-label="Strikethrough"></Button>
|
|
328
|
-
<Button icon="convert-uppercase" aria-label="Uppercase"></Button>
|
|
329
|
-
<Button icon="convert-lowercase" aria-label="Lowercase"></Button>
|
|
330
|
-
</div>
|
|
331
|
-
}
|
|
332
|
-
/>
|
|
333
|
-
<Fieldset layout="grid" cols={2} gutters={{ cols: "16px" }}>
|
|
334
|
-
<FormField
|
|
335
|
-
label="Align Horizontal"
|
|
336
|
-
editor={
|
|
337
|
-
<ButtonGroup>
|
|
338
|
-
<Button className="k-group-start" icon="align-items-start" aria-label="Align Left"></Button>
|
|
339
|
-
<Button icon="align-items-center" aria-label="Align Center"></Button>
|
|
340
|
-
<Button className="k-group-end" icon="align-items-end" aria-label="Align Right"></Button>
|
|
341
|
-
</ButtonGroup>
|
|
342
|
-
}
|
|
343
|
-
/>
|
|
344
|
-
<FormField
|
|
345
|
-
label="Align Vertical"
|
|
346
|
-
editor={
|
|
347
|
-
<ButtonGroup>
|
|
348
|
-
<Button className="k-group-start" icon="align-items-start-alt" aria-label="Align Top"></Button>
|
|
349
|
-
<Button icon="align-items-center-alt" aria-label="Align Middle"></Button>
|
|
350
|
-
<Button className="k-group-end" icon="align-items-end-alt" aria-label="Align Bottom"></Button>
|
|
351
|
-
</ButtonGroup>
|
|
352
|
-
}
|
|
353
|
-
/>
|
|
354
|
-
</Fieldset>
|
|
355
|
-
</Form>
|
|
356
|
-
</ImageEditorPane>
|
|
357
|
-
}
|
|
358
|
-
>
|
|
359
|
-
<canvas width="720" height="393" role="img" aria-label="Image being edited" style={{ backgroundImage: "url('/packages/html/assets/sofia.jpg')", backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat" }}></canvas>
|
|
63
|
+
<ImageEditorInsertShape adaptive selected style={{ width: "768px", height: "1024px" }} shapeType="Oval" alignment="center" strokeColor="#b0e855" strokeWidth={8} fillColor="#eae382" textColor="#4a4500" fontSize={24}>
|
|
64
|
+
<ImageEditorCanvas width={720} height={393} imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
360
65
|
<div className="k-imageeditor-resize" style={{ width: "234px", height: "77px", top: "156px", left: "243px" }}>
|
|
361
66
|
<div style={{
|
|
362
67
|
width: "100%",
|
|
@@ -383,7 +88,7 @@ export default () => (
|
|
|
383
88
|
<ImageEditorResizeHandles variant="mixed" />
|
|
384
89
|
<ImageEditorRotateHandle />
|
|
385
90
|
</div>
|
|
386
|
-
</
|
|
91
|
+
</ImageEditorInsertShape>
|
|
387
92
|
</div>
|
|
388
93
|
|
|
389
94
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorAdjustments } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export default () => (
|
|
@@ -7,7 +8,7 @@ export default () => (
|
|
|
7
8
|
|
|
8
9
|
<h4>Image Editor Adjustments Pane</h4>
|
|
9
10
|
|
|
10
|
-
<ImageEditorAdjustments contentHeight="640px"
|
|
11
|
+
<ImageEditorAdjustments contentHeight="640px" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
11
12
|
|
|
12
13
|
</div>
|
|
13
14
|
</>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorBlur, ImageEditorResizeHandles, ImageEditorRotateHandle } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
import { Button } from '../../button';
|
|
3
4
|
import { FloatingToolbar } from '../../floating-toolbar/floating-toolbar.spec';
|
|
4
5
|
|
|
@@ -9,7 +10,7 @@ export default () =>(
|
|
|
9
10
|
|
|
10
11
|
<h4>Image Editor Blur Pane — No Selection</h4>
|
|
11
12
|
|
|
12
|
-
<ImageEditorBlur contentHeight="482px" />
|
|
13
|
+
<ImageEditorBlur contentHeight="482px" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
13
14
|
|
|
14
15
|
<h4>Image Editor Blur Pane — Rectangular Markee</h4>
|
|
15
16
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorCrop } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export default () =>(
|
|
@@ -7,7 +8,7 @@ export default () =>(
|
|
|
7
8
|
|
|
8
9
|
<h4>Image Editor Crop Pane — Default</h4>
|
|
9
10
|
|
|
10
|
-
<ImageEditorCrop contentHeight="482px" />
|
|
11
|
+
<ImageEditorCrop contentHeight="482px" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
11
12
|
|
|
12
13
|
<h4>Image Editor Crop Pane — Custom Crop</h4>
|
|
13
14
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorFilters } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export default () => (
|
|
@@ -7,7 +8,7 @@ export default () => (
|
|
|
7
8
|
|
|
8
9
|
<h4>Image Editor Filters Pane — None Selected</h4>
|
|
9
10
|
|
|
10
|
-
<ImageEditorFilters contentHeight="640px" preset="none" />
|
|
11
|
+
<ImageEditorFilters contentHeight="640px" preset="none" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
11
12
|
|
|
12
13
|
</div>
|
|
13
14
|
</>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorFrames } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export default () => (
|
|
@@ -7,15 +8,15 @@ export default () => (
|
|
|
7
8
|
|
|
8
9
|
<h4>Image Editor Frames Pane - None</h4>
|
|
9
10
|
|
|
10
|
-
<ImageEditorFrames contentHeight="640px" style="none" imageRoundness={24} />
|
|
11
|
+
<ImageEditorFrames contentHeight="640px" style="none" imageRoundness={24} imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
11
12
|
|
|
12
13
|
<h4>Image Editor Frames Pane - Single</h4>
|
|
13
14
|
|
|
14
|
-
<ImageEditorFrames contentHeight="640px" style="single" imageRoundness={24} />
|
|
15
|
+
<ImageEditorFrames contentHeight="640px" style="single" imageRoundness={24} frameThickness={12} frameRoundness={16} offset={12} imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
15
16
|
|
|
16
17
|
<h4>Image Editor Frames Pane - Multiple</h4>
|
|
17
18
|
|
|
18
|
-
<ImageEditorFrames contentHeight="640px" style="multiple" imageRoundness={24} />
|
|
19
|
+
<ImageEditorFrames contentHeight="640px" style="multiple" imageRoundness={24} frameThickness={12} frameRoundness={40} offset={12} imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
19
20
|
|
|
20
21
|
</div>
|
|
21
22
|
</>
|
|
@@ -15,7 +15,7 @@ export default () => (
|
|
|
15
15
|
|
|
16
16
|
<h4>Image Editor Insert Shape Pane — Selected Shape</h4>
|
|
17
17
|
|
|
18
|
-
<ImageEditorInsertShape contentHeight="1016px" selected shapeType="Oval" strokeColor="#b0e855" strokeWidth={8} fillColor="#eae382" textColor="#4a4500" fontSize={24}>
|
|
18
|
+
<ImageEditorInsertShape contentHeight="1016px" selected shapeType="Oval" alignment="center" strokeColor="#b0e855" strokeWidth={8} fillColor="#eae382" textColor="#4a4500" fontSize={24}>
|
|
19
19
|
<canvas width="494" height="307" role="img" aria-label="Image being edited" style={{ backgroundImage: "url('/packages/html/assets/sofia.jpg')", backgroundSize: "cover" }}></canvas>
|
|
20
20
|
<div className="k-imageeditor-resize" style={{ width: "165px", height: "54px", top: "140px", left: "165px" }}>
|
|
21
21
|
<div style={{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageEditor,
|
|
1
|
+
import { ImageEditor, ImageEditorNormal, ImageEditorInsertText, ImageEditorResize, ImageEditorResizeHandles, ImageEditorRotateHandle } from '..';
|
|
2
2
|
import { ImageEditorPlaceholder } from '../imageeditor-placeholder';
|
|
3
3
|
import { Loader } from '../../loader';
|
|
4
4
|
import { Button } from '../../button';
|
|
@@ -21,7 +21,7 @@ export default () => (
|
|
|
21
21
|
<div id="test-area" className="k-d-grid k-grid-cols-1">
|
|
22
22
|
|
|
23
23
|
<span>Empty</span>
|
|
24
|
-
<
|
|
24
|
+
<ImageEditorNormal
|
|
25
25
|
contentHeight="260px"
|
|
26
26
|
placeholder={
|
|
27
27
|
<ImageEditorPlaceholder
|
|
@@ -34,7 +34,7 @@ export default () => (
|
|
|
34
34
|
/>
|
|
35
35
|
|
|
36
36
|
<span>Loading</span>
|
|
37
|
-
<
|
|
37
|
+
<ImageEditorNormal
|
|
38
38
|
contentHeight="260px"
|
|
39
39
|
placeholder={
|
|
40
40
|
<ImageEditorPlaceholder>
|
|
@@ -68,7 +68,7 @@ export default () => (
|
|
|
68
68
|
</ImageEditor>
|
|
69
69
|
|
|
70
70
|
<span>Error - Failed Upload</span>
|
|
71
|
-
<
|
|
71
|
+
<ImageEditorNormal
|
|
72
72
|
contentHeight="260px"
|
|
73
73
|
placeholder={
|
|
74
74
|
<ImageEditorPlaceholder
|
|
@@ -81,7 +81,7 @@ export default () => (
|
|
|
81
81
|
/>
|
|
82
82
|
|
|
83
83
|
<span>Error - Unsupported File Format</span>
|
|
84
|
-
<
|
|
84
|
+
<ImageEditorNormal
|
|
85
85
|
contentHeight="260px"
|
|
86
86
|
placeholder={
|
|
87
87
|
<ImageEditorPlaceholder
|
|
@@ -94,7 +94,7 @@ export default () => (
|
|
|
94
94
|
/>
|
|
95
95
|
|
|
96
96
|
<span>Error - Maximum File Size Exceeded</span>
|
|
97
|
-
<
|
|
97
|
+
<ImageEditorNormal
|
|
98
98
|
contentHeight="260px"
|
|
99
99
|
placeholder={
|
|
100
100
|
<ImageEditorPlaceholder
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorPixelate, ImageEditorResizeHandles, ImageEditorRotateHandle } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
import { Button } from '../../button';
|
|
3
4
|
import { FloatingToolbar } from '../../floating-toolbar/floating-toolbar.spec';
|
|
4
5
|
|
|
@@ -9,7 +10,7 @@ export default () =>(
|
|
|
9
10
|
|
|
10
11
|
<h4>Image Editor Pixelate Pane — No Selection</h4>
|
|
11
12
|
|
|
12
|
-
<ImageEditorPixelate contentHeight="482px" />
|
|
13
|
+
<ImageEditorPixelate contentHeight="482px" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
13
14
|
|
|
14
15
|
<h4>Image Editor Pixelate Pane — Rectangular Markee</h4>
|
|
15
16
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorResize } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
import { Tooltip } from '../../tooltip';
|
|
3
4
|
|
|
4
5
|
|
|
@@ -8,7 +9,7 @@ export default () =>(
|
|
|
8
9
|
|
|
9
10
|
<h4>Image Editor Resize Pane — Default</h4>
|
|
10
11
|
|
|
11
|
-
<ImageEditorResize contentHeight="482px" />
|
|
12
|
+
<ImageEditorResize contentHeight="482px" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
12
13
|
|
|
13
14
|
<h4>Image Editor Resize Pane — Resizing</h4>
|
|
14
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageEditor, ImageEditorInsertShape, ImageEditorResizeHandles, ImageEditorRotateHandle } from '..';
|
|
2
2
|
import { Button } from '../../button';
|
|
3
3
|
import { FloatingToolbar } from '../../floating-toolbar/floating-toolbar.spec';
|
|
4
4
|
|
|
@@ -22,14 +22,14 @@ export default () => (
|
|
|
22
22
|
|
|
23
23
|
<div>
|
|
24
24
|
<h4>Tablet / Responsive / Unselected Tool</h4>
|
|
25
|
-
<
|
|
25
|
+
<ImageEditor contentHeight="997px">
|
|
26
26
|
<canvas width="659" height="410" role="img" aria-label="Image being edited" style={{ backgroundImage: "url('/packages/html/assets/sofia.jpg')", backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat" }}></canvas>
|
|
27
|
-
</
|
|
27
|
+
</ImageEditor>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<div>
|
|
31
31
|
<h4>Tablet / Responsive / Selected Tool / Panel Opened</h4>
|
|
32
|
-
<ImageEditorInsertShape contentHeight="997px" selected shapeType="Oval" strokeColor="#b0e855" strokeWidth={8} fillColor="#eae382" textColor="#4a4500" fontSize={24}>
|
|
32
|
+
<ImageEditorInsertShape contentHeight="997px" selected shapeType="Oval" alignment="center" strokeColor="#b0e855" strokeWidth={8} fillColor="#eae382" textColor="#4a4500" fontSize={24}>
|
|
33
33
|
<canvas width="338" height="211" role="img" aria-label="Image being edited" style={{ backgroundImage: "url('/packages/html/assets/sofia.jpg')", backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat" }}></canvas>
|
|
34
34
|
<div className="k-imageeditor-resize" style={{ width: "130px", height: "43px", top: "84px", left: "105px" }}>
|
|
35
35
|
<div style={{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorRotate, ImageEditorRotateHandle } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
import { Tooltip } from '../../tooltip';
|
|
3
4
|
|
|
4
5
|
|
|
@@ -8,7 +9,7 @@ export default () =>(
|
|
|
8
9
|
|
|
9
10
|
<h4>Image Editor Rotate Pane — Default</h4>
|
|
10
11
|
|
|
11
|
-
<ImageEditorRotate contentHeight="482px" />
|
|
12
|
+
<ImageEditorRotate contentHeight="482px" imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
12
13
|
|
|
13
14
|
<h4>Image Editor Rotate Pane — Rotating</h4>
|
|
14
15
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageEditorShadow } from '..';
|
|
2
|
+
import { IMAGEEDITOR_TEST_IMAGE_SRC } from '../constants';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export default () => (
|
|
@@ -7,7 +8,7 @@ export default () => (
|
|
|
7
8
|
|
|
8
9
|
<h4>Image Editor Shadow Pane</h4>
|
|
9
10
|
|
|
10
|
-
<ImageEditorShadow contentHeight="640px" positionX={2} positionY={-4} blur={32} spread={12} opacity={32} />
|
|
11
|
+
<ImageEditorShadow contentHeight="640px" positionX={2} positionY={-4} blur={32} spread={12} opacity={32} imageSrc={IMAGEEDITOR_TEST_IMAGE_SRC} />
|
|
11
12
|
|
|
12
13
|
</div>
|
|
13
14
|
</>
|