forked from swmitra/html-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBorderRadiusHandler.js
40 lines (30 loc) · 1.29 KB
/
BorderRadiusHandler.js
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
/**
* @author Swagatam Mitra
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, document, console, brackets, $, Mustache */
define(function (require, exports, module) {
"use strict";
require("borderradiusresizer/TopRightCornerRadiusHandler");
require("borderradiusresizer/BottomRightCornerRadiusHandler");
require("borderradiusresizer/TopLeftCornerRadiusHandler");
require("borderradiusresizer/BottomLeftCornerRadiusHandler");
function _showRadiusEditMode(event){
$("#border-outline").show();
$("#selection-outline").addClass('multiSelectStyle');
$(".dragResizer").hide();
$("#element-Settings").hide();
$("#position-tooltip-display").hide();
event.preventDefault();
event.stopPropagation();
}
function _hideRadiusEditMode(event){
$("#border-outline").hide();
$("#selection-outline").removeClass('multiSelectStyle');
$(".dragResizer").show();
$("#element-Settings").show();
$("#position-tooltip-display").show();
}
$(document).on("border-radius-mode-on","#html-design-editor",_showRadiusEditMode);
$(document).on("border-radius-mode-off","#html-design-editor",_hideRadiusEditMode);
});