[TextLayer] Simplify building of the *expanded* transform in expandTextDivs
Rather than essentially re-computing the `originalTransform` every time, we can simply use it directly instead.
This commit is contained in:
parent
b68f7bb404
commit
a1398048e5
@ -636,11 +636,8 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
||||
transformBuf.length = 0;
|
||||
paddingBuf.length = 0;
|
||||
|
||||
if (divProps.angle !== 0) {
|
||||
transformBuf.push(`rotate(${divProps.angle}deg)`);
|
||||
}
|
||||
if (divProps.scale !== 1) {
|
||||
transformBuf.push(`scaleX(${divProps.scale})`);
|
||||
if (divProps.originalTransform) {
|
||||
transformBuf.push(divProps.originalTransform);
|
||||
}
|
||||
if (divProps.paddingTop > 0) {
|
||||
paddingBuf.push(`${divProps.paddingTop}px`);
|
||||
|
Loading…
Reference in New Issue
Block a user