CN115619905A - Primitive editing method and device, electronic equipment and storage medium - Google Patents

Primitive editing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115619905A
CN115619905A CN202211307086.3A CN202211307086A CN115619905A CN 115619905 A CN115619905 A CN 115619905A CN 202211307086 A CN202211307086 A CN 202211307086A CN 115619905 A CN115619905 A CN 115619905A
Authority
CN
China
Prior art keywords
target
target editing
graph
editing
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211307086.3A
Other languages
Chinese (zh)
Inventor
张硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Likong Yuantong Technology Co ltd
Original Assignee
Beijing Likong Yuantong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Likong Yuantong Technology Co ltd filed Critical Beijing Likong Yuantong Technology Co ltd
Priority to CN202211307086.3A priority Critical patent/CN115619905A/en
Publication of CN115619905A publication Critical patent/CN115619905A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a primitive editing method, a device, electronic equipment and a storage medium, wherein the primitive editing method comprises the following steps: acquiring a target editing task, a target editing object and a target graph where the target editing object is located; determining a target attribute of a target editing object based on the target editing task; and modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graph. By fully considering the editing requirements of developers on the bottom layer graphics in the nested combined graphics, the users can modify the bottom layer graphics in a targeted editing task in a targeted manner without re-nesting and combining, the personalized editing of the nested combined graphics by the users is met, the editing difficulty is further reduced, and the working efficiency is greatly improved.

Description

Primitive editing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a primitive editing method and device, electronic equipment and a storage medium.
Background
Along with the deep integration of informatization and industrialization, the construction speed of intelligent factories and smart cities is also continuously accelerated, and in order to better ensure the accurate output of production data and completely show the production flow of production enterprises, powerful configuration software is often required to be utilized for combination and editing based on production parameters, so that developers can easily define and describe unit devices as small as one valve and as large as one unit device through the configuration software, and the seamless integration with other control devices is completed. Under the circumstance, basic graphic elements (namely primitives) often cannot meet the use requirements of developers and need to be nested and edited, whereas in the prior art, the combined graphics formed by nesting cannot realize independent editing of the underlying primitives, when the underlying primitives need to be modified, the developers need to perform nesting and combination again every time, and the working efficiency is greatly reduced.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect in the prior art that the editing requirement of a developer on a bottom layer graph in a combined graph formed by nesting is not fully considered, so that the developer needs to perform nesting and combining again each time when a bottom layer primitive needs to be modified, and the working efficiency is greatly reduced, thereby providing a primitive editing method, an apparatus, an electronic device and a storage medium.
According to a first aspect, an embodiment of the present invention provides a primitive editing method, where the method includes:
acquiring a target editing task, a target editing object and a target graph where the target editing object is located;
determining a target attribute of the target editing object based on the target editing task;
and modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graph.
Optionally, the target attributes comprise intrinsic attributes and extrinsic attributes, wherein the intrinsic attributes comprise size and location; the extrinsic properties include style, color, add, and delete.
Optionally, when the target editing task is to change the intrinsic attribute, the modifying, based on the target editing task, the first data corresponding to the target attribute, and updating the target editing object and the target graph include:
acquiring the hierarchical position of the target editing object;
when the internal attribute is the size, acquiring size information of first graphs adjacent to the target editing object in the vertical and horizontal directions;
based on the target editing task, modifying the size information corresponding to the size attribute of the target editing object and modifying the size information corresponding to the internal attribute of the first graph;
and updating the size information of the target graph based on the updated size information corresponding to the target editing object and the first graph.
Optionally, the method further comprises:
when the internal attribute is the position, finishing the modification of the position information corresponding to the position attribute of the target editing object based on the target editing task;
and updating the position information of the target graph based on the updated position information corresponding to the target editing object.
Optionally, when the extrinsic attribute is a style and/or a color, the modifying the first data corresponding to the target attribute and updating the target editing object and the target graphic based on the target editing task includes:
modifying the style and/or the color of the target editing object based on the target editing task;
and updating the style and/or the color of the target graph based on the updated style and/or the updated color corresponding to the target editing object.
Optionally, when the extrinsic attribute is an increase, the modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graphic include:
acquiring the hierarchical position of the target editing object;
determining an increased number based on the target editing task;
copying the target editing object based on the number to obtain a plurality of second graphs, wherein the second graphs are consistent with the hierarchy position of the target editing object;
and updating the extrinsic attribute of the target graph based on the target editing task, the target editing object and each second graph.
Optionally, when the extrinsic attribute is deletion, modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graphic, including:
acquiring the hierarchical position of the target editing object and the hierarchical structure in the target graph;
deleting the target editing object based on the target editing task;
updating the hierarchical position of each third graph in the target graph;
and updating the hierarchical structure of the target graph based on the hierarchical position of each third graph.
According to a second aspect, an embodiment of the present invention provides a primitive editing apparatus, including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a target editing task, a target editing object and a target graph where the target editing object is located;
the processing module is used for determining the target attribute of the target editing object based on the target editing task;
and the editing module is used for modifying the first data corresponding to the target attribute based on the target editing task and updating the target editing object and the target graph.
According to a third aspect, an embodiment of the present invention provides an electronic device, including:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, and the processor performing the method of the first aspect, or any one of the optional embodiments of the first aspect, by executing the computer instructions.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the method of the first aspect, or any one of the optional implementation manners of the first aspect.
The technical scheme of the invention has the following advantages:
the method, the device, the electronic equipment and the storage medium for editing the graphic elements, provided by the invention, are used for editing the graphic elements by acquiring a target editing task, a target editing object and a target graphic where the target editing object is located; determining a target attribute of the target editing object based on the target editing task; and modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graph. By modifying the first data in the target attribute of the target editing object according to the target editing task, when the first data in the target attribute of the target editing object is updated, the target graph where the target editing object is located is also updated. By fully considering the editing requirements of developers on the bottom layer graphics in the nested combined graphics, users can modify the bottom layer graphics in a targeted editing task in a targeted manner without re-nesting and combining, the editing difficulty is further reduced while the personalized editing of the nested combined graphics by the users is met, and the working efficiency is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart of a method for editing primitives according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a primitive editing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," "third," "fourth," "fifth," and "sixth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
An embodiment of the present invention provides a primitive editing method, as shown in fig. 1, the primitive editing method specifically includes the following steps:
step S101: and acquiring a target editing task, a target editing object and a target graph where the target editing object is located. Illustratively, the target editing task may be to modify a size, change a position/color/style/margin, but the actual situation is not limited thereto, and the target editing task may be set according to actual requirements of a developer and a user, and illustratively, may be to combine two nested combination graphics, ungroup two nested combination graphics, and the like. In order to meet the editing requirements of the user on the nested combination graph, the target editing task can also be used for performing grouping disassembling and combination with other specified graphs on the target editing object or the target graph, and the like.
The embodiment of the invention is explained by taking a nested combined graph as an example, namely, a target graph is the nested combined graph, a target editing object is a graph of a certain level in the nested combined graph, and the target editing object can be a single graph or the nested combined graph.
Step S102: and determining the target attribute of the target editing object based on the target editing task. Specifically, in practical application, after the target editing task is determined, the target attribute of the target editing object is determined accordingly, and a foundation is laid for subsequently modifying data in the target attribute, so that the target editing object and the target graph editing task are completed.
Step S103: and modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graph. In practical application, the first data in the target attribute of the target editing object is modified according to the target editing task, and the target editing object and the target graph where the target editing object is located are updated.
In order to meet the use requirements of users, both the basic graph and the nested combined graph in the embodiment of the invention can be permanently stored, and the generated gallery file (such as a JSON file) is stored in a project, so that the subsequent repeated use is facilitated.
It should be noted that the nested combination graph in the embodiment of the present invention may be a layer-by-layer nested structure, that is, one nested combination graph to be edited may be formed by combining a plurality of sub-nested combination graphs, and the nested combination graph to be edited completely retains the hierarchical relationship (i.e., layer attributes) of the plurality of sub-nested combination graphs therein, where the hierarchical relationship of the nested combination graph and the sub-nested combination graphs thereof is determined by the creation sequence, and may also be manually modified and adjusted by a user, so as to form more nested combination graphs meeting the requirements of projects and users for editing.
By executing the above steps, the primitive editing method provided in the embodiment of the present invention modifies the first data in the target attribute of the target editing object according to the target editing task, and updates the target graphic where the target editing object is located when the first data in the target attribute of the target editing object is updated. By fully considering the editing requirements of developers on the bottom layer graphics in the nested combined graphics, users can modify the bottom layer graphics in a targeted editing task in a targeted manner without re-nesting and combining, the editing difficulty is further reduced while the personalized editing of the nested combined graphics by the users is met, and the working efficiency is greatly improved.
Specifically, in one embodiment, the target attributes include intrinsic attributes and extrinsic attributes, wherein the intrinsic attributes include size and location; the extrinsic properties include style, color, add, and delete.
Specifically, in practical applications, the target attributes are not limited thereto, and the target attributes may be classified and set according to actual requirements of developers and users, and the number or the category of the target attributes is changed to meet the requirement of the user for personalized editing of the nested combination graphics, which is also within the protection scope of the primitive editing method provided by the embodiment of the present invention.
Specifically, in an embodiment, when the target editing task is to change the intrinsic attribute, the step S103 modifies the first data corresponding to the target attribute based on the target editing task, and updates the target editing object and the target graphic, specifically including the following steps:
step S201: and acquiring the hierarchical position of the target editing object.
Specifically, in practical application, when the internal attribute of the target editing object needs to be changed, the hierarchical position of the target editing object needs to be acquired first, so that a foundation is laid for subsequent modification and update of the target editing object and the target graph.
Step S202: and when the intrinsic attribute is the size, acquiring size information of first graphics adjacent to the target editing object in the vertical and horizontal directions.
Step S203: and modifying the size information corresponding to the size attribute of the target editing object and modifying the size information corresponding to the internal attribute of the first graph simultaneously based on the target editing task.
Step S204: and updating the size information of the target graph based on the updated size information corresponding to the target editing object and the first graph.
Illustratively, when the target editing task is "modify the height to 3cm", and the target editing object is a rectangular graph of a third layer, when the rectangular graph is modified, the graph adjacent to the circular graph and the size information corresponding to the graph are acquired, and after the height of the circular graph is modified to 3cm according to the target editing task, the size information corresponding to the first graph can be modified to achieve a target that the target editing object and the first graph keep an original position and distance relationship.
Specifically, in practical applications, in order to avoid a situation that the size of the target editing object is overlapped or staggered with other graphics (including two types of the same hierarchy and different hierarchies) after the size of the target editing object is modified, the size information of the target editing object and graphics at the periphery and in upper and lower layers can be judged according to the target editing task, and if the size of the modified target editing object is not overlapped or staggered with other adjacent graphics, the target editing object is modified according to the target editing task.
According to the embodiment of the invention, the target editing object and the graph adjacent to the target editing object are modified according to the target editing task, so that the modification of a single graph in the combined nested graph can be quickly and efficiently completed under the condition that the target graph is not required to be disassembled, the personalized editing of the nested combined graph by a user is met, the editing difficulty is further reduced, and the working efficiency is greatly improved.
Specifically, in an embodiment, when the target editing task is to change the intrinsic attribute, the step S103 modifies the first data corresponding to the target attribute based on the target editing task, and updates the target editing object and the target graphic, and specifically includes the following steps:
step S301: and when the internal attribute is the position, finishing the modification of the position information corresponding to the position attribute of the target editing object based on the target editing task.
Step S302: and updating the position information of the target graph based on the updated position information corresponding to the target editing object.
Specifically, in practical applications, when the position of the target editing object needs to be modified, the user may drag the target editing object to a designated position through a mouse, and at the same time, the target editing object will update the current position information to the position attribute, and the target graphic will also be updated step by step.
Illustratively, when the target editing object moves from one position to two positions, the target graph synchronously updates the two-position information of the target editing object, thereby ensuring the timeliness of the data. In practical application, the embodiment of the invention can also set the target graph to synchronously change the position along with the position change of the target editing object in consideration of different use habits of users so as to keep the original nested combination form and hierarchical structure.
Specifically, in an embodiment, when the extrinsic attribute is a style and/or a color, the step S103 modifies the first data corresponding to the target attribute based on the target editing task, and updates the target editing object and the target graphic, specifically including the following steps:
step S401: modifying the style, and/or color, of the target editing object based on the target editing task.
Step S402: and updating the style and/or the color of the target graph based on the updated style and/or the updated color corresponding to the target editing object.
Illustratively, when the color of the target editing object is modified, for example, the color of the target editing object is modified to blue, after the color of the target editing object is changed to blue, the target graphic is synchronously updated, so as to ensure that the target editing object in the target graphic is displayed in the updated color.
Specifically, in an embodiment, when the extrinsic attribute is an increase, the step S103 modifies the first data corresponding to the target attribute based on the target editing task, and updates the target editing object and the target graphic, specifically including the following steps:
step S501: and acquiring the hierarchical position of the target editing object.
Specifically, in practical application, when a target editing object needs to be added, in order to ensure that the hierarchical relationship of the target graph is stable, the embodiment of the present invention first obtains the hierarchical position where the target editing object is located, and determines the hierarchical position where the target editing object is located.
Step S502: determining an increased number based on the target editing task.
Step S503: and copying the target editing object based on the number to obtain a plurality of second graphs, wherein the second graphs are consistent with the hierarchy position of the target editing object.
Step S504: and updating the extrinsic attribute of the target graph based on the target editing task, the target editing object and each second graph.
Specifically, in practical applications, the embodiment of the present invention performs the copy operation on the target editing object after determining the increased number according to the user requirement, so as to obtain a plurality of second graphics consistent with the style, color and size of the target editing object. After a plurality of second graphs are generated, the embodiment of the invention defaults that the second graphs belong to the target graph, and updates the corresponding information of each second graph in the target graph to obtain the target graph containing the plurality of second graphs.
In order to facilitate subsequent editing by a user and reduce the processing time for the user to judge the hierarchical position of the second graph, the hierarchical position of the second graph is set to be consistent with a target editing object, the subsequent user can adjust the hierarchical position of the second graph according to actual requirements, the user using experience is fully considered while single graph in the nested graph is edited, and the user using satisfaction is further improved.
Specifically, in an embodiment, when the extrinsic attribute is deleted, the step S103 modifies the first data corresponding to the target attribute based on the target editing task, and updates the target editing object and the target graphic, specifically including the following steps:
step S601: and acquiring the hierarchical position of the target editing object and the hierarchical structure in the target graph.
Step S602: and deleting the target editing object based on the target editing task.
Step S603: and updating the hierarchical position of each third graph in the target graph. In practical application, the third graph is all graphs except the target editing object in the target graph.
Step S604: and updating the hierarchical structure of the target graph based on the hierarchical position of each third graph.
Specifically, in practical application, when a target editing object needs to be deleted, in order to avoid a situation that a hierarchical structure of a target graph is disordered after the target editing object is deleted, in the embodiment of the present invention, when a target editing task is obtained as the deletion target editing object, a hierarchical position of the target editing object and a hierarchical structure in the target graph are first obtained, and after the target editing object is deleted, hierarchical positions of other graphs in the target graph are updated, so that the hierarchical structure of the target graph is updated. The method has the advantages that the target editing object is guaranteed to be deleted, the influence on other graphs of the target graph is avoided, the editing target of the user can be achieved without the need of ungrouping and recombining the nested combined graph while the editing requirement of the user on the nested combined graph is fully considered, the user operation process is simplified, and the user use experience is greatly improved.
By executing the above steps, the primitive editing method provided in the embodiment of the present invention modifies the first data in the target attribute of the target editing object according to the target editing task, and updates the target graphic where the target editing object is located when the first data in the target attribute of the target editing object is updated. By fully considering the editing requirements of developers on the bottom layer graphics in the nested combined graphics, users can modify the bottom layer graphics in a targeted editing task in a targeted manner without re-nesting and combining, the editing difficulty is further reduced while the personalized editing of the nested combined graphics by the users is met, and the working efficiency is greatly improved.
The primitive editing method provided by the embodiment of the present invention will be described in detail below with reference to specific application examples.
As shown in fig. 1, the embodiment of the present invention may regard a graph or a nested combination graph as an individual, each individual has a set of its own attributes including the size (length, width, height, area, volume, etc.) position, margin, style, fill color, etc. in the case of a graph, the embodiment of the present invention determines the nested combination graph where it is located as its parent object (i.e. the group to which it belongs), and determines the graph or group below it as its child object. When two graphics are combined together, it is equivalent to creating a new graphic whose size and position are determined by the sub-objects that need to be combined together. All attributes of its child objects are stored in the new graphics formed by combination, the parent object of each combined graphic forms a newly created graphic (fourth graphic) by combination, and the newly created graphic (fourth graphic) is displayed as a target graphic seen by a user, and the internal hierarchical relationship is changed in sequence. When the fourth graph is combined with the fifth graph, in the sixth graph formed by combination, the parent object of the fourth graph becomes the sixth graph, and the child object in the parent object becomes two graphs of the fourth graph and the fifth graph, so that the layer-by-layer nesting function can be realized, and when the sixth graph is disassembled, the parent objects of the fourth graph and the fifth graph are invalid.
When the in-group editing of the nested combination graph is carried out, the sub-nested combination graph or a single graph in the nested combination graph can be edited under the condition of not damaging the combination, and a series of operations such as position moving, size adjusting, new building, deleting and the like are supported.
When the in-group editing function is used, the target editing object is determined according to the target editing task, the target graph (namely the target nested combination graph) where the target editing object is located is determined through the target editing object, after the target nested combination graph is determined, the hierarchical structure of the target nested combination graph is obtained, the target editing object (a single graph or a sub-nested combination graph) inside the target nested combination graph can be selected, and therefore the target attribute of the target editing object is modified, for example, the position of the target editing object is dragged by a mouse, and the position attribute of the target editing object is changed. When two graphs or sub-nested combination graphs in the target nested combination graph are edited, the corresponding graphs or sub-nested combination graphs can be selected and combined respectively by using the editing function in the group, and are synchronized to the target nested combination graph according to the updated information and stored in a data file of the target nested combination graph.
By fully considering the editing requirements of developers on the nested combined graphs, users can modify the nested combined graphs in a targeted manner without re-nesting and combining, so that the editing difficulty is further reduced while the personalized editing of the nested combined graphs by the users is met, and the working efficiency is greatly improved.
An embodiment of the present invention provides a primitive editing apparatus, as shown in fig. 2, the primitive editing apparatus includes:
the obtaining module 101 is configured to obtain a target editing task, a target editing object, and a target graph where the target editing object is located. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
And the processing module 102 is configured to determine a target attribute of the target editing object based on the target editing task. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
And the editing module 103 is configured to modify the first data corresponding to the target attribute based on the target editing task, and update the target editing object and the target graph. For details, refer to the related description of step S103 in the above method embodiment, and no further description is provided here.
For further description of the primitive editing apparatus, reference is made to the related description of the embodiment of the primitive editing method, and further description is not repeated here.
Through the cooperative cooperation of the above components, the primitive editing apparatus provided in the embodiment of the present invention modifies the first data in the target attribute of the target editing object according to the target editing task, and updates the target graphic where the target editing object is located while the first data in the target attribute of the target editing object is updated. By fully considering the editing requirements of developers on the bottom layer graphics in the nested combined graphics, users can modify the bottom layer graphics in a targeted editing task in a targeted manner without re-nesting and combining, the editing difficulty is further reduced while the personalized editing of the nested combined graphics by the users is met, and the working efficiency is greatly improved.
An embodiment of the present invention provides an electronic device, as shown in fig. 3, the electronic device includes a processor 901 and a memory 902, where the memory 902 and the processor 901 are communicatively connected to each other, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 3 takes the example of connection by a bus as an example.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the embodiments of the present invention. The processor 901 executes various functional applications and data processing of the processor 901 by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 perform the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related description and effects in the above method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk Drive (Hard Disk Drive, abbreviated as HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. This need not be, nor should it be exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (10)

1. A method for editing a primitive, comprising:
acquiring a target editing task, a target editing object and a target graph where the target editing object is located;
determining a target attribute of the target editing object based on the target editing task;
and modifying the first data corresponding to the target attribute based on the target editing task, and updating the target editing object and the target graph.
2. The method of claim 1, wherein the target attributes comprise intrinsic attributes and extrinsic attributes, wherein the intrinsic attributes comprise size and location; the extrinsic properties include style, color, add, and delete.
3. The method according to claim 2, wherein when the target editing task is to change the intrinsic property, the modifying the first data corresponding to the target property and updating the target editing object and the target graphic based on the target editing task includes:
acquiring the hierarchical position of the target editing object;
when the internal attribute is the size, acquiring size information of first graphs adjacent to the target editing object in the vertical and horizontal directions;
based on the target editing task, modifying the size information corresponding to the size attribute of the target editing object and modifying the size information corresponding to the internal attribute of the first graph;
and updating the size information of the target graph based on the updated size information corresponding to the target editing object and the first graph.
4. The method of claim 3, further comprising:
when the internal attribute is the position, finishing the modification of the position information corresponding to the position attribute of the target editing object based on the target editing task;
and updating the position information of the target graph based on the updated position information corresponding to the target editing object.
5. The method according to claim 2, wherein when the extrinsic property is a style and/or a color, the modifying the first data corresponding to the target property and updating the target editing object and the target graphic based on the target editing task includes:
modifying the style and/or the color of the target editing object based on the target editing task;
and updating the style and/or the color of the target graph based on the updated style and/or the updated color corresponding to the target editing object.
6. The method according to claim 2, wherein when the extrinsic attribute is an increase, the modifying the first data corresponding to the target attribute and updating the target editing object and the target graphic based on the target editing task includes:
acquiring the hierarchical position of the target editing object;
determining an increased number based on the target editing task;
copying the target editing object based on the number to obtain a plurality of second graphs, wherein the second graphs are consistent with the hierarchy position of the target editing object;
and updating the extrinsic attribute of the target graph based on the target editing task, the target editing object and each second graph.
7. The method according to claim 6, wherein when the extrinsic attribute is deletion, the modifying the first data corresponding to the target attribute and updating the target editing object and the target graphic based on the target editing task includes:
acquiring the hierarchical position of the target editing object and the hierarchical structure in the target graph;
deleting the target editing object based on the target editing task;
updating the hierarchical position of each third graph in the target graph;
and updating the hierarchical structure of the target graph based on the hierarchical position of each third graph.
8. A primitive editing apparatus, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a target editing task, a target editing object and a target graph where the target editing object is located;
the processing module is used for determining the target attribute of the target editing object based on the target editing task;
and the editing module is used for modifying the first data corresponding to the target attribute based on the target editing task and updating the target editing object and the target graph.
9. An electronic device, comprising:
a memory and a processor, communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202211307086.3A 2022-10-24 2022-10-24 Primitive editing method and device, electronic equipment and storage medium Pending CN115619905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211307086.3A CN115619905A (en) 2022-10-24 2022-10-24 Primitive editing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211307086.3A CN115619905A (en) 2022-10-24 2022-10-24 Primitive editing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115619905A true CN115619905A (en) 2023-01-17

Family

ID=84863979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211307086.3A Pending CN115619905A (en) 2022-10-24 2022-10-24 Primitive editing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115619905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301527A (en) * 2023-03-13 2023-06-23 北京力控元通科技有限公司 Display control method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN111857718A (en) * 2020-07-29 2020-10-30 网易(杭州)网络有限公司 List editing method, device, equipment and storage medium
CN112395838A (en) * 2019-08-14 2021-02-23 阿里巴巴集团控股有限公司 Object synchronous editing method, device, equipment and readable storage medium
CN114625366A (en) * 2022-03-11 2022-06-14 北京金堤科技有限公司 Page editing method and device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN112395838A (en) * 2019-08-14 2021-02-23 阿里巴巴集团控股有限公司 Object synchronous editing method, device, equipment and readable storage medium
CN111857718A (en) * 2020-07-29 2020-10-30 网易(杭州)网络有限公司 List editing method, device, equipment and storage medium
CN114625366A (en) * 2022-03-11 2022-06-14 北京金堤科技有限公司 Page editing method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301527A (en) * 2023-03-13 2023-06-23 北京力控元通科技有限公司 Display control method and device, electronic equipment and medium
CN116301527B (en) * 2023-03-13 2023-11-21 北京力控元通科技有限公司 Display control method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
US11460996B2 (en) Modifying style layer properties of a digital map
US10255383B2 (en) Rule based three-dimensional (3D) intersection model
US20150170385A1 (en) Editing a feature within a map
US9196085B2 (en) Interactively shaping terrain through composable operations
JP2017174393A (en) Multi-resolution image system
CN111737800A (en) Primitive selection method and device and electronic equipment
WO2023226583A1 (en) Object processing method and apparatus, device, computer readable storage medium, and computer program product
WO2023138029A1 (en) Remote sensing data processing method and apparatus, device, storage medium, and computer program product
US11733973B2 (en) Interactive graphic design system to enable creation and use of variant component sets for interactive objects
CN115619905A (en) Primitive editing method and device, electronic equipment and storage medium
CN113096246B (en) Three-dimensional map data updating method
EP4058988A1 (en) System and method for implementing design system to provide preview of constraint conflicts
US10067950B1 (en) Systems and methods for efficiently organizing map styling information
CN110764757B (en) Interactive graphic drawing engine based on HTML5
CN114841126A (en) Form generation method, device, equipment, storage medium and program product
CN114036417A (en) Page updating method and device, storage medium and electronic equipment
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
CN109657023A (en) Scenic spot dynamic electronic map method for drafting, server and system
CN115544311A (en) Data analysis method and device
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
JP4968275B2 (en) Map data editing device and server for map data editing device
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
EP3311366B1 (en) Hybrid map drawing display
WO2022228209A1 (en) Method and apparatus for constructing visual view
US12008715B2 (en) Determining drainage constraints and geometries in a triangular mesh

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination