A project generation method, device, electronic device and readable medium
Through the user's selection operation on the first page, the target project layout templates and components are determined, which solves the problem of low project generation efficiency in the prior art, and realizes flexible data visualization project generation and display.
Patent Information
- Application Number
- CN202111386609.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-11-22
AI Technical Summary
In the prior art, when generating data visualization projects, inherent exemplary templates cannot meet user needs, resulting in developers needing to rewrite templates, reducing the efficiency of project generation.
By receiving the user's selection operations on the first page, the target project layout template and optional components are determined, and the target project is generated based on these templates and components, and the flexible display of visual data is achieved.
It improves the generation efficiency of data visualization projects, allowing users to flexibly set up various layouts and components combinations to meet different needs.
Smart Images

Figure CN114115845B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and in particular, to a project generation method, apparatus, electronic device, and computer-readable medium. Background Art
[0002] The process of data visualization is a process of visually presenting data by means of graphical means. The process of data visualization includes different stages such as data collection, data analysis, data mining, and data presentation. In daily life, a project constructed by using the means of data visualization for a specific theme can be called a data visualization project. The fields involved in data visualization projects are very extensive. For example, they can involve many fields such as government, medical care, education, industry, and commerce. As an example, the specific application scenarios of data visualization projects can include smart city projects, smart tourism projects, financial report interpretation projects, product report projects, and so on.
[0003] Currently, if you want to generate a project, you can select an inherent example template to generate a visualization project corresponding to the example template and display the visualization data on the page.
[0004] However, when the needs cannot be met by the inherent exemplary template, developers need to rewrite a new template to meet the user's needs, resulting in low efficiency of project generation. Summary of the Invention
[0005] In view of this, embodiments of this specification provide a project generation method, apparatus, device, and computer-readable medium to improve the generation efficiency of data visualization projects.
[0006] To solve the above technical problems, embodiments of this specification are implemented as follows:
[0007] Embodiments of the present invention provide a project generation method, including:
[0008] Receiving a first selection operation of a user on a first page; at least one selectable project layout template is included in the first page;
[0009] Determining a target project layout template in the project layout templates according to the first selection operation;
[0010] Displaying selectable components on the first page based on the layout data of the target project layout template;
[0011] Receiving a second selection operation of the user selecting the selectable components;
[0012] Determining the selectable components selected by the user as target components according to the second selection operation;
[0013] Generate a target project based on the target project layout template and the target component; the target project can display visualization data in a second page based on the component parameters corresponding to each component in the target project.
[0014] The present invention also provides a project generation device, which includes:
[0015] A first receiving module, configured to receive a first selection operation of a user on a first page; at least one selectable project layout template is included in the first page;
[0016] A first generation module, configured to determine a target project layout template in the project layout template according to the first selection operation;
[0017] A first display module, configured to display selectable components in the first page based on the layout data of the target project layout template;
[0018] A second receiving module, configured to receive a second selection operation of the user selecting the selectable component;
[0019] A second generation module, configured to determine the selectable component selected by the user as a target component according to the second selection operation;
[0020] A project generation module, configured to generate a target project based on the target project layout template and the target component; the target project can display visualization data in a second page based on the component parameters corresponding to each component in the target project.
[0021] An embodiment of the present invention also provides an electronic device, including:
[0022] At least one processor; and,
[0023] A memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor can:
[0025] Receive a first selection operation of a user on a first page; at least one selectable project layout template is included in the first page;
[0026] Determine a target project layout template in the project layout template according to the first selection operation;
[0027] Display selectable components in the first page based on the layout data of the target project layout template;
[0028] Receive a second selection operation of the user selecting the selectable component;
[0029] Determine the selected optional component as the target component according to the second selection operation;
[0030] Generate a target project based on the target project layout template and the target component; the target project can display visual data on the second page based on the component parameters corresponding to each component in the target project.
[0031] An embodiment of the present invention also provides a computer-readable medium, on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the above project generation method.
[0032] At least one embodiment of this specification can achieve the following beneficial effects: Through the project layout template selected by the user and the target components selected under this template, a visual project can be quickly generated, and various combinations of layouts and components can be flexibly set, improving the efficiency of project generation. Description of the Drawings
[0033] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in this application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0034] Figure 1 It is a flowchart of a project generation method disclosed by the present invention.
[0035] Figure 2 It is an interface schematic diagram of a project layout template in an embodiment of the present invention.
[0036] Figure 3 It is a schematic diagram of a visual project in actual use in an embodiment of the present invention.
[0037] Figure 4 Provided for an embodiment of this specification corresponding to Figure 1 a structural schematic diagram of a project generation device;
[0038] Figure 5 Provided for an embodiment of this specification corresponding to Figure 1 a structural schematic diagram of an electronic device. Detailed Description of the Embodiments
[0039] In a data visualization project, multiple data pages can be included; in each data page, multiple components can be included. Components in a data visualization project can refer to the smallest units in a page, that is, a manipulable target. For example, charts, texts, shapes, input boxes, scroll bars, menus, etc. in a data visualization project are all defined in the form of components. Pages in a data visualization project can include web pages, application pages, etc.
[0040] Since the current method for generating visualization projects is too fixed and cannot flexibly configure each component and the final display effect of the visualization data, a large amount of work is required to rewrite the template, resulting in low project generation efficiency.
[0041] Based on the problems existing in the prior art, embodiments of the present invention disclose another project generation method to be able to more flexibly configure various styles and components in a visualization project and improve project generation efficiency.
[0042] See Figure 1 , Figure 1 which is a schematic flowchart of a project generation method disclosed by the present invention.
[0043] A project generation method disclosed by the present invention includes:
[0044] Step 100: Receive a first selection operation of a user on a first page; at least one selectable project layout template is included in the first page;
[0045] Step 200: Determine a target project layout template in the project layout template according to the first selection operation;
[0046] In embodiments of the present invention, the execution subject can be a Web application, a terminal application, etc. It can be a web page popped up after a user accesses a specific address or a generation method executed after opening a terminal application.
[0047] In embodiments of the present invention, the generation process can be triggered by a button, a plugin, etc. The user can trigger Step 100 by a button or a plugin.
[0048] In embodiments of the present invention, in the data page of an application, multiple display areas can be included. Among them, a template display area can display a project layout template. The project layout template can be classified and displayed according to different template types. The template types can include report templates, business templates, education templates, etc. Under each type of template, multiple specific project layout templates that can be checked by the user can be included. For example, report templates can include stock market templates, real estate templates, etc. Project layout templates of different template types have different project information.
[0049] Among them, the project information may include the width and height of the complete project, the types of components used, the width and height of the components, the data accessed by the components, the address of the 3D model and its punctuation coordinates, punctuation styles, connection styles, and other JSON data. Invoking the rendering interface can render visual data based on the project information.
[0050] In an embodiment of the present invention, the user performs a first selection operation on the first page. The first selection operation may be an operation for selecting a project layout template such as a tick operation, a click operation, a double-click operation, etc.
[0051] Then, the target project layout template is determined according to the first selection operation. The project layout template selected by the user is used as the target project template. Of course, the first selection operation may also be an operation for selecting a project layout template after operating on a tab.
[0052] Figure 2 It is a schematic diagram of the interface of the project layout template in an embodiment of the present invention.
[0053] Among them, the page 200 includes project templates: Template 1, Template 2... Template 10. These project layout templates belong to the same type, which may be type A. In the page 200, 201 is a type tab, 202 is a project template tab, and different project templates can also be displayed according to different types for the user to select. The corresponding optional components can be flexibly configured based on the project layout template.
[0054] Step 300: Display optional components in the first page based on the layout data of the target project layout template;
[0055] The specific process of displaying optional components in the first page based on the layout data of the target project layout template includes:
[0056] Determine the component types corresponding to the layout data;
[0057] Take the components that can be selected under each component type as optional components;
[0058] Use the component type as a screening condition to display the optional components in the component display area of the first page.
[0059] In an embodiment of the present invention, the target layout template corresponds to layout data; the layout data may be information related to the layout structure in the project information. It may include the inherent components used in this layout and the component data corresponding to each component. The component data may be attribute information, configurable parameter information, style information, etc. of the component. Among them, the configurable parameter information may be input parameters that the user can input, and the input parameters can be used as the source data of the visual data.
[0060] In an embodiment of the present invention, after the target project layout template is determined, the selectable components corresponding to the target project layout template can be displayed in the component display area of the first page. The selectable components can be components that can be selected and applied by the user, can be different from the inherent components originally in the target project layout template, or can be components among the inherent components.
[0061] In an embodiment of the present invention, in order to make the configuration more flexible, the corresponding relationship between components and project layout templates can be generated in advance. After the target project layout template is determined, the corresponding components can be found according to this corresponding relationship as selectable components. And the position of the selectable components in the project layout template can be edited by the user through dragging and other means. The component data corresponding to the selectable components can be preset with preset values, and different preset values can be set according to different project layout templates. The preset values can be rewritten by the user on the first page.
[0062] It can be understood that the selectable components are components that can be selected by the user. If the component cannot be selected by the user, it is displayed in the component display area.
[0063] Step 400: Receive the second selection operation of the user selecting the selectable component;
[0064] Step 500: Determine the selectable component selected by the user as the target component according to the second selection operation;
[0065] In an embodiment of the present invention, the target component is determined according to the second selection operation. The target component can be one or more. The second selection operation can be a single selection operation or a circle selection operation, as long as the target component can be determined. Specific limitations are not made here.
[0066] Step 600: Generate a target project based on the target project layout template and the target component; the target project can display visualization data in the second page based on the component parameters corresponding to each component in the target project.
[0067] In an embodiment of the present invention, after the target project layout template and the target component are determined, a target project can be generated. Among them, the target project can render visualization data in the second page, such as a geographical map with a 3D model, etc.
[0068] The generating the target project based on the target project layout template and the target component specifically includes:
[0069] Determine the inherent components in the target project layout template corresponding to the target component;
[0070] Update the component data of the target component with the component data of the inherent component;
[0071] After determining that the update is completed, generate project information based on the component data of the inherent components of the target project layout template and the layout data of the target project layout template;
[0072] Generate a target project based on the project information.
[0073] In an embodiment of the present invention, when a user selects a target component, the original inherent components need to be updated. Among them, the component data of the inherent components and the component data of the target component are in the form of JOSN data. Replace the JSON parameters in the component data of the inherent components with the JSON parameters in the component data of the target component.
[0074] In an embodiment of the present invention, a listening component can be called to implement the listening function for component data update. When a listening update operation is detected, determine the update content, and judge whether the update content meets the update conditions. If it meets the update conditions, execute the update process; otherwise, return an error prompt message.
[0075] It can be understood that if the 3D model includes components such as marking lines, the component data of the component can be updated in real time according to the user's adjustment operation to update the rendered visualization data to meet the actual needs of the user.
[0076] Among them, the generating the target project based on the project information specifically includes:
[0077] Determine the layout data of the target layout template; the layout data includes one or more style data such as industry style, layout style, data representation style, 3D model style, and color matching style;
[0078] Determine the component parameters corresponding to the target component according to the input parameters input by the user in the input area of the target component;
[0079] Save the layout data and the component parameters as project information;
[0080] Render and display visualization data on a second page according to the project information.
[0081] In an embodiment of the present invention, a target project can be generated according to the target project layout template and the target component selected by the user. The generated visualization project can be flexibly configured according to the actual needs of the user.
[0082] Among them, generating a target project can be rendered according to project information, and this process can refer to the mature technologies in the prior art.
[0083] In an embodiment of the present invention, the project information may include layout data and component parameters. Among them, the layout data may be style data corresponding to a target layout template. The user may select or replace the style data according to actual needs, and the component parameters may be configurable parameter information in the foregoing component data.
[0084] In an embodiment of the present invention, the layout data and component parameters can be saved as project information, so as to render and display visual data based on the project information.
[0085] In an embodiment of the present invention, the inherent components of the original project layout template can be reset and modified according to actual needs, so that flexible configuration can be performed according to the user's requirements for different styles and different components, reducing the user's operation steps and improving the efficiency of generating projects.
[0086] Figure 3 It is a schematic diagram of a visual project in the actual use of an embodiment of the present invention.
[0087] Figure 3 In it, 3D models and multiple components are adopted. Multiple components such as components providing weather conditions, components providing scenic area routes, etc. It can be understood that the component parameters of the components can be set according to actual needs and can be updated with the change of the data source. The components corresponding to the visual project can also be components such as marking lines, etc., which can draw routes, etc. in the 3D model.
[0088] Based on the same idea, an embodiment of this specification also provides a device corresponding to the above method. Figure 4 This is for an embodiment of this specification corresponding to Figure 1 a schematic structural diagram of a project generation device. As Figure 4 shown, the device may include:
[0089] A first receiving module 41, configured to receive a first selection operation of the user on a first page; at least one selectable project layout template is included in the first page;
[0090] A first generating module 42, configured to determine a target project layout template in the project layout template according to the first selection operation;
[0091] A first display module 43, configured to display selectable components in the first page based on the layout data of the target project layout template;
[0092] A second receiving module 44, configured to receive a second selection operation of the user for selecting the selectable component;
[0093] A second generating module 45, configured to determine the selectable component selected by the user as a target component according to the second selection operation;
[0094] A project generation module 46, configured to generate a target project based on the target project layout template and the target component; the target project can display visual data on a second page based on component parameters corresponding to each component in the target project.
[0095] It can be understood that the above-mentioned modules refer to computer programs or program segments for performing one or more specific functions. In addition, the distinction between the above-mentioned modules does not mean that the actual program code must also be separated.
[0096] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0097] Figure 5 For the corresponding one provided by the embodiments of this specification Figure 1 is a schematic structural diagram of an electronic device. As Figure 5 shown, the electronic device 500 may include:
[0098] At least one processor 510; and,
[0099] A memory 530 communicatively connected to the at least one processor; wherein,
[0100] The memory 530 stores instructions 520 executable by the at least one processor 510, and when the instructions are executed by the at least one processor 510, the at least one processor 510 can:
[0101] Receive a first selection operation of the user on a first page; the first page includes at least one selectable project layout template;
[0102] Determine a target project layout template in the project layout template according to the first selection operation;
[0103] Display selectable components on the first page based on the layout data of the target project layout template;
[0104] Receive a second selection operation of the user selecting the selectable component;
[0105] Determine the selectable component selected by the user as a target component according to the second selection operation;
[0106] Generate a target project based on the target project layout template and the target component; the target project can display visual data on a second page based on component parameters corresponding to each component in the target project.
[0107] The above description is of specific embodiments of this specification. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0108] Each embodiment in this specification is described in a progressive manner, and the same or similar parts among the embodiments may be referred to each other.
[0109] The apparatuses, electronic devices, and methods provided in the embodiments of this specification are corresponding. Therefore, the apparatuses and electronic devices also have beneficial technical effects similar to those of the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatuses and devices will not be elaborated here.
[0110] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to method flows). However, with the development of technology, many method flow improvements today can be regarded as direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement to a method flow cannot be implemented using a hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logical function is determined by a user's programming of the device. Designers can program themselves to "integrate" a digital character system onto a single PLD, without having to ask a chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compilers used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a Hardware Description Language (HDL). There is not just one type of HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones currently are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that by simply performing a little logical programming on the method flow using the above-mentioned several hardware description languages and programming it into an integrated circuit, it is easy to obtain the hardware circuit that implements the logical method flow.
[0111] The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to make the controller implement the same function in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be regarded as the structures within the hardware component. Or even, the devices for implementing various functions can be regarded as either software modules for implementing the method or structures within the hardware component.
[0112] The systems, devices, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.
[0113] For the convenience of description, when describing the above devices, they are described separately as various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0114] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each flow and / or block of the flowchart illustrations and / or block diagrams, and combinations of flows and / or blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus create means for implementing the functions specified in the flow Figure 1 one flow or more flows and / or blocks Figure 1 or means for implementing the functions specified in one block or more blocks.
[0116] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means that implement the functions specified in the flow Figure 1 one flow or more flows and / or blocks Figure 1 or one block or more blocks.
[0117] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in the flow Figure 1 one flow or more flows and / or blocks Figure 1 or one block or more blocks.
[0118] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0119] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory. The memory is an example of computer-readable media.
[0120] A computer-readable medium includes permanent and non-permanent, removable and non-removable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassette tapes, magnetic tape disk storage, or other magnetic storage devices, or any other non-transitory media that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0121] It should also be noted that the term "comprising," "including," or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but also other elements not expressly listed, or elements that are inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0122] This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This application can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0123] The above description is only for the embodiments of this application and is not intended to limit this application. For those skilled in the art, various changes and modifications can be made to this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.
Claims
1. A project generation method, characterized in that, comprising: Receiving a first selection operation of a user on a first page; at least one selectable project layout template is included in the first page; Determining a target project layout template in the project layout templates according to the first selection operation; Displaying selectable components on the first page based on the layout data of the target project layout template; Determining the component type corresponding to the layout data; Taking the components that can be selected under each component type as selectable components; Receiving a second selection operation of the user selecting the selectable components; Determining the selectable components selected by the user as target components according to the second selection operation; Determining the inherent components corresponding to the target components in the target project layout template; updating the component data in JSON format in the inherent components to the component data in JSON format in the target components; when it is determined that the update is completed, generating project information based on the component data of the inherent components of the target project layout template and the layout data of the target project layout template; generating a target project based on the project information; the target project can display visualization data on a second page based on the component parameters corresponding to each component in the target project.
2. The method according to claim 1, characterized in that, The updating the component data in JSON format in the inherent components to the component data in JSON format in the target components specifically includes: Replacing the JSON parameters in the component data of the inherent components with the JSON parameters in the component data of the target components.
3. The method according to claim 1, characterized in that, The displaying selectable components on the first page based on the layout data of the target project layout template specifically includes: Taking the component type as a filtering condition and displaying the selectable components in the component display area of the first page.
4. The method according to claim 1, characterized in that, The generating a target project based on the project information specifically includes: Determining the layout data of the target layout template; the layout data includes one or more style data such as industry style, layout style, data representation style, 3D model style, and color matching style; Determining the component parameters corresponding to the target components according to the input parameters input by the user in the input area of the target components; Saving the layout data and the component parameters as project information; Rendering and displaying visualization data on a second page according to the project information.
5. The method according to claim 4, characterized in that, The project information at least includes the width and height of the project page, the types of each component, the width and height corresponding to each component, the address and coordinates of the 3D model.
6. A project generation device, characterized in that, comprising: A first receiving module, configured to receive a first selection operation of a user on a first page; at least one selectable project layout template is included in the first page; A first generating module, configured to determine a target project layout template in the project layout templates according to the first selection operation; The first display module is configured to display selectable components in the first page based on the layout data of the target project layout template; Determine the component type corresponding to the layout data; Use the components that can be selected under each component type as selectable components; The second receiving module is configured to receive a second selection operation in which the user selects the selectable component; The second generation module is configured to determine the selectable component selected by the user as the target component according to the second selection operation; The project generation module is configured to determine the inherent components corresponding to the target component in the target project layout template; update the component data in JSON format in the inherent components to the component data in JSON format in the target component; when it is determined that the update is completed, generate project information based on the component data of the inherent components of the target project layout template and the layout data of the target project layout template; generate a target project based on the project information; the target project can display visualization data in the second page based on the component parameters corresponding to each component in the target project.
7. An electronic device, Comprising: At least one processor; And, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to: Receive a first selection operation of the user on the first page; the first page includes at least one selectable project layout template; Determine the target project layout template in the project layout template according to the first selection operation; Display selectable components in the first page based on the layout data of the target project layout template; determine the component type corresponding to the layout data; use the components that can be selected under each component type as selectable components; Receive a second selection operation in which the user selects the selectable component; Determine the selectable component selected by the user as the target component according to the second selection operation; Determine the inherent components corresponding to the target component in the target project layout template; update the component data in JSON format in the inherent components to the component data in JSON format in the target component; when it is determined that the update is completed, generate project information based on the component data of the inherent components of the target project layout template and the layout data of the target project layout template; generate a target project based on the project information; the target project can display visualization data in the second page based on the component parameters corresponding to each component in the target project.
8. A computer-readable medium, on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement the project generation method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Interface generation method and device, electronic equipment and computer readable storage medium
CN113535165A