CN117035067B - Thinking guide drawing rendering method and device and electronic equipment - Google Patents

Thinking guide drawing rendering method and device and electronic equipment Download PDF

Info

Publication number
CN117035067B
CN117035067B CN202311282814.4A CN202311282814A CN117035067B CN 117035067 B CN117035067 B CN 117035067B CN 202311282814 A CN202311282814 A CN 202311282814A CN 117035067 B CN117035067 B CN 117035067B
Authority
CN
China
Prior art keywords
node
adjustment
target
mind map
information
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.)
Active
Application number
CN202311282814.4A
Other languages
Chinese (zh)
Other versions
CN117035067A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202311282814.4A priority Critical patent/CN117035067B/en
Publication of CN117035067A publication Critical patent/CN117035067A/en
Application granted granted Critical
Publication of CN117035067B publication Critical patent/CN117035067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/01Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of computers, in particular to a method and a device for rendering a mind map and electronic equipment, which are used for providing a scheme for quickly and smoothly presenting the mind map after an object operates the mind map. The embodiment of the application presents a thinking guide diagram; responding to node adjustment operation triggered by aiming at the mind map, obtaining an adjustment strategy of at least one first node, and selecting a reference node in the mind map; traversing a reference node and corresponding offspring nodes to obtain at least one target node and corresponding adjustment results; wherein, the target node is: after executing the adjustment strategy, the node presents the node with the affected state, and the adjustment result is: executing node information after adaptive adjustment by referring to an adjustment strategy; and re-rendering the mind map based on the adjustment result of at least one target node to obtain an updated mind map.

Description

Thinking guide drawing rendering method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for rendering a mind map, and an electronic device.
Background
In modern society, people are faced with a vast amount of information and concepts, and there is a need for an efficient way to sort, connect and understand such information. The mind map provides a nonlinear mode, different ideas and information can be presented in a layering and visual mode, and people can quickly comb a large amount of information.
In general, mind map usually starts with a central topic or concept and then connects related subtopics, ideas and keywords through radial branches.
The starting point and each branch in the mind map can be summarized as each node in the mind map.
In the related art, if an object performs an adjustment operation on the mind map (for example, adding a new node, deleting a node, adding a mark to a node, and filtering a node), it is necessary to render based on each node description information corresponding to each node in the mind map.
In this way, in the rendering process, even if the object performs an adjustment operation for only one node in the mind map, the mind map needs to be rendered again based on the node description information corresponding to all the nodes in the mind map, where the node description information may include: coordinate information of nodes, attribute information of nodes, correspondence between nodes, priority information of nodes, and the like.
Therefore, when the number of nodes in the mind map is large, rendering is performed on all the nodes in the mind map, a large amount of data needs to be processed, and a long processing time needs to be consumed, so that the presentation efficiency of the mind map is reduced.
On the other hand, when the number of nodes in the mind map is large, the nodes are limited by data processing capability, and the phenomenon of jam is easy to cause in rendering, so that page jam for displaying the mind map is not available, and the use experience of an object is reduced.
Disclosure of Invention
The purpose of the application is to provide a method and a device for rendering a mind map and electronic equipment, which are used for providing a scheme for quickly and smoothly presenting the mind map after an object operates the mind map.
In a first aspect, the present application provides a method for rendering a mind map, the method comprising:
presenting a mind map, wherein the mind map comprises a plurality of nodes, each node represents one logic point in the mind map, and the hierarchical connection relationship among the nodes represents the logic association among the corresponding logic points;
responding to node adjustment operation triggered by aiming at the mind map, obtaining an adjustment strategy of at least one first node, and selecting a reference node in the mind map, wherein the hierarchy level of the reference node is not lower than any one of the first nodes;
Traversing the reference node and each corresponding descendant node to obtain at least one target node and a corresponding adjustment result; wherein the target node is: after executing the adjustment strategy, the node presents the node with the affected state, and the adjustment result is: executing the node information after the adaptive adjustment by referring to the adjustment strategy;
and re-rendering the mind map based on the adjustment result of the at least one target node to obtain an updated mind map.
In a second aspect, the present application provides a device for rendering a mind map, including:
the system comprises a presentation module, a display module and a display module, wherein the presentation module is used for presenting a mind map, the mind map comprises a plurality of nodes, each node represents one logic point in the mind map, and the hierarchical connection relation among the nodes represents the logic association among the corresponding logic points;
the selection module is used for responding to node adjustment operation triggered by the mind map, obtaining an adjustment strategy of at least one first node, and selecting a reference node in the mind map, wherein the hierarchy level of the reference node is not lower than any one of the first nodes;
the traversing module is used for traversing the reference node and the corresponding offspring nodes to obtain at least one target node and the corresponding adjustment result; wherein the target node is: after executing the adjustment strategy, the node presents the node with the affected state, and the adjustment result is: executing the node information after the adaptive adjustment by referring to the adjustment strategy;
And the rendering module is used for re-rendering the mind map based on the adjustment result of the at least one target node to obtain an updated mind map.
In a possible embodiment, the node information includes node configuration information and node element information, the node configuration information including: node coordinates, the node element information including: displaying the element; the traversing module is specifically configured to:
based on the adjustment strategy, a corresponding node adjustment mode is obtained, wherein the node adjustment mode comprises at least one of coordinate adjustment and element adjustment;
selecting at least one target node from the reference node and the corresponding offspring nodes based on the node adjustment mode; wherein the target node is: aiming at the node adjustment mode, the node information is adaptively adjusted;
and taking the adjusted node information obtained for the at least one target node as an adjustment result of the at least one target node.
In a possible embodiment, the traversing module is specifically configured to:
if the adjustment strategy is: node screening, determining that the corresponding node adjustment mode is as follows: coordinate adjustment;
If the adjustment strategy is: and adjusting the node elements, and determining the corresponding node adjustment mode to be: element adjustment;
if the adjustment strategy is: and if the node is newly added, determining that the corresponding node adjustment mode is as follows: coordinate adjustment and element adjustment.
In a possible embodiment, the traversing module is specifically configured to:
and selecting at least one target node according to the information related to the node adjustment mode in the acquired node information of the reference node and the corresponding descendant nodes based on the node adjustment mode.
In a possible embodiment, the traversing module is specifically configured to:
when the node adjustment mode comprises coordinate adjustment, determining that the associated node information comprises node configuration information, and selecting at least one target node from the reference node and the corresponding descendant nodes based on the acquired node configuration information of the reference node and the corresponding descendant nodes, wherein the target node is: after the coordinates of the at least one first node are adjusted, the node coordinates are adaptively adjusted;
when the node adjustment mode comprises element adjustment, determining that the associated node information comprises node element information, and selecting at least one target node from the reference node and the corresponding descendant nodes based on the acquired node element information of the reference node and the corresponding descendant nodes, wherein the target node is: and after element adjustment is performed on the at least one first node, the node element is adaptively adjusted.
In a possible embodiment, the node configuration information further includes: node status; the traversing module is specifically configured to:
and selecting at least one target node from the nodes in the non-hidden state based on the node state of the reference node and the node states of the corresponding descendant nodes.
In one possible embodiment, the traversing module is specifically configured to:
when the node adjustment mode comprises coordinate adjustment, taking the node coordinates after the adjustment of the target node as an adjustment result of the target node;
when the node adjustment mode comprises element adjustment, taking the node element after the adjustment of the target node as an adjustment result of the target node;
when the node adjustment mode comprises coordinate adjustment and element adjustment, the following operations are respectively executed for each target node: when the node coordinates contained in the node information are adaptively adjusted, the node coordinates after the adjustment of the corresponding target node are used as an adjustment result of the target node; and when the display elements contained in the node information are adaptively adjusted, the node elements after the adjustment of the corresponding target nodes are used as adjustment results of the target nodes.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of any of the methods of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing computer instructions that, when run on a computer, cause the computer to perform the steps of any of the methods of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program stored in a computer readable storage medium; when the computer program is read from the computer readable storage medium by a processor of an electronic device, the processor executes the computer program, causing the electronic device to perform the steps of any of the methods of the first aspect.
The embodiment of the application adopts the technical scheme and has at least the following technical effects:
in the embodiment of the application, after the node adjustment operation is triggered on the mind map, an adjustment strategy of at least one first node is obtained, one reference node is selected in the mind map, at least one target node and a corresponding adjustment result are obtained by traversing the reference node and corresponding descendant nodes, and the mind map is re-rendered based on the adjustment result of the at least one target node to obtain the updated mind map.
That is, in the process of re-rendering the mind map according to the node adjustment operation, after the reference node is determined based on the first node, the reference node and corresponding offspring nodes are traversed, so that the number of traversed nodes in the traversal process can be reduced, and the processed data volume is reduced; after traversing the reference node and the corresponding descendant nodes, at least one target node is obtained, and the mind map can be re-rendered according to at least one target node, in the related art, even if node adjustment operation is triggered for only one node, the mind map needs to be re-rendered based on all nodes, the mind map is re-rendered according to at least one target node, and the number of processed nodes can be reduced. Therefore, the data processing time can be reduced, the efficiency of the traversal process can be improved on the one hand, and the rendering process can be smoother due to the fact that the data processing capacity is affected on the other hand and the smaller data volume is processed, so that the use experience of an object is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
Fig. 1 is a schematic view of an application scenario in an embodiment of the present application;
FIG. 2 is a flowchart of an embodiment of a method for rendering a mind map;
FIG. 3 is a schematic diagram of a hierarchical connection relationship according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a first node according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a plurality of first nodes according to an embodiment of the present application;
FIG. 6A is a schematic diagram of a reference node according to an embodiment of the present application;
FIG. 6B is a schematic diagram of a reference node according to an embodiment of the present application;
FIG. 7 is a flowchart of obtaining a target node and a corresponding adjustment result according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a grandchild node according to an embodiment of the present application;
fig. 9 is a schematic diagram of node configuration information according to an embodiment of the present application;
FIG. 10 is a node folding schematic diagram according to an embodiment of the present application;
FIG. 11 is a schematic diagram illustrating node screening according to an embodiment of the present application;
FIG. 12 is an overall flow chart of node screening according to an embodiment of the present application;
FIG. 13 is a schematic diagram of a rendering device of a mind map according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the technical solutions of the present application, but not all embodiments. All other embodiments, which can be made by a person of ordinary skill in the art without any inventive effort, based on the embodiments described in the present application are intended to be within the scope of the technical solutions of the present application.
In order to facilitate a better understanding of the technical solutions of the present application, some terms related to the present application are described below.
1. The Mind Map (The Mind Map), also known as Mind Map, is an effective graphic Mind tool for expressing divergent Mind, is simple but effective and efficient, and is a practical Mind tool. The thinking guide graph uses graphics context and skill to show the relation of each level of theme by using the hierarchy graph of mutual membership and correlation, and establishes memory links between theme keywords, images, colors and the like.
2. Tree: the mind map is a tree-like data structure.
3. Root node: the topmost node of the tree.
4. Subtree: tree B formed by taking the internal node of tree a as the root node is referred to as the subtree of tree a.
5. Offspring nodes: all nodes in a subtree of a node are referred to as descendant nodes of the node.
The word "exemplary" is used hereinafter to mean "serving as an example, embodiment, or illustration. Any embodiment described as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The terms "first," "second," and the like herein are used for descriptive purposes only and are not to be construed as either explicit or implicit relative importance or to indicate the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The following briefly describes the design concept of the embodiment of the present application:
in modern society, people are faced with a vast amount of information and concepts, and there is a need for an efficient way to sort, connect and understand such information. The mind map provides a nonlinear mode, different ideas and information can be presented in a layering and visual mode, and people can quickly comb a large amount of information.
In general, mind map usually starts with a central topic or concept and then connects related subtopics, ideas and keywords through radial branches.
The starting point and each branch in the mind map can be summarized as each node in the mind map.
In the related art, if an object performs an adjustment operation on the mind map (for example, adding a new node, deleting a node, adding a mark to a node, and filtering a node), it is necessary to render based on each node description information corresponding to each node in the mind map.
In this way, in the rendering process, even if the object performs an adjustment operation for only one node in the mind map, the mind map needs to be rendered again based on the node description information corresponding to all the nodes in the mind map, where the node description information may include: coordinate information of nodes, attribute information of nodes, correspondence between nodes, priority information of nodes, and the like.
Therefore, when the number of nodes in the mind map is large, rendering is performed on all the nodes in the mind map, a large amount of data needs to be processed, and a long processing time needs to be consumed, so that the presentation efficiency of the mind map is reduced.
On the other hand, when the number of nodes in the mind map is large, the nodes are limited by data processing capability, and the phenomenon of jam is easy to cause in rendering, so that page jam for displaying the mind map is not available, and the use experience of an object is reduced.
Therefore, in order to solve the above-mentioned problems, a method for rendering a mind map is provided in the embodiments of the present application, which is mainly aimed at obtaining an adjustment policy of at least one first node after a node adjustment operation is triggered on the mind map, selecting a reference node in the mind map, obtaining at least one target node and a corresponding adjustment result by traversing the reference node and corresponding descendant nodes, and re-rendering the mind map based on the adjustment result of the at least one target node to obtain an updated mind map.
That is, in the process of re-rendering the mind map according to the node adjustment operation, after the reference node is determined based on the first node, the reference node and corresponding offspring nodes are traversed, so that the number of traversed nodes in the traversal process can be reduced, and the processed data volume is reduced; after traversing the reference node and the corresponding descendant nodes, at least one target node is obtained, and the mind map can be re-rendered according to at least one target node, in the related art, even if node adjustment operation is triggered for only one node, the mind map needs to be re-rendered based on all nodes, the mind map is re-rendered according to at least one target node, and the number of processed nodes can be reduced. Therefore, the data processing time can be reduced, the efficiency of the traversal process can be improved on the one hand, and the rendering process can be smoother due to the fact that the data processing capacity is affected on the other hand and the smaller data volume is processed, so that the use experience of an object is improved.
Fig. 1 is a schematic diagram of an application scenario in an embodiment of the present application. The application scenario diagram includes a terminal device 10 and a server 11. The terminal device 10 and the server 11 may communicate with each other via a communication network.
In an alternative embodiment, the communication network may be a wired network or a wireless network, so that the terminal device 10 and the server 11 may be directly or indirectly connected through wired or wireless communication, and the embodiment of the present application is not limited herein specifically.
In the embodiment of the present application, the terminal device 10 is an electronic device used as an object, and the electronic device may be a mobile phone, a computer, an intelligent voice interaction device, an intelligent home, a vehicle-mounted terminal, an aircraft, and the like.
The server 11 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud storage, cloud functions, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform.
The rendering method of the mind map of the embodiment of the present application may be separately performed by the terminal device 10. When executed by the terminal device 10 alone, the terminal device 10 may perform a rendering method of the mind map to obtain an updated mind map.
The method for rendering the mind map provided by the exemplary embodiments of the present application will be described below with reference to the accompanying drawings in conjunction with the application scenarios described above, and it should be noted that the application scenarios described above are only shown for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in any way in this respect.
Referring to fig. 2, a flowchart of an implementation of a method for rendering a mind map according to an embodiment of the present application is shown, where the implementation flow of the method is as follows:
step S201, presenting a thinking guide diagram;
the thinking guide graph comprises a plurality of nodes, each node represents a logic point in the thinking guide graph, and the hierarchical connection relation among the nodes represents logic association among the corresponding logic points;
it should be noted that, the mind map is a tree data structure, and there is only one root node, and other nodes belong to descendant nodes of the root node.
For example, as shown in fig. 3, if only node 1 exists in the mind map, node 1 is a root node, if node 2 and node 3 are added for node 1, node 2 and node 3 are child nodes of node 1, node 1 is a parent node of node 2 and node 3, node 1 and node 2 are different hierarchical levels and have a hierarchical connection relationship therebetween, node 1 and node 3 are different hierarchical levels and have a hierarchical connection relationship therebetween, but node 2 and node 3 do not have a hierarchical connection relationship and are the same hierarchical level; if node 4 and node 5 are added to node 3, node 4 and node 5 are child nodes of node 3, node 3 is a parent node of node 4 and node 5, node 3 and node 4 are at different hierarchical levels, and there is a hierarchical connection relationship between them, node 3 and node 5 are at different hierarchical levels, and there is a hierarchical connection relationship between them, and node 4 and node 5 are offspring nodes of node 1, node 1 is a root node of node 4 and node 5, node 1 and node 4 are at different hierarchical levels, and there is a hierarchical connection relationship between them, node 1 and node 5 are at different hierarchical levels, and there is a hierarchical connection relationship between them, but node 2 and node 4 are at different hierarchical levels, but there is no hierarchical connection relationship between them.
Step S202, responding to node adjustment operation triggered by the mind map, obtaining an adjustment strategy of at least one first node, and selecting a reference node in the mind map;
in implementation, the embodiment of the application responds to the trigger node adjustment operation of the object on the mind map, and acquires the full data corresponding to the mind map triggered by the node adjustment operation.
The full data comprises node information of the nodes and a tree structure.
It should be noted that, since the full-scale data corresponds to the mind map, after the node adjustment operation is triggered on the mind map, the full-scale data corresponding to the mind map will change correspondingly according to the triggered node adjustment operation, and the acquired full-scale data includes data that changes correspondingly based on the node adjustment operation.
In this embodiment of the present application, the first node is a node in which data in the total data changes.
Optionally, in the embodiment of the present application, the adjustment policy of the first node at least includes: node screening, node folding, node addition, node element adjustment, node deletion, node allocation and the like.
Note that node folding is an operation triggered by a node having a child node, and when the adjustment policy is node folding, elements of the child node of the node are collapsed.
The node element adjustment in the embodiment of the application comprises the following steps: and adjusting the node marks and adjusting the node texts. The adjusting comprises the following steps: addition, deletion, modification, etc.
The node labels may be labels for classification, for example: p0, P1, etc.; node labels may also be labels for displaying unique meanings, such as: and (5) marking by hooking.
In the embodiment of the application, the node allocation is to allocate the nodes to the corresponding objects in the scene of multi-terminal collaborative writing of the mind map, display information of the corresponding objects in the peripheral range of the allocated nodes, and if the objects need to display only the nodes allocated to the objects based on the mind map after node allocation, when the objects trigger the operation of displaying the allocated nodes, the nodes with hierarchical connection relation between the root nodes and the allocated nodes and the corresponding descendant nodes of the allocated nodes are screened out through a node screening strategy according to the allocated objects.
The nodes with hierarchical connection relation between the root node and the distributed nodes comprise the root node and the distributed nodes.
It should be noted that, the display information of the object may include at least one of the following: the avatar information of the object, nickname information of the object, and the like, which is not limited in this application.
The embodiment of the application determines at least one first node based on the adjustment policy.
In the embodiment of the present application, the first node is a node in the mind map, which responds to a node adjustment operation triggered by the mind map, and the data is changed correspondingly due to an adjustment policy.
If the adjustment policy is node folding, the node to be folded is taken as the first node; if the adjustment strategy is newly added, the node triggered when the object triggers the node adjustment operation and the newly added node are used as the first node; if the adjustment strategy is node element adjustment, taking a node needing element adjustment as a first node; if the adjustment policy is node deletion, the node needing to be deleted is taken as a first node.
Referring to fig. 4, the adjustment policy is taken as an example of node element adjustment. If a P0 flag is added for node 8 as in fig. 4, the first node is node 8.
If the adjustment policy is node screening, the nodes which do not meet the screening condition need to be adjusted, and the root node and the nodes which need to be screened are taken as boundaries of corresponding branches according to the positions of the nodes which need to be screened, and the nodes which do not belong to the boundaries on each branch in the mind map are taken as first nodes.
For example, if a node with a P0 label needs to be screened out, the node that needs to be screened out is the node with the P0 label.
Referring to fig. 5, if a node with a P0 mark in the mind map needs to be screened, based on the position of the node with the P0 mark on each branch in the mind map, the root node and the node with the P0 mark are used as the boundaries of the corresponding branches, and the nodes 4, 5, 7, 9, 11, 12, 13 and 15 in the mind map are determined, and the nodes are the first nodes.
For example, if the adjustment policy is allocated to a node, and the node element information of the node needs to be adjusted, the node allocated by the triggered node is taken as the first node. And the front end needs to send the object identification of the object corresponding to the allocated node to the server, obtain the object display information of the object returned by the server, and determine the corresponding object display element according to the object display information, and then the node element information of the node comprises the object display element of the object.
After node allocation, if an object triggers node screening operation to screen out nodes allocated to the object, determining an adjustment strategy as node screening, and adjusting nodes not allocated to the object, wherein the positions of the nodes to be screened are determined according to the positions of the nodes to be screened, the root node and the nodes to be screened are taken as boundaries of corresponding branches, and the nodes which do not belong to the boundaries on each branch in the mind map are taken as first nodes.
Wherein the nodes to be screened are the nodes allocated to the object.
After a node is assigned to an object, the assigned node and its descendants are used as the nodes assigned to the object.
Illustratively, based on the fact that if node 3 is assigned to an object as shown in fig. 5, then node 3 and nodes 13, 14, 15 and 16 are considered as nodes assigned to the object, then the first node is: node 2, node 4-node 12.
The embodiment of the application selects a reference node in the mind map based on the determined adjustment strategy and the first node.
Wherein the hierarchy level of the reference node is not lower than any one of the first nodes;
it should be noted that, in the embodiment of the present application, if there is a first node, the reference node is the first node, or the reference node is a node that has a hierarchical connection relationship with the first node and has a hierarchical level not lower than the first node; if a plurality of first nodes exist, the reference node is a first node which has a connection relation with other first nodes and has a hierarchy not lower than the other first nodes in the plurality of first nodes, or the reference node is a node which has a hierarchy connection relation with all the first nodes and has a hierarchy level not lower than the first nodes.
For example, in the case where there is one first node, as shown in fig. 6A, if the first node is the node 8 shown in fig. 6A, the reference node may be any one of the following: node 1, node 2, node 8.
Illustratively, in the case where there are a plurality of first nodes, as shown in fig. 6B, if the first node is node 4, node 5, node 7, node 9, node 11, node 12, node 13, node 15 as shown in fig. 6B, the reference node is node 1.
For example, when there is a first node and the adjustment policy is not node deletion, the embodiment of the present application may determine a reference node by any one of the following ways:
mode 1, taking a first node as a reference node;
mode 2, taking a father node of a first node as a reference node;
mode 3, the root node of the first node is used as the reference node.
In an alternative embodiment, when the adjustment policy is node deletion, a parent node of the first node may be used as a reference node, or a root node of the first node may be used as a reference node.
It should be noted that, the above method for determining the reference node is a method provided in the embodiment of the present application, and if the condition in the method is not satisfied, it is determined that the reference node cannot be determined by using the method.
For example, if the first node does not have a parent node, the conditions in the above-described modes 2 and 3 are not satisfied, and the reference node cannot be determined using modes 2 and 3.
The method and the device are used for generating the node mapping relation corresponding to each node in the mind map based on the mind map of the triggered node adjustment operation according to the traversing copy of the full data corresponding to the mind map.
In the embodiment of the application, the node mapping relationship includes a hierarchical connection relationship between nodes.
Optionally, the embodiment of the present application may determine a reference node corresponding to the first node based on the node mapping relationship.
Step S203, traversing a reference node and corresponding offspring nodes to obtain at least one target node and corresponding adjustment results;
wherein, the target node is: after executing the adjustment strategy, the node presents the node with the affected state, and the adjustment result is: executing node information after adaptive adjustment by referring to an adjustment strategy;
in this embodiment of the present application, the node information includes node configuration information and node element information, where the node configuration information includes: the node coordinates, node element information includes: displaying the element;
the display elements comprise node text elements, node marking elements and object display elements.
As shown in fig. 7, a flowchart for obtaining a target node and a corresponding adjustment result according to an embodiment of the present application includes the following specific steps:
step S701, based on an adjustment strategy, obtaining a corresponding node adjustment mode;
the node adjustment mode comprises at least one of coordinate adjustment and element adjustment;
in the embodiment of the application, if the adjustment policy affects the node coordinates of the first node or affects the node coordinates of other nodes, determining that the node adjustment mode is coordinate adjustment; if the adjustment policy affects the display element of the first node, determining the node adjustment mode as element adjustment.
Optionally, if the adjustment strategy is: node screening, determining that the corresponding node adjustment mode is as follows: coordinate adjustment;
it should be noted that, in the embodiment of the present application, after node screening, only the screened nodes and the nodes having the hierarchical connection relationship between the node to be screened and the root node are displayed, so that the node coordinates of the screened nodes are affected, and the node adjustment mode is determined to be coordinate adjustment.
Optionally, if the adjustment strategy is: and adjusting the node elements, and determining the corresponding node adjustment mode to be: element adjustment;
It should be noted that, in the embodiment of the present application, the node element is adjusted to affect the element displayed by the node, and then the node adjustment mode is determined to be element adjustment.
The elements of the node presentation may include text, node marks, pictures, and the like.
Optionally, if the adjustment strategy is: and if the node is newly added, determining that the corresponding node adjustment mode is as follows: coordinate adjustment and element adjustment.
When the node adjustment operation corresponding to the node addition is triggered, the node addition affects the node coordinates of the newly added node and affects the display elements of the newly added node because the newly added node does not exist in the presented mind map, and then the node adjustment mode is determined to be coordinate adjustment and element adjustment.
Alternatively, the embodiment of the present application may determine the node adjustment manner as coordinate adjustment and element adjustment for each policy, which is not limited in this application.
Step S702, selecting at least one target node from a reference node and corresponding offspring nodes based on a node adjustment mode;
the descendant nodes of the reference node are nodes which have a hierarchical connection relation with the reference node and the hierarchical level is smaller than the hierarchical level of the reference node.
For example, as shown in fig. 8, based on fig. 6A, if the determined reference node is node 2, each descendant node of the determined reference node is: node 4, node 5, node 6, node 7, node 8, node 9, node 10, node 11, node 12.
Optionally, the embodiment of the present application selects at least one target node based on the node adjustment mode according to the information associated with the node adjustment mode in the obtained node information of the reference node and the corresponding offspring nodes.
The node information includes node configuration information and node element information, wherein the node configuration information includes basic information of the node, and the node element information includes display element information of the node.
In implementation, if the node adjustment mode comprises coordinate adjustment, acquiring node configuration information in the node information; and if the node adjustment mode comprises element adjustment, acquiring node element information in the node information.
The node configuration information includes: node id, node two-dimensional coordinates (e.g., x-coordinate and y-coordinate of node), size of node area (e.g., length, width, height of node area), node text content, node state, node collapsed state, hierarchical connection relationship of nodes, etc. The node element information comprises a display element, wherein the display element comprises at least one of the following components: node text elements, node markup elements, and so forth.
Optionally, when the obtained adjustment policy includes adjustment of text content in element adjustment, the obtained association information may be node element information including a node text element; when the acquired adjustment policy contains a marking element adjustment in the element adjustment, the acquired association information may be node element information containing a node marking element.
Exemplary, the node configuration information in this embodiment of the present application is shown in fig. 9, where id represents a node id, x and y represent two-dimensional coordinates of a node, width, height and depth represent dimensions of a node area, label represents a node text element, isHide represents a node state, collapsed represents a node folding state, and child array represents a hierarchical connection relationship of nodes.
The node state isHide may be a hidden state or a non-hidden state, and the node folding state collapsed may be a folding state or a non-folding state.
It should be noted that, the node text element label may be text content input by the object.
In the embodiment of the present application, the child array includes node configuration information of a child node corresponding to the node, which can represent a hierarchical connection relationship of the node.
Therefore, according to the node adjustment mode, the method and the device acquire the associated information in the node information, so that the number of acquired nodes can be reduced, the time for data processing is shortened, and the data processing efficiency is improved.
In practice, the embodiments of the present application select at least one target node according to at least one of the following manners:
in the first mode, when the node adjustment mode includes coordinate adjustment, at least one target node is selected from a reference node and corresponding descendant nodes.
Wherein, the target node is: and after the coordinates of at least one first node are adjusted, the coordinates of the nodes are adaptively adjusted.
Optionally, the embodiment of the present application selects at least one target node according to the following manner, and the specific process includes steps A1-A2:
a1, when a node adjustment mode comprises coordinate adjustment, acquiring node configuration information in associated node information;
in addition, in the embodiment of the present application, the node configuration information in the node information associated with the full-scale data is obtained according to the full-scale data corresponding to the mind map of the triggered node adjustment operation.
The associated node information is node information corresponding to a reference node and each corresponding descendant node.
Optionally, the embodiment of the present application determines node configuration information corresponding to a reference node and each corresponding descendant node based on the generated node mapping relationship.
It should be noted that, in the embodiment of the present application, the node mapping relationship may be expressed as a layoutMap.
The node mapping relation comprises a hierarchical connection relation among the nodes, and comprises mapping relations between each node and corresponding node configuration information.
In implementation, each descendant node of a reference node can be determined based on a hierarchical connection relationship between nodes in the node mapping relationship, and node configuration information corresponding to each descendant node is determined based on a mapping relationship between the nodes in the node mapping relationship and the node configuration information.
A2, selecting at least one target node from one reference node and each corresponding descendant node based on the acquired node configuration information of the reference node and each corresponding descendant node;
wherein, the target node is: after the coordinates of at least one first node are adjusted, the coordinates of the nodes are adaptively adjusted;
optionally, in the embodiment of the present application, respective node configuration information of a reference node and corresponding offspring nodes is acquired, a coordinate transformation function is input, and coordinate transformation operation is performed on node coordinates of the reference node and corresponding offspring nodes.
The node coordinates after the coordinate transformation may or may not be adaptively adjusted.
In the embodiment of the application, the node with the coordinates adaptively adjusted is used as the target node.
Optionally, after executing the node configuration information obtained in step A2, the embodiment of the present application may further select at least one target node based on the node states of one reference node and corresponding descendant nodes.
Illustratively, at least one target node is selected among the nodes in the non-hidden state based on the node state of one reference node and the node states of the respective descendant nodes.
Based on the node status, the embodiment of the present application selects at least one target node through steps B1-B2:
step B1, determining a reference node and nodes in non-hidden states in corresponding descendant nodes through traversing node states in the obtained node configuration information;
and B2, inputting the acquired node configuration information corresponding to the node in the non-hidden state into a coordinate transformation function, and carrying out coordinate transformation processing on the node coordinates in the non-hidden state.
Wherein, the target node is: aiming at the node adjustment mode, the node state is a non-hidden state, and the node information is adaptively adjusted.
Therefore, when the node data is processed, the node data with the hidden node state is not included, so that the amount of the node data to be processed is reduced, and the processing efficiency is improved.
And when the node adjustment mode comprises element adjustment, selecting at least one target node from one reference node and corresponding descendant nodes.
Wherein, the target node is: after element adjustment is performed on at least one first node, node elements are adaptively adjusted.
Optionally, the embodiment of the present application selects at least one target node according to the following manner, and the specific process includes steps C1 to C2:
step C1, when the node adjustment mode comprises element adjustment, acquiring node element information in the associated node information;
note that, in the embodiment of the present application, node element information in node information associated with full data is obtained according to full data corresponding to a mind map of a triggered node adjustment operation.
The associated node information is node information corresponding to a reference node and each corresponding descendant node.
Step C2, selecting at least one target node from one reference node and each corresponding descendant node based on the acquired node element information of the reference node and each corresponding descendant node;
Wherein, the target node is: after element adjustment is performed on at least one first node, node elements are adaptively adjusted.
When the node adjustment modes are coordinate adjustment and element adjustment, at least one target node selected in the first mode and at least one target node selected in the second mode are used as the final at least one target node.
Step S703, using the adjusted node information obtained for the at least one target node as an adjustment result of the at least one target node.
Optionally, the following cases are included in the embodiments of the present application:
when the node adjustment mode comprises coordinate adjustment, taking the node coordinates after the adjustment of the target node as an adjustment result of the target node;
when the node adjustment mode comprises element adjustment, taking the node element after the target node adjustment as an adjustment result of the target node;
when the node adjustment mode comprises coordinate adjustment and element adjustment, the following operations are respectively executed for each target node: when the node coordinates contained in the node information are adaptively adjusted, the node coordinates after the adjustment of the corresponding target nodes are used as adjustment results of the target nodes; when the display elements contained in the node information are adaptively adjusted, the node elements adjusted by the corresponding target nodes are used as adjustment results of the target nodes.
It should be noted that, the node coordinates and the display elements included in the node information corresponding to the target node may be adaptively adjusted, and both the adjusted node coordinates and the adjusted node elements are used as the adjustment results of the target node.
And step S204, re-rendering the mind map based on the adjustment result of at least one target node to obtain an updated mind map.
Among them, the embodiment of the present application exemplifies the obtained updated mind map for several adjustment strategies:
exemplary 1, referring to fig. 10, if the adjustment policy corresponding to the node 3 is node folding, and the mind map is re-rendered based on the adaptively adjusted presentation element of the target node, the child nodes (node 4 and node 5) of the node 3 are folded in the obtained updated mind map.
Referring to fig. 11, in example 2, if the adjustment policy is to screen the P0 marked node, the mind map is re-rendered based on the adaptively adjusted coordinate element of the target node, and only the node with the P0 mark and the node with the P0 mark having the hierarchical connection relationship with the root node, for example, the node 1, the node 2, the node 3, the node 6, the node 8, the node 10, the node 14 and the node 16 are shown in the obtained updated mind map.
It should be noted that, in the step S702, the rendering process corresponding to the mode may be referred to as a subtree rendering process by selecting the target node in the mode one; for the manner of selecting the target node through the manner two, the embodiment of the application may refer to a rendering process corresponding to the manner as a local rendering process.
Optionally, in the local rendering process, the embodiment of the application encapsulates the main rendering logic into a function called caseRefresh, when the node adjustment operation is triggered for the mind map, the id of the reference node is obtained, the node of the subtree is obtained according to the reference node id, and the node of the object is rendered by calling the Refresh function of the node.
In the rendering process, a node which is different from node element information in the mind map is used as a target node for re-rendering.
As shown in fig. 12, an overall flowchart of node screening according to an embodiment of the present application includes the following specific steps:
step S1201, responding to the node adjustment operation triggered by the mind map, obtaining a node screening policy, and obtaining full data corresponding to the mind map.
Note that, the full-scale data in the embodiment of the present application is data copied from the original data corresponding to the mind map. After the object triggers the node adjustment operation aiming at the mind map, the full data is correspondingly changed according to the node adjustment operation.
Optionally, in the embodiment of the present application, the main rendering logic is encapsulated as a function called caseLayout, where a parameter is a node id of a reference node, and by using the function, a total amount of tree node data is obtained, and node configuration information in node information is copied.
And determining parent-child relationships of the nodes according to the hierarchical connection relationship child arrays of the nodes in the node configuration information, thereby forming a tree structure.
In the process of traversing the copy, a node mapping relationship of the node is generated, and the node mapping relationship in the application may also be called a layoutMap.
Step S1202, traversing the reference node and corresponding descendant nodes by taking the root node in the mind map as the reference node, and screening out nodes with node states being non-hidden states.
Optionally, in the embodiment of the present application, based on acquiring the total data corresponding to the root node and each corresponding offspring node, and performing deep traversal on the acquired total data, if the node state isHide is true, the hidden state is determined, and if the node state isHide is false, the non-hidden state is determined.
The node configuration information of each node in the non-hidden state is obtained by removing the node in the hidden state in the obtained node configuration information.
It should be noted that, the obtained node configuration information of each non-hidden state node may be referred to as a showTree.
Step S1203, performing coordinate transformation operation on the nodes whose node states are not hidden, and selecting at least one target node.
The node configuration information containing the node in the non-hidden state is transmitted into a coordinate transformation function, and the node configuration information containing the updated node coordinates is obtained.
It should be noted that the coordinate transformation function may be a layoutMethod.
Optionally, according to the obtained node coordinates in the node configuration information containing the new coordinate information, the node coordinates in the original data corresponding to the mind map may be updated.
It should be noted that, the obtained target node is: nodes not represented in the mind map, and nodes represented in the mind map but the data in the corresponding node configuration information are not the same. The mind map is updated without node adjustment operations from the object.
The node configuration information of the corresponding node is obtained according to the node mapping relation layoutMap. The node configuration information comprises updated node coordinates, and the mind map is re-rendered based on the updated node coordinates.
In the implementation, in the process of determining the target node, the node configuration information of the node having the hierarchical connection relationship with the node can be obtained according to the hierarchical connection relationship child array of the node contained in the node configuration information, and the node configuration information is compared with the node corresponding to the mind map to determine the target node.
And step 1204, re-rendering the mind map based on the target node and the corresponding adjustment result to obtain an updated mind map.
By the method of the embodiment of the application, the following beneficial effects can be brought:
1. and (5) improving the rendering speed.
In the case of the number of nodes being 1w+, the time consumption of the node adding/deleting operation is about 10-20 ms, and the related technology is about 80ms, so that the rendering speed is improved by at least 4 times.
2. What is seen is the resulting presentation.
And after the object is screened according to the corresponding condition, directly presenting the result on the canvas, and obtaining the result without distinguishing or jumping of a special style.
3. And more nodes are carried, and the operation is smoother.
Currently, under a service scene, the thought guide graph can bear 20272 nodes, and operation is not stuck.
4. Under the multi-terminal cooperative scene, the mutual influence is avoided.
In the scene of multi-terminal collaborative writing of the mind map, each person can only watch the nodes allocated to the person, after the object screens the nodes allocated to the person, if the object changes the node state of the nodes, the source data is only required to be modified, and the mind map does not need to be re-rendered to other objects.
That is, when an object changes the node state, the mind map after the operation of the object may not be rendered to other objects, and when the other objects cancel the filtering, the changed content can be seen.
For convenience of description, the above parts are respectively described as functionally divided into modules. Of course, the functions of each module may be implemented in the same piece or pieces of software or hardware when implementing the present application.
Those skilled in the art will appreciate that the various aspects of the present application may be implemented as a system, method, or program product. Accordingly, aspects of the present application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
The specific implementation manner of each module in the apparatus in the above embodiment has been described in detail in the embodiment related to the method, and will not be described in detail herein.
Based on the same inventive concept, the embodiments of the present application provide a device for rendering a mind map, which has a similar principle to that of the above embodiments, so that the implementation of the device may refer to the implementation of the above method, and the repetition is omitted.
As shown in fig. 13, a device 1300 for rendering a mind map according to an embodiment of the present application includes a rendering module 1301, a selecting module 1302, a traversing module 1303, and a rendering module 1304.
The presentation module 1301 is configured to present a mind map, where the mind map includes a plurality of nodes, each node represents a logical point in the mind map, and a hierarchical connection relationship between the nodes represents a logical association between the corresponding logical points;
a selection module 1302, configured to obtain an adjustment policy of at least one first node in response to a node adjustment operation triggered by the mind map, and select a reference node in the mind map, where a level of the reference node is not lower than any one of the first nodes;
The traversing module 1303 is configured to traverse the one reference node and each corresponding offspring node to obtain at least one target node and a corresponding adjustment result; wherein the target node is: after executing the adjustment strategy, the node presents the node with the affected state, and the adjustment result is: executing the node information after the adaptive adjustment by referring to the adjustment strategy;
and a rendering module 1304, configured to re-render the mind map based on the adjustment result of the at least one target node, to obtain an updated mind map.
In a possible embodiment, the node information includes node configuration information and node element information, the node configuration information including: node coordinates, the node element information including: displaying the element; the traversing module 1303 is specifically configured to:
based on the adjustment strategy, obtaining a node adjustment mode of the at least one first node, wherein the node adjustment mode comprises at least one of coordinate adjustment and element adjustment;
selecting at least one target node from the reference node and the corresponding offspring nodes based on the node adjustment mode; wherein the target node is: aiming at the node adjustment mode, the node information is adaptively adjusted;
And taking the adjusted node information obtained for the at least one target node as an adjustment result of the at least one target node.
In one possible embodiment, the traversing module 1303 is specifically configured to:
if the adjustment strategy is: node screening, determining that the corresponding node adjustment mode is as follows: coordinate adjustment;
if the adjustment strategy is: and adjusting the node elements, and determining the corresponding node adjustment mode to be: element adjustment;
if the adjustment strategy is: and if the node is newly added, determining that the corresponding node adjustment mode is as follows: coordinate adjustment and element adjustment.
In one possible embodiment, the traversing module 1303 is specifically configured to:
and selecting at least one target node according to the information related to the node adjustment mode in the acquired node information of the reference node and the corresponding descendant nodes based on the node adjustment mode.
In a possible embodiment, the traversing module is specifically configured to:
when the node adjustment mode comprises coordinate adjustment, determining that the associated node information comprises node configuration information, and selecting at least one target node from the reference node and the corresponding descendant nodes based on the acquired node configuration information of the reference node and the corresponding descendant nodes, wherein the target node is: after the coordinates of the at least one first node are adjusted, the node coordinates are adaptively adjusted;
When the node adjustment mode comprises element adjustment, determining that the associated node information comprises node element information, and selecting at least one target node from the reference node and the corresponding descendant nodes based on the acquired node element information of the reference node and the corresponding descendant nodes, wherein the target node is: and after element adjustment is performed on the at least one first node, the node element is adaptively adjusted.
In a possible embodiment, the node configuration information further includes: node status; the traversing module 1303 is specifically configured to:
and selecting at least one target node from the nodes in the non-hidden state based on the node state of the reference node and the node states of the corresponding descendant nodes.
In one possible embodiment, the traversing module 1303 is specifically configured to:
when the node adjustment mode comprises coordinate adjustment, taking the node coordinates after the adjustment of the target node as an adjustment result of the target node;
when the node adjustment mode comprises element adjustment, taking the node element after the adjustment of the target node as an adjustment result of the target node;
When the node adjustment mode comprises coordinate adjustment and element adjustment, the following operations are respectively executed for each target node: when the node coordinates contained in the node information are adaptively adjusted, the node coordinates after the adjustment of the corresponding target node are used as an adjustment result of the target node; and when the display elements contained in the node information are adaptively adjusted, the node elements after the adjustment of the corresponding target nodes are used as adjustment results of the target nodes.
Based on the same inventive concept as the above embodiment, the present application further provides an electronic device, and the principle of solving the problem of the electronic device is similar to that of the above embodiment, so that the implementation of the electronic device may refer to the implementation of the above method, and the repetition is omitted.
Referring to fig. 14, the electronic device 140 may include at least a processor 141, and a memory 142. Wherein the memory 142 stores program code that, when executed by the processor 141, causes the processor 141 to perform the steps performed by the mind map rendering method in the above embodiments of the present application.
An electronic device 150 according to this embodiment of the present application is described below with reference to fig. 15. The electronic device 150 of fig. 15 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present application.
As shown in fig. 15, the electronic device 150 is in the form of a general-purpose electronic device. Components of electronic device 150 may include, but are not limited to: at least one processing unit 151, the above-mentioned at least one memory unit 152, a bus 153 connecting the different system components, including the memory unit 152 and the processing unit 151.
Bus 153 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 152 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 1521 and/or cache memory 1522, and may further include Read Only Memory (ROM) 1523.
The storage unit 152 may also include a program/utility 1515 having a set (at least one) of program modules 1524, such program modules 1524 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The electronic device 150 may also communicate with one or more external devices 154 (e.g., keyboard, pointing device, etc.), with one or more devices that enable objects to interact with the electronic device 150, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 150 to communicate with one or more other electronic devices. Such communication may occur through an input/output (I/O) interface 155. Also, the electronic device 150 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 156. As shown, network adapter 156 communicates with other modules for electronic device 150 over bus 153. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 150, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
Based on the same inventive concept as the above-described method embodiments, various aspects of the interface presentation method provided in the present application may also be implemented in the form of a program product comprising program code for causing an electronic device to perform the steps performed by a server in the interface presentation method according to various exemplary embodiments of the present application described in the present specification when the program product is run on the electronic device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (9)

1. A method of rendering a mind map, the method comprising:
presenting a mind map, wherein the mind map comprises a plurality of nodes, each node represents one logic point in the mind map, and the hierarchical connection relationship among the nodes represents the logic association among the corresponding logic points;
responding to node adjustment operation triggered by aiming at the mind map, obtaining an adjustment strategy of at least one first node, and selecting a reference node in the mind map, wherein the level of the reference node is not lower than any first node, the first node is a node which responds to the change of node adjustment operation data, the reference node is selected from the at least one first node, or the reference node is a node which has a level connection relation with the at least one first node in the mind map, and the adjustment strategy comprises node screening, node folding, node adding, node element adjustment, node deleting and node distribution;
Based on the adjustment strategy, a corresponding node adjustment mode is obtained, wherein the node adjustment mode comprises at least one of coordinate adjustment and element adjustment; selecting at least one target node from the reference node and the corresponding offspring nodes based on the node adjustment mode; the adjusted node information obtained for the at least one target node is used as an adjustment result of the at least one target node; wherein the target node is: aiming at the node adjustment mode, the node information is adaptively adjusted, and the adjustment result is that: executing the adaptively adjusted node information with reference to the adjustment policy, wherein the node information comprises node configuration information and node element information, and the node configuration information comprises: node coordinates, the node element information including: displaying the element;
and re-rendering the mind map based on the adjustment result of the at least one target node to obtain an updated mind map.
2. The method of claim 1, wherein the obtaining the corresponding node adjustment based on the adjustment policy comprises:
If the adjustment strategy is: node screening, determining that the corresponding node adjustment mode is as follows: coordinate adjustment;
if the adjustment strategy is: and adjusting the node elements, and determining the corresponding node adjustment mode to be: element adjustment;
if the adjustment strategy is: and if the node is newly added, determining that the corresponding node adjustment mode is as follows: coordinate adjustment and element adjustment.
3. The method of claim 1, wherein selecting at least one target node among the one reference node and the corresponding descendant nodes based on the node adjustment, comprises:
and selecting at least one target node according to the information related to the node adjustment mode in the acquired node information of the reference node and the corresponding descendant nodes based on the node adjustment mode.
4. The method of claim 3, wherein the selecting at least one target node based on the node adjustment method according to the obtained node information associated with the node adjustment method from the node information of the reference node and the corresponding offspring nodes, comprises:
when the node adjustment mode comprises coordinate adjustment, acquiring node configuration information in associated node information, and selecting at least one target node from the reference node and the corresponding descendant nodes based on the acquired node configuration information of the reference node and the corresponding descendant nodes, wherein the target node is: after the coordinates of the at least one first node are adjusted, the node coordinates are adaptively adjusted;
When the node adjustment mode comprises element adjustment, acquiring node element information in associated node information, and selecting at least one target node from the reference node and the corresponding descendant nodes based on the acquired node element information of the reference node and the corresponding descendant nodes, wherein the target node is: and after element adjustment is performed on the at least one first node, the node element is adaptively adjusted.
5. The method of claim 4, wherein the node configuration information further comprises: node status;
the selecting at least one target node from the one reference node and the corresponding descendant nodes based on the obtained node configuration information of the one reference node and the corresponding descendant nodes, including:
and selecting at least one target node from the nodes in the non-hidden state based on the node state of the reference node and the node states of the corresponding descendant nodes.
6. The method according to any of claims 2-5, wherein said adapting the adapted node information obtained for the at least one target node as an adaptation result of the at least one target node comprises:
When the node adjustment mode comprises coordinate adjustment, taking the node coordinates after the adjustment of the target node as an adjustment result of the target node;
when the node adjustment mode comprises element adjustment, taking the node element after the adjustment of the target node as an adjustment result of the target node;
when the node adjustment mode comprises coordinate adjustment and element adjustment, the following operations are respectively executed for each target node: when the node coordinates contained in the node information are adaptively adjusted, the node coordinates after the adjustment of the corresponding target node are used as an adjustment result of the target node; and when the display elements contained in the node information are adaptively adjusted, the node elements after the adjustment of the corresponding target nodes are used as adjustment results of the target nodes.
7. A module for rendering a mind map, comprising:
the system comprises a presentation module, a display module and a display module, wherein the presentation module is used for presenting a mind map, the mind map comprises a plurality of nodes, each node represents one logic point in the mind map, and the hierarchical connection relation among the nodes represents the logic association among the corresponding logic points;
the selection module is used for responding to node adjustment operation triggered by the mind map, obtaining an adjustment strategy of at least one first node, and selecting a reference node in the mind map, wherein the level of the reference node is not lower than any first node, the first node is a node responding to the change of the node adjustment operation data, the reference node is selected from the at least one first node, or the reference node is a node which has a level connection relation with the at least one first node in the mind map, and the adjustment strategy comprises node screening, node folding, node addition, node element adjustment, node deletion and node distribution;
The traversing module is used for obtaining a corresponding node adjustment mode based on the adjustment strategy, wherein the node adjustment mode comprises at least one of coordinate adjustment and element adjustment; selecting at least one target node from the reference node and the corresponding offspring nodes based on the node adjustment mode; the adjusted node information obtained for the at least one target node is used as an adjustment result of the at least one target node; wherein the target node is: aiming at the node adjustment mode, the node information is adaptively adjusted; wherein the target node is: after executing the adjustment strategy, the node presents the node with the affected state, and the adjustment result is: executing the adaptively adjusted node information with reference to the adjustment policy, wherein the node information comprises node configuration information and node element information, and the node configuration information comprises: node coordinates, the node element information including: displaying the element;
and the rendering module is used for re-rendering the mind map based on the adjustment result of the at least one target node to obtain an updated mind map.
8. An electronic device comprising a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1-6.
9. A computer readable storage medium, characterized in that it comprises a computer program for causing an electronic device to execute the steps of the method according to any one of claims 1-6 when said computer program is run on the electronic device.
CN202311282814.4A 2023-10-07 2023-10-07 Thinking guide drawing rendering method and device and electronic equipment Active CN117035067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311282814.4A CN117035067B (en) 2023-10-07 2023-10-07 Thinking guide drawing rendering method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311282814.4A CN117035067B (en) 2023-10-07 2023-10-07 Thinking guide drawing rendering method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN117035067A CN117035067A (en) 2023-11-10
CN117035067B true CN117035067B (en) 2024-01-23

Family

ID=88632161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311282814.4A Active CN117035067B (en) 2023-10-07 2023-10-07 Thinking guide drawing rendering method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117035067B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545057A (en) * 2017-08-29 2018-01-05 广州视源电子科技股份有限公司 Show method, apparatus, equipment and the storage medium of mind map
CN108509544A (en) * 2018-03-20 2018-09-07 腾讯科技(深圳)有限公司 The acquisition methods and device of mind map, equipment and readable storage medium storing program for executing
CN109408685A (en) * 2018-09-29 2019-03-01 天津字节跳动科技有限公司 Mind map methods of exhibiting and device
CN111274777A (en) * 2020-01-21 2020-06-12 维沃移动通信有限公司 Thinking guide graph display method and electronic equipment
CN112181257A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Display method and device of mind map, terminal and storage medium
CN112256259A (en) * 2020-10-23 2021-01-22 网易(杭州)网络有限公司 Method, device and equipment for processing thinking guide graph and storage medium
CN113887182A (en) * 2021-09-29 2022-01-04 平安普惠企业管理有限公司 Table generation method, device, equipment and storage medium
CN114419230A (en) * 2022-01-21 2022-04-29 北京字跳网络技术有限公司 Image rendering method and device, electronic equipment and storage medium
CN114896960A (en) * 2022-05-23 2022-08-12 腾讯科技(深圳)有限公司 Document processing method, apparatus, computer device, readable storage medium and product
CN115115740A (en) * 2022-04-21 2022-09-27 腾讯科技(深圳)有限公司 Thinking guide graph recognition method, device, equipment, medium and program product
WO2022198823A1 (en) * 2021-03-25 2022-09-29 深圳市商汤科技有限公司 Data processing method and apparatus, electronic device, computer-readable storage medium and program
WO2023092254A1 (en) * 2021-11-23 2023-06-01 广州视源电子科技股份有限公司 Mind map adjustment method, storage medium and device
CN116401407A (en) * 2023-03-07 2023-07-07 苏州云体科技有限公司 Node attribute configuration method, device, equipment and storage medium of mind map

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545057A (en) * 2017-08-29 2018-01-05 广州视源电子科技股份有限公司 Show method, apparatus, equipment and the storage medium of mind map
CN108509544A (en) * 2018-03-20 2018-09-07 腾讯科技(深圳)有限公司 The acquisition methods and device of mind map, equipment and readable storage medium storing program for executing
CN109408685A (en) * 2018-09-29 2019-03-01 天津字节跳动科技有限公司 Mind map methods of exhibiting and device
CN111274777A (en) * 2020-01-21 2020-06-12 维沃移动通信有限公司 Thinking guide graph display method and electronic equipment
CN112181257A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Display method and device of mind map, terminal and storage medium
CN112256259A (en) * 2020-10-23 2021-01-22 网易(杭州)网络有限公司 Method, device and equipment for processing thinking guide graph and storage medium
WO2022198823A1 (en) * 2021-03-25 2022-09-29 深圳市商汤科技有限公司 Data processing method and apparatus, electronic device, computer-readable storage medium and program
CN113887182A (en) * 2021-09-29 2022-01-04 平安普惠企业管理有限公司 Table generation method, device, equipment and storage medium
WO2023092254A1 (en) * 2021-11-23 2023-06-01 广州视源电子科技股份有限公司 Mind map adjustment method, storage medium and device
CN116490845A (en) * 2021-11-23 2023-07-25 广州视源电子科技股份有限公司 Thinking guide adjustment method, storage medium and device
CN114419230A (en) * 2022-01-21 2022-04-29 北京字跳网络技术有限公司 Image rendering method and device, electronic equipment and storage medium
CN115115740A (en) * 2022-04-21 2022-09-27 腾讯科技(深圳)有限公司 Thinking guide graph recognition method, device, equipment, medium and program product
CN114896960A (en) * 2022-05-23 2022-08-12 腾讯科技(深圳)有限公司 Document processing method, apparatus, computer device, readable storage medium and product
CN116401407A (en) * 2023-03-07 2023-07-07 苏州云体科技有限公司 Node attribute configuration method, device, equipment and storage medium of mind map

Also Published As

Publication number Publication date
CN117035067A (en) 2023-11-10

Similar Documents

Publication Publication Date Title
EP1510938B1 (en) A method of providing a visualisation graph on a computer and a computer for providing a visualisation graph
US9557887B2 (en) Integrated multidimensional view of hierarchical objects
CN111931097B (en) Information display method and device, electronic equipment and storage medium
US8707200B2 (en) Object browser with proximity sorting
CN106294481B (en) A kind of air navigation aid and device based on map
CN107479871A (en) A kind of access and rendering intent of the vector data of magnanimity, electronic equipment and storage medium
CN102833110B (en) Topologic data relation management method in network management software on a large volume of data
CN114564630A (en) Method, system and medium for visualizing graph data Web3D
CN113900760B (en) Popup window display method and device
KR101150121B1 (en) Method and apparatus for constructing representations of objects and entities
CN114860356A (en) Menu management method and device based on routing lazy loading
CN104598554B (en) Webpage loading method and device
CN107621951B (en) View level optimization method and device
CN117035067B (en) Thinking guide drawing rendering method and device and electronic equipment
CN116483240A (en) Method and device for realizing space data occupying view based on list and electronic equipment
CN116778124A (en) Three-dimensional scene editing method, system, equipment and storage medium
US20220263720A1 (en) Diagramming child nodes with multiple parent nodes
CN114722112A (en) Visual list data display method and device
CN111159480B (en) Graph drawing method based on power grid GIS data
CN114090666A (en) Slide display method, apparatus, device and storage medium
CN110908647B (en) Building block type programmed object variable presenting method, device, terminal and storage medium
CN114840792A (en) Web end epidemic situation distribution visualization system and method based on gridding processing
WO2024016789A1 (en) Log data query method and apparatus, and device and medium
US11748120B1 (en) Server-based user interface rendering
CN117744590A (en) Presentation generation method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant