@genesis-community/golden-layout
Advanced tools
Comparing version
@@ -282,13 +282,10 @@ "use strict"; | ||
handleTabInitiatedDragStartEvent(x, y, dragListener, componentItem) { | ||
if (!this._canRemoveComponent) { | ||
dragListener.cancelDrag(); | ||
componentItem.isDragged = true; | ||
if (this._componentDragStartEvent === undefined) { | ||
throw new internal_error_1.UnexpectedUndefinedError('HHTDSE22294'); | ||
} | ||
else { | ||
if (this._componentDragStartEvent === undefined) { | ||
throw new internal_error_1.UnexpectedUndefinedError('HHTDSE22294'); | ||
} | ||
else { | ||
this._componentDragStartEvent(x, y, dragListener, componentItem); | ||
} | ||
this._componentDragStartEvent(x, y, dragListener, componentItem); | ||
} | ||
componentItem.isDragged = false; | ||
} | ||
@@ -295,0 +292,0 @@ /** @internal */ |
@@ -27,2 +27,4 @@ "use strict"; | ||
this._popInParentIds = []; | ||
/** @internal */ | ||
this._isDragged = false; | ||
this._type = config.type; | ||
@@ -48,2 +50,8 @@ this._id = config.id; | ||
set id(value) { this._id = value; } | ||
set isDragged(b) { | ||
this._isDragged = b; | ||
if (this.isComponent) { | ||
this.parent.isDragged = b; | ||
} | ||
} | ||
/** @internal */ | ||
@@ -102,3 +110,5 @@ get popInParentIds() { return this._popInParentIds; } | ||
*/ | ||
if (!this.isGround && this._isClosable === true) { | ||
if (!this.isGround && (this._isClosable === true | ||
/* Temporarily remove this so we can drag it to a different location */ | ||
|| this._isDragged)) { | ||
if (this._parent === null) { | ||
@@ -105,0 +115,0 @@ throw new internal_error_1.UnexpectedNullError('CIUC00874'); |
@@ -279,13 +279,10 @@ import { UnexpectedUndefinedError } from '../errors/internal-error'; | ||
handleTabInitiatedDragStartEvent(x, y, dragListener, componentItem) { | ||
if (!this._canRemoveComponent) { | ||
dragListener.cancelDrag(); | ||
componentItem.isDragged = true; | ||
if (this._componentDragStartEvent === undefined) { | ||
throw new UnexpectedUndefinedError('HHTDSE22294'); | ||
} | ||
else { | ||
if (this._componentDragStartEvent === undefined) { | ||
throw new UnexpectedUndefinedError('HHTDSE22294'); | ||
} | ||
else { | ||
this._componentDragStartEvent(x, y, dragListener, componentItem); | ||
} | ||
this._componentDragStartEvent(x, y, dragListener, componentItem); | ||
} | ||
componentItem.isDragged = false; | ||
} | ||
@@ -292,0 +289,0 @@ /** @internal */ |
@@ -24,2 +24,4 @@ import { AssertError, UnexpectedNullError } from '../errors/internal-error'; | ||
this._popInParentIds = []; | ||
/** @internal */ | ||
this._isDragged = false; | ||
this._type = config.type; | ||
@@ -45,2 +47,8 @@ this._id = config.id; | ||
set id(value) { this._id = value; } | ||
set isDragged(b) { | ||
this._isDragged = b; | ||
if (this.isComponent) { | ||
this.parent.isDragged = b; | ||
} | ||
} | ||
/** @internal */ | ||
@@ -99,3 +107,5 @@ get popInParentIds() { return this._popInParentIds; } | ||
*/ | ||
if (!this.isGround && this._isClosable === true) { | ||
if (!this.isGround && (this._isClosable === true | ||
/* Temporarily remove this so we can drag it to a different location */ | ||
|| this._isDragged)) { | ||
if (this._parent === null) { | ||
@@ -102,0 +112,0 @@ throw new UnexpectedNullError('CIUC00874'); |
{ | ||
"name": "@genesis-community/golden-layout", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "A @genesis-community fork of the GoldenLayout multi-screen javascript Layout manager", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -361,11 +361,9 @@ import { UnexpectedUndefinedError } from '../errors/internal-error'; | ||
private handleTabInitiatedDragStartEvent(x: number, y: number, dragListener: DragListener, componentItem: ComponentItem) { | ||
if (!this._canRemoveComponent) { | ||
dragListener.cancelDrag(); | ||
componentItem.isDragged = true; | ||
if (this._componentDragStartEvent === undefined) { | ||
throw new UnexpectedUndefinedError('HHTDSE22294'); | ||
} else { | ||
if (this._componentDragStartEvent === undefined) { | ||
throw new UnexpectedUndefinedError('HHTDSE22294'); | ||
} else { | ||
this._componentDragStartEvent(x, y, dragListener, componentItem); | ||
} | ||
this._componentDragStartEvent(x, y, dragListener, componentItem); | ||
} | ||
componentItem.isDragged = false; | ||
} | ||
@@ -372,0 +370,0 @@ |
@@ -37,2 +37,4 @@ import { ResolvedItemConfig } from '../config/resolved-config' | ||
private _isInitialised; | ||
/** @internal */ | ||
private _isDragged = false; | ||
@@ -57,2 +59,8 @@ /** @internal */ | ||
set id(value: string) { this._id = value; } | ||
set isDragged(b: boolean) { | ||
this._isDragged = b; | ||
if (this.isComponent) { | ||
(this.parent as Stack).isDragged = b; | ||
} | ||
} | ||
/** @internal */ | ||
@@ -161,3 +169,6 @@ get popInParentIds(): string[] { return this._popInParentIds; } | ||
*/ | ||
if (!this.isGround && this._isClosable === true) { | ||
if (!this.isGround && ( | ||
this._isClosable === true | ||
/* Temporarily remove this so we can drag it to a different location */ | ||
|| this._isDragged)) { | ||
if (this._parent === null) { | ||
@@ -164,0 +175,0 @@ throw new UnexpectedNullError('CIUC00874'); |
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 too big to display
Sorry, the diff of this file is too big to display
2066275
0.07%34841
0.08%