mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
19 lines
543 B
JavaScript
19 lines
543 B
JavaScript
import React from 'react';
|
|
import {useStreamWithUpdater} from "ui/effects";
|
|
|
|
const style = {
|
|
width: '100%',
|
|
resize: 'vertical',
|
|
height: 100,
|
|
background: 'inherit',
|
|
border : 'none',
|
|
color: '#C4E1A4'
|
|
};
|
|
|
|
export function SketcherDimensionView() {
|
|
|
|
const [definitions, setDefinitions] = useStreamWithUpdater(ctx => ctx.viewer.parametricManager.$constantDefinition);
|
|
|
|
return <textarea style={style} id='dimTextArea' placeholder='for example: A = 50' value={definitions||''} onChange={e => setDefinitions(e.target.value||null)}/>
|
|
|
|
}
|