FIELD: computing.
SUBSTANCE: invention relates to a method for computer-aided magnification and centering of objects in a web browser. The method includes following steps: handling custom events; in response to an item's scaling event: the target to scale is set; the target magnification factor is determined; the required displacement of the document body along the X and Y axes is determined; the browser is notified about upcoming transformations; the coordinates of the point for transforming the body of the document into a value in the center of the X and Y axes are set; the scale of the document body along the X and Y axes is changed; an empty transparent element is formed, which is placed at the end of the body of the document, so that it occupies the entire window area of the displayed web page; scrollbars on the body of the document is hided; in response to the occurrence of an element scaling cancellation event: the propagation of the element scaling event to all other elements of the web page is blocked, except for an empty element; the body of the document to the state before the element was scaled is transformed, upon completion of the transformation, suspend browser notification of transformations applied to the target object.
EFFECT: invention increases efficiency of the operation of scaling objects in a web browser, the smoothness of the image of the scaled elements, increases the efficiency of using hardware resources.
2 cl, 4 dwg
Title | Year | Author | Number |
---|---|---|---|
DEVICE AND METHOD FOR PROCESSING CONTENT OF WEB RESOURCE IN BROWSER | 2014 |
|
RU2595524C2 |
METHOD AND SYSTEM FOR OPERATION OF WEB-APPLICATION ON DEVICE | 2021 |
|
RU2790034C2 |
METHODS AND SYSTEMS FOR PROCESSING DOCUMENT OBJECT MODELS (DOM) TO PROCESS VIDEO CONTENT | 2010 |
|
RU2475832C1 |
METHOD AND SERVER FOR REPEATED TRAINING OF MACHINE LEARNING ALGORITHM | 2019 |
|
RU2743932C2 |
METHOD OF RECORDING, EDITING AND RECREATING A COMPUTER SESSION | 2018 |
|
RU2733919C2 |
CLOUD SERVICE SECURITY BROKER AND PROXY | 2014 |
|
RU2679549C2 |
WEB PROPERTY MODIFICATION DETECTION SYSTEM AND METHOD | 2018 |
|
RU2702081C2 |
METHOD AND DEVICE FOR WEB-PAGE BROWSING SIMULATION | 2010 |
|
RU2517381C2 |
OPTIMIZED VISUALIZATION PROCESS IN BROWSER | 2014 |
|
RU2665920C2 |
OPTIMIZED BROWSER REPRODUCTION PROCESS | 2014 |
|
RU2638726C1 |
Authors
Dates
2021-08-03—Published
2020-12-18—Filed