Fixed possibility to use different texts for buttons and moved mirror functionality

This commit is contained in:
Erik Tiekstra
2017-06-02 14:27:29 +02:00
parent c377532138
commit b237e239a5
5 changed files with 62 additions and 26 deletions
+12 -2
View File
@@ -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');