@wildebeest/boxlayout
Advanced tools
Comparing version 0.4.12 to 0.4.13
@@ -21,3 +21,3 @@ "use strict"; | ||
this.config[i].position.bind(binding); | ||
binding.update(this.config[i].position.getValue()); | ||
this.config[i].position.update(); | ||
} | ||
@@ -24,0 +24,0 @@ }; |
@@ -19,8 +19,14 @@ "use strict"; | ||
}; | ||
InverseValue.prototype.moveBy = function (value) { }; | ||
InverseValue.prototype.moveBy = function (value) { | ||
this.position.moveBy(value); | ||
}; | ||
InverseValue.prototype.getValue = function () { | ||
return this.getMax() - this.position.getValue(); | ||
}; | ||
InverseValue.prototype.setMax = function (max) { }; | ||
InverseValue.prototype.setMin = function (min) { }; | ||
InverseValue.prototype.setMax = function (max) { | ||
this.position.setMax(max); | ||
}; | ||
InverseValue.prototype.setMin = function (min) { | ||
this.position.setMin(min); | ||
}; | ||
InverseValue.prototype.setValue = function (value) { | ||
@@ -27,0 +33,0 @@ this.update(); |
{ | ||
"name": "@wildebeest/boxlayout", | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"description": "Box Layout module for creating fullscreen admin enviroments", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -32,3 +32,3 @@ import { Binding } from "../binding/Binding"; | ||
this.config[i].position.bind(binding); | ||
binding.update(this.config[i].position.getValue()); | ||
this.config[i].position.update(); | ||
} | ||
@@ -35,0 +35,0 @@ } |
@@ -32,3 +32,6 @@ import { AbsolutePosition } from "./AbsolutePosition"; | ||
moveBy(value: number): void { } | ||
moveBy(value: number): void | ||
{ | ||
this.position.moveBy(value); | ||
} | ||
@@ -40,5 +43,12 @@ getValue(): number | ||
setMax(max: number): void { } | ||
setMin(min: number): void { } | ||
setMax(max: number): void | ||
{ | ||
this.position.setMax(max); | ||
} | ||
setMin(min: number): void | ||
{ | ||
this.position.setMin(min); | ||
} | ||
setValue(value: number): void | ||
@@ -45,0 +55,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
128164
2314