Fixed possibility to use different texts for buttons and moved mirror functionality
This commit is contained in:
+12
-2
@@ -54,7 +54,7 @@
|
||||
}
|
||||
|
||||
function handleMirrorChange() {
|
||||
editor.canvas.getImage().transformation.set('mirror', this.checked);
|
||||
editor.canvas.getMirror().set(this.checked);
|
||||
}
|
||||
|
||||
function handleNoCropChange() {
|
||||
@@ -101,7 +101,17 @@
|
||||
|
||||
function init() {
|
||||
editor = new ImageEditor('canvas-editor', {
|
||||
type: 'wallpaper',
|
||||
type: 'canvas',
|
||||
buttons: {
|
||||
flat: 'Flat',
|
||||
threeD: '3D',
|
||||
showMurals: 'Show Murals Panel',
|
||||
hideMurals: 'hide-murals',
|
||||
showRulers: 'show-rulers',
|
||||
hideRulers: 'hide-rulers',
|
||||
showFullscreen: 'show-fullscreen',
|
||||
hideFullscreen: 'hide-fullscreen',
|
||||
}
|
||||
})
|
||||
.loadImage(imageUrl, function() {
|
||||
$input.w.trigger('input');
|
||||
|
||||
Reference in New Issue
Block a user