(props: Partial<FilterProps>)
| 81 | private readonly props: FilterProps; |
| 82 | |
| 83 | public constructor(props: Partial<FilterProps>) { |
| 84 | this.props = { |
| 85 | name: 'invert', |
| 86 | default: 0, |
| 87 | unit: '%', |
| 88 | scale: 100, |
| 89 | transform: false, |
| 90 | ...props, |
| 91 | value: props.value ?? props.default ?? 0, |
| 92 | }; |
| 93 | this.value = createSignal(this.props.value, map, this); |
| 94 | } |
| 95 | |
| 96 | public isActive() { |
| 97 | return this.value() !== this.props.default; |
nothing calls this directly
no test coverage detected