|
@ -68,7 +68,7 @@ function Index (props) { |
|
|
} |
|
|
} |
|
|
const canvasArea = document.getElementById('canvasArea') |
|
|
const canvasArea = document.getElementById('canvasArea') |
|
|
const canvasHeight = canvasArea.clientHeight - 12 * 2 - 6 |
|
|
const canvasHeight = canvasArea.clientHeight - 12 * 2 - 6 |
|
|
const canvasWidth = canvasArea.clientWidth - 12 * 2 |
|
|
const canvasWidth = canvasArea.clientWidth / 14 * 10 - 12 * 2 |
|
|
const mainColor = "rgb(249,179,45)" |
|
|
const mainColor = "rgb(249,179,45)" |
|
|
if (type == 'xy') { |
|
|
if (type == 'xy') { |
|
|
// xy 视图
|
|
|
// xy 视图
|
|
@ -531,7 +531,7 @@ function Index (props) { |
|
|
<Row style={{ |
|
|
<Row style={{ |
|
|
height: '100%', |
|
|
height: '100%', |
|
|
}}> |
|
|
}}> |
|
|
<Col span={14} style={{ paddingRight: 8, maxHeight: '100%' }}> |
|
|
<Col span={14} id="canvasArea" style={{ paddingRight: 8, maxHeight: '100%' }}> |
|
|
<div className='card' style={cardStyle}> |
|
|
<div className='card' style={cardStyle}> |
|
|
<canvas ref={xzCvs} id='xzCvs' height={120} width={120} style={{ display: 'none' }}> |
|
|
<canvas ref={xzCvs} id='xzCvs' height={120} width={120} style={{ display: 'none' }}> |
|
|
您的浏览器不支持canvas,请更换浏览器. |
|
|
您的浏览器不支持canvas,请更换浏览器. |
|
@ -549,7 +549,7 @@ function Index (props) { |
|
|
</div> |
|
|
</div> |
|
|
</Col> |
|
|
</Col> |
|
|
<Col span={10} style={{ paddingLeft: 8, }}> |
|
|
<Col span={10} style={{ paddingLeft: 8, }}> |
|
|
<div className='card' id="canvasArea" style={cardStyle}> |
|
|
<div className='card' style={cardStyle}> |
|
|
<canvas ref={xyCvs} id='xyCvs' height={120} width={120} style={{}}> |
|
|
<canvas ref={xyCvs} id='xyCvs' height={120} width={120} style={{}}> |
|
|
您的浏览器不支持canvas,请更换浏览器. |
|
|
您的浏览器不支持canvas,请更换浏览器. |
|
|
</canvas> |
|
|
</canvas> |
|
|