A method and device for generating a table graphic element
By obtaining and optimizing table element signal information and generating target table element information, the problem of inability to flexibly adjust the coding quality in the prior art is solved, and the convenience of table element operation and data analysis efficiency are improved.
Patent Information
- Application Number
- CN202311766516.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2043-12-20
AI Technical Summary
In the prior art, the code rate control calculation module cannot flexibly adjust the image quality of the coded image according to actual needs, resulting in the user being unable to adjust the image quality of the texture area in a targeted manner, affecting the convenience of table element operation and data analysis and processing efficiency.
By obtaining the table element signal information, determining and optimizing the first and second subtable element information, including adjusting the element position, border and serial number, the format conversion and splicing of the table element information is realized, and the target table element information is generated.
It improves the convenience of table element operation and data analysis and processing efficiency, simplifies user operation steps, and improves the visual display effect of data analysis.
Smart Images

Figure CN118114635B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of table processing technology, and in particular to a method and device for generating table graphic elements. Background Art
[0002] Currently, because the rate control calculation module has a fixed calculation method for quantization parameters and does not reserve an interface for users to set adjustment policies, it is impossible to flexibly adjust the image quality of the encoded image in real time according to actual needs. Users cannot specifically adjust the encoding quality of certain texture areas based on the current scene. Therefore, a table primitive generation method and device are provided to improve the convenience of table primitive operation and enhance the efficiency of data analysis and processing. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a table element generation method and device that are conducive to improving the convenience of table element operation and improving the efficiency of data analysis and processing.
[0004] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a method for generating table primitives, the method comprising:
[0005] Get table element signal information;
[0006] Determine first table primitive information based on the table primitive signal information; the first table primitive information includes first sub-table primitive information and second sub-table primitive information;
[0007] The first table graphic element information is optimized to obtain target table graphic element information.
[0008] As an optional implementation manner, in the first aspect of the embodiment of the present invention, determining the first table primitive information based on the table primitive signal information includes:
[0009] Determine whether the attribute value corresponding to the table primitive signal information is a first primitive attribute value, and obtain a first attribute determination result;
[0010] When the result of the first attribute judgment is negative, triggering the execution of obtaining the table primitive signal information;
[0011] When the result of the first attribute judgment is yes, obtaining signal position information of the table primitive signal information in the table primitive editing area;
[0012] Loading first basic graphic element information corresponding to the first graphic element attribute value from the first graphic element area;
[0013] Transmit the first basic graphic element information corresponding to the first graphic element attribute value to the editing area corresponding to the signal position information, and obtain the second basic graphic element information corresponding to the signal position information;
[0014] Perform format conversion processing on the second basic graphic element information to obtain the first table graphic element information.
[0015] As an optional implementation manner, in the first aspect of the embodiments of the present invention, the optimizing the first table graphic element information to obtain the target table graphic element information includes:
[0016] Optimize the first sub-table graphic element information to obtain the first target graphic element information; the first target graphic element information includes a plurality of first sub-target graphic element information; the first sub-target graphic element information includes sub-target graphic element border information, sub-target graphic element serial numbers, and sub-target graphic element position information;
[0017] Optimize the second sub-table graphic element information and the first target graphic element information to obtain the target table graphic element information.
[0018] As an optional implementation manner, in the first aspect of the embodiments of the present invention, the optimizing the first sub-table graphic element information to obtain the first target graphic element information includes:
[0019] Obtain the first table optimization signal information;
[0020] Identify the position coordinates of the first sub-table graphic element information to obtain the first graphic element position information; the first sub-table graphic element information includes a plurality of first sub-graphic element information arranged in sequence from left to right; each of the first sub-graphic element information includes a first graphic element serial number and a first graphic element border information; the first graphic element position information includes a plurality of first sub-table graphic element position information corresponding to the first sub-table graphic elements; each of the first sub-table graphic element position information corresponds to a first graphic element serial number;
[0021] Classify the first graphic element position information based on the first optimization position information of the first table optimization signal information to obtain the first target graphic element position information; the first target graphic element position information includes first sub-target position information, second sub-target position information, and third sub-target position information;
[0022] Determine the first target graphic element information based on the first target graphic element position information, the first table optimization signal information, and the first sub-table graphic element information.
[0023] As an alternative implementation, in the first aspect of the embodiments of the present invention, determining the first target graphic element information based on the first target graphic element position information, the first table optimization signal information, and the first sub-table graphic element information includes:
[0024] Judging whether the signal type corresponding to the first table optimization signal information is consistent with the first graphic element type to obtain a first type judgment result;
[0025] When the first type judgment result is yes, determining first optimized graphic element information based on the second sub-target position information;
[0026] Sequentially increasing the first graphic element serial numbers in all the first sub-graphic element information corresponding to the third sub-target position information to obtain second optimized graphic element information;
[0027] Obtaining first graphic element optimized position information;
[0028] Using the first graphic element optimized position information to increase and adjust the horizontal position information in the third sub-target position information to obtain third optimized target position information;
[0029] Based on the sequential relationship of the graphic element serial numbers, sequentially splicing all the first sub-graphic element information corresponding to the first sub-target position information, all the first sub-graphic element information corresponding to the second sub-target position information, the first optimized graphic element information, and the second optimized graphic element information corresponding to the third optimized target position information from left to right to obtain the first target graphic element information;
[0030] When the first type judgment result is no, judging whether the signal type corresponding to the first table optimization signal information is consistent with the second graphic element type to obtain a second type judgment result;
[0031] When the second type judgment result is yes, obtaining first frame body optimization information;
[0032] Using the first frame body optimization information to widen the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information in the horizontal direction to obtain third optimized graphic element information;
[0033] Using the first frame body optimization information to increase and adjust the horizontal position information in the third sub-target position information to obtain fourth optimized target position information;
[0034] Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the third optimized graphic element information, and all the first sub-graphic element information corresponding to the fourth optimized target position information are sequentially spliced from left to right to obtain the first target graphic element information;
[0035] When the second type judgment result is negative, it is judged whether the signal type corresponding to the first table optimization signal information is consistent with the third graphic element type to obtain a third type judgment result;
[0036] When the third type judgment result is positive, second frame optimization information is obtained;
[0037] Using the second frame optimization information, the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information is processed to reduce the width in the horizontal direction to obtain the fourth optimized graphic element information;
[0038] Using the second frame optimization information, the horizontal position information in the third sub-target position information is adjusted to be reduced to obtain the fifth optimized target position information;
[0039] Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the fourth optimized graphic element information, and all the first sub-graphic element information corresponding to the fifth optimized target position information are sequentially spliced from left to right to obtain the first target graphic element information;
[0040] When the third type judgment result is negative, it is judged whether the signal type corresponding to the first table optimization signal information is consistent with the fourth graphic element type to obtain a fourth type judgment result;
[0041] When the fourth type judgment result is positive, the first graphic element serial number of the first sub-graphic element information corresponding to the second sub-target position information is newly added, and the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information is divided into two equal parts to obtain the fifth optimized graphic element information and the sixth optimized graphic element information;
[0042] Based on the first graphic element border information corresponding to the fifth optimized graphic element information, the first graphic element border information corresponding to the sixth optimized graphic element information, and the second sub-target position information, the fifth optimized graphic element position information corresponding to the fifth optimized graphic element information and the sixth optimized graphic element position information corresponding to the sixth optimized graphic element information are determined;
[0043] Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-goal position information, the fifth optimized graphic element information corresponding to the fifth optimized graphic element position information, the sixth optimized graphic element information corresponding to the sixth optimized graphic element position information, and all the first sub-graphic element information corresponding to the third sub-goal position information are sequentially spliced from left to right to obtain the first target graphic element information;
[0044] When the result of the fourth type judgment is negative, the first graphic element serial numbers in all the first sub-graphic element information corresponding to the third sub-goal position information are sequentially decreased to obtain the seventh optimized graphic element information;
[0045] The horizontal position information in the third sub-goal position information is decreased and adjusted by using the second sub-goal position information to obtain the seventh optimized target position information;
[0046] Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-goal position information and the seventh optimized graphic element information corresponding to the seventh optimized target position information are sequentially spliced from left to right to obtain the first target graphic element information.
[0047] As an optional implementation manner, in the first aspect of the embodiments of the present invention, the optimizing the second sub-table graphic element information and the first target graphic element information to obtain the target table graphic element information includes:
[0048] Obtain the second table optimization signal information;
[0049] Based on the second table optimization signal information, the second sub-table graphic element information, and the first target graphic element information, determine the target table graphic element information.
[0050] As an optional implementation manner, in the first aspect of the embodiments of the present invention, the determining the target table graphic element information based on the second table optimization signal information, the second sub-table graphic element information, and the first target graphic element information includes:
[0051] Based on the height information corresponding to the second table optimization signal information, the width information corresponding to the second sub-table graphic element information, and the second graphic element border information, determine the second sub-target table graphic element information; the second sub-target table graphic element information includes second sub-target graphic element position information and second sub-target graphic element border information;
[0052] Sequentially determine the first sub-target graphic element information in the first target graphic element information from left to right as the target graphic element information to be processed;
[0053] Adjust the border of the sub-target primitive border information corresponding to the target primitive information to be processed by using the height information corresponding to the signal information optimized by the second table to obtain the third sub-target primitive border information;
[0054] Adjust the position of the sub-target primitive position information corresponding to the target primitive information to be processed by using the height information corresponding to the signal information optimized by the second table to obtain the third sub-target primitive position information;
[0055] Fuse the third sub-target primitive border information, the third sub-target primitive position information, and the sub-target primitive serial number corresponding to the target primitive information to be processed to obtain a third sub-target table primitive information;
[0056] Judge whether all the first sub-target primitive information in the first target primitive information has been determined as the target primitive information to be processed to obtain a primitive judgment result;
[0057] When the primitive judgment result is no, trigger the execution of sequentially determining the first sub-target primitive information in the first target primitive information from left to right as the target primitive information to be processed;
[0058] When the primitive judgment result is yes, based on the sequential relationship of the primitive serial numbers, splice the second sub-target table primitive information and all the third sub-target table primitive information from left to right to obtain the second target table primitive information;
[0059] Splice the first target primitive information and the second target table primitive information from top to bottom to obtain the target table primitive information.
[0060] The second aspect of the embodiments of the present invention discloses a table primitive generation device, and the device includes:
[0061] An acquisition module, configured to acquire table primitive signal information;
[0062] A determination module, configured to determine first table primitive information based on the table primitive signal information; the first table primitive information includes first sub-table primitive information and second sub-table primitive information;
[0063] A processing module, configured to perform optimization processing on the first table primitive information to obtain target table primitive information.
[0064] The third aspect of the present invention discloses another table primitive generation device, and the device includes:
[0065] A memory storing executable program code;
[0066] A processor coupled to the memory;
[0067] The processor calls the executable program code stored in the memory and executes some or all of the steps in the table element generation method disclosed in the first aspect of the embodiments of the present invention.
[0068] The fourth aspect of the present invention discloses a computer-readable storage medium storing computer instructions, which are used to execute some or all of the steps in the table element generation method disclosed in the first aspect of the embodiments of the present invention when the computer instructions are called.
[0069] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0070] In the embodiments of the present invention, table element signal information is obtained; based on the table element signal information, first table element information is determined; the first table element information includes first sub-table element information and second sub-table element information; the first table element information is optimized to obtain target table element information. It can be seen that this application is beneficial to improving the convenience of table element operations and the efficiency of data analysis and processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0072] Figure 1 is a schematic flowchart of a table element generation method disclosed in an embodiment of the present invention;
[0073] Figure 2 is a schematic structural diagram of a table element generation device disclosed in an embodiment of the present invention;
[0074] Figure 3 is a schematic structural diagram of another table element generation device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0075] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0076] In the description, claims and drawings of the present invention, terms such as "first" and "second" are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or equipment.
[0077] Reference to "embodiment" herein means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The phrase may not necessarily refer to the same embodiment when it appears in various places in the specification, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0078] The present invention discloses a method and device for generating table graphic elements, which are beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing. The following will be described in detail respectively.
[0079] Embodiment 1
[0080] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a method for generating table graphic elements disclosed in an embodiment of the present invention. Among them, Figure 1 the described method for generating table graphic elements is applied to a graphic element management system, such as a local server or a cloud server for table graphic element generation management, etc., which is not limited in the embodiments of the present invention. As Figure 1 shown, the method for generating table graphic elements may include the following operations:
[0081] 101. Obtain table graphic element signal information.
[0082] 102. Based on the table graphic element signal information, determine the first table graphic element information.
[0083] In an embodiment of the present invention, the first table graphic element information includes first sub-table graphic element information and second sub-table graphic element information.
[0084] 103. Optimize the first table graphic element information to obtain the target table graphic element information.
[0085] It should be noted that by using the method for generating table graphic elements of the present application, graphic elements such as task graphic elements and activity graphic elements that describe process actions can be dragged into the graphic container graphic element. After being dragged in, the parent attribute of the task graphic element and the activity graphic element is the container graphic element where they are located. When reading data, the corresponding title and stage can be determined according to the graphic container where these graphic elements are located. The implementation principle is as follows: ① Read all graphic elements in the view and record them in an array. ② Loop through the array and take out all task graphic elements (the type attribute value is "task") and activity graphic elements (the type attribute value is "action") according to the type attribute of the graphic element. ③ Combine all task graphic elements and activity graphic elements into one array. ④ Loop through the array recording activity graphic elements and task graphic elements, and judge the x coordinate value and type attribute of the graphic element. If the x coordinate is equal to the x coordinate of the graphic container and the type is judged as the title, then this graphic element is the title corresponding to the graphic container, and set the attribute "tableTitleCell" to the graphic element that meets the conditions. If the y coordinate is opposite to the y coordinate of the graphic element container and the type is judged as the stage title, then this graphic element is the stage corresponding to the graphic container, and set the attribute "laneTitleCell" to the graphic element that meets the conditions. In this way, data can be easily obtained. In the data table, the content of the combat platform is the name of the graphic element with the "tableTitleCell" attribute in the activity graphic element, and the content of the activity name is the name of the activity graphic element.
[0086] It should be noted that by using the method for generating table graphic elements of the present application, the overall processing of multiple lanes is realized, significantly reducing the operation steps and difficulty of users, and providing a better user experience. This interaction method uses the method of appending small container graphic elements to generate a neat matrix layout, effectively avoiding the splicing operation between multiple lanes. This design method not only reduces the learning cost, but also is easy to operate, and the overall visual effect is more tidy and beautiful. In addition, through precise row and column positioning, elements such as tasks, personnel, and steps can be easily and precisely placed in corresponding positions such as departments, functional scopes, and stages, greatly facilitating the analysis, processing, and visual display of data.
[0087] It can be seen that implementing the method for generating table graphic elements described in the embodiments of the present invention is beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0088] In an alternative embodiment, determining the first table graphic element information based on the above-mentioned table graphic element signal information includes:
[0089] Judging whether the attribute value corresponding to the table graphic element signal information is the first graphic element attribute value to obtain a first attribute judgment result;
[0090] When the first attribute judgment result is negative, trigger the execution of obtaining the table graphic element signal information;
[0091] When the first attribute judgment result is yes, obtain the signal position information of the table graphic element signal information in the table graphic element editing area;
[0092] Load the first basic graphic element information corresponding to the first graphic element attribute value from the first graphic element area;
[0093] Transmit the first basic graphic element information corresponding to the first graphic element attribute value to the editing area corresponding to the signal position information to obtain the second basic graphic element information corresponding to the signal position information;
[0094] Perform format conversion processing on the second basic graphic element information to obtain the first table graphic element information.
[0095] It should be noted that the above-mentioned first graphic element area stores several types of first basic graphic element information, such as task activities, tables, etc., which are not limited in the embodiments of the present invention.
[0096] It should be noted that the above-mentioned table graphic element editing area is an area where the table graphic element can be edited. Further, the table graphic element editing area is on the left side of the first graphic element area.
[0097] It should be noted that the above-mentioned format conversion processing of the second basic graphic element information is implemented based on the mxGraph library.
[0098] It should be noted that the above-mentioned attribute values include table, tableTitle, laneContainer, which are not limited in the embodiments of the present invention.
[0099] It should be noted that the above-mentioned first graphic element attribute value can be set by the user or given by the system default, which is not limited in the embodiments of the present invention.
[0100] It can be seen that implementing the table graphic element generation method described in the embodiments of the present invention is beneficial to improving the convenience of table graphic element operations and improving the data analysis and processing efficiency.
[0101] In another optional embodiment, perform optimization processing on the first table graphic element information to obtain the target table graphic element information, including:
[0102] Perform optimization processing on the first sub-table graphic element information to obtain the first target graphic element information; the first target graphic element information includes several first sub-target graphic element information; the first sub-target graphic element information includes sub-target graphic element border information, sub-target graphic element serial number, and sub-target graphic element position information;
[0103] Perform optimization processing on the second sub-table graphic element information and the first target graphic element information to obtain the target table graphic element information.
[0104] It can be seen that implementing the table element generation method described in the embodiments of the present invention is beneficial to improving the convenience of table element operations and the efficiency of data analysis and processing.
[0105] In another optional embodiment, optimizing the first sub-table element information to obtain the first target element information includes:
[0106] Obtaining the first table optimization signal information;
[0107] Identifying the position coordinates of the first sub-table element information to obtain the first element position information; the first sub-table element information includes several first sub-element information arranged in sequence from left to right; each first sub-element information includes a first element serial number and first element border information; the first element position information includes the first sub-table element position information corresponding to several first sub-table elements; each first sub-table element position information corresponds to a first element serial number;
[0108] Classifying the first element position information based on the first optimization position information of the first table optimization signal information to obtain the first target element position information; the first target element position information includes first sub-target position information, second sub-target position information, and third sub-target position information;
[0109] Determining the first target element information based on the first target element position information, the first table optimization signal information, and the first sub-table element information.
[0110] It can be seen that implementing the table element generation method described in the embodiments of the present invention is beneficial to improving the convenience of table element operations and the efficiency of data analysis and processing.
[0111] In another optional embodiment, determining the first target element information based on the first target element position information, the first table optimization signal information, and the first sub-table element information includes:
[0112] Judging whether the signal type corresponding to the first table optimization signal information is consistent with the first element type to obtain a first type judgment result;
[0113] When the first type judgment result is yes, determining the first optimized element information based on the second sub-target position information;
[0114] Sequentially increasing the first element serial numbers in all the first sub-element information corresponding to the third sub-target position information to obtain the second optimized element information;
[0115] Obtaining the first element optimization position information; [[ID=3,5]]
[0116] Increase the horizontal position information in the third sub - target position information by using the optimized position information of the first primitive to obtain the third optimized target position information;
[0117] Based on the sequential relationship of the primitive numbers, splice all the first sub - primitive information corresponding to the first sub - target position information, all the first sub - primitive information corresponding to the second sub - target position information, the first optimized primitive information, and the second optimized primitive information corresponding to the third optimized target position information from left to right to obtain the first target primitive information;
[0118] When the first type judgment result is no, judge whether the signal type corresponding to the first table optimization signal information is consistent with the second primitive type to obtain the second type judgment result;
[0119] When the second type judgment result is yes, obtain the first frame optimization information;
[0120] Use the first frame optimization information to widen the first primitive border information of the first sub - primitive information corresponding to the second sub - target position information in the horizontal direction to obtain the third optimized primitive information;
[0121] Use the first frame optimization information to increase the horizontal position information in the third sub - target position information to obtain the fourth optimized target position information;
[0122] Based on the sequential relationship of the primitive numbers, splice all the first sub - primitive information corresponding to the first sub - target position information, the third optimized primitive information, and all the first sub - primitive information corresponding to the fourth optimized target position information from left to right to obtain the first target primitive information;
[0123] When the second type judgment result is no, judge whether the signal type corresponding to the first table optimization signal information is consistent with the third primitive type to obtain the third type judgment result;
[0124] When the third type judgment result is yes, obtain the second frame optimization information;
[0125] Use the second frame optimization information to narrow the first primitive border information of the first sub - primitive information corresponding to the second sub - target position information in the horizontal direction to obtain the fourth optimized primitive information;
[0126] Use the second frame optimization information to reduce the horizontal position information in the third sub - target position information to obtain the fifth optimized target position information;
[0127] Based on the sequential relationship of the graphic element numbers, all the first sub-graphic element information corresponding to the first sub-goal position information, the fourth optimized graphic element information, and all the first sub-graphic element information corresponding to the fifth optimized goal position information are sequentially concatenated from left to right to obtain the first target graphic element information;
[0128] When the result of the third type judgment is negative, it is judged whether the signal type corresponding to the first table optimization signal information is consistent with the fourth graphic element type to obtain the result of the fourth type judgment;
[0129] When the result of the fourth type judgment is positive, the first graphic element number of the first sub-graphic element information corresponding to the second sub-goal position information is newly added, and the first graphic element border information of the first sub-graphic element information corresponding to the second sub-goal position information is divided into two equal parts to obtain the fifth optimized graphic element information and the sixth optimized graphic element information;
[0130] Based on the first graphic element border information corresponding to the fifth optimized graphic element information, the first graphic element border information corresponding to the sixth optimized graphic element information, and the second sub-goal position information, the fifth optimized graphic element position information corresponding to the fifth optimized graphic element information and the sixth optimized graphic element position information corresponding to the sixth optimized graphic element information are determined;
[0131] Based on the sequential relationship of the graphic element numbers, all the first sub-graphic element information corresponding to the first sub-goal position information, the fifth optimized graphic element information corresponding to the fifth optimized graphic element position information, the sixth optimized graphic element information corresponding to the sixth optimized graphic element position information, and all the first sub-graphic element information corresponding to the third sub-goal position information are sequentially concatenated from left to right to obtain the first target graphic element information;
[0132] When the result of the fourth type judgment is negative, the first graphic element numbers in all the first sub-graphic element information corresponding to the third sub-goal position information are sequentially decreased to obtain the seventh optimized graphic element information;
[0133] The horizontal position information in the third sub-goal position information is decreased and adjusted by using the second sub-goal position information to obtain the seventh optimized goal position information;
[0134] Based on the sequential relationship of the graphic element numbers, all the first sub-graphic element information corresponding to the first sub-goal position information and the seventh optimized graphic element information corresponding to the seventh optimized goal position information are sequentially concatenated from left to right to obtain the first target graphic element information.
[0135] It should be noted that the above first graphic element type, second graphic element type, third graphic element type, and fourth graphic element type can be set by the user, can be the default values given by the system, or can be obtained according to historical data, which is not limited in the embodiments of the present invention.
[0136] It should be noted that the sequential relationship of the above graphic element numbers represents the arrangement order from small to large of the graphic element numbers. Further, the above graphic element numbers can be corresponding numbers of any graphic element, such as the first graphic element number, etc.
[0137] It should be noted that the above-mentioned addition process for the first graphic element number corresponding to the second sub-goal position information is to add a first graphic element number. For example, if the first graphic element number is 5, then a first graphic element number 6 is added.
[0138] It should be noted that the above-mentioned centering process for the first graphic element border information corresponding to the second sub-goal position information is to divide the width of the first graphic element border information in the horizontal direction into 2 widths equally. For example, 6 is divided into 2 threes.
[0139] It should be noted that the above-mentioned determination of the first optimized graphic element information based on the second sub-goal position information is to add a first sub-graphic element information on the right side of the second sub-goal position information.
[0140] It should be noted that the above-mentioned process of increasing the first graphic element number in sequence is to add 1 to each first graphic element number.
[0141] It should be noted that the above-mentioned increase adjustment for the horizontal position information in the third sub-goal position information is to shift the position information to the right in the horizontal direction.
[0142] It should be noted that the above-mentioned splicing process is to set the identifiers adjacent to each other.
[0143] It should be noted that the above-mentioned width increase and width decrease are to increase and decrease the width of the frame body in the horizontal direction.
[0144] It should be noted that the above-mentioned determination of the fifth optimized graphic element position information corresponding to the fifth optimized graphic element information and the sixth optimized graphic element position information corresponding to the sixth optimized graphic element information based on the first graphic element border information corresponding to the fifth optimized graphic element information, the first graphic element border information corresponding to the sixth optimized graphic element information, and the second sub-goal position information is to determine the corresponding position information according to the position of the border, and then increase or decrease the position information with the second sub-goal position information.
[0145] It can be seen that implementing the table graphic element generation method described in the embodiments of the present invention is beneficial to improving the convenience of table graphic element operations and improving the data analysis and processing efficiency.
[0146] In an alternative embodiment, the above-mentioned optimization process for the second sub-table graphic element information and the first target graphic element information to obtain the target table graphic element information includes:
[0147] Obtain the second table optimization signal information;
[0148] Optimize the signal information, the second sub-table graphic element information, and the first target graphic element information based on the second table to determine the target table graphic element information.
[0149] It can be seen that implementing the table graphic element generation method described in the embodiments of the present invention is beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0150] In another optional embodiment, determining the target table graphic element information based on the second table optimization signal information, the second sub-table graphic element information, and the first target graphic element information includes:
[0151] Determine the second sub-target table graphic element information based on the height information corresponding to the second table optimization signal information, the width information corresponding to the second sub-table graphic element information, and the second graphic element border information; the second sub-target table graphic element information includes the second sub-target graphic element position information and the second sub-target graphic element border information;
[0152] Determine the first sub-target graphic element information in the first target graphic element information from left to right in sequence as the target graphic element information to be processed;
[0153] Use the height information corresponding to the second table optimization signal information to perform border adjustment processing on the sub-target graphic element border information corresponding to the target graphic element information to be processed to obtain the third sub-target graphic element border information;
[0154] Use the height information corresponding to the second table optimization signal information to perform position adjustment processing on the sub-target graphic element position information corresponding to the target graphic element information to be processed to obtain the third sub-target graphic element position information;
[0155] Perform fusion processing on the third sub-target graphic element border information, the third sub-target graphic element position information, and the sub-target graphic element serial number corresponding to the target graphic element information to be processed to obtain a third sub-target table graphic element information;
[0156] Judge whether all the first sub-target graphic element information in the first target graphic element information has been determined as the target graphic element information to be processed to obtain a graphic element judgment result;
[0157] When the graphic element judgment result is no, trigger and execute to determine the first sub-target graphic element information in the first target graphic element information from left to right in sequence as the target graphic element information to be processed;
[0158] When the graphic element judgment result is yes, based on the sequential relationship of the graphic element serial numbers, splice the second sub-target table graphic element information and all the third sub-target table graphic element information from left to right in sequence to obtain the second target table graphic element information;
[0159] Splice the first target graphic element information and the second target table graphic element information from top to bottom to obtain the target table graphic element information.
[0160] It should be noted that for the above determination of the second sub-target table graphic element information based on the height information corresponding to the second table optimization signal information, the width information corresponding to the second sub-table graphic element information, and the second graphic element border information, the width information corresponding to the second sub-table graphic element information is determined as the width information corresponding to the second sub-target graphic element border information, and the height information corresponding to the second graphic element border information is subtracted by the height information corresponding to the second table optimization signal information to obtain the height information corresponding to the second sub-target graphic element border information; the vertical position information in the position information in the second graphic element border information is subtracted by the height information corresponding to the second table optimization signal information to obtain the vertical position information of the second sub-target graphic element position corresponding to the second sub-target graphic element border information; the horizontal position information in the position information in the second graphic element border information is used as the horizontal position information of the second sub-target graphic element position corresponding to the second sub-target graphic element border information.
[0161] It should be noted that for the above splicing process of the first target graphic element information and the second target table graphic element information from top to bottom, the two graphic element information forms two adjacent graphic element identifiers on the display interface, which can be completed by functions in the mxGraph library.
[0162] It should be noted that for the above border adjustment process of the sub-target graphic element border information corresponding to the target graphic element information to be processed using the height information corresponding to the second table optimization signal information, the border height in the sub-target graphic element border information is reduced. For example, if the sub-target graphic element border information is a rectangle of 10*12 (width * height) and the height information corresponding to the second table optimization signal information is 4, then for the border adjustment process of the sub-target graphic element border information corresponding to the target graphic element information to be processed, the height is reduced from 12 by 4 to 8.
[0163] It should be noted that for the above position adjustment process of the sub-target graphic element position information corresponding to the target graphic element information to be processed using the height information corresponding to the second table optimization signal information, the vertical position information of the sub-target graphic element position information is reduced. For example, if the sub-target graphic element position information is (13, 12) and the height information corresponding to the second table optimization signal information is 4, then for the position adjustment process of the sub-target graphic element position information corresponding to the target graphic element information to be processed, the vertical position is reduced from 12 by 4 to 8.
[0164] It should be noted that for the above fusion process of the third sub-target graphic element border information, the third sub-target graphic element position information, and the sub-target graphic element serial number corresponding to the target graphic element information to be processed, the above three types of data are integrated in a preset format, such as (the third sub-target graphic element border information, the third sub-target graphic element position information, the sub-target graphic element serial number).
[0165] It can be seen that implementing the table graphic element generation method described in the embodiments of the present invention is beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0166] Embodiment 2
[0167] Please refer to Figure 2 , Figure 2 which is a schematic structural diagram of a table graphic element generation device disclosed in the embodiments of the present invention. Among them, Figure 2 the described device can be applied to a graphic element management system, such as a local server or a cloud server for table graphic element generation management, etc., which is not limited in the embodiments of the present invention. As Figure 2 shown, the device may include:
[0168] An acquisition module 201, configured to acquire table graphic element signal information;
[0169] A determination module 202, configured to determine first table graphic element information based on the table graphic element signal information; the first table graphic element information includes first sub-table graphic element information and second sub-table graphic element information;
[0170] A processing module 203, configured to perform optimization processing on the first table graphic element information to obtain target table graphic element information.
[0171] It can be seen that implementing Figure 2 the described table graphic element generation device is beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0172] In another optional embodiment, as Figure 2 shown, the determination module 202 determines the first table graphic element information based on the table graphic element signal information, including:
[0173] Judging whether the attribute value corresponding to the table graphic element signal information is a first graphic element attribute value to obtain a first attribute judgment result;
[0174] When the first attribute judgment result is negative, trigger the execution of acquiring the table graphic element signal information;
[0175] When the first attribute judgment result is positive, acquire the signal position information of the table graphic element signal information in the table graphic element editing area;
[0176] Load the first basic graphic element information corresponding to the first graphic element attribute value from the first graphic element area;
[0177] Transmit the first basic graphic element information corresponding to the first graphic element attribute value to the editing area corresponding to the signal position information to obtain the second basic graphic element information corresponding to the signal position information;
[0178] Perform format conversion processing on the second basic graphic element information to obtain the first table graphic element information.
[0179] It can be seen that implementing Figure 2 the described table graphic element generation device is beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0180] In yet another alternative embodiment, as Figure 2 shown, the processing module 203 performs optimization processing on the first table graphic element information to obtain the target table graphic element information, including:
[0181] Perform optimization processing on the first sub-table graphic element information to obtain the first target graphic element information; the first target graphic element information includes a number of first sub-target graphic element information; the first sub-target graphic element information includes sub-target graphic element border information, sub-target graphic element serial numbers, and sub-target graphic element position information;
[0182] Perform optimization processing on the second sub-table graphic element information and the first target graphic element information to obtain the target table graphic element information.
[0183] It can be seen that implementing Figure 2 the described table graphic element generation device is beneficial to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0184] In yet another alternative embodiment, as Figure 2 shown, the processing module 203 performs optimization processing on the first sub-table graphic element information to obtain the first target graphic element information, including:
[0185] Obtain the first table optimization signal information;
[0186] Identify the position coordinates of the first sub-table graphic element information to obtain the first graphic element position information; the first sub-table graphic element information includes a number of first sub-graphic element information arranged in sequence from left to right; each first sub-graphic element information includes a first graphic element serial number and first graphic element border information; the first graphic element position information includes the first sub-table graphic element position information corresponding to a number of first sub-table graphic elements; each first sub-table graphic element position information corresponds to a first graphic element serial number;
[0187] Classify and process the first graphic element position information based on the first optimization position information of the first table optimization signal information to obtain the first target graphic element position information; the first target graphic element position information includes first sub-target position information, second sub-target position information, and third sub-target position information;
[0188] Based on the first target graphic element position information, the first table optimization signal information, and the first sub-table graphic element information, determine the first target graphic element information.
[0189] It can be seen that implementingFigure 2 The described table graphic element generation device is conducive to improving the convenience of table graphic element operations and the efficiency of data analysis and processing.
[0190] In yet another alternative embodiment, as Figure 2 shown, the processing module 203 determines first target graphic element information based on first target graphic element position information, first table optimization signal information, and first sub-table graphic element information, including:
[0191] Judge whether the signal type corresponding to the first table optimization signal information is consistent with the first graphic element type to obtain a first type judgment result;
[0192] When the first type judgment result is yes, determine first optimized graphic element information based on second sub-target position information;
[0193] Increase the graphic element serial numbers of all the first sub-graphic element information corresponding to the third sub-target position information in sequence to obtain second optimized graphic element information;
[0194] Obtain first graphic element optimized position information;
[0195] Use the first graphic element optimized position information to increase and adjust the horizontal position information in the third sub-target position information to obtain third optimized target position information;
[0196] Based on the sequential relationship of graphic element serial numbers, splice all the first sub-graphic element information corresponding to the first sub-target position information, all the first sub-graphic element information corresponding to the second sub-target position information, the first optimized graphic element information, and the second optimized graphic element information corresponding to the third optimized target position information from left to right to obtain first target graphic element information;
[0197] When the first type judgment result is no, judge whether the signal type corresponding to the first table optimization signal information is consistent with the second graphic element type to obtain a second type judgment result;
[0198] When the second type judgment result is yes, obtain first frame optimization information;
[0199] Use the first frame optimization information to widen the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information in the horizontal direction to obtain third optimized graphic element information;
[0200] Use the first frame optimization information to increase and adjust the horizontal position information in the third sub-target position information to obtain fourth optimized target position information;
[0201] Based on the sequential relationship of the graphic element numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the third optimized graphic element information, and all the first sub-graphic element information corresponding to the fourth optimized target position information are sequentially concatenated from left to right to obtain the first target graphic element information;
[0202] When the second type judgment result is no, judge whether the signal type corresponding to the first table optimization signal information is consistent with the third graphic element type to obtain the third type judgment result;
[0203] When the third type judgment result is yes, obtain the second frame body optimization information;
[0204] Use the second frame body optimization information to reduce the width of the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information in the horizontal direction to obtain the fourth optimized graphic element information;
[0205] Use the second frame body optimization information to shrink and adjust the horizontal position information in the third sub-target position information to obtain the fifth optimized target position information;
[0206] Based on the sequential relationship of the graphic element numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the fourth optimized graphic element information, and all the first sub-graphic element information corresponding to the fifth optimized target position information are sequentially concatenated from left to right to obtain the first target graphic element information;
[0207] When the third type judgment result is no, judge whether the signal type corresponding to the first table optimization signal information is consistent with the fourth graphic element type to obtain the fourth type judgment result;
[0208] When the fourth type judgment result is yes, perform an addition operation on the first graphic element number of the first sub-graphic element information corresponding to the second sub-target position information, and perform a mid-division operation on the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information to obtain the fifth optimized graphic element information and the sixth optimized graphic element information;
[0209] Based on the first graphic element border information corresponding to the fifth optimized graphic element information, the first graphic element border information corresponding to the sixth optimized graphic element information, and the second sub-target position information, determine the fifth optimized graphic element position information corresponding to the fifth optimized graphic element information and the sixth optimized graphic element position information corresponding to the sixth optimized graphic element information;
[0210] Based on the sequential relationship of the graphic element numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the fifth optimized graphic element information corresponding to the fifth optimized graphic element position information, the sixth optimized graphic element information corresponding to the sixth optimized graphic element position information, and all the first sub-graphic element information corresponding to the third sub-target position information are sequentially concatenated from left to right to obtain the first target graphic element information;
[0211] When the result of the fourth type judgment is no, the first primitive sequence numbers of all first sub-primitive information corresponding to the third sub-target position information are sequentially reduced to obtain seventh optimized primitive information;
[0212] Using the second sub-target position information, the horizontal position information in the third sub-target position information is reduced and adjusted to obtain seventh optimized target position information;
[0213] Based on the sequential relationship of the primitive numbers, all first sub-primitive information corresponding to the first sub-target position information and the seventh optimized primitive information corresponding to the seventh optimized target position information are spliced from left to right to obtain the first target primitive information.
[0214] It can be seen that implementation Figure 2 The described table primitive generation device is beneficial to improving the convenience of table primitive operations and improving the efficiency of data analysis and processing.
[0215] In another optional embodiment, Figure 2 As shown, the processing module 203 optimizes the second sub-table primitive information and the first target primitive information to obtain the target table primitive information, including:
[0216] Obtaining optimized signal information from the second table;
[0217] Target table primitive information is determined based on the second table optimization signal information, the second sub-table primitive information, and the first target primitive information.
[0218] It can be seen that implementation Figure 2 The described table primitive generation device is beneficial to improving the convenience of table primitive operations and improving the efficiency of data analysis and processing.
[0219] In another optional embodiment, Figure 2 As shown, the processing module 203 determines the target table primitive information based on the second table optimization signal information, the second sub-table primitive information and the first target primitive information, including:
[0220] Determine the second sub-target table primitive information based on the height information corresponding to the second table optimization signal information, the width information corresponding to the second sub-table primitive information, and the second primitive border information; the second sub-target table primitive information includes the second sub-target primitive position information and the second sub-target primitive border information;
[0221] From left to right, determine the first sub-target primitive information in the first target primitive information as the target primitive information to be processed;
[0222] Using the height information corresponding to the signal information optimized by the second table to perform border adjustment processing on the sub-target graphic element border information corresponding to the target graphic element information to be processed, obtaining the third sub-target graphic element border information;
[0223] Using the height information corresponding to the signal information optimized by the second table to perform position adjustment processing on the sub-target graphic element position information corresponding to the target graphic element information to be processed, obtaining the third sub-target graphic element position information;
[0224] Performing fusion processing on the third sub-target graphic element border information, the third sub-target graphic element position information, and the sub-target graphic element serial number corresponding to the target graphic element information to be processed, obtaining a third sub-target table graphic element information;
[0225] Judging whether all the first sub-target graphic element information in the first target graphic element information has been determined as the target graphic element information to be processed, obtaining a graphic element judgment result;
[0226] When the graphic element judgment result is no, triggering to execute determining the first sub-target graphic element information in the first target graphic element information as the target graphic element information to be processed in sequence from left to right;
[0227] When the graphic element judgment result is yes, based on the sequential relationship of the graphic element serial numbers, sequentially performing splicing processing on the second sub-target table graphic element information and all the third sub-target table graphic element information from left to right, obtaining the second target table graphic element information;
[0228] Performing splicing processing on the first target graphic element information and the second target table graphic element information from top to bottom, obtaining the target table graphic element information.
[0229] It can be seen that implementing Figure 2 the described table graphic element generation device is beneficial to improving the convenience of table graphic element operations and the data analysis and processing efficiency.
[0230] Embodiment III
[0231] Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of another table graphic element generation device disclosed in the embodiments of the present invention. Among them, Figure 3 the described device can be applied to a graphic element management system, such as a local server or a cloud server for table graphic element generation management, etc., which is not limited in the embodiments of the present invention. As Figure 3 shown, the device may include:
[0232] A memory 301 storing executable program code;
[0233] A processor 302 coupled to the memory 301;
[0234] The processor 302 calls the executable program code stored in the memory 301 to execute the steps in the table graphic element generation method described in the first embodiment.
[0235] Embodiment Four
[0236] An embodiment of the present invention discloses a computer-readable storage medium that stores a computer program for electronic data exchange. Among them, the computer program enables a computer to execute the steps in the table graphic element generation method described in the first embodiment.
[0237] Embodiment Five
[0238] An embodiment of the present invention discloses a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the table graphic element generation method described in the first embodiment.
[0239] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0240] Through the specific descriptions of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically-erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc memories, magnetic disk memories, tape memories, or any other medium that can be used to carry or store data and is readable by a computer.
[0241] Finally, it should be noted that: The method and device for generating a table graphic element disclosed in the embodiments of the present invention only disclose the preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention, rather than to limit them; Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; And these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a table graphic element, characterized in that The method includes: Obtaining table graphic element signal information; Based on the table graphic element signal information, determining first table graphic element information; the first table graphic element information includes first sub-table graphic element information and second sub-table graphic element information; Performing optimization processing on the first table graphic element information to obtain target table graphic element information; Wherein, the determining the first table graphic element information based on the table graphic element signal information includes: Judging whether an attribute value corresponding to the table graphic element signal information is a first graphic element attribute value to obtain a first attribute judgment result; When the first attribute judgment result is negative, triggering the execution of obtaining the table graphic element signal information; When the first attribute judgment result is positive, obtaining signal position information of the table graphic element signal information in a table graphic element editing area; the table graphic element editing area is an area where table graphic elements can be edited; Loading first basic graphic element information corresponding to the first graphic element attribute value from a first graphic element area; the table graphic element editing area is on the left side of the first graphic element area; Transmitting the first basic graphic element information corresponding to the first graphic element attribute value to an editing area corresponding to the signal position information to obtain second basic graphic element information corresponding to the signal position information; Performing format conversion processing on the second basic graphic element information to obtain first table graphic element information.
2. The method for generating a table graphic element according to claim 1, wherein The performing optimization processing on the first table graphic element information to obtain target table graphic element information includes: Performing optimization processing on the first sub-table graphic element information to obtain first target graphic element information; the first target graphic element information includes a plurality of first sub-target graphic element information; the first sub-target graphic element information includes sub-target graphic element border information, sub-target graphic element serial numbers, and sub-target graphic element position information; Performing optimization processing on the second sub-table graphic element information and the first target graphic element information to obtain target table graphic element information.
3. The method for generating a table graphic element according to claim 2, wherein The performing optimization processing on the first sub-table graphic element information to obtain first target graphic element information includes: Obtaining first table optimization signal information; Identifying position coordinates of the first sub-table graphic element information to obtain first graphic element position information; the first sub-table graphic element information includes a plurality of first sub-graphic element information arranged in sequence from left to right; each first sub-graphic element information includes a first graphic element serial number and first graphic element border information; the first graphic element position information includes a plurality of first sub-table graphic element position information corresponding to the first sub-table graphic elements; each first sub-table graphic element position information corresponds to a first graphic element serial number; Classifying and processing the first graphic element position information based on first optimization position information of the first table optimization signal information to obtain first target graphic element position information; the first target graphic element position information includes first sub-target position information, second sub-target position information, and third sub-target position information; Based on the first target graphic element position information, the first table optimization signal information, and the first sub-table graphic element information, determining first target graphic element information.
4. The method for generating a table graphic element according to claim 3, wherein Determining first target primitive information based on the first target primitive position information, the first table optimization signal information, and the first sub-table primitive information includes: Judging whether the signal type corresponding to the first table optimization signal information is consistent with the first primitive type to obtain a first type judgment result; When the first type judgment result is yes, determining first optimized primitive information based on the second sub-target position information; Sequentially increasing the first primitive serial numbers in all the first primitive information corresponding to the third sub-target position information to obtain second optimized primitive information; Obtaining first primitive optimization position information; Using the first primitive optimization position information to increase and adjust the horizontal position information in the third sub-target position information to obtain third optimized target position information; Based on the sequential relationship of the primitive serial numbers, sequentially splicing all the first primitive information corresponding to the first sub-target position information, all the first primitive information corresponding to the second sub-target position information, the first optimized primitive information, and the second optimized primitive information corresponding to the third optimized target position information from left to right to obtain first target primitive information; When the first type judgment result is no, judging whether the signal type corresponding to the first table optimization signal information is consistent with the second primitive type to obtain a second type judgment result; When the second type judgment result is yes, obtaining first frame optimization information; Using the first frame optimization information to widen the first primitive border information of the first primitive information corresponding to the second sub-target position information in the horizontal direction to obtain third optimized primitive information; Using the first frame optimization information to increase and adjust the horizontal position information in the third sub-target position information to obtain fourth optimized target position information; Based on the sequential relationship of the primitive serial numbers, sequentially splicing all the first primitive information corresponding to the first sub-target position information, the third optimized primitive information, and all the first primitive information corresponding to the fourth optimized target position information from left to right to obtain the first target primitive information; When the second type judgment result is no, judging whether the signal type corresponding to the first table optimization signal information is consistent with the third primitive type to obtain a third type judgment result; When the third type judgment result is yes, obtaining second frame optimization information; Using the second frame optimization information to narrow the first primitive border information of the first primitive information corresponding to the second sub-target position information in the horizontal direction to obtain fourth optimized primitive information; Using the second frame optimization information to shrink and adjust the horizontal position information in the third sub-target position information to obtain fifth optimized target position information; Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the fourth optimized graphic element information, and all the first sub-graphic element information corresponding to the fifth optimized target position information are sequentially spliced from left to right to obtain the first target graphic element information; When the third type judgment result is no, it is judged whether the signal type corresponding to the first table optimization signal information is consistent with the fourth graphic element type to obtain a fourth type judgment result; When the fourth type judgment result is yes, the first graphic element serial number of the first sub-graphic element information corresponding to the second sub-target position information is newly added, and the first graphic element border information of the first sub-graphic element information corresponding to the second sub-target position information is bisected to obtain fifth optimized graphic element information and sixth optimized graphic element information; Based on the first graphic element border information corresponding to the fifth optimized graphic element information, the first graphic element border information corresponding to the sixth optimized graphic element information, and the second sub-target position information, the fifth optimized graphic element position information corresponding to the fifth optimized graphic element information and the sixth optimized graphic element position information corresponding to the sixth optimized graphic element information are determined; Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-target position information, the fifth optimized graphic element information corresponding to the fifth optimized graphic element position information, the sixth optimized graphic element information corresponding to the sixth optimized graphic element position information, and all the first sub-graphic element information corresponding to the third sub-target position information are sequentially spliced from left to right to obtain the first target graphic element information; When the fourth type judgment result is no, the first graphic element serial numbers in all the first sub-graphic element information corresponding to the third sub-target position information are sequentially decreased to obtain seventh optimized graphic element information; The horizontal position information in the third sub-target position information is decreased and adjusted by using the second sub-target position information to obtain seventh optimized target position information; Based on the sequential relationship of the graphic element serial numbers, all the first sub-graphic element information corresponding to the first sub-target position information and the seventh optimized graphic element information corresponding to the seventh optimized target position information are sequentially spliced from left to right to obtain the first target graphic element information.
5. The method for generating a table graphic element according to claim 2, wherein The optimization processing of the second sub-table graphic element information and the first target graphic element information to obtain the target table graphic element information includes: Obtain the second table optimization signal information; Based on the second table optimization signal information, the second sub-table graphic element information, and the first target graphic element information, the target table graphic element information is determined.
6. The method for generating a table graphic element according to claim 5, wherein The determining the target table graphic element information based on the second table optimization signal information, the second sub-table graphic element information, and the first target graphic element information includes: Optimize the height information corresponding to the signal information, the width information corresponding to the second sub-table graphic element information, and the second graphic element border information based on the second table, and determine the second sub-target table graphic element information; the second sub-target table graphic element information includes second sub-target graphic element position information and second sub-target graphic element border information; Determine the first sub-target graphic element information in the first target graphic element information as the target graphic element information to be processed in sequence from left to right; Perform border adjustment processing on the sub-target graphic element border information corresponding to the target graphic element information to be processed by using the height information corresponding to the second table optimization signal information, and obtain the third sub-target graphic element border information; Perform position adjustment processing on the sub-target graphic element position information corresponding to the target graphic element information to be processed by using the height information corresponding to the second table optimization signal information, and obtain the third sub-target graphic element position information; Perform fusion processing on the third sub-target graphic element border information, the third sub-target graphic element position information, and the sub-target graphic element serial number corresponding to the target graphic element information to be processed, and obtain a third sub-target table graphic element information; Judge whether all the first sub-target graphic element information in the first target graphic element information has been determined as the target graphic element information to be processed, and obtain a graphic element judgment result; When the graphic element judgment result is no, trigger and execute determining the first sub-target graphic element information in the first target graphic element information as the target graphic element information to be processed in sequence from left to right; When the graphic element judgment result is yes, perform splicing processing on the second sub-target table graphic element information and all the third sub-target table graphic element information in sequence from left to right based on the sequence relationship of the graphic element serial numbers, and obtain the second target table graphic element information; Perform splicing processing on the first target graphic element information and the second target table graphic element information from top to bottom to obtain the target table graphic element information.
7. A table graphic element generation device, characterized in that, The device includes: An acquisition module, configured to acquire table graphic element signal information; A determination module, configured to determine first table graphic element information based on the table graphic element signal information; the first table graphic element information includes first sub-table graphic element information and second sub-table graphic element information; A processing module, configured to perform optimization processing on the first table graphic element information to obtain target table graphic element information; Wherein, determining the first table graphic element information based on the table graphic element signal information includes: Judge whether the attribute value corresponding to the table graphic element signal information is a first graphic element attribute value, and obtain a first attribute judgment result; When the first attribute judgment result is no, trigger and execute acquiring the table graphic element signal information; When the first attribute judgment result is yes, acquire the signal position information of the table graphic element signal information in the table graphic element editing area; the table graphic element editing area is an area where the table graphic element can be edited; Load the first basic graphic element information corresponding to the first graphic element attribute value from the first graphic element area; the table graphic element editing area is on the left side of the first graphic element area; Transmit the first basic graphic element information corresponding to the first graphic element attribute value to the editing area corresponding to the signal position information, and obtain the second basic graphic element information corresponding to the signal position information; Perform format conversion processing on the second basic graphic element information to obtain the first table graphic element information.
8. A table graphic element generation device, characterized in that, The device includes: A memory storing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory and executes the table graphic element generation method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which are used to execute the table graphic element generation method according to any one of claims 1-6 when being called.