UNPKG

devexpress-diagram

Version:

DevExpress Diagram Control

12 lines (10 loc) 407 B
import { ChangeStyleTextPropertyCommand } from "./ChangeStyleTextPropertyCommand"; import { ColorUtils } from "@devexpress/utils/lib/utils/color"; export class ChangeFontColorCommand extends ChangeStyleTextPropertyCommand { processParameter(parameter: string): string { return ColorUtils.stringToHash(parameter); } getStyleProperty(): string { return "fill"; } }