From e1849f72a54446f23a96812be38d33d4af59ee7e Mon Sep 17 00:00:00 2001 From: mathuo <6710312+mathuo@users.noreply.github.com> Date: Mon, 29 Jan 2024 22:40:43 +0000 Subject: [PATCH] chore: internals renaming --- packages/dockview-core/src/gridview/branchNode.ts | 10 +++++----- packages/dockview-core/src/gridview/gridview.ts | 4 ++-- packages/dockview-core/src/splitview/splitview.scss | 2 +- packages/dockview-core/src/splitview/splitview.ts | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/dockview-core/src/gridview/branchNode.ts b/packages/dockview-core/src/gridview/branchNode.ts index d0e449e01..511f9398e 100644 --- a/packages/dockview-core/src/gridview/branchNode.ts +++ b/packages/dockview-core/src/gridview/branchNode.ts @@ -131,12 +131,12 @@ export class BranchNode extends CompositeDisposable implements IView { return LayoutPriority.Normal; } - get locked(): boolean { - return this.splitview.locked; + get disabled(): boolean { + return this.splitview.disabled; } - set locked(value: boolean) { - this.splitview.locked = value; + set disabled(value: boolean) { + this.splitview.disabled = value; } constructor( @@ -187,7 +187,7 @@ export class BranchNode extends CompositeDisposable implements IView { }); } - this.locked = disabled; + this.disabled = disabled; this.addDisposables( this._onDidChange, diff --git a/packages/dockview-core/src/gridview/gridview.ts b/packages/dockview-core/src/gridview/gridview.ts index 8af0cc0e5..f73b75bd8 100644 --- a/packages/dockview-core/src/gridview/gridview.ts +++ b/packages/dockview-core/src/gridview/gridview.ts @@ -42,7 +42,7 @@ function flipNode( node.styles, size, orthogonalSize, - node.locked + node.disabled ); let totalSize = 0; @@ -350,7 +350,7 @@ export class Gridview implements IDisposable { const node = branch.pop(); if (node instanceof BranchNode) { - node.locked = value; + node.disabled = value; branch.push(...node.children); } } diff --git a/packages/dockview-core/src/splitview/splitview.scss b/packages/dockview-core/src/splitview/splitview.scss index 82c8a7ced..a9f9644e6 100644 --- a/packages/dockview-core/src/splitview/splitview.scss +++ b/packages/dockview-core/src/splitview/splitview.scss @@ -25,7 +25,7 @@ height: 100%; width: 100%; - &.dv-splitview-locked { + &.dv-splitview-disabled { & > .sash-container > .sash { pointer-events: none; } diff --git a/packages/dockview-core/src/splitview/splitview.ts b/packages/dockview-core/src/splitview/splitview.ts index 4c5ef3707..465958fe6 100644 --- a/packages/dockview-core/src/splitview/splitview.ts +++ b/packages/dockview-core/src/splitview/splitview.ts @@ -201,14 +201,14 @@ export class Splitview { this.updateSashEnablement(); } - get locked(): boolean { + get disabled(): boolean { return this._disabled; } - set locked(value: boolean) { + set disabled(value: boolean) { this._disabled = value; - toggleClass(this.element, 'dv-splitview-locked', value); + toggleClass(this.element, 'dv-splitview-disabled', value); } constructor(