var v12 = {
valueOf: () => {console.log('valueOf'); return [1];},
toString: () => {console.log('toString'); return '2';}
}
console.log(v12 + 2);
function calcSize(w, h, limitW, limitH) {
if (h <= limitH && w <= limitW) {
return [w, h];
}
const r = Math.min(limitW / w, limitH / h);
return [Math.round(r * w), Math.round(r * h)];
}
const realSizes = calcSize(imgW, imgH, Infinity, 200);
var a = new Uint32Array(1);
var b = new Int32Array(a.buffer);
a[0] = 3232286728;
console.log(b[0]);
...
<RegulationEditWindow setIsEditing={setIsEditing} />
...
interface RegulationEditWindowProps {
setIsEditing(editing: boolean): void;
}
const RegulationEditWindowView: React.FC<RegulationEditWindowProps> = React.memo((props) => {
...
<ArrowLeftOutlined onClick={() => props.setIsEditing(false)} />
...
});