diff options
| author | bobzel <zzzman@gmail.com> | 2024-11-05 10:22:31 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-11-05 10:22:31 -0500 |
| commit | 10a89be0b184df2750a4b3eceb48db205cb83e95 (patch) | |
| tree | c0284ee35e1e1f075db11c14ab837c9c5c950c5f /src/client/views/ComponentDecorations.tsx | |
| parent | 4ab636e338a11e8153d43adddb0e0d3e6bad57ec (diff) | |
fixed display of where control point will be added on mouse moves. fixed clickable ink line to not select fill area unless its actually painted. added end cap properties to ink stroke ui. enabled more than one ink stroke to show editable control points when multiselected.
Diffstat (limited to 'src/client/views/ComponentDecorations.tsx')
| -rw-r--r-- | src/client/views/ComponentDecorations.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/ComponentDecorations.tsx b/src/client/views/ComponentDecorations.tsx index 929b549e0..28e9d9792 100644 --- a/src/client/views/ComponentDecorations.tsx +++ b/src/client/views/ComponentDecorations.tsx @@ -5,11 +5,7 @@ import { DocumentView } from './nodes/DocumentView'; @observer export class ComponentDecorations extends React.Component<{ boundsTop: number; boundsLeft: number }, { value: string }> { - // eslint-disable-next-line no-use-before-define - static Instance: ComponentDecorations; - render() { - const seldoc = DocumentView.Selected().lastElement(); - return seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? null; + return DocumentView.Selected().map(seldoc => seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? null); } } |
