Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
updateTransform(): void {
this.transform = toSVG(smoothMatrix(this.transformationMatrix, 100));
}
const collection = TreeWalker.walkDown(clone, (n, l) => {
if (l === 0) return _.set(n, pathToTempAttr, _.get(n, pathToAttr, ''));
const mat = compose(transformationToMatrix(n.parent, tempKey), transformationToMatrix(n));
const accTransformAttr = matrixUtil.toSVG(mat);
return _.set(n, pathToTempAttr, accTransformAttr);
});
function () {
this.transform = toSVG(this.transformationMatrix);
};
/**
var nextValue = _onTouchCancel(event, _this3.ViewerDOM, _this3.getTool(), _this3.getValue(), _this3.props);
if (_this3.getValue() !== nextValue) _this3.setValue(nextValue);
_this3.handleViewerEvent(event);
} },
React.createElement('rect', {
fill: props.background,
x: 0,
y: 0,
width: value.viewerWidth,
height: value.viewerHeight,
style: { pointerEvents: "none" }
}),
React.createElement(
'g',
{
transform: toSVG(value),
style: blockChildEvents ? { pointerEvents: "none" } : {} },
React.createElement('rect', {
fill: this.props.SVGBackground,
x: 0,
y: 0,
width: value.SVGWidth,
height: value.SVGHeight }),
React.createElement(
'g',
null,
props.children.props.children
)
),
React.createElement(
If,
{ condition: tool === TOOL_NONE && props.detectAutoPan && value.focus },
let nextValue = onTouchCancel(event, this.ViewerDOM, this.getTool(), this.getValue(), this.props);
if (this.getValue() !== nextValue) this.setValue(nextValue);
this.handleViewerEvent(event);
}}>