You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/extensions/contextmenu/jspanel.contextmenu.js
+22-15Lines changed: 22 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,17 @@
1
-
/* jspanel.contextmenu.js (c) Stefan Sträßer(Flyer53) <info@jspanel.de> license: MIT */
2
-
'use strict';//import {jsPanel} from '../../jspanel.js';
3
-
1
+
/**
2
+
* jsPanel - A JavaScript library to create highly configurable multifunctional floating panels that can also be used as modal, tooltip, hint or contextmenu
3
+
* @version v4.9.5
4
+
* @homepage https://jspanel.de/
5
+
* @license MIT
6
+
* @author Stefan Sträßer - info@jspanel.de
7
+
* @github https://github.com/Flyer53/jsPanel4.git
8
+
*/
9
+
10
+
'use strict';
4
11
if(!jsPanel.contextmenu){
5
12
jsPanel.contextmenu={
6
-
version: '1.1.1',
7
-
date: '2019-05-18 10:15',
13
+
version: '1.1.2',
14
+
date: '2020-01-18 15:00',
8
15
defaults: {
9
16
//position: is set in jsPanel.contextmenu.create()
10
17
//container: is set in jsPanel.contextmenu.create()
@@ -91,11 +98,13 @@ if (!jsPanel.contextmenu) {
91
98
jsPanel.contextmenu.cmOverflow(cm);
92
99
cm.addEventListener('mouseleave',function(){
93
100
cm.close();
94
-
},false);// don't close contextmenu on mousedown in target
101
+
},false);// don't close contextmenu on mousedown in contextmenu
95
102
96
-
cm.addEventListener(jsPanel.evtStart,function(e){
97
-
e.stopPropagation();
98
-
},false);
103
+
jsPanel.pointerdown.forEach(function(evt){
104
+
cm.addEventListener(evt,function(e){
105
+
e.stopPropagation();
106
+
});
107
+
});
99
108
});
100
109
},false);
101
110
}
@@ -116,10 +125,8 @@ if (!jsPanel.contextmenu) {
116
125
});
117
126
},false);
118
127
});
119
-
}// Add CommonJS module exports, so it can be imported using require() in Node.js
Copy file name to clipboardExpand all lines: dist/extensions/dock/jspanel.dock.js
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,13 @@
1
-
/* jspanel.dock.js v1.1.2 - (c) Stefan Sträßer(Flyer53) <info@jspanel.de> license: MIT */
2
-
'use strict';//import {jsPanel} from '../../jspanel.js';
3
-
1
+
/**
2
+
* jsPanel - A JavaScript library to create highly configurable multifunctional floating panels that can also be used as modal, tooltip, hint or contextmenu
3
+
* @version v4.9.5
4
+
* @homepage https://jspanel.de/
5
+
* @license MIT
6
+
* @author Stefan Sträßer - info@jspanel.de
7
+
* @github https://github.com/Flyer53/jsPanel4.git
8
+
*/
9
+
10
+
'use strict';
4
11
functiondockPanel(config,cb){
5
12
varconfigDefault={
6
13
position: {
@@ -194,7 +201,7 @@ function dockPanel(config, cb) {
194
201
slave.options.minimizeTo=false;// remove slave from master.slaves Set when slave is closed
195
202
196
203
slave.options.onclosed.push(function(){
197
-
master.slaves.delete(slave);
204
+
master.slaves["delete"](slave);
198
205
});
199
206
slave.options.onfronted.push(function(panel){
200
207
varzI=panel.style.zIndex;
@@ -258,9 +265,8 @@ dockPanel.getDate = function () {
258
265
259
266
jsPanel.extend({
260
267
dock: dockPanel
261
-
});// Add CommonJS module exports, so it can be imported using require() in Node.js
Copy file name to clipboardExpand all lines: dist/extensions/hint/jspanel.hint.js
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,13 @@
1
-
/* jspanel.hint.js v1.2.3 (c) Stefan Sträßer(Flyer53) <info@jspanel.de> license: MIT */
2
-
'use strict';//import {jsPanel} from '../../jspanel.js';
1
+
/**
2
+
* jsPanel - A JavaScript library to create highly configurable multifunctional floating panels that can also be used as modal, tooltip, hint or contextmenu
3
+
* @version v4.9.5
4
+
* @homepage https://jspanel.de/
5
+
* @license MIT
6
+
* @author Stefan Sträßer - info@jspanel.de
7
+
* @github https://github.com/Flyer53/jsPanel4.git
8
+
*/
3
9
10
+
'use strict';
4
11
if(!jsPanel.hint){
5
12
jsPanel.hint={
6
13
version: '1.2.3',
@@ -29,10 +36,8 @@ if (!jsPanel.hint) {
29
36
});
30
37
}
31
38
};
32
-
}// Add CommonJS module exports, so it can be imported using require() in Node.js
Copy file name to clipboardExpand all lines: dist/extensions/layout/jspanel.layout.js
+18-11Lines changed: 18 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,17 @@
1
-
/* jspanel.layout.js (c) Stefan Sträßer(Flyer53) <info@jspanel.de> license: MIT */
2
-
'use strict';//import {jsPanel} from '../../jspanel.js';
1
+
/**
2
+
* jsPanel - A JavaScript library to create highly configurable multifunctional floating panels that can also be used as modal, tooltip, hint or contextmenu
0 commit comments