Page layout method, device, equipment, readable storage medium and program product

By detecting the drag operation and direction of the page elements, determining the colliding elements and rearranging them, the problem in the prior art that the order of page elements changes after collision is solved, and the convenience and efficiency of page layout are improved.

CN118377398BActive Publication Date: 2024-10-18CHINA CICC WEALTH MANAGEMENT SECURITIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410825751.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-18
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

When the user drags the page elements, the existing page layout method cannot ensure that the relative order between other page elements remains unchanged after the elements collide, which reduces the convenience of user layout.

Method used

By detecting the drag operation of the target page element, obtain its position and direction, determine the collision element based on the initial position of other page elements, and rearrange according to the collision element and drag direction to ensure the relative order of each element in the new page layout. constant.

Benefits of technology

It improves the convenience of page layout for users, avoids the need for users to readjust the relative order of other page elements, and improves the standardization and efficiency of layout.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377398B_ABST
    Figure CN118377398B_ABST
Patent Text Reader

Abstract

The present application relates to a page layout method, device, equipment, readable storage medium and program product. The method includes: when a drag operation is detected on a target page element in an initial page layout, obtaining the target page position of the target page element after being dragged, and the drag direction corresponding to the drag operation, and determining the collision page element that collides with the target page element at the target page position from each other page element according to the initial page position corresponding to each other page element, wherein each other page element includes page elements other than the target page element in the initial page layout, and rearranging the initial page layout according to the collision page element and the drag direction to obtain a new page layout. The use of this method can ensure that the relative order of each page element remains unchanged when the page is rearranged, and solve the page jamming phenomenon caused by redrawing the layout after dragging when the amount of data is large, so as to improve the redrawing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a page layout method, apparatus, device, readable storage medium and program product. Background Art

[0002] With the continuous development of computer technology, personalized page layout methods have emerged to meet the diversified needs of users. Existing page layout methods generally implement personalized design of pages by monitoring the user's dragging operation on page elements on the page.

[0003] However, using the existing method, when the user drags the target page element and causes a collision between elements, the page layout result obtained by rearranging the page elements cannot ensure that the relative order between other page elements remains unchanged, reducing the convenience of the user in page layout. Summary of the invention

[0004] Based on this, it is necessary to provide a page layout method, device, equipment, readable storage medium and program product to address the above technical problems, which can ensure that the relative order of each page element in the page layout remains unchanged when the page is rearranged.

[0005] In a first aspect, the present application provides a page layout method, comprising:

[0006] When a drag operation is detected on a target page element in the initial page layout, the target page position of the target page element after being dragged and the drag direction corresponding to the drag operation are obtained;

[0007] According to the initial page positions corresponding to the other page elements, a collision page element that collides with the target page element at the target page position is determined from the other page elements; wherein the other page elements include page elements other than the target page element in the initial page layout;

[0008] According to the collision page elements and the dragging direction, the initial page layout is rearranged to obtain a new page layout.

[0009] In one embodiment, in the case of at least two colliding page elements, the initial page layout is rearranged according to the colliding page elements and the dragging direction to obtain a new page layout, including:

[0010] Obtain the original arrangement numbers of the collision page elements in the initial page layout, and the target arrangement numbers of the target page elements before dragging in the initial page layout; determine the minimum arrangement number and the maximum arrangement number from the original arrangement numbers of the collision page elements; adjust the original element arrangement order corresponding to the initial page layout according to the minimum arrangement number, the maximum arrangement number, the target arrangement number and the dragging direction to obtain a new element arrangement order; rearrange the initial page layout according to the minimum arrangement number, the target arrangement number, the new element arrangement order and the original arrangement rule to obtain a new page layout; wherein the original arrangement rule is the arrangement rule for generating the initial page layout.

[0011] In one embodiment, the original element arrangement sequence corresponding to the initial page layout is adjusted according to the minimum arrangement sequence number, the maximum arrangement sequence number, the target arrangement sequence number and the drag direction to obtain a new element arrangement sequence, including:

[0012] When the dragging direction is upward, each arrangement number from the smallest arrangement number to the previous arrangement number of the target arrangement number in the original element arrangement order is increased by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order; when the dragging direction is downward, each arrangement number from the next arrangement number of the target arrangement number to the smallest arrangement number in the original element arrangement order is reduced by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order; when the dragging direction is leftward, the collision page element corresponding to the largest arrangement number in the original element arrangement order is swapped with the target page element to obtain a new element arrangement order; when the dragging direction is rightward, the collision page element corresponding to the smallest arrangement number in the original element arrangement order is swapped with the target page element to obtain a new element arrangement order.

[0013] In one embodiment, the initial page layout is rearranged according to the minimum arrangement sequence number, the target arrangement sequence number, the new element arrangement order and the original arrangement rule to obtain a new page layout, including:

[0014] The smallest sequence number between the minimum arrangement sequence number and the target arrangement sequence number is used as the starting rearrangement sequence number; the page element corresponding to the starting rearrangement sequence number and the page elements corresponding to each sequence number after the starting rearrangement sequence number in the new element arrangement order are used as rearrangement page elements; according to the original arrangement rule, each rearrangement page element in the initial page layout is rearranged to obtain a new page layout.

[0015] In one embodiment, the initial page layout is associated with a document object model DOM display mode and a canvas image arrangement mode, and each page element in the initial page layout is associated with a document object model DOM element type and a canvas image element type; accordingly, each rearranged page element in the initial page layout is rearranged according to the original arrangement rule to obtain a new page layout, including:

[0016] According to the original arrangement rules, each rearranged page element of the canvas image element type in the initial page layout is rearranged to obtain the canvas page image layout in the canvas image arrangement mode; each rearranged page element of the DOM element type is mapped to the canvas page image layout to obtain a new page layout in the DOM display mode.

[0017] In one embodiment, the method further comprises:

[0018] When it is detected that the element height of any original page element in the original page layout increases, the initial collision element corresponding to the original page element is determined; according to the height change value of the original page element, the original page position corresponding to the initial collision element in the original page layout is modified, and it is determined whether there are other collision elements corresponding to the initial collision element; if so, the other collision elements are used as new initial collision elements, and the operation of modifying the original page position corresponding to the initial collision element in the original page layout according to the height change value of the original page element is returned until there are no other collision elements corresponding to the initial collision element, so as to obtain the initial page layout.

[0019] In a second aspect, the present application also provides a page layout device, comprising:

[0020] An acquisition module, used for acquiring the target page position of the target page element after being dragged, and the drag direction corresponding to the drag operation, when a drag operation is detected on the target page element in the initial page layout;

[0021] A collision detection module, for determining, from among the other page elements, a collision page element that collides with the target page element at the target page position, according to the initial page positions corresponding to the other page elements; wherein the other page elements include page elements other than the target page element in the initial page layout;

[0022] The page layout module is used to rearrange the initial page layout according to the collision page elements and the dragging direction to obtain a new page layout.

[0023] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0024] When a drag operation is detected on a target page element in the initial page layout, the target page position of the target page element after being dragged and the drag direction corresponding to the drag operation are obtained;

[0025] According to the initial page positions corresponding to the other page elements, a collision page element that collides with the target page element at the target page position is determined from the other page elements; wherein the other page elements include page elements other than the target page element in the initial page layout;

[0026] According to the collision page elements and the dragging direction, the initial page layout is rearranged to obtain a new page layout.

[0027] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0028] When a drag operation is detected on a target page element in the initial page layout, the target page position of the target page element after being dragged and the drag direction corresponding to the drag operation are obtained;

[0029] According to the initial page positions corresponding to the other page elements, a collision page element that collides with the target page element at the target page position is determined from the other page elements; wherein the other page elements include page elements other than the target page element in the initial page layout;

[0030] According to the collision page elements and the dragging direction, the initial page layout is rearranged to obtain a new page layout.

[0031] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0032] When a drag operation is detected on a target page element in the initial page layout, the target page position of the target page element after being dragged and the drag direction corresponding to the drag operation are obtained;

[0033] According to the initial page positions corresponding to the other page elements, a collision page element that collides with the target page element at the target page position is determined from the other page elements; wherein the other page elements include page elements other than the target page element in the initial page layout;

[0034] According to the collision page elements and the dragging direction, the initial page layout is rearranged to obtain a new page layout.

[0035] The above-mentioned page layout method, device, equipment, readable storage medium and program product, when detecting a drag operation on a target page element in the initial page layout, obtains the target page position of the target page element after being dragged, and the drag direction corresponding to the drag operation, and determines the collision page element that collides with the target page element at the target page position from each other page element according to the initial page position corresponding to each other page element, and then rearranges the initial page layout according to the collision page element and the drag direction to obtain a new page layout. The above-mentioned method introduces the drag direction, and can re-layout the initial page based on the drag direction in the event of an element collision, and can ensure that the relative order of each page element in the new page layout remains unchanged, that is, after the re-layout, the user does not need to readjust the relative order between other pages, which improves the convenience of the user in performing page layout. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A schematic diagram of a flow chart of a page layout method in one embodiment;

[0038] Figure 2 A schematic diagram of a process for determining a new page layout in one embodiment;

[0039] Figure 3A is a schematic diagram of an initial page layout in one embodiment;

[0040] Figure 3B is a schematic diagram of another initial page layout in one embodiment;

[0041] Figure 3C is a schematic diagram of yet another initial page layout in one embodiment;

[0042] Figure 4 A schematic diagram of a process for determining a new page layout in another embodiment;

[0043] Figure 5 A schematic diagram of a flow chart of the arrangement of elements in an embodiment;

[0044] Figure 6A schematic diagram of a process for determining an initial page layout in one embodiment;

[0045] Figure 7 is a flow chart of a page layout method in another embodiment;

[0046] Figure 8 is a structural block diagram of a page layout device in one embodiment;

[0047] Fig. 9 is a structural block diagram of a page layout device in another embodiment;

[0048] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] With the continuous development of computer technology, personalized page layout methods have emerged to meet the diversified needs of users. Existing page layout methods generally implement personalized design of pages by monitoring the user's dragging operation on page elements on the page.

[0051] However, using the existing method, when the user drags the target page element and causes a collision between elements, the page layout result obtained by rearranging the page elements cannot ensure that the relative order between other page elements remains unchanged, reducing the convenience of the user in page layout.

[0052] Based on this, in an exemplary embodiment, a page layout method is provided, and the method is applied to a page layout device as an example for explanation. Figure 1 As shown, the specific steps include:

[0053] S101, when a drag operation is detected on a target page element in an initial page layout, a target page position after the target page element is dragged and a drag direction corresponding to the drag operation are obtained.

[0054] Among them, the initial page layout refers to the initial layout of each page element; the target page element refers to the dragged page element; the target page position refers to the position of the target page element after dragging; and the dragging direction refers to the direction in which the target page element is dragged.

[0055] Optionally, when the page layout device detects a drag operation on a target page element in the initial page layout, the target page position of the target page element after being dragged can be obtained after the drag operation is completed; then, the drag direction corresponding to the drag operation can be determined based on the relative position relationship between the initial element position of the target page element in the initial page layout and the target page position.

[0056] It is understandable that in order to improve the standardization of the page layout, the element position of each page element in the initial page layout can be converted from the element position in the pixel dimension to the element position in the cell dimension. Specifically, based on the standard cell height unitH, the standard cell width unitW, the standard horizontal spacing marginX between cells, and the standard vertical spacing marginY between cells, the initial page layout is evenly divided into n parts to obtain the corresponding relationship between the standard cells and each pixel in the initial page layout and each standard cell.

[0057] Furthermore, after determining the correspondence between each pixel point and each standard cell, for each page element, the cell coordinates (x, y) of the page element can be determined based on the element position of the upper left vertex of the page element in the pixel dimension in the initial page layout; then, based on the height and width of the page element, the number of cells w occupied by the width of the page element and the number of cells h occupied by the height can be determined; finally, the element array of cell coordinates (x, y), width number w and height number h can be used as the initial page position of the page element in the cell dimension.

[0058] S102: According to the initial page positions corresponding to the other page elements, determine, from the other page elements, a collision page element that collides with the target page element at the target page position.

[0059] Among them, the other page elements include page elements in the initial page layout except the target page elements; the initial page position refers to the position of the page element in the initial page layout; the target page position refers to the position of the target page element after dragging; the collision page element refers to the page element that collides with the target page element during the dragging process, which may include one or more, and is not limited in this embodiment.

[0060] Optionally, after completing the drag operation on the target page element, you can refer to formulas (1) and (2) to use the cell corresponding to the target pixel point position finally reached by the drag operation as the new cell coordinates in the target page position.

[0061] (1)

[0062] in, Indicates the new cell horizontal coordinate of the target page element; Indicates the pixel position of the target pixel point from the left border of the initial page layout; Indicates the cell horizontal coordinate corresponding to the initial page position of the target page element; the round() function is a rounding function.

[0063] (2)

[0064] in, Indicates the new cell ordinate of the target page element; Indicates the pixel position of the target pixel point from the top border of the initial page layout.

[0065] Furthermore, for each other page element, the element array corresponding to the target page position can be compared with the element array corresponding to the initial page position of the other page element. If the two element arrays meet any of the following comparison conditions, it is proved that the target page element and the other page element do not collide. The comparison conditions include: 1) e1.x+e1.w≤e2.x; 2) e2.x+e2.w≤e1.x; 3) e1.y+e1.h≤e2.y; 4) e2.y+e2.h≤e1.y. Among them, e1 represents the target page element, further, e1.x represents the horizontal coordinate of the target page element, e1.w represents the number of cells occupied by the width of the target page element, e1.y represents the vertical coordinate of the target page element, and e1.h represents the number of cells occupied by the height of the target page element; e2 represents other page elements, further, e2.x represents the horizontal coordinate of other page elements, e2.w represents the number of cells occupied by the width of other page elements, e2.y represents the vertical coordinate of other page elements, and e2.h represents the number of cells occupied by the height of other page elements.

[0066] Optionally, after comparing the element arrays corresponding to the initial page positions of the other page elements one by one, the collision page element that collides with the target page element at the target page position can be determined from the other page elements.

[0067] It can be understood that in order to ensure the accuracy of the determination of the collision page elements, for each collision page element, the boundary difference between the right boundary of the collision page element and the left boundary of the target page element after the drag operation can be calculated. If the boundary difference is less than 1 / 4 of the width of the collision page element itself, the element collision of the collision page element does not exist.

[0068] Alternatively, the boundary difference between the lower boundary of the collision page element and the upper boundary of the target page element after the drag operation can be calculated. If the boundary difference is less than 1 / 4 of the height of the collision page element itself, the element collision of the collision page element does not exist.

[0069] Furthermore, in the case that the element collision of the collision page element does not hold, the collision page element for which the element collision does not hold needs to be restored to a normal other page element.

[0070] S103, rearrange the initial page layout according to the collision page elements and the dragging direction to obtain a new page layout.

[0071] The new page layout refers to the page layout after the dragging process.

[0072] Optionally, the collision page elements and the drag direction may be simultaneously input into a trained rearrangement model, and the rearrangement model rearranges the initial page layout according to the collision page elements, the drag direction and the model parameters to obtain a new page layout.

[0073] In the above page layout method, when a drag operation is detected on a target page element in the initial page layout, the target page position of the target page element after being dragged and the drag direction corresponding to the drag operation are obtained, and according to the initial page positions corresponding to each other page element, the collision page element that collides with the target page element at the target page position is determined from each other page element, and then the initial page layout is rearranged according to the collision page element and the drag direction to obtain a new page layout. The above method introduces the drag direction, and the initial page can be rearranged based on the drag direction in the event of an element collision, which can ensure that the relative order of each page element in the new page layout remains unchanged, that is, you do not need the user to readjust the relative order between other pages, which improves the convenience of the user in page layout.

[0074] In order to ensure the accuracy of the new page layout, based on the above embodiment, in the case of at least two colliding page elements, in this embodiment, an optional method for determining the new page layout is provided, such as Figure 2 As shown, the specific steps include:

[0075] S201, obtaining the original arrangement sequence number of each collision page element in the initial page layout, and the target arrangement sequence number of the target page element in the initial page layout before dragging.

[0076] The original arrangement sequence number refers to the arrangement sequence number of each page element in the initial page layout; the target arrangement sequence number refers to the initial arrangement sequence number of the target page element.

[0077] Optionally, the page elements in the initial page layout can be sorted according to the original arrangement rules to obtain the original arrangement sequence number corresponding to each page element; then, after determining the collision page elements, the original arrangement sequence number of each collision page element in the initial page layout and the target arrangement sequence number of the target page element in the initial page layout before dragging can be directly obtained.

[0078] S202: Determine the minimum and maximum sequence numbers of the collision page elements from the original sequence numbers of the collision page elements.

[0079] The minimum sequence number refers to the minimum sequence number among the original sequence numbers of the collision page elements; the maximum sequence number refers to the maximum sequence number among the original sequence numbers of the collision page elements.

[0080] Optionally, the original arrangement sequence numbers of the collision page elements may be compared to determine the minimum arrangement sequence number and the maximum arrangement sequence number of the original arrangement sequence numbers of the collision page elements.

[0081] S203, adjusting the original element arrangement sequence corresponding to the initial page layout according to the minimum arrangement sequence number, the maximum arrangement sequence number, the target arrangement sequence number and the dragging direction to obtain a new element arrangement sequence.

[0082] The original element arrangement order refers to the arrangement order of the elements on the initial page; the new element arrangement order refers to the arrangement order of the elements on the page after the dragging operation.

[0083] Optionally, the arrangement order update method under different drag directions can be determined based on the drag direction; then, the arrangement order update method can be used to adjust the original element arrangement order according to the minimum arrangement sequence number, the maximum arrangement sequence number and the target arrangement sequence number to obtain a new element arrangement order.

[0084] S204, rearrange the initial page layout according to the minimum arrangement sequence number, the target arrangement sequence number, the new element arrangement order and the original arrangement rule to obtain a new page layout.

[0085] The original arrangement rule is an arrangement rule for generating an initial page layout.

[0086] Optionally, the element rearrangement range can be determined based on the minimum arrangement sequence number and the target arrangement sequence number; then, the original arrangement rule can be used to rearrange the page elements within the element rearrangement range according to the new element arrangement order based on the initial page layout, thereby obtaining a new page layout.

[0087] In this embodiment, an element arrangement order is introduced. The new element arrangement order is determined according to the original arrangement sequence numbers of the colliding page elements, and the initial page layout is rearranged according to the new element arrangement order to obtain a new page layout, which can effectively ensure the accuracy of the new page layout.

[0088] In order to ensure the accuracy of the new element arrangement order, based on the above embodiment, in this embodiment, an optional method for determining the new element arrangement order is provided. Specifically, when the dragging direction is upward, each arrangement number from the smallest arrangement number to the previous arrangement number of the target arrangement number in the original element arrangement order is increased by one, and the target arrangement number is modified to the smallest arrangement number to obtain the new element arrangement order.

[0089] It can be understood that in order to ensure the accuracy of element collision judgment, when the dragging direction is upward, it can be determined whether the difference between the lower boundary of the collision page element and the upper boundary of the target page element is less than 1 / 4 of the height of the collision page element itself. If so, it is determined that the collision page element and the target page element have not collided; if not, it is determined that the collision page element and the target page element have collided.

[0090] Optionally, during the drag operation, in order to ensure that the relative arrangement order of other page elements remains unchanged, refer to Figure 3A In the initial page layout shown, when the target page element 4 is dragged upward, the colliding page elements include page elements 1 and 2. At this time, the minimum arrangement sequence number is 1; the target arrangement sequence number is 4.

[0091] Furthermore, by increasing each arrangement number from the smallest arrangement number 1 to the previous arrangement number 3 of the target arrangement number in the original element arrangement order by one, and changing the target arrangement number 4 to the smallest arrangement number 1, the page elements 1-3 can be moved backward by one position, and the target page element can be inserted into the first position in the arrangement order, so as to obtain a new element arrangement order while keeping the relative arrangement order of other page elements unchanged.

[0092] When the dragging direction is downward, each arrangement number from the next arrangement number after the target arrangement number to the smallest arrangement number in the original element arrangement order is reduced by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order.

[0093] It can be understood that in order to ensure the accuracy of element collision judgment, when the dragging direction is downward, it can be determined whether the difference between the upper boundary of the collision page element and the lower boundary of the target page element is less than 1 / 4 of the height of the collision page element itself. If so, it is determined that the collision page element and the target page element have not collided; if not, it is determined that the collision page element and the target page element have collided.

[0094] Optional, reference Figure 3A In the initial page layout shown, when the target page element 4 is dragged downward, the collision page elements include page elements 6, 7 and 8. At this time, the minimum arrangement sequence number is 6; the target arrangement sequence number is 4.

[0095] Furthermore, by reducing the arrangement numbers in the original element arrangement order from the next arrangement number 5 after the target arrangement number to the smallest arrangement number 6 by one, and changing the target arrangement number 4 to the smallest arrangement number 6, page elements 5 and 6 can be moved forward by one place, and the target page element can be inserted into the 6th place in the arrangement order, so as to obtain a new element arrangement order while keeping the relative arrangement order of other page elements unchanged.

[0096] When the dragging direction is to the left, the collision page element corresponding to the largest arrangement number in the original element arrangement order is exchanged with the target page element to obtain a new element arrangement order.

[0097] It can be understood that in order to ensure the accuracy of element collision judgment, when the dragging direction is dragging to the left, it can be determined whether the difference between the right border of the collision page element and the left border of the target page element is less than 1 / 4 of the width of the collision page element itself. If so, it is determined that the collision page element and the target page element have not collided; if not, it is determined that the collision page element and the target page element have collided.

[0098] Optional, reference Figure 3B In the initial page layout shown, when the target page element 3 is dragged to the left, the collision page elements include page elements 2 and 4. At this time, the maximum arrangement number is 4; the target arrangement number is 3; further, the collision page element 4 corresponding to the maximum arrangement number in the original element arrangement order is exchanged with the target page element 3 to obtain the new element arrangement order.

[0099] When the dragging direction is to the right, the collision page element corresponding to the smallest arrangement number in the original element arrangement order is exchanged with the target page element to obtain a new element arrangement order.

[0100] It can be understood that in order to ensure the accuracy of element collision judgment, when the dragging direction is dragging to the right, it can be determined whether the difference between the left border of the collision page element and the right border of the target page element is less than 1 / 4 of the width of the collision page element itself. If so, it is determined that the collision page element and the target page element have not collided; if not, it is determined that the collision page element and the target page element have collided.

[0101] Optional, reference Figure 3C In the initial page layout shown, when the target page element 2 is dragged to the right, the collision page elements include page elements 3 and 5. At this time, the minimum arrangement number is 3; the target arrangement number is 2; further, the collision page element 3 corresponding to the minimum arrangement number in the original element arrangement order is exchanged with the target page element 2 to obtain the new element arrangement order.

[0102] In this embodiment, different methods for determining the arrangement order of new elements in four dragging directions are provided, which can obtain the arrangement order of new elements on the basis of keeping the relative arrangement order of other page elements unchanged, while also ensuring the accuracy of the arrangement order of new elements.

[0103] In order to ensure the efficiency of determining the new page layout, based on the above embodiment, in this embodiment, another optional method for determining the new page layout is provided, such as Figure 4 As shown, the specific steps include:

[0104] S401, taking the smallest sequence number value between the minimum arrangement sequence number and the target arrangement sequence number as the starting rearrangement sequence number.

[0105] The minimum sequence number value refers to the smallest sequence number value between the minimum arrangement sequence number of each collision element and the target arrangement sequence number; the starting rearrangement sequence number refers to the starting position that needs to be rearranged in the new element arrangement sequence.

[0106] It can be understood that since the relative arrangement order of other page elements in the new element arrangement order remains unchanged, during the process of dragging the target page element in the initial page layout, the element position of the page element located before the minimum sequence number value will not change. Therefore, in this embodiment, the minimum sequence number value can be used as the starting re-arrangement sequence number in the new element arrangement order.

[0107] S402: Use the page element corresponding to the starting rearrangement sequence number and the page elements corresponding to the sequence numbers after the starting rearrangement sequence number in the new element arrangement sequence as rearrangement page elements.

[0108] Optionally, after determining the starting reorder sequence number, since the page elements corresponding to the starting reorder sequence number and the page elements corresponding to each sequence number after the starting reorder sequence number in the new element arrangement order will all be rearranged, the above page elements can be used as reordered page elements.

[0109] S403: Rearrange the rearranged page elements in the initial page layout according to the original arrangement rule to obtain a new page layout.

[0110] Optionally, after determining the rearranged page elements, in order to ensure the standardization of the page layout, the rearranged page elements may be rearranged one by one based on the initial page layout according to the original arrangement rules for generating the initial page layout, thereby obtaining a new page layout.

[0111] In this embodiment, a starting rearrangement sequence number is introduced, and the processing range of elements corresponding to the rearrangement process is narrowed based on the starting rearrangement sequence number, thereby ensuring the efficiency of determining the new page layout.

[0112] In actual applications, when the content of each page element is complex, the number is large, and animation effects need to be displayed frequently during dragging, existing solutions are prone to freezes and white screens when re-layouting page elements of DOM element type after dragging.

[0113] Based on this, on the basis of the above embodiment, the initial page layout is associated with a document object model DOM display mode and a canvas image arrangement mode, and each page element in the initial page layout is associated with a DOM element type and a canvas image element type; further, in this embodiment, an optional element arrangement method is provided, such as Figure 5 As shown, the specific steps include:

[0114] S501, rearrange the rearranged page elements of the canvas picture element type in the initial page layout according to the original arrangement rule to obtain a canvas page picture layout in a canvas picture arrangement mode.

[0115] Among them, DOM element type refers to the element type that can store the element content of the page element. Accordingly, the DOM display mode is used to display the page elements under the DOM element type; the canvas image element type refers to the element type that can display the icon information and animation display information of the page element. Accordingly, the canvas image layout mode is used to display the page elements under the canvas image element type and the corresponding animations of the page elements during dragging and rearrangement of page elements.

[0116] Optionally, after obtaining the initial page layout, page elements of each DOM element type may be displayed in DOM display mode; subsequently, when a dragging operation of a target page element is detected, the element display mode is switched from DOM display mode to canvas image layout mode.

[0117] Furthermore, in the canvas image arrangement mode, each page element under the canvas image element type displays the dragging process of the target page element, and based on the dragging operation of the target page element and the original arrangement rules, each rearranged page element in the initial page layout is rearranged to obtain a canvas page image layout composed of page elements of the canvas image element type in the canvas image arrangement mode.

[0118] It is understandable that in order to more intuitively display the element dragging process, a dynamic effect layer can be configured for the page element under the canvas image element type, that is, when the target page element is dragged in the canvas image layout mode, the target page element will display the corresponding dragging dynamic effect.

[0119] S502, mapping each rearranged page element of the DOM element type to the canvas page image layout to obtain a new page layout in the DOM display mode.

[0120] Optionally, after obtaining the canvas page image layout in the canvas image arrangement mode, the element display mode will be switched from the canvas image arrangement mode back to the DOM display mode. At the same time, the DOM element type associated with each rearranged page element is mapped to the canvas page image layout to obtain a new page layout composed of page elements of the DOM element type in the DOM display mode.

[0121] In this embodiment, by providing two modes, DOM display mode and canvas image layout mode, when dragging page elements for rearrangement, canvas images are used to replace traditional DOM elements for layout rendering, which can solve the problem of jamming caused by a large amount of page element data, thereby effectively improving the efficiency of the new page layout.

[0122] Based on the above embodiment, in this embodiment, an optional method for determining the initial page layout is provided, such as Figure 6 As shown, the specific steps include:

[0123] S601: When it is detected that the height of any original page element in the original page layout increases, an initial collision element corresponding to the original page element is determined.

[0124] Among them, the original page layout refers to the element layout when the height of each element does not change; the original page element refers to the page element with increased element height; the initial collision element refers to the page element that the original page element collides with after the element height increases.

[0125] Optionally, each page element is tightly arranged in the original page according to the element arrangement order and from the upper left to the lower right to obtain the original page layout; then, when it is detected that the element height of any original page element in the original page layout increases, the method of the above-mentioned step S102 can be referred to, and the initial collision element can be determined from other page elements according to the page position of the original page element after the element height is increased.

[0126] S602: modify the original page position corresponding to the initial collision element in the original page layout according to the height change value of the original page element.

[0127] The height change value refers to a value that can represent the change of the original page element in the height dimension; the original page position refers to the position of the page element in the original page layout.

[0128] Optionally, when the height change value is deltaH, deltaH may be added to the y-axis of the initial collision element to implement an operation of modifying the original page position corresponding to the initial collision element.

[0129] S603, determine whether the initial collision element has other corresponding collision elements; if so, execute S604; if not, execute S605.

[0130] Optionally, after adding deltaH to the y-axis of the initial collision element, the method of the above step S102 can be referred to to determine whether there are other corresponding collision elements for the initial collision element after the y-axis coordinate is changed. If so, execute the following step S604; if not, execute the following step S605.

[0131] S604, taking other collision elements as new initial collision elements, and returning to execute S602.

[0132] Optionally, after determining that there are other corresponding collision elements for the initial collision element after the height is changed, the other collision elements can be used as new initial collision elements; then, continue to perform the operation of changing the y-axis coordinate of the initial collision element, and determine whether there are other corresponding collision elements for the initial collision element after the y-axis coordinate is changed.

[0133] S605, obtaining an initial page layout.

[0134] Optionally, when it is determined that the initial collision element does not have other corresponding collision elements, it is proved that the page layout is completed, and the initial page layout can be obtained at this time.

[0135] It is understandable that when the element height of the original page element is reduced, although it will not collide with other page elements, in order to ensure the compactness of the page layout, the y-axis of the original page element can be increased by 1, and then the above steps can be referred to to find out the various affected page elements affected by the original page element, and the first element in each page element is recorded as effectE.

[0136] Furthermore, you can try to reduce deltaH on the y axis of effectE to determine whether it will collide with other elements. If it will collide, try to reduce deltaH-1. If it still collides after reducing deltaH-1, try to reduce deltaH-2, and so on, until effectE does not collide with other page elements. Do this for each element that affects the page, and you can get the initial page layout after the element height is reduced.

[0137] In this embodiment, by detecting changes in element heights of various page elements in the original page layout, the original page layout can be dynamically adjusted when the element heights change, thereby obtaining an initial page layout.

[0138] Figure 7 FIG. 1 is a flow chart of a page layout method in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a page layout method. Figure 7 The specific implementation process is as follows:

[0139] S701, when a drag operation is detected on a target page element in the initial page layout, the DOM display mode is switched to the canvas image layout mode, and in the canvas image layout mode, the target page position after the target page element is dragged and the drag direction corresponding to the drag operation are obtained.

[0140] Optionally, when it is detected that the element height of any original page element in the original page layout has changed, the initial collision element corresponding to the original page element is determined; according to the height change value of the original page element, the original page position corresponding to the initial collision element in the original page layout is modified, and it is determined whether there are other collision elements corresponding to the initial collision element; if so, the other collision elements are used as new initial collision elements, and the operation of modifying the original page position corresponding to the initial collision element in the original page layout according to the height change value of the original page element is returned until there are no other collision elements corresponding to the initial collision element, so as to obtain the initial page layout.

[0141] S702: Determine, from among the other page elements, according to the original page positions corresponding to the other page elements, a collision page element that collides with the target page element at the target page position.

[0142] The other page elements include page elements other than the target page element in the initial page layout.

[0143] S703, obtaining the original arrangement sequence number of each collision page element in the initial page layout, and the target arrangement sequence number of the target page element in the initial page layout before dragging.

[0144] S704: Determine the minimum and maximum arrangement numbers from the original arrangement numbers of the collision page elements.

[0145] S705 , adjusting the original element arrangement sequence corresponding to the initial page layout according to the minimum arrangement sequence number, the maximum arrangement sequence number, the target arrangement sequence number and the dragging direction to obtain a new element arrangement sequence.

[0146] Optionally, when the dragging direction is upward, each arrangement number from the smallest arrangement number to the previous arrangement number of the target arrangement number in the original element arrangement order is increased by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order; when the dragging direction is downward, each arrangement number from the next arrangement number of the target arrangement number to the smallest arrangement number in the original element arrangement order is reduced by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order; when the dragging direction is leftward, the collision page element corresponding to the largest arrangement number in the original element arrangement order is swapped with the target page element to obtain a new element arrangement order; when the dragging direction is rightward, the collision page element corresponding to the smallest arrangement number in the original element arrangement order is swapped with the target page element to obtain a new element arrangement order.

[0147] S706: Use the smallest sequence number value between the minimum arrangement sequence number and the target arrangement sequence number as the starting rearrangement sequence number.

[0148] S707: Use the page element corresponding to the starting rearrangement sequence number and the page elements corresponding to the sequence numbers after the starting rearrangement sequence number in the new element arrangement sequence as rearrangement page elements.

[0149] S708: Rearrange the rearranged page elements of the canvas image element type in the initial page layout according to the original arrangement rule to obtain a canvas page image layout in a canvas image arrangement mode.

[0150] The original arrangement rule is an arrangement rule for generating an initial page layout.

[0151] S709, mapping each rearranged page element of the DOM element type to the canvas page image layout to obtain a new page layout in the DOM display mode.

[0152] The specific process of the above S701-S709 can be found in the description of the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0153] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0154] Based on the same inventive concept, the embodiment of the present application also provides a page layout device for implementing the page layout method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more page layout device embodiments provided below can refer to the limitations on the page layout method above, and will not be repeated here.

[0155] In an exemplary embodiment, Figure 8 As shown, a page layout device 1 is provided, comprising: an acquisition module 10, a collision detection module 20 and a page arrangement module 30, wherein:

[0156] The acquisition module 10 is used to acquire the target page position of the target page element after being dragged and the drag direction corresponding to the drag operation when a drag operation is detected on the target page element in the initial page layout;

[0157] A collision detection module 20, for determining, from among the other page elements, a collision page element that collides with the target page element at the target page position, according to the original page positions corresponding to the other page elements; wherein the other page elements include page elements other than the target page element in the initial page layout;

[0158] The page arrangement module 30 is used to rearrange the initial page layout according to the collision page elements and the dragging direction to obtain a new page layout.

[0159] In an exemplary embodiment, in the case of at least two colliding page elements, such as Fig. 9 As shown, the page arrangement module 30 includes:

[0160] A sequence number acquisition unit 31 is used to acquire the original arrangement sequence number of each collision page element in the initial page layout, and the target arrangement sequence number of the target page element in the initial page layout before dragging;

[0161] A determination unit 32, used to determine the minimum and maximum arrangement numbers from the original arrangement numbers of the collision page elements;

[0162] The sequence determination unit 33 is used to adjust the original element arrangement sequence corresponding to the initial page layout according to the minimum arrangement sequence number, the maximum arrangement sequence number, the target arrangement sequence number and the dragging direction to obtain a new element arrangement sequence;

[0163] The layout determination unit 34 is used to rearrange the initial page layout according to the minimum arrangement number, the target arrangement number, the new element arrangement order and the original arrangement rule to obtain a new page layout; wherein the original arrangement rule is the arrangement rule for generating the initial page layout.

[0164] In an exemplary embodiment, the sequence determination unit 33 is specifically configured to:

[0165] When the dragging direction is upward, each arrangement number from the smallest arrangement number to the previous arrangement number of the target arrangement number in the original element arrangement order is increased by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order; when the dragging direction is downward, each arrangement number from the next arrangement number of the target arrangement number to the smallest arrangement number in the original element arrangement order is reduced by one, and the target arrangement number is modified to the smallest arrangement number to obtain a new element arrangement order; when the dragging direction is leftward, the collision page element corresponding to the largest arrangement number in the original element arrangement order is swapped with the target page element to obtain a new element arrangement order; when the dragging direction is rightward, the collision page element corresponding to the smallest arrangement number in the original element arrangement order is swapped with the target page element to obtain a new element arrangement order.

[0166] In an exemplary embodiment, the layout determining unit 34 includes:

[0167] The first subunit is used to use the smallest sequence number value between the minimum arrangement sequence number and the target arrangement sequence number as the starting rearrangement sequence number;

[0168] The second subunit is used to use the page element corresponding to the starting rearrangement sequence number and the page elements corresponding to the sequence numbers after the starting rearrangement sequence number in the new element arrangement order as rearrangement page elements;

[0169] The third subunit is used to rearrange the rearranged page elements in the initial page layout according to the original arrangement rule to obtain a new page layout.

[0170] In an exemplary embodiment, the initial page layout is associated with a document object model DOM display mode and a canvas image layout mode, and each page element in the initial page layout is associated with a document object model DOM element type and a canvas image element type; accordingly, the third subunit is specifically used to:

[0171] According to the original arrangement rules, each rearranged page element of the canvas image element type in the initial page layout is rearranged to obtain the canvas page image layout in the canvas image arrangement mode; each rearranged page element of the DOM element type is mapped to the canvas page image layout to obtain a new page layout in the DOM display mode.

[0172] In an exemplary embodiment, the page layout device further includes an initial layout module, wherein the initial layout module is specifically used to:

[0173] When it is detected that the element height of any original page element in the original page layout has changed, the initial collision element corresponding to the original page element is determined; according to the height change value of the original page element, the original page position corresponding to the initial collision element in the original page layout is modified, and it is determined whether there are other collision elements corresponding to the initial collision element; if so, the other collision elements are used as new initial collision elements, and the operation of modifying the original page position corresponding to the initial collision element in the original page layout according to the height change value of the original page element is returned until there are no other collision elements corresponding to the initial collision element, so as to obtain the initial page layout.

[0174] Each module in the above page layout device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0175] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store page element position data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a page layout method is implemented.

[0176] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0177] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0178] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0179] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0180] It should be noted that the data involved in this application (including but not limited to page element data, etc.) are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0181] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0182] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0183] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A page layout method, characterized in that: The method comprises: When a drag operation is detected on a target page element in the initial page layout, obtaining a target page position of the target page element after the drag, and a drag direction corresponding to the drag operation; According to the initial page positions corresponding to the other page elements, determining, from the other page elements, a collision page element that collides with the target page element at the target page position; wherein the other page elements include page elements in the initial page layout except the target page element; Rearranging the initial page layout according to the collision page element and the dragging direction to obtain a new page layout; Wherein, in the case of at least two collision page elements, the initial page layout is rearranged according to the collision page elements and the dragging direction to obtain a new page layout, including: Obtaining the original arrangement sequence number of each collision page element in the initial page layout, and the target arrangement sequence number of the target page element in the initial page layout before dragging; Determine the minimum and maximum sequence numbers of the original sequence numbers of the elements on each collision page; According to the minimum arrangement sequence number, the maximum arrangement sequence number, the target arrangement sequence number and the dragging direction, the original element arrangement sequence corresponding to the initial page layout is adjusted to obtain a new element arrangement sequence; The initial page layout is rearranged according to the minimum arrangement sequence number, the target arrangement sequence number, the new element arrangement order and the original arrangement rule to obtain a new page layout; wherein the original arrangement rule is the arrangement rule for generating the initial page layout.

2. The method according to claim 1, characterized in that The adjusting the original element arrangement sequence corresponding to the initial page layout according to the minimum arrangement sequence number, the maximum arrangement sequence number, the target arrangement sequence number and the dragging direction to obtain a new element arrangement sequence includes: When the dragging direction is upward, each arrangement number from the minimum arrangement number to the previous arrangement number of the target arrangement number in the original element arrangement order is increased by one, and the target arrangement number is modified to the minimum arrangement number to obtain a new element arrangement order; When the dragging direction is downward, each arrangement number from the arrangement number after the target arrangement number to the minimum arrangement number in the original element arrangement order is reduced by one, and the target arrangement number is modified to the minimum arrangement number to obtain the new element arrangement order; When the dragging direction is to the left, the collision page element corresponding to the largest arrangement number in the original element arrangement order is swapped with the target page element to obtain the new element arrangement order; When the dragging direction is rightward, the collision page element corresponding to the smallest arrangement number in the original element arrangement sequence is exchanged with the target page element to obtain the new element arrangement sequence.

3. The method according to claim 1, characterized in that: The step of rearranging the initial page layout according to the minimum arrangement sequence number, the target arrangement sequence number, the new element arrangement order and the original arrangement rule to obtain a new page layout includes: The smallest sequence number between the minimum permutation sequence number and the target permutation sequence number is used as the starting rearrangement sequence number; The page element corresponding to the starting rearrangement sequence number and the page elements corresponding to the sequence numbers after the starting rearrangement sequence number in the new element arrangement sequence are used as rearrangement page elements; According to the original arrangement rule, each rearranged page element in the initial page layout is rearranged to obtain a new page layout.

4. The method according to claim 3, characterized in that The initial page layout is associated with a document object model DOM display mode and a canvas image layout mode, and each page element in the initial page layout is associated with a DOM element type and a canvas image element type; Correspondingly, the rearrangement of the rearranged page elements in the initial page layout according to the original arrangement rule to obtain a new page layout includes: According to the original arrangement rule, each rearranged page element of the canvas picture element type in the initial page layout is rearranged to obtain a canvas page picture layout in a canvas picture arrangement mode; Map each rearranged page element of the DOM element type to the canvas page image layout to obtain a new page layout in the DOM display mode.

5. The method according to claim 1, characterized in that The method further comprises: In the case where it is detected that the element height of any original page element in the original page layout increases, determining an initial collision element corresponding to the original page element; According to the height change value of the original page element, modify the original page position corresponding to the initial collision element in the original page layout, and determine whether there are other collision elements corresponding to the initial collision element; If so, the other collision elements are used as new initial collision elements, and the operation of modifying the original page position corresponding to the initial collision element in the original page layout according to the height change value of the original page element is returned until there are no other collision elements corresponding to the initial collision element, so as to obtain the initial page layout.

6. A page layout device, characterized in that: The device comprises: An acquisition module, configured to, when a drag operation is detected on a target page element in the initial page layout, acquire a target page position of the target page element after the dragging, and a drag direction corresponding to the drag operation; A collision detection module, for determining, from among the other page elements, a collision page element that collides with the target page element at the target page position, according to the initial page positions corresponding to the other page elements; wherein the other page elements include page elements in the initial page layout other than the target page element; A page arrangement module, used for rearranging the initial page layout according to the collision page element and the dragging direction to obtain a new page layout; Wherein, in the case of at least two colliding page elements, the page arrangement module includes: A sequence number acquisition unit, used to acquire the original arrangement sequence number of each collision page element in the initial page layout, and the target arrangement sequence number of the target page element in the initial page layout before dragging; A determination unit, used to determine the minimum and maximum arrangement numbers from the original arrangement numbers of the collision page elements; An order determination unit, configured to adjust the original element arrangement order corresponding to the initial page layout according to the minimum arrangement order, the maximum arrangement order, the target arrangement order and the dragging direction, to obtain a new element arrangement order; The layout determination unit is used to rearrange the initial page layout according to the minimum arrangement sequence number, the target arrangement sequence number, the new element arrangement order and the original arrangement rule to obtain a new page layout; wherein the original arrangement rule is the arrangement rule for generating the initial page layout.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Page generation method and device, computer equipment and storage medium

    CN110704087A