Socket
Socket
Sign inDemoInstall

ng2-split-pane

Package Overview
Dependencies
10
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

2

lib/split-pane-separator.component.d.ts

@@ -6,3 +6,3 @@ import { OnInit } from '@angular/core';

ngOnInit(): void;
onMousedown(event: any): void;
onMousedown(event: any): boolean;
}

@@ -20,2 +20,3 @@ "use strict";

this.notifyWillChangeSize.emit(true);
return false;
}

@@ -22,0 +23,0 @@ };

@@ -5,2 +5,3 @@ import { ElementRef } from '@angular/core';

protected secondaryComponent: ElementRef;
protected initialRatio: number;
protected primaryMinSize: number;

@@ -7,0 +8,0 @@ protected secondaryMinSize: number;

@@ -14,2 +14,3 @@ "use strict";

constructor() {
this.initialRatio = 0.5;
this.primaryMinSize = 0;

@@ -23,10 +24,11 @@ this.secondaryMinSize = 0;

ngAfterViewInit() {
let ratio = this.initialRatio;
if (this.localStorageKey != null) {
let ratioStr = localStorage.getItem(this.localStorageKey);
if (ratioStr != null) {
let ratio = JSON.parse(ratioStr);
let size = ratio * this.getTotalSize();
this.applySizeChange(size);
ratio = JSON.parse(ratioStr);
}
}
let size = ratio * this.getTotalSize();
this.applySizeChange(size);
}

@@ -76,2 +78,6 @@ getAvailableSize() {

__decorate([
core_1.Input('primary-component-initialratio'),
__metadata('design:type', Number)
], SplitPaneComponent.prototype, "initialRatio", void 0);
__decorate([
core_1.Input('primary-component-minsize'),

@@ -78,0 +84,0 @@ __metadata('design:type', Number)

{
"name": "ng2-split-pane",
"version": "1.0.5",
"version": "1.0.6",
"description": "A simple resizable split pane Angular 2 library",

@@ -5,0 +5,0 @@ "main": "split-pane.module.js",

@@ -17,5 +17,6 @@ # ng2-split-pane

|`secondary-component-minsize` | value in pixels | Only allow the secondary pane (either bottom or right) to go as small as this |
|`primary-component-initialratio` | initial value in a ratio of primary/secondary (range 0-1) | The initial size to create the primary pane (secondary will fill the remaining), this value will be over-ridden if a value is found in the local storage.
|`primary-component-initialratio` | initial value in a ratio of primary/secondary (range 0-1) | The initial size to create the primary pane (secondary will fill the remaining), this value will be over-ridden if a value is found in the local storage. |
|`local-storage-key` | string value used as the key | If this value is present, uses this key withing localstorage to remember the position of the divider bar |
```javascript

@@ -22,0 +23,0 @@ <horizontal-split-pane primary-component-minsize="50" secondary-component-minsize="100" local-storage-key="split-pane" primary-component-initialratio="0.8">

@@ -17,3 +17,4 @@ import { Component, OnInit, HostListener, EventEmitter, Output } from '@angular/core';

this.notifyWillChangeSize.emit(true);
return false;
}
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc