Background color and background image (Word) 7.5 #763
Closed
w521201314-eng
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to modify the compiled code (although it looked very difficult and had poor readability). I have identified some important factors and made some changes based on my own understanding.
I found a root (id-viewer) that hosts almost all rendering functions, including almost everything that can be displayed inside. I have to say, the workers are very good, but one of the drawbacks of canvas is that if you re render it, the original thing will be lost.
If you want to implement it, you may need to make a lot of modifications to the mode, which may be why background functionality is not being added at this time. I have added a new root (id_mackgroundRoot), which has only one function for displaying background colors and images on this canvas.
As for the lower layer of (id_fiewer), id_mackroot shares all the properties of id_fiewer, including dynamic switching. Firstly, filter id-viewer to render unnecessary colors for the background below, except for necessary elements.
The above method requires wrapping a temporary canvas around the backgroundRoot during rendering to ensure that it can also achieve pagination effect. At the same time, package processing is also required for id-viewer.
Meanwhile, the above content needs to be optimized, including the dynamic scaling effect of Microsoft Word background colors. When a large number of files are archived, rendering may experience lag issues, and some computational logic and modifications to some existing logic have been added.
At present, after testing, no impact has been found on the original functions of the page, including charts, images, background colors, elements, etc
Here is an example:
If my ideas are helpful to you, please feel free to contact me. If needed, I can provide the source code, although it is modified based on compilation.
Beta Was this translation helpful? Give feedback.
All reactions