import { css2css } from '@thematic/color' ; import { SVGMark , Application } from '@thematic/core' ; import { CSSProperties } from 'react' ; param config param datum export function mark2style ( config , datum ? ) { return { backgroundColor : css2css ( config . fill ( datum ) . hex ( ) , config . fillOpacity ( datum ) ) , borderStyle : 'solid' , borderWidth : config . strokeWidth ( datum ) , borderColor : css2css ( config . stroke ( datum ) . hex ( ) , config . strokeOpacity ( datum ) ) , } ; } param config export function application2style ( config ) { return { backgroundColor : config . background ( ) . hex ( ) , color : config . foreground ( ) . hex ( ) , } ; }