|
@@ -349,13 +349,14 @@ export const taggingGets = {
|
|
const content = parseSvgContent(svgContent);
|
|
const content = parseSvgContent(svgContent);
|
|
item.fixed = true
|
|
item.fixed = true
|
|
// item.size.width = item.size.height = wh
|
|
// item.size.width = item.size.height = wh
|
|
|
|
+
|
|
if (wh === item.size.width) {
|
|
if (wh === item.size.width) {
|
|
item.size.width = wh
|
|
item.size.width = wh
|
|
item.size.height = data.imageWidth / data.imageHeight * (content.height / content.width * wh)
|
|
item.size.height = data.imageWidth / data.imageHeight * (content.height / content.width * wh)
|
|
item.position.y -= item.size.height / 2;
|
|
item.position.y -= item.size.height / 2;
|
|
} else {
|
|
} else {
|
|
- item.size.height = wh
|
|
|
|
- item.size.width = data.imageHeight / data.imageWidth * (content.width / content.height * wh)
|
|
|
|
|
|
+ item.size.width = wh
|
|
|
|
+ item.size.height = data.imageWidth / data.imageHeight * (content.height / content.width * wh)
|
|
item.position.x += item.size.height / 2;
|
|
item.position.x += item.size.height / 2;
|
|
item.rotate = Math.PI / 2;
|
|
item.rotate = Math.PI / 2;
|
|
}
|
|
}
|