fortune-sheet
fortune-sheet copied to clipboard
replace image ops not work
Describe the bug
replace image ops not work
To Reproduce Steps to reproduce the behavior:
workBook.applyOp([
{
op: "replace",
value: [
{
id: "img_0Ced0W06H1pa_1672390182991",
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUOSURBVHgB7Z1Lb1tFFMf/c+84ftsFQltBqdKoVQkpqkQpLFmAEGsktkiIDStWbFjxBfgCLPgQ8BkqVPEoCxSECrRF4IiGJhAnTurce2c44wc0TdJk5o49bnx+0liKHD9yfvM4c+4jQn95chtax2ACIJSEpgYhwQRAJRGYoLCAwLCAwLCAwLCAwLCAwLCAwLCAwLCAwLCAwLCAwLCAwIymCJd1QUU+0lugxnW+R+E3OioFTr8FnHsPHTmL1eWv8XTrM5S7v1PBVYDZi9BfzCZeytGmx8+9Dyx+gnZWxM21+8go6DK9h4Wld1Dp3gbzMNpjObrwBHDxIxpTFdxe74J0kF2NLJ7F8pkPTekbzF78CaieBYonkCqN7Uw/8IRGp3qFp6AD8LgGiEEbPv6PpsU4TcyBt8j3hx7OTDb4EpPZAcYSi3RLYunzF2i8CRRo0C0UZzCWcAgaiRWa+hbv9tsEShiLAK0EJUhRfwSYqUiOcfvRjoFrc8C9KvDarYmTMB0bsZhGws1Z4J8yJo0p2glTz281MWlMjwCTmKkpXQMmAor9VitCokf7J5dOKhRPq77wIzA9Amisr1+XWFspYVSoHYFzH3dQPGLwDdNVKYv79cFRIWsK1Yu070iOPtVxOdoTphTWuJrS1sNunWEBnhC0wDeuUDU4tXsdC/CEbCqUzirYwgI8YKafyospYpvVdwAL8AEJaL5sP/0YWIAH5AmNynwGF1hATuiYE6rPZ87pLQvISyrQfJVK3m4DgAXkJSrT5mvBYfIfvh6MOzT9NC5nVGZyL/KxgByY9LP+SuKU/QxhATmIa+7ZzxAW4Egv+6HCW5zzIBsLcCWj2s9V9+xnCAtwRNZVL/+HffVhFyzABQp6+bxCPIPcsAAHtNl8mezHvvi5BxbggCgo1C8nuacfAwuwhYJev5QNz7LMDQuwxKSfDVP7Sf2c4sICLInLtPk672HyH8ACLBGU+cQlD5P/ABZgSdoW6Nzyd4MxFmALdf72d7J/wq8HWIAlJvvZuCHJAy/CwUjXI2z9FsGHAxbgQDSjsfFtgQUEgwK/QeuAylkJNbAAR5K1CPeX82dDLMARQVlQ+yvZO+M6DyzAFYrc5o+yV5rI+TaMK8mawPadfCFkATkwvb99o5AriiwgB/9tylhAOJLVCN2WexhZQE6E1Fj/RjpvysYmQGUCSvUbfDdzXZY4rGE096egN938XjofnRzLVZLRjMKzr7dgvq00Z1L6vFcEvdWvP0jcWZKPDLBx9NRWB0X4p3uXNmV/Riifsj9QMxYBcSHFqUt/UUccwT/qoA3R6i8l/LxaRHSAV9M7m/T4DPwdSNkFfW77ukT57R3rE7WmYg2IKfAXvBWQ92KyoU0agYim+Bqxg4JrQnKGWg0YVf/v0ZuG/rAf4Y+/AFqEa09qWtz3f7pGYZ+n5u8w+kHfwxwpsy9RP/4CqFs/t5igsM/qamKxQL/goWp8KGZ5a5t01HJVPRZTUL2h8cYHnd5tS3sjgaQoI4ZqBVXd/3kcbWeFNmUrdkPg2NysY+5Chnc/3cBP1wpo0+40pjjMAyNbePfD1IbSvwWKNCVO5e1qKiWNl97cQVCGI+KIHL/b1Yx8tfUL14ICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICwwICI6FFhtyXmmH3+R8PvVvvrEy9zxNTj8j+BW6Jeix1AVG9AAAAAElFTkSuQmCC",
left: 296,
top: 20,
width: 48,
height: 48,
originWidth: 96,
originHeight: 96,
},
],
path: ["images"],
id: "cae3b6d9-2be6-43ba-b0d9-52beb24a2f05",
},
])
workbook not show image.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
When there is no image, op should be 'add', otherwise 'replace'. Will consider add default empty value, then op can be set to 'replace'
@fantasticit We have tested this function in the latest version and it works fine. Have a test with it and make sure the id attr in op is correct sheet id.