zeplin-extension-style-kit
Version:
Models and utilities to generate CSS-like style code in Zeplin extensions.
24 lines (18 loc) • 528 B
text/typescript
import { STYLE_PROPS } from "../constants.js";
import { StyleDeclaration } from "../common.js";
import { Scalar } from "../values/index.js";
export class FlexGrow implements StyleDeclaration {
private value: Scalar;
constructor(value: Scalar) {
this.value = value;
}
get name(): string {
return STYLE_PROPS.FLEX_GROW;
}
equals(other: FlexGrow): boolean {
return this.value.equals(other.value);
}
getValue(): string {
return this.value.toStyleValue();
}
}