Skip to content

Commit 43551f1

Browse files
author
Stefan Sträßer
committed
v4.9.5 release
1 parent 7bf0d46 commit 43551f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5183
-2944
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## <span style='color:#563D7C;'>CHANGELOG</span>
22

3+
### <span style='color:#563D7C;'>Version 4.9.5 *2020-02-01*</span>
4+
5+
+ **bugfix** in option resizeit parameter `aspectRatio` when using modifier keys
6+
+ **fixed/improved** some minor code issues
7+
38
### <span style='color:#563D7C;'>Versions 4.9.3/4.9.4 *2020-01-16*</span>
49

510
+ this releases only fix an issue with `package.json`

LICENSE.TXT renamed to LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013 - 2018 Stefan Sträßer, http://stefanstraesser.eu/
3+
Copyright (c) 2013 - 2020 Stefan Sträßer, info@jspanel.de, https://jspanel.de/
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -36,4 +36,4 @@ ZWECK SOWIE JEGLICHER RECHTSVERLETZUNG, JEDOCH NICHT DARAUF BESCHRÄNKT. IN KEIN
3636
FALL SIND DIE AUTOREN ODER COPYRIGHTINHABER FÜR JEGLICHEN SCHADEN ODER SONSTIGE
3737
ANSPRÜCHE HAFTBAR ZU MACHEN, OB INFOLGE DER ERFÜLLUNG EINES VERTRAGES, EINES DELIKTES
3838
ODER ANDERS IM ZUSAMMENHANG MIT DER SOFTWARE ODER SONSTIGER VERWENDUNG DER SOFTWARE
39-
ENTSTANDEN.
39+
ENTSTANDEN.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![license MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![npm version](https://badge.fury.io/js/jspanel4.svg)](https://badge.fury.io/js/jspanel4) [![npm](https://img.shields.io/npm/dt/express.svg)](https://www.npmjs.com/package/jspanel4) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/jsPanel/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
22

3-
## [jsPanel 4.9.4 released 2020-01-16](#)
3+
## [jsPanel 4.9.5 released 2020-02-01](#)
44

55
<img src="https://res.cloudinary.com/stefanstraesser-eu/image/upload/v1558601426/jsPanel4.7.0-sample-panels-1920_yzobd9.jpg">
66

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspanel4x",
3-
"version": "4.9.4",
3+
"version": "4.9.5",
44
"authors": [
55
"Stefan Straesser <info@jspanel.de> (http://jspanel.de/)"
66
],

dist/extensions/contextmenu/jspanel.contextmenu.js

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff 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';
411
if (!jsPanel.contextmenu) {
512
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',
815
defaults: {
916
//position: is set in jsPanel.contextmenu.create()
1017
//container: is set in jsPanel.contextmenu.create()
@@ -91,11 +98,13 @@ if (!jsPanel.contextmenu) {
9198
jsPanel.contextmenu.cmOverflow(cm);
9299
cm.addEventListener('mouseleave', function () {
93100
cm.close();
94-
}, false); // don't close contextmenu on mousedown in target
101+
}, false); // don't close contextmenu on mousedown in contextmenu
95102

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+
});
99108
});
100109
}, false);
101110
}
@@ -116,10 +125,8 @@ if (!jsPanel.contextmenu) {
116125
});
117126
}, false);
118127
});
119-
} // Add CommonJS module exports, so it can be imported using require() in Node.js
120-
// https://nodejs.org/docs/latest/api/modules.html
128+
}
121129

122-
123-
if (typeof module !== 'undefined') {
124-
module.exports = jsPanel;
125-
}
130+
// Add CommonJS module exports, so it can be imported using require() in Node.js
131+
// https://nodejs.org/docs/latest/api/modules.html
132+
if (typeof module !== 'undefined') { module.exports = jsPanel; }

dist/extensions/contextmenu/jspanel.contextmenu.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/extensions/dock/jspanel.dock.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff 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';
411
function dockPanel(config, cb) {
512
var configDefault = {
613
position: {
@@ -194,7 +201,7 @@ function dockPanel(config, cb) {
194201
slave.options.minimizeTo = false; // remove slave from master.slaves Set when slave is closed
195202

196203
slave.options.onclosed.push(function () {
197-
master.slaves.delete(slave);
204+
master.slaves["delete"](slave);
198205
});
199206
slave.options.onfronted.push(function (panel) {
200207
var zI = panel.style.zIndex;
@@ -258,9 +265,8 @@ dockPanel.getDate = function () {
258265

259266
jsPanel.extend({
260267
dock: dockPanel
261-
}); // Add CommonJS module exports, so it can be imported using require() in Node.js
262-
// https://nodejs.org/docs/latest/api/modules.html
268+
});
263269

264-
if (typeof module !== 'undefined') {
265-
module.exports = jsPanel;
266-
}
270+
// Add CommonJS module exports, so it can be imported using require() in Node.js
271+
// https://nodejs.org/docs/latest/api/modules.html
272+
if (typeof module !== 'undefined') { module.exports = jsPanel; }

dist/extensions/hint/jspanel.hint.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff 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+
*/
39

10+
'use strict';
411
if (!jsPanel.hint) {
512
jsPanel.hint = {
613
version: '1.2.3',
@@ -29,10 +36,8 @@ if (!jsPanel.hint) {
2936
});
3037
}
3138
};
32-
} // Add CommonJS module exports, so it can be imported using require() in Node.js
33-
// https://nodejs.org/docs/latest/api/modules.html
34-
39+
}
3540

36-
if (typeof module !== 'undefined') {
37-
module.exports = jsPanel;
38-
}
41+
// Add CommonJS module exports, so it can be imported using require() in Node.js
42+
// https://nodejs.org/docs/latest/api/modules.html
43+
if (typeof module !== 'undefined') { module.exports = jsPanel; }

dist/extensions/layout/jspanel.layout.js

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff 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
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+
*/
39

10+
'use strict';
411
if (!jsPanel.layout) {
512
jsPanel.layout = {
6-
version: '1.3.0',
7-
date: '2019-11-26 20:30',
13+
version: '1.3.1',
14+
date: '2020-01-18 14:53',
815
storage: localStorage,
916
save: function save() {
1017
var saveConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -62,6 +69,7 @@ if (!jsPanel.layout) {
6269
var id, config, storageName;
6370

6471
if (!restoreConfig.id || !restoreConfig.config) {
72+
// eslint-disable-next-line no-console
6573
console.error('Id or predefined panel configuration is missing!');
6674
return false;
6775
} else {
@@ -108,6 +116,7 @@ if (!jsPanel.layout) {
108116
var predefinedConfigs, storageName;
109117

110118
if (!restoreConfig.configs) {
119+
// eslint-disable-next-line no-console
111120
console.error('Object with predefined panel configurations is missing!');
112121
return false;
113122
} else {
@@ -123,7 +132,7 @@ if (!jsPanel.layout) {
123132
// this makes it unnecessary that identifiers for a certain config is the same as id in config
124133

125134
for (var conf in predefinedConfigs) {
126-
if (predefinedConfigs.hasOwnProperty(conf)) {
135+
if (Object.prototype.hasOwnProperty.call(predefinedConfigs, conf)) {
127136
if (predefinedConfigs[conf].id === pId) {
128137
jsPanel.layout.restoreId({
129138
id: pId,
@@ -139,10 +148,8 @@ if (!jsPanel.layout) {
139148
}
140149
}
141150
};
142-
} // Add CommonJS module exports, so it can be imported using require() in Node.js
143-
// https://nodejs.org/docs/latest/api/modules.html
144-
151+
}
145152

146-
if (typeof module !== 'undefined') {
147-
module.exports = jsPanel;
148-
}
153+
// Add CommonJS module exports, so it can be imported using require() in Node.js
154+
// https://nodejs.org/docs/latest/api/modules.html
155+
if (typeof module !== 'undefined') { module.exports = jsPanel; }

dist/extensions/layout/jspanel.layout.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)