Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

golden-layout

Package Overview
Dependencies
Maintainers
6
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

golden-layout - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

8

dist/cjs/ts/golden-layout.js

@@ -130,5 +130,11 @@ "use strict";

(function (GoldenLayout) {
/** @internal
* Veriable to hold the state whether we already checked if we are running in a sub window.
* Fixes popout and creation of nested golden-layouts.
*/
let subWindowChecked = false;
/** @internal */
function createConfig(configOrOptionalContainer, containerElement) {
const windowConfigKey = utils_1.getQueryStringParam('gl-window');
const windowConfigKey = subWindowChecked ? null : utils_1.getQueryStringParam('gl-window');
subWindowChecked = true;
const isSubWindow = windowConfigKey !== null;

@@ -135,0 +141,0 @@ let config;

@@ -157,2 +157,5 @@ "use strict";

newChild.setParent(this);
// newChild inherits the sizes from the old child:
newChild.height = oldChild.height;
newChild.width = oldChild.width;
//TODO This doesn't update the config... refactor to leave item nodes untouched after creation

@@ -159,0 +162,0 @@ if (newChild._parent === null) {

3

dist/cjs/ts/utils/drag-listener.js

@@ -54,3 +54,3 @@ "use strict";

this._nOriginalY = coordinates.y;
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener, { passive: true });
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener);
this._oDocument.addEventListener('pointerup', this._pointerUpEventListener, { passive: true });

@@ -71,2 +71,3 @@ this._pointerTracking = true;

this.processDragMove(oEvent);
oEvent.preventDefault();
}

@@ -73,0 +74,0 @@ }

@@ -126,5 +126,11 @@ import { LayoutConfig } from './config/config';

(function (GoldenLayout) {
/** @internal
* Veriable to hold the state whether we already checked if we are running in a sub window.
* Fixes popout and creation of nested golden-layouts.
*/
let subWindowChecked = false;
/** @internal */
function createConfig(configOrOptionalContainer, containerElement) {
const windowConfigKey = getQueryStringParam('gl-window');
const windowConfigKey = subWindowChecked ? null : getQueryStringParam('gl-window');
subWindowChecked = true;
const isSubWindow = windowConfigKey !== null;

@@ -131,0 +137,0 @@ let config;

@@ -154,2 +154,5 @@ import { AssertError, UnexpectedNullError } from '../errors/internal-error';

newChild.setParent(this);
// newChild inherits the sizes from the old child:
newChild.height = oldChild.height;
newChild.width = oldChild.width;
//TODO This doesn't update the config... refactor to leave item nodes untouched after creation

@@ -156,0 +159,0 @@ if (newChild._parent === null) {

@@ -51,3 +51,3 @@ import { EventEmitter } from './event-emitter';

this._nOriginalY = coordinates.y;
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener, { passive: true });
this._oDocument.addEventListener('pointermove', this._pointerMoveEventListener);
this._oDocument.addEventListener('pointerup', this._pointerUpEventListener, { passive: true });

@@ -68,2 +68,3 @@ this._pointerTracking = true;

this.processDragMove(oEvent);
oEvent.preventDefault();
}

@@ -70,0 +71,0 @@ }

{
"name": "golden-layout",
"version": "2.1.1",
"version": "2.1.2",
"description": "A multi-screen javascript Layout manager",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc