simple-window-manager 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsdoc.json +1 -1
- package/package.json +14 -14
- package/public/simple-window-manager.es.js +353 -338
- package/public/simple-window-manager.es.js.map +1 -1
- package/public/simple-window-manager.min.js +1 -1
- package/public/simple-window-manager.min.js.map +1 -1
- package/rollup.config.js +1 -1
- package/src/Window.js +2 -0
- package/src/WindowManager.js +1 -0
- package/images/src/images.js/export const close = '<?xml version=/"1.0/" encoding=/"UTF-8/" standalone=/"no/"?><!DOCTYPE svg PUBLIC /"-/W3C/DTD SVG 1.1/EN/" /"http:/www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd/"><svg width=/"100%/" height=/"100%/" viewBox=/"0 0 20 20/" version=/"1.1/" xmlns=/"http:/www.w3.org/2000/svg/" xmlns:xlink=/"http:/www.w3.org/1999/xlink/" xml:space=/"preserve/" xmlns:serif=/"http:/www.serif.com//" style=/"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;/"><rect id=/"close/" x=/"0/" y=/"0/" width=/"20/" height=/"20/" style=/"fill:none;/"/><g><path d=/"M3.5,3.5l13,13/" style=/"fill:none;stroke:#fff;stroke-width:3px;/"/><path d=/"M16.5,3.5l-13,13/" style=/"fill:none;stroke:#fff;stroke-width:3px;/"/></g></svg>';export const minimize = '<?xml version=/"1.0/" encoding=/"UTF-8/" standalone=/"no/"?><!DOCTYPE svg PUBLIC /"-/W3C/DTD SVG 1.1/EN/" /"http:/www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd/"><svg width=/"100%/" height=/"100%/" viewBox=/"0 0 20 20/" version=/"1.1/" xmlns=/"http:/www.w3.org/2000/svg/" xmlns:xlink=/"http:/www.w3.org/1999/xlink/" xml:space=/"preserve/" xmlns:serif=/"http:/www.serif.com//" style=/"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;/"><rect id=/"minimize/" x=/"0/" y=/"0/" width=/"20/" height=/"20/" style=/"fill:none;/"/><rect x=/"2/" y=/"15.6/" width=/"16/" height=/"3.2/" style=/"fill:#fff;/"/></svg>';export const resize = '<?xml version=/"1.0/" encoding=/"UTF-8/" standalone=/"no/"?><!DOCTYPE svg PUBLIC /"-/W3C/DTD SVG 1.1/EN/" /"http:/www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd/"><svg width=/"100%/" height=/"100%/" viewBox=/"0 0 20 20/" version=/"1.1/" xmlns=/"http:/www.w3.org/2000/svg/" xmlns:xlink=/"http:/www.w3.org/1999/xlink/" xml:space=/"preserve/" xmlns:serif=/"http:/www.serif.com//" style=/"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;/"><rect id=/"resize/" x=/"0/" y=/"0/" width=/"20/" height=/"20/" style=/"fill:none;/"/><clipPath id=/"_clip1/"><rect x=/"0/" y=/"0/" width=/"20/" height=/"20/"/></clipPath><g clip-path=/"url(#_clip1)/"><rect x=/"0/" y=/"16.8/" width=/"20/" height=/"3.2/" style=/"fill:#fff;/"/><path d=/"M17.737,3.595l-14.142,14.142l2.263,2.263l14.142,-14.142l-2.263,-2.263Z/" style=/"fill:#fff;/"/><path d=/"M16.8,0l0,20l3.2,0l0,-20l-3.2,0Z/" style=/"fill:#fff;/"/><path d=/"M7.099,18.4l11.301,-11.123l0,11.123l-11.301,0Z/" style=/"fill:#fff;/"/></g></svg>';export const restore = '<?xml version=/"1.0/" encoding=/"UTF-8/" standalone=/"no/"?><!DOCTYPE svg PUBLIC /"-/W3C/DTD SVG 1.1/EN/" /"http:/www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd/"><svg width=/"100%/" height=/"100%/" viewBox=/"0 0 20 20/" version=/"1.1/" xmlns=/"http:/www.w3.org/2000/svg/" xmlns:xlink=/"http:/www.w3.org/1999/xlink/" xml:space=/"preserve/" xmlns:serif=/"http:/www.serif.com//" style=/"fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;/"><rect id=/"restore/" x=/"0/" y=/"0/" width=/"20/" height=/"20/" style=/"fill:none;/"/><g><rect x=/"7/" y=/"2.5/" width=/"10/" height=/"10/" style=/"fill:none;stroke:#fff;stroke-width:1.5px;/"/><rect x=/"7/" y=/"2.5/" width=/"10/" height=/"2/" style=/"fill:#fff;/"/></g><g><rect x=/"3/" y=/"7.5/" width=/"10/" height=/"10/" style=/"fill:none;stroke:#fff;stroke-width:1.5px;/"/><g><rect x=/"3/" y=/"7.5/" width=/"10/" height=/"2/" style=/"fill:#fff;/"/></g></g></svg>';" +0 -1
package/rollup.config.js
CHANGED
package/src/Window.js
CHANGED
|
@@ -484,6 +484,8 @@ export class Window extends Events
|
|
|
484
484
|
'display': 'block',
|
|
485
485
|
'flex': 1,
|
|
486
486
|
'min-height': this.options.minHeight,
|
|
487
|
+
// leave room under the content for the resize handle, so it can't cover the scrollbar
|
|
488
|
+
'margin-bottom': this.options.resizable ? '15px' : 0,
|
|
487
489
|
'overflow-x': 'hidden',
|
|
488
490
|
'overflow-y': 'auto'
|
|
489
491
|
}
|
package/src/WindowManager.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(err, res) => err ? reject(err) : resolve(res)
|