Graph rendering method and device, electronic equipment and storage medium

By acquiring terminal configuration drawings and performing data structure conversion and deserialization, the problem of terminal-side drawings being unable to be rendered on the platform side was solved, enabling visualization and interactive operation of drawings on the platform side, reducing data coupling, and improving adaptability.

CN120892123APending Publication Date: 2025-11-04BEIJING HOLLYSYS TECHNOLOGY RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510922082.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-04
Publication Date
2025-11-04

AI Technical Summary

Technical Problem

Existing technology cannot convert drawings from the terminal side to drawings from the platform side, resulting in the platform side being unable to parse and render the configuration drawings from the terminal side.

Method used

By acquiring the terminal configuration drawings, converting the drawing data structure to obtain standard drawings, and then performing deserialization processing, the target configuration drawings are generated for rendering on the platform side.

Benefits of technology

It achieves unified abstraction and standardized processing of terminal drawing formats, reduces the data coupling between the terminal side and the platform side, improves the platform side's ability to adapt to heterogeneous drawing formats, and supports visual preview, editing and interactive operation of drawings on the platform side.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120892123A_ABST
    Figure CN120892123A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides a graph rendering method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a terminal configuration drawing applied to a terminal side; performing drawing data structure conversion on the terminal configuration drawing according to the drawing attribute of the terminal configuration drawing to obtain a standard drawing; according to the method, firstly, the terminal drawing is converted into the standard drawing, unified abstraction and standardization processing of various terminal drawing formats is achieved, the data coupling degree between the terminal side and the platform side is reduced, and the terminal drawing format is optimized. And the adaptation capability of the platform to heterogeneous drawing formats is improved. Furthermore, the standard drawing is converted into the target configuration drawing, so that the platform can correctly analyze and render the configuration drawing which is only suitable for the terminal originally, and visual preview, editing and interactive operation of the drawing on the platform side are realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, and particularly relates to a graphics rendering method and device, electronic equipment and a storage medium. BACKGROUND

[0002] The graphic configuration software is a data visualization integrated tool, which realizes the interaction of components through drag-and-drop layout and configuration, completes the visual and controllable page in a graphical manner, and then monitors and controls the real device.

[0003] At present, the image configuration software used by the terminal side (C end) is different from the image configuration software used by the platform side (B end), and the data structure of the drawing generated by the image configuration software used by the terminal side (C end) is too different from the data structure of the drawing generated by the image configuration software used by the platform side (B end), which leads to the fact that the drawing of the terminal side cannot be converted into the drawing of the platform side in the prior art. SUMMARY

[0004] Therefore, the embodiments of the present application provide a graphics rendering method and device, electronic equipment and a storage medium to solve the problem that the drawing of the terminal side cannot be converted into the drawing of the platform side in the prior art.

[0005] The first aspect of the embodiments of the present application provides a graphics rendering method, which comprises the following steps: obtaining a terminal configuration drawing applied to a terminal side; performing drawing data structure conversion on the terminal configuration drawing according to the drawing attribute of the terminal configuration drawing to obtain a standard drawing; performing anti-serialization processing on the standard drawing to obtain a target configuration drawing, and rendering the target configuration drawing on the platform side.

[0006] The second aspect of the embodiments of the present application provides a graphics rendering device, which comprises: an obtaining module configured to obtain a terminal configuration drawing applied to a terminal side; a drawing conversion module configured to perform drawing data structure conversion on the terminal configuration drawing according to the drawing attribute of the terminal configuration drawing to obtain a standard drawing; the drawing conversion module is further configured to perform anti-serialization processing on the standard drawing to obtain a target configuration drawing, and render the target configuration drawing on the platform side.

[0007] The third aspect of the embodiments of the present application provides electronic equipment, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.

[0008] The fourth aspect of the embodiments of the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the above method when executed by a processor.

[0009] The beneficial effects of the embodiments of the present application compared with the prior art are: the graphic rendering method in the embodiments of the present application obtains a terminal configuration drawing applied to a terminal side; performs drawing data structure conversion on the terminal configuration drawing according to a drawing attribute of the terminal configuration drawing to obtain a standard drawing; performs reverse sequence processing on the standard drawing to obtain a target configuration drawing, and renders the target configuration drawing on a platform side. The present application first converts the terminal drawing into a standard drawing, realizes unified abstraction and standardized processing of various terminal drawing formats, reduces the data coupling degree between the terminal side and the platform side, and improves the adaptation capability of the platform to heterogeneous drawing formats. Further, by converting the standard drawing into the target configuration drawing, the platform can correctly parse and render the configuration drawing originally only applicable to the terminal, realizes visual preview, editing and interactive operation of the drawing on the platform side, enhances the flexibility and expansibility of the platform graphic management and configuration, and avoids the problem that the terminal drawing cannot be converted into the platform drawing in the related art. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0011] Figure 1 is a flowchart of a graphic rendering method provided by the embodiments of the present application;

[0012] Figure 2 is a flowchart of another graphic rendering method provided by the embodiments of the present application;

[0013] Figure 3 is a flowchart of still another graphic rendering method provided by the embodiments of the present application;

[0014] Figure 4 is a structural schematic diagram of a graphic rendering device provided by the embodiments of the present application;

[0015] Figure 5 is a structural schematic diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION

[0016] In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, and circuits are omitted so as not to obscure the description of the present application with unnecessary detail.

[0017] A method and apparatus for rendering a graph according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0018] Figure 1 is a flowchart of a method for rendering a graph according to an embodiment of the present application, as shown in Figure 1 The method for rendering a graph includes the following steps.

[0019] S101, obtaining a terminal configuration drawing applied to a terminal side;

[0020] S102, performing a drawing data structure conversion on the terminal configuration drawing according to a drawing attribute of the terminal configuration drawing, to obtain a standard drawing;

[0021] S103, performing a reverse sequence processing on the standard drawing, to obtain a target configuration drawing, and rendering the target configuration drawing on a platform side.

[0022] It can be understood that the method for rendering a graph provided by the present application is applied to a platform side (C end) and / or a server. Since the data structure of a drawing corresponding to the terminal side is different from the data structure of a drawing corresponding to the platform side, the platform side cannot directly parse and render the terminal configuration drawing, and thus the platform side cannot open, preview, and edit the terminal configuration drawing. In order to enable the platform side to open, preview, and edit the terminal configuration drawing, the method for rendering a graph is provided.

[0023] It can be understood that the terminal configuration drawing in the example does not refer to a static picture (such as a CAD drawing), but refers to an engineering file or configuration data designed in the automation configuration software (SCADA / HMI / IIoT platform) on the terminal side, which includes visual interface, data point mapping, logic and behavior, communication configuration, runtime configuration and the like. Specifically, the visual interface includes definition, layout and style of graphical elements such as process flow picture, device state diagram, operation button, instrument panel, trend chart, alarm list and the like. The data point mapping includes data connection relationship (label binding) between graphical elements (such as a valve icon, a temperature display box) and actual devices in the field (such as a register in the PLC, a sensor signal). The logic and behavior include simple script logic (such as button press triggering a certain operation, color change under certain conditions), animation rules (such as motor rotation when running, filling height change when liquid level changes), alarm configuration and the like. The communication configuration includes protocol and parameter settings for communication with PLC, instrument, database or other systems. The runtime configuration includes security settings, user permissions, historical data storage configuration and the like.

[0024] In some examples, after obtaining the terminal configuration drawing, the application will convert the terminal configuration drawing into a standard drawing according to the drawing attributes of the terminal configuration drawing. The application introduces the standard drawing as an intermediate format, which helps to decouple the format and adapt to multiple terminals.

[0025] It can be understood that the "standard drawing" as a carefully designed intermediate abstraction layer successfully isolates terminal diversity and platform rendering specificity. By adding a controllable and standardized intermediate step, it greatly reduces the overall complexity and coupling of the system, while significantly improving scalability, maintainability, flexibility and processing efficiency.

[0026] In some examples, after obtaining the standard drawing, the application will perform reverse sequence processing on the standard drawing to obtain a target configuration drawing, and render the target configuration drawing on the platform side. That is, the data structure of the target configuration drawing is a data structure that can be parsed by the platform side, so that the target configuration drawing is parsed and rendered on the platform side, avoiding the problem in the related art that the terminal side drawing cannot be converted into the platform side drawing.

[0027] According to the technical scheme provided in the embodiments of the present application, the graphic rendering method comprises the following steps: obtaining a terminal configuration drawing applied to a terminal side; performing drawing data structure conversion on the terminal configuration drawing according to a drawing attribute of the terminal configuration drawing to obtain a standard drawing; performing reverse sequence processing on the standard drawing to obtain a target configuration drawing, and rendering the target configuration drawing on the platform side. The terminal drawing is first converted into a standard drawing in the present application, so that unified abstraction and standardized processing of various terminal drawing formats are realized, the data coupling degree between the terminal side and the platform side is reduced, and the adaptation capability of the platform to heterogeneous drawing formats is improved. Further, the standard drawing is converted into the target configuration drawing, so that the platform can correctly analyze and render the configuration drawing originally only applicable to the terminal, visual preview, editing and interactive operation of the drawing on the platform side are realized, the flexibility and expansibility of the platform side graphic management and configuration are enhanced, and the problem that the terminal side drawing cannot be converted into the platform side drawing in the related art is avoided.

[0028] In some examples, as shown in Figure 2 The drawing data structure conversion on the terminal configuration drawing according to the drawing attribute of the terminal configuration drawing and the standard drawing attribute comprises the following steps:

[0029] S201, obtaining a drawing attribute of a terminal configuration drawing and a mapping relationship between a pre-set terminal side drawing attribute and a standard drawing attribute;

[0030] S202, matching the drawing attribute of the terminal configuration drawing with the mapping relationship between the pre-set terminal side drawing attribute and the standard drawing attribute to obtain a standard drawing attribute corresponding to the drawing attribute of the terminal configuration drawing;

[0031] S203, performing drawing data structure conversion according to the standard drawing attribute and the drawing attribute of the terminal configuration drawing to obtain a standard drawing.

[0032] In some examples, the present application pre-sets the mapping relationship between the drawing attribute of the terminal configuration drawing and the pre-set terminal side drawing attribute and the standard drawing attribute of different types of terminal configuration drawings. In the case where there are multiple different types of terminal configuration drawings, the present application sets the mapping relationship between the terminal side drawing attribute and the standard drawing attribute for each type of terminal configuration drawing.

[0033] In some examples, obtaining the mapping relationship between the pre-set terminal side drawing attribute and the standard drawing attribute comprises: determining the type of the terminal configuration drawing, and determining the mapping relationship between the pre-set terminal side drawing attribute and the standard drawing attribute according to the type of the terminal configuration drawing.

[0034] For example, if the terminal configuration drawing types include M6, M7, SCADA V3, and SCADA V4, then mapping relationships are set between the terminal-side drawing attributes and standard drawing attributes corresponding to type M6, the terminal-side drawing attributes and standard drawing attributes corresponding to type M7, and so on, and a mapping relationship is set between the terminal-side drawing attributes and standard drawing attributes for type SCADA V4. Subsequently, if the terminal configuration drawing type is determined to be M6, then the mapping relationship between the terminal-side drawing attributes and standard drawing attributes corresponding to type M6 is obtained, and so on, which will not be elaborated further here.

[0035] It is understood that this application does not limit the storage method of the pre-set mapping relationship between terminal-side drawing attributes and standard drawing attributes. Relevant personnel can store the mapping relationship between the terminal-side drawing attributes and standard drawing attributes in any of the following forms: hash, database, table, key-value pair.

[0036] In some examples, after obtaining the pre-set mapping relationship between terminal-side drawing attributes and standard drawing attributes, this application matches the drawing attributes of the terminal configuration drawing with the pre-set mapping relationship between terminal-side drawing attributes and standard drawing attributes to obtain the standard drawing attributes corresponding to the drawing attributes of the terminal configuration drawing. Finally, the drawing data structure is converted according to the standard drawing attributes and the drawing attributes of the terminal configuration drawing to obtain the standard drawing.

[0037] For example, taking the terminal configuration drawing type as M7, the mapping relationship between the terminal-side drawing attributes and standard drawing attributes corresponding to the M7 type is illustrated in Table 1 below:

[0038] Table 1: Mapping Relationship Between Terminal-Side Drawing Attributes and Standard Drawing Attributes for Type M7

[0039]

[0040]

[0041] It is understood that the drawing attributes of the terminal configuration drawing include: global attributes, page attributes, page parameters, layer information, drawing data, and page scripts. Table 1 above only shows some mapping relationships for illustrative purposes and is not intended to limit the mapping relationships to only those shown in Table 1.

[0042] In the table 1, when the paper attribute of the terminal configuration paper is ZValue, the ZValue is matched with the table, and the corresponding standard paper attribute zIndex is obtained. When the paper attribute of the terminal configuration paper is leftValue, the leftValue is matched with the table, and the corresponding standard paper attribute leftValue is obtained.

[0043] After the standard paper attribute corresponding to each paper attribute of the terminal configuration paper is obtained, the paper data structure conversion is performed according to the standard paper attribute and the paper attribute of the terminal configuration paper, and the standard paper is obtained. For example, the conversion mode is shown in the table 1, and the terminal configuration paper is converted into the standard paper.

[0044] According to the technical scheme provided in the embodiments of the present application, the mapping relationship between the paper attribute of the terminal configuration paper and the pre-set terminal-side paper attribute and the standard paper attribute is obtained, the paper attribute of the terminal configuration paper is matched with the mapping relationship between the pre-set terminal-side paper attribute and the standard paper attribute, the standard paper attribute corresponding to the paper attribute of the terminal configuration paper is obtained, the paper data structure conversion is performed according to the standard paper attribute and the paper attribute of the terminal configuration paper, and the standard paper is obtained, and the terminal configuration paper is accurately converted into the standard paper.

[0045] In some examples, as shown in the table 1, the standard paper is inversely sequenced to obtain the target configuration paper, including: Figure 3

[0046] S301, obtaining the standard paper attribute of the standard paper and the mapping relationship between the pre-set standard paper attribute and the platform-side paper attribute.

[0047] S302, matching the standard paper attribute of the standard paper with the mapping relationship between the pre-set standard paper attribute and the platform-side paper attribute, and obtaining the target paper attribute corresponding to the standard paper attribute of the standard paper.

[0048] S303, performing the paper data structure conversion according to the standard paper attribute and the standard paper attribute of the target configuration paper, and obtaining the target configuration paper.

[0049] It can be understood that the mapping relationship between the standard paper attribute and the platform-side paper attribute is pre-set in the present application, and the present application does not limit the storage mode of the pre-set mapping relationship between the standard paper attribute and the platform-side paper attribute. The above mapping relationship between the standard paper attribute and the platform-side paper attribute can be stored in any form of hash, database, table, and key-value pair.

[0050] ​Similarly, after obtaining the mapping relationship between the pre-set standard drawing attribute and the platform-side drawing attribute, the standard drawing attribute of the standard drawing is matched with the mapping relationship between the pre-set standard drawing attribute and the platform-side drawing attribute, to obtain the target drawing attribute corresponding to the standard drawing attribute of the standard drawing. Finally, the standard drawing data structure conversion is performed according to the standard drawing attribute and the standard drawing attribute of the target configuration drawing, to obtain the target configuration drawing, which will not be described herein again.

[0051] According to the technical scheme provided by the embodiment of the application, the standard drawing attribute of the standard drawing and the mapping relationship between the pre-set standard drawing attribute and the platform-side drawing attribute are obtained. The standard drawing attribute of the standard drawing is matched with the mapping relationship between the pre-set standard drawing attribute and the platform-side drawing attribute, to obtain the target drawing attribute corresponding to the standard drawing attribute of the standard drawing. The standard drawing data structure conversion is performed according to the standard drawing attribute and the standard drawing attribute of the target configuration drawing, to obtain the target configuration drawing, thereby realizing accurate conversion of the standard drawing into the target configuration drawing.

[0052] In some examples, rendering the target configuration drawing on the platform side includes: obtaining the rendering workload of the target configuration drawing; in a case where the rendering workload of the target configuration drawing is higher than a pre-set workload threshold, obtaining a target rendering area corresponding to the target configuration drawing, and rendering the target rendering area on the platform side.

[0053] It can be understood that, if the rendering workload is too large, directly rendering the entire target configuration drawing will cause problems such as excessive resource consumption, too long rendering time, and rendering lag. In order to avoid the above problems, the application obtains the rendering workload of the target configuration drawing, and then compares the rendering workload with the pre-set workload threshold. In a case where the rendering workload of the target configuration drawing is higher than the pre-set workload threshold, it is indicated that the rendering workload is too large, and directly rendering the entire target configuration drawing can cause problems such as excessive resource consumption, too long rendering time, and rendering lag. At this time, the application obtains a target rendering area corresponding to the target configuration drawing, and renders the target rendering area on the platform side. The target rendering area is an area flexibly set by relevant personnel according to actual needs. For example, the target rendering area is an area that is displayed by default after loading.

[0054] In some examples, in a case where the rendering workload of the target configuration drawing is lower than or equal to the pre-set workload threshold, it is indicated that the rendering workload is not too large, and the entire target configuration drawing can be directly rendered on the platform side.

[0055] In some examples, the rendering the target configuration drawing on the platform side further includes: rendering the entire target configuration drawing on the platform side directly without obtaining a rendering workload of the target configuration drawing. In some examples, the rendering the target configuration drawing on the platform side further includes: obtaining a target rendering area corresponding to the target configuration drawing, and rendering the target rendering area on the platform side, also without obtaining a rendering workload of the target configuration drawing.

[0056] In some examples, after the rendering the target configuration drawing on the platform side, the method further includes: receiving a preview instruction, and displaying a preview rendering result of the target configuration drawing on the visualization interface on the platform side. Since the target configuration drawing is converted based on the terminal configuration drawing in time, that is, the related personnel can view the preview effect of the terminal configuration drawing on the platform side, and the user experience is improved.

[0057] In some examples, after the rendering the target configuration drawing on the platform side, the method further includes: receiving an editing instruction, and modifying the target configuration drawing on the platform side according to the editing instruction. Since the target configuration drawing is converted based on the terminal configuration drawing in time, that is, the related personnel can modify the terminal configuration drawing on the platform side, and the user experience is improved.

[0058] It can be understood that the graphic rendering method provided in the application converts the terminal configuration drawing into a standard drawing, and the platform side can perform reverse sequence processing on the standard drawing to obtain the target configuration drawing. The method makes the terminal configuration drawing on the terminal side be able to be uniformly converted into the data structure of the standard drawing.

[0059] The platform side only needs to convert the standard drawing into the target configuration drawing corresponding to the platform side, which reduces the workload of the platform side and only needs to develop one set of conversion tool. In the future, the standard drawing can be expanded based on the data structure to add more functions, such as custom features, custom scripts, event definitions, advanced controls, etc.

[0060] All the optional technical solutions described above can be combined to form optional embodiments of the application, which will not be described here.

[0061] The following is an apparatus embodiment of the application, which can be used to execute the method embodiments of the application. For details not disclosed in the apparatus embodiments of the application, please refer to the method embodiments of the application.

[0062] The embodiment also provides a graphic rendering device, as shown in Figure 4 The device includes:

[0063] The obtaining module 401 is configured to obtain a terminal configuration drawing applied to a terminal side.

[0064] The drawing conversion module 402 is configured to convert the terminal configuration drawing into a standard drawing according to a drawing attribute of the terminal configuration drawing.

[0065] The drawing conversion module 402 is further configured to perform reverse sequence processing on the standard drawing to obtain a target configuration drawing, and render the target configuration drawing on the platform side.

[0066] In some examples, the drawing conversion module 402 is further configured to obtain a mapping relationship between the drawing attribute of the terminal configuration drawing and a pre-set terminal-side drawing attribute and a standard drawing attribute, match the drawing attribute of the terminal configuration drawing with the mapping relationship between the pre-set terminal-side drawing attribute and the standard drawing attribute, to obtain a standard drawing attribute corresponding to the drawing attribute of the terminal configuration drawing, and convert the drawing data structure according to the standard drawing attribute and the drawing attribute of the terminal configuration drawing to obtain the standard drawing.

[0067] In some examples, the drawing conversion module 402 is further configured to obtain a mapping relationship between the standard drawing attribute of the standard drawing and a pre-set standard drawing attribute and a platform-side drawing attribute, match the standard drawing attribute of the standard drawing with the mapping relationship between the pre-set standard drawing attribute and the platform-side drawing attribute, to obtain a target drawing attribute corresponding to the standard drawing attribute of the standard drawing, and convert the drawing data structure according to the standard drawing attribute and the standard drawing attribute of the target configuration drawing to obtain the target configuration drawing.

[0068] In some examples, the drawing conversion module 402 is further configured to obtain a rendering workload of the target configuration drawing, and obtain a target rendering area corresponding to the target configuration drawing when the rendering workload of the target configuration drawing is higher than a pre-set workload threshold, and render the target rendering area on the platform side.

[0069] In some examples, the drawing conversion module 402 is further configured to receive a preview instruction, and display a preview rendering result of the target configuration drawing on a visual interface on the platform side.

[0070] In some examples, the drawing conversion module 402 is further configured to receive an editing instruction, and modify the target configuration drawing on the platform side according to the editing instruction.

[0071] According to the technical scheme provided in the embodiments of the present application, the graphic rendering device obtains a terminal configuration drawing paper applied to a terminal side; performs drawing paper data structure conversion on the terminal configuration drawing paper according to a drawing paper attribute of the terminal configuration drawing paper to obtain a standard drawing paper; performs reverse sequence processing on the standard drawing paper to obtain a target configuration drawing paper, and renders the target configuration drawing paper on a platform side. The present application first converts the terminal drawing paper into a standard drawing paper, realizes unified abstraction and standardized processing of various terminal drawing paper formats, reduces the data coupling degree between the terminal side and the platform side, and improves the adaptation capability of the platform to heterogeneous drawing paper formats. Further, by converting the standard drawing paper into the target configuration drawing paper, the platform can correctly parse and render the configuration drawing paper originally only applicable to the terminal, realizes visual preview, editing and interactive operation of the drawing paper on the platform side, enhances the flexibility and expansibility of the platform graphic management and configuration, and avoids the problem in the related art that the terminal drawing paper cannot be converted into the platform drawing paper.

[0072] Figure 5 is a schematic diagram of an electronic device 5 provided by an embodiment of the present application. As shown in Figure 5 the electronic device 5 of this embodiment includes a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. The processor 501 implements the steps in each of the method embodiments described above when executing the computer program 503. Alternatively, the processor 501 implements the functions of each module / unit in each of the device embodiments described above when executing the computer program 503.

[0073] The electronic device 5 can be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 5 can include but is not limited to the processor 501 and the memory 502. Those skilled in the art can understand that Figure 5 The electronic device 5 is merely an example and does not constitute a limitation on the electronic device 5, and can include more or fewer components or different components than those shown.

[0074] The processor 501 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, or the like.

[0075] The memory 502 can be an internal storage unit of the electronic device 5, for example, a hard disk or a memory of the electronic device 5. The memory 502 can also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 can also include both the internal storage unit and the external storage device of the electronic device 5. The memory 502 is used to store computer programs and other programs and data required by the electronic device.

[0076] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0077] The integrated module / unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods can also be instructed by a computer program to related hardware to complete, and the computer program can be stored in a computer readable storage medium. When the processor executes the computer program, the steps of each method embodiment described above can be implemented. The computer program can include computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium can include any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electric carrier signals and telecommunication signals.

[0078] The above examples are only used to illustrate the technical solutions of the present application, but not limit the same; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that the technical solutions recorded in the foregoing examples can be modified, or some technical features can be replaced by equivalent ones; 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 application, and should be included in the protection scope of the present application.

Claims

1. A graphics rendering method, characterized in that, The method includes: Obtain the terminal configuration drawings applied to the terminal side; Based on the drawing attributes of the terminal configuration drawing, the drawing data structure of the terminal configuration drawing is converted to obtain a standard drawing; The standard drawings are deserialized to obtain the target configuration drawings, and the target configuration drawings are rendered on the platform side.

2. The method according to claim 1, characterized in that, Based on the drawing attributes of the terminal configuration drawing, the drawing data structure of the terminal configuration drawing is converted to obtain a standard drawing, including: Obtain the mapping relationship between the drawing attributes of the terminal configuration drawing and the pre-set terminal-side drawing attributes and standard drawing attributes; The drawing attributes of the terminal configuration drawing are matched with the pre-set mapping relationship between the terminal side drawing attributes and the standard drawing attributes to obtain the standard drawing attributes corresponding to the drawing attributes of the terminal configuration drawing. The standard drawing is obtained by converting the drawing data structure based on the attributes of the standard drawing and the drawing attributes of the terminal configuration drawing.

3. The method according to claim 1, characterized in that, The standard drawings are deserialized to obtain the target configuration drawings, including: Obtain the mapping relationship between the standard drawing attributes of the standard drawing and the pre-set standard drawing attributes and platform-side drawing attributes; The standard drawing attributes of the standard drawing are matched with the pre-set mapping relationship between the standard drawing attributes and the platform-side drawing attributes to obtain the target drawing attributes corresponding to the standard drawing attributes of the standard drawing; The drawing data structure is converted based on the standard drawing attributes and the standard drawing attributes of the target configuration drawing to obtain the target configuration drawing.

4. The method according to claim 3, characterized in that, Rendering the target configuration drawing on the platform side includes: Obtain the rendering workload of the target configuration drawing; If the rendering workload of the target configuration drawing exceeds a preset workload threshold, the target rendering area corresponding to the target configuration drawing is obtained, and the target rendering area is rendered on the platform side.

5. The method according to claim 1, characterized in that, After rendering the target configuration drawing on the platform side, the method further includes: Upon receiving a preview command, the preview rendering result of the target configuration drawing is displayed on the visualization interface on the platform side.

6. The method according to claim 1, characterized in that, After rendering the target configuration drawing on the platform side, the method further includes: Receive editing instructions and modify the target configuration drawing on the platform side according to the editing instructions.

7. A graphics rendering apparatus, characterized in that, The device includes: The acquisition module is used to acquire terminal configuration drawings applied to the terminal side; The drawing conversion module is used to convert the drawing data structure of the terminal configuration drawing according to the drawing attributes of the terminal configuration drawing to obtain a standard drawing; The drawing conversion module is also used to de-sequence the standard drawings to obtain the target configuration drawings, and render the target configuration drawings on the platform side.

8. The apparatus according to claim 7, characterized in that, The drawing conversion module is further configured to obtain the drawing attributes of the terminal configuration drawing and the mapping relationship between the pre-set terminal-side drawing attributes and standard drawing attributes; match the drawing attributes of the terminal configuration drawing with the pre-set mapping relationship between the terminal-side drawing attributes and standard drawing attributes to obtain the standard drawing attributes corresponding to the drawing attributes of the terminal configuration drawing; and perform drawing data structure conversion based on the standard drawing attributes and the drawing attributes of the terminal configuration drawing to obtain the standard drawing.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.