Closed automan-bot closed 3 months ago
Here's part of the source code for my project, I used shapeType, boxBounds to create the area text, but the resulting psd was still line text
let fontSize = object.fontSize * scaleY; let boxWidth = object.width * scaleX; let boxHeight = object.height * scaleY; if (boxHeight / fontSize > 1.5) { return { name "Text Layer", opacity: object.opacity * 255, text: { text: object.text, transform: [1, 0, 0, 1, left, top + fontSize], style: { font: { name: getPsFontfamily(object.fontFamily) }, fontSize: fontSize, fauxBold: getFontWeightIsBlod(object.fontWeight), fillColor: convertColorToRGB(object.fill), // opaque red shapeType: "box", boxBounds: [0, 0, boxWidth, boxHeight], }, }, hidden: !object.visible, }; }
Expected results:
Current Results:
@automan-bot did you manage to resolve it or you closed the issue accidentally?
Here's part of the source code for my project, I used shapeType, boxBounds to create the area text, but the resulting psd was still line text