leaferjs/leafer-ui

文字用图片填充会变空白的情况遇到过吗

Closed this issue · 2 comments

image

let json = {
        "tag": "Frame",
        "fill": "#fff",
        "overflow": "hide",
        "opacity": 1,
        "x": 50,
        "y": 50,
        "width": 908,
        "height": 617,
        "scaleX": 1,
        "scaleY": 1,
        "editable": false,
        "children": [
            {
                "tag": "Text",
                "width": 798,
                "height": 290,
                "padding": [
                    0,
                    0,
                    0,
                    0
                ],
                "fill": {
                    "type": "image",
                    "url": "https://d.jiandan.link/unsplash/photo-1606050596924-578d65409c91"
                },
                "strokeAlign": "outside",
                "text": "柠檬觉醒",
                "fontFamily": "AlimamaShuHeiTi-Bold",
                "fontSize": 188,
                "fontWeight": 800,
                "italic": false,
                "textDecoration": "none",
                "letterSpacing": 0,
                "lineHeight": {
                    "type": "percent",
                    "value": 150
                },
                "textAlign": "left",
                "verticalAlign": "top",
                "textWrap": "normal",
                "textOverflow": "show",
                "zIndex": 0,
                "x": 69,
                "y": 160,
                "rotation": 0,
                "editable": true,
                "stroke": "black",
                "strokeWidth": 0,
                "strokeCap": "none",
                "strokeJoin": "miter"
            }
        ]
    }

收到,谢谢反馈~

这边测试mac系统是正常的,windows系统才有这种情况