Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
SplitAreaDirective.prototype.getInputFlexParts = function () {
var flex = this.flexDirective;
var basis = this.fxFlex || '1 1 1e-9px';
return validateBasis(String(basis).replace(';', ''), flex._queryInput('grow'), flex._queryInput('shrink'));
};
SplitAreaDirective.prototype.updateStyle = function (flexBasis) {
getFlexParts() {
const flex = this.flexDirective as any;
const basis = flex._queryInput('flex') || '1 1 1e-9px';
return validateBasis(
String(basis).replace(';', ''),
(flex as any)._queryInput('grow'),
(flex as any)._queryInput('shrink')
);
}
private getCurrentFlexParts() {
const flex = this.flexDirective;
const basis = (flex && flex.activatedValue) || '1 1 1e-9px';
return validateBasis(String(basis).replace(';', ''), flex.grow, flex.shrink);
}
}
getInputFlexParts() {
const flex = this.flexDirective as any;
const basis = this.fxFlex || '1 1 1e-9px';
return validateBasis(
String(basis).replace(';', ''),
(flex as any)._queryInput('grow'),
(flex as any)._queryInput('shrink')
);
}