Commit d44de69
authored
feat(presentation-editor): enhance zoom functionality in web layout (#2408)
* feat(presentation-editor): enhance zoom functionality in semantic flow mode
- Updated the #applyZoom method to support optional zoom scaling while maintaining fluid widths in semantic mode.
- Added CSS transformations for painterHost and selectionOverlay based on the zoom level.
- Introduced tests to verify correct application of zoom settings and transformations in semantic flow mode, ensuring proper behavior when zoom is adjusted or reset.
* fix: refine zoom handling for non-PDF documents1 parent 0bb9289 commit d44de69
3 files changed
Lines changed: 128 additions & 13 deletions
File tree
- packages
- super-editor/src/core/presentation-editor
- tests
- superdoc/src
Lines changed: 32 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5448 | 5448 | | |
5449 | 5449 | | |
5450 | 5450 | | |
5451 | | - | |
5452 | | - | |
| 5451 | + | |
| 5452 | + | |
| 5453 | + | |
5453 | 5454 | | |
5454 | 5455 | | |
5455 | | - | |
5456 | 5456 | | |
5457 | | - | |
5458 | | - | |
5459 | | - | |
5460 | | - | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
5461 | 5460 | | |
5462 | | - | |
5463 | | - | |
5464 | | - | |
5465 | | - | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
| 5485 | + | |
| 5486 | + | |
5466 | 5487 | | |
5467 | 5488 | | |
5468 | 5489 | | |
| |||
Lines changed: 74 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
986 | 1060 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
1269 | 1271 | | |
1270 | | - | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
1271 | 1291 | | |
1272 | 1292 | | |
1273 | 1293 | | |
1274 | | - | |
| 1294 | + | |
1275 | 1295 | | |
1276 | 1296 | | |
1277 | 1297 | | |
| |||
0 commit comments