UNPKG

zeplin-extension-style-kit

Version:

Models and utilities to generate CSS-like style code in Zeplin extensions.

24 lines (18 loc) 553 B
import { STYLE_PROPS } from "../constants.js"; import { StyleDeclaration } from "../common.js"; import { Scalar } from "../values/index.js"; export class BorderImageSlice implements StyleDeclaration { private value: Scalar; constructor(value: Scalar) { this.value = value; } get name(): string { return STYLE_PROPS.BORDER_IMAGE_SLICE; } equals(other: BorderImageSlice): boolean { return this.value.equals(other.value); } getValue(): string { return this.value.toStyleValue(); } }