@voiceflow/base-types
Version:
Voiceflow base project types
26 lines (25 loc) • 935 B
JavaScript
export var TextProperty;
(function (TextProperty) {
TextProperty["BACKGROUND_COLOR"] = "backgroundColor";
TextProperty["COLOR"] = "color";
TextProperty["ITALIC"] = "italic";
TextProperty["UNDERLINE"] = "underline";
TextProperty["FONT_WEIGHT"] = "fontWeight";
TextProperty["FONT_FAMILY"] = "fontFamily";
TextProperty["STRIKE_THROUGH"] = "strikeThrough";
})(TextProperty || (TextProperty = {}));
export var ElementType;
(function (ElementType) {
ElementType["LINK"] = "link";
ElementType["VARIABLE"] = "variable";
})(ElementType || (ElementType = {}));
export var ElementProperty;
(function (ElementProperty) {
ElementProperty["TEXT_ALIGN"] = "textAlign";
})(ElementProperty || (ElementProperty = {}));
export const isVariableElement = (element) => {
return element.type === ElementType.VARIABLE;
};
export const isLinkElement = (element) => {
return element.type === ElementType.LINK;
};