CN112419448A - Method, device and system for changing graph and electronic equipment - Google Patents

Method, device and system for changing graph and electronic equipment Download PDF

Info

Publication number
CN112419448A
CN112419448A CN202011297317.8A CN202011297317A CN112419448A CN 112419448 A CN112419448 A CN 112419448A CN 202011297317 A CN202011297317 A CN 202011297317A CN 112419448 A CN112419448 A CN 112419448A
Authority
CN
China
Prior art keywords
data
data format
graph
collaborative document
collaborative
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
CN202011297317.8A
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 Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202011297317.8A priority Critical patent/CN112419448A/en
Publication of CN112419448A publication Critical patent/CN112419448A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Document Processing Apparatus (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the disclosure discloses a graph changing method, a graph changing device, a graph changing system and electronic equipment. One embodiment of the method comprises: in response to the fact that an editing instruction aiming at the graph in the collaborative document is detected, data in a first data format corresponding to the graph are obtained, wherein the first data format is used for drawing the graph; converting the data in the first data format into data in a second data format, wherein the second data format is a data format for the collaborative data; generating a change instruction for the graph in the collaborative document based on the data in the second data format, wherein the change instruction comprises change information of the graph in the collaborative document; and sending a change instruction to a following terminal through the target server, wherein the following terminal is a terminal for accessing the collaborative document. The embodiment realizes the collaborative editing of the graphics in the collaborative document.

Description

Method, device and system for changing graph and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device and a system for changing a graph and electronic equipment.
Background
At present, inserting and drawing graphics in a document are very high frequency requirements, for example, a user often needs to express flow information through a flow chart in a process of writing the document. In the existing online document tool, products providing a graphic drawing function are few, and the products do not provide a strong graphic drawing capability and simultaneously support collaborative editing aiming at graphics.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a method, a device, a system and an electronic device for changing a graph, which realize collaborative editing of the graph in a collaborative document.
In a first aspect, an embodiment of the present disclosure provides a method for changing a graph, which is applied to an editing terminal, and the method includes: in response to the fact that an editing instruction aiming at the graph in the collaborative document is detected, data in a first data format corresponding to the graph are obtained, wherein the first data format is used for drawing the graph; converting the data in the first data format into data in a second data format, wherein the second data format is a data format for the collaborative data; generating a change instruction for the graph in the collaborative document based on the data in the second data format, wherein the change instruction comprises change information of the graph in the collaborative document; and sending a change instruction to a following terminal through the target server, wherein the following terminal is a terminal for accessing the collaborative document.
In a second aspect, an embodiment of the present disclosure provides a method for changing a graph, which is applied to a follow-up terminal, and includes: responding to a received change instruction for the graph in the collaborative document, and changing the data in the second data format corresponding to the current graph in the collaborative document by using change information included in the change instruction to obtain the changed data in the second data format, wherein the second data format is the data format used for the collaborative data; converting the changed data in the second data format into data in a first data format, wherein the first data format is used for drawing graphics; and changing the graph in the collaborative document by using the data in the first data format.
In a third aspect, an embodiment of the present disclosure provides a graphics modification apparatus, which is disposed in an editing terminal, and includes: the acquiring unit is used for responding to the detected editing instruction aiming at the graph in the collaborative document, and acquiring data of a first data format corresponding to the graph, wherein the first data format is a data format used for drawing the graph; the conversion unit is used for converting the data in the first data format into the data in a second data format, wherein the second data format is the data format used for the collaborative data; a generating unit, configured to generate a change instruction for a graphic in the collaborative document based on the data in the second data format, where the change instruction includes change information of the graphic in the collaborative document; and the sending unit is used for sending a change instruction to the following terminal through the target server, wherein the following terminal is a terminal for accessing the collaborative document.
In a fourth aspect, an embodiment of the present disclosure provides a graphics changing apparatus, which is disposed in a following terminal, and includes: the first changing unit is used for changing data in a second data format corresponding to a current graph in the collaborative document by using changing information included in a changing instruction in response to the fact that the changing instruction for the graph in the collaborative document is received, so that changed data in the second data format are obtained, wherein the second data format is a data format used for collaborative data; the conversion unit is used for converting the changed data in the second data format into data in a first data format, wherein the first data format is a data format used for drawing graphics; and the second changing unit is used for changing the graph in the collaborative document by using the data in the first data format.
In a fifth aspect, an embodiment of the present disclosure provides a graphic modification system, including: the editing terminal is used for responding to an editing instruction of a graph in the collaborative document, acquiring data in a first data format corresponding to the graph, converting the data in the first data format into data in a second data format, generating a change instruction of the graph in the collaborative document based on the data in the second data format, and sending the change instruction to the following terminal through the target server, wherein the first data format is a data format used for drawing the graph, the second data format is a data format used for the collaborative data, and the change instruction comprises change information of the graph in the collaborative document; and the following terminal is used for responding to the received change instruction, changing the data in the second data format corresponding to the current graph in the collaborative document by using the change information included in the change instruction to obtain the changed data in the second data format, converting the changed data in the second data format into the data in the first data format, and changing the graph in the collaborative document by using the data in the first data format.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement the graphics-altering method of the first and second aspects.
In a seventh aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the graph modification method according to the first and second aspects.
According to the method, the device and the system for changing the graph and the electronic equipment, data in a first data format corresponding to the graph is acquired by responding to the detected editing instruction aiming at the graph in the collaborative document; then, converting the data in the first data format into data in a second data format; then, generating a change instruction aiming at the graph in the collaborative document based on the data in the second data format; and finally, sending the change instruction to the following terminal through the target server. In this way, collaborative editing for graphics in a collaborative document is achieved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is an exemplary system architecture diagram in which various embodiments of the present disclosure may be applied;
FIG. 2 is a timing diagram for one embodiment of a graphic modification system according to the present disclosure;
FIG. 3 is a flow diagram for one embodiment of a method of graph modification according to the present disclosure;
FIG. 4 is a flow chart diagram of yet another embodiment of a method of graph modification according to the present disclosure;
FIG. 5 is a flow chart diagram of yet another embodiment of a method of graph modification according to the present disclosure;
FIG. 6 is a schematic structural diagram of one embodiment of a graphic modification apparatus according to the present disclosure;
FIG. 7 is a schematic structural diagram of yet another embodiment of a graphic modification apparatus according to the present disclosure;
FIG. 8 is a schematic block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the graph altering methods of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include editing terminals 1011, 1012, networks 1021, 1022, a server 103, and follower terminals 1041, 1042. A network 1021 is used to provide a medium for communication links between editing terminals 1011, 1012 and server 103. Network 1022 is the medium used to provide communications links between server 103 and the follower terminals 1041, 1042. The networks 1021, 1022 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
The user may interact with the server 103 via the network 1021 using the editing terminals 1011, 1012 to send or receive messages or the like, e.g. the editing terminals 1011, 1012 may send modification instructions to the server 103. The user may also use the follower terminals 1041, 1042 to interact with the server 103 via the network 1022 to send or receive messages or the like, e.g., the follower terminals 1041, 1042 may receive change instructions sent by the server 103. Various messaging client applications, such as document editing type applications, graphic editing type applications, instant messaging software and enterprise collaboration platforms, may be installed on the editing terminals 1011, 1012 and the follower terminals 1041, 1042.
The editing terminals 1011, 1012 may first obtain data in a first data format corresponding to a graphic in a collaborative document in response to detecting an editing instruction for the graphic in the collaborative document; then, the data in the first data format can be converted into the data in the second data format; then, a change instruction for the graph in the collaborative document can be generated based on the data in the second data format; finally, the above change instruction may be sent to the follower terminals 1041, 1042 through the server 103.
The following terminals 1041 and 1042 may first respond to a change instruction sent by the editing terminals 1011 and 1012 by using the server 103 for the graph in the collaborative document, and change the data in the second data format corresponding to the current graph in the collaborative document by using change information included in the change instruction, so as to obtain data in the second data format after the change; then, the changed data in the second data format can be converted into data in the first data format; finally, the graph in the collaborative document may be modified using the data in the first data format.
The editing terminals 1011, 1012 and the follower terminals 1041, 1042 may be hardware or software. When the editing terminal 1011, 1012 and the follower terminal 1041, 1042 are hardware, they may be various electronic devices having display screens and supporting information interaction, including but not limited to smart phones, tablet computers, laptop computers, and the like. When the editing terminals 1011, 1012 and the follower terminals 1041, 1042 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 103 may be a server that provides various services. For example, the server 103 may receive a change instruction transmitted by the editing terminals 1011, 1012 and transmit the received change instruction to the follower terminals 1041, 1042 that share the shared document with the editing terminals 1011, 1012.
The server 103 may be hardware or software. When the server 103 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 103 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for changing the graphics provided by the embodiment of the present disclosure may be executed by the editing terminals 1011, 1012, and in this case, the device for changing the graphics may be disposed in the editing terminals 1011, 1012. The graph changing method provided by the embodiment of the present disclosure may also be executed by the following terminals 1041 and 1042, and at this time, the graph changing apparatus may be disposed in the following terminals 1041 and 1042.
It should be understood that the number of editing terminals, networks, servers, and follower terminals in fig. 1 is merely illustrative. There may be any number of editing terminals, networks, servers, and follower terminals, as desired for implementation.
With continued reference to FIG. 2, a timing diagram for one embodiment of a graphic modification system according to the present disclosure is shown.
The graphic modification system of the present embodiment includes: an editing terminal and a following terminal. The editing terminal is used for responding to an editing instruction of a graph in the collaborative document, acquiring data in a first data format corresponding to the graph, converting the data in the first data format into data in a second data format, generating a change instruction of the graph in the collaborative document based on the data in the second data format, and sending the change instruction to the following terminal through the target server; and the following terminal is used for responding to the received change instruction, changing the data in the second data format corresponding to the current graph in the collaborative document by using the change information included in the change instruction to obtain the changed data in the second data format, converting the changed data in the second data format into the data in the first data format, and changing the graph in the collaborative document by using the data in the first data format.
As shown in fig. 2, in step 201, in response to detecting an editing instruction for a graphic in a collaborative document, an editing terminal acquires data in a first data format corresponding to the graphic.
In the present embodiment, the editing terminal may determine whether an editing instruction by the user for the graphics in the collaborative document is detected. The collaborative document may also be referred to as a shared document or an online document, and generally refers to a document tool used online in a browser (not local to a computer), and is characterized in that the written content of the document is automatically saved in real time, and multi-person collaborative editing is supported, that is, multiple persons are supported to edit the same document at the same time. The graphics may include, but are not limited to: a flow chart and a UML (UML-Unified Model Language) diagram.
For example, if the graph is a flowchart, the user may perform the following editing operation on the flowchart in the collaborative document: adding a graphical block in the flowchart in the collaborative document, deleting a graphical block in the flowchart in the collaborative document, and changing a graphical block in the flowchart in the collaborative document.
Here, a built-in "graphic editor" may exist in the collaborative document, a user may edit Graphics in the collaborative document as needed by using the "graphic editor", and the Graphics may exist in the document in the form of SVG (Scalable Vector Graphics) pictures after the editing is completed, so as to facilitate a reader of the document to read the Graphics.
If an editing instruction for the graph in the collaborative document is detected, the editing terminal can acquire data in a first data format corresponding to the graph. Here, the data corresponding to the graphic may be data corresponding to a graphic change portion. The first data format may be a data format for drawing graphics.
As an example, grapheiditor can be employed as the above-described graphic editor. The graphpaditor is an open source graphical editor. When the grapheiditor is used as a graphic editor in a collaborative document, the first data format is usually an XML format. If the graph editor is used, getgraph XML provided by the graph editor can be called to obtain XML-formatted data corresponding to the edited graph.
In step 202, the editing terminal converts data in the first data format into data in the second data format.
In this embodiment, the editing terminal may analyze the data in the first data format to convert the data in the first data format into data in the second data format. The second data format may be a data format for collaborative data.
As an example, collaborative editing for graphics may be implemented using a collaborative editing algorithm on the basis of graphpaditor. The collaborative editing algorithm can automatically resolve conflicts when multiple people edit the flow chart. When a collaborative editing algorithm is adopted for data collaboration, the second data format may be a JSON format.
Here, the editing terminal may convert the XML-formatted data corresponding to the graphic change portion into JSON-formatted data. The editing terminal may analyze a structure of the XML-formatted data, for example, the XML-formatted data may be composed of a top mxgraphModel tag and a plurality of mxCell, an additional child element may be provided under the mxCell, and the editing terminal may fill a content in the top mxgraphModel tag, a content in the plurality of mxCell, and a child element under the mxCell in the XML-formatted data to corresponding positions in the JSON-formatted template according to a preset positional relationship, so as to obtain the JSON-formatted data corresponding to the graphic modification part.
In step 203, the editing terminal generates a change instruction for the graphics in the collaborative document based on the data in the second data format.
In this embodiment, the editing terminal may generate a change instruction for the graphics in the collaborative document based on the data in the second data format. The modification instruction may include modification information of graphics in the collaborative document. The data in the second data format may include change information of the graphics in the collaborative document, and the change information may include a change type of the graphics, such as addition, deletion, or modification. The editing terminal may generate a modification instruction corresponding to the modification type. The change instruction is generally used to instruct a change operation to be performed with respect to the graphics in the collaborative document.
In step 204, the editing terminal sends a change instruction to the target server.
In this embodiment, the editing terminal may send the change instruction to the target server. The target server may be a server that provides support for the various functions of the collaborative document described above. The target server can receive the change instruction sent by the editing terminal and send the received change instruction to the following terminal accessing the collaborative document.
In step 205, the target server sends a change instruction to the follower terminal.
In this embodiment, the target server may send a change instruction to the follower terminal. Here, if the editing terminal accessing the collaborative document performs an editing operation on the graphic in the collaborative document, the editing terminal may send a change instruction to the follower terminal by using the target server.
In step 206, in response to receiving the change instruction, the following terminal changes the data in the second data format corresponding to the current graph in the collaborative document by using the change information included in the change instruction, so as to obtain the changed data in the second data format.
In this embodiment, the follower terminal may determine whether a change instruction for changing the graphics in the collaborative document is received. If the change instruction is received, the following terminal can change the data in the second data format corresponding to the current graph in the collaborative document by using the change information included in the change instruction to obtain the changed data in the second data format.
In step 207, the follower terminal converts the modified data in the second data format into data in the first data format.
In this embodiment, the follower terminal may convert the modified data in the second data format into data in the first data format. As an example, the follower terminal may convert the above-described modified JSON-formatted data into XML-formatted data. The follower terminal may analyze the modified JSON formatted data. For example, the following terminal may fill each content in the data in the JSON format into a corresponding position in the template in the XML format according to a preset positional relationship, so as to obtain the data in the corresponding XML format.
In step 208, the follower terminal modifies the graph in the collaborative document using the data in the first data format.
In this embodiment, the following terminal may change the graph in the collaborative document by using the converted data in the first data format. As an example, if the graphpaditor is used as the graphic editor, setgraphpaxml provided by the graphpaditor may be called to present a graphic indicated by the data in the first data format in a current graphic, so as to modify the graphic in the collaborative document.
The system provided by the above embodiment of the present disclosure realizes collaborative editing for a graphic in a collaborative document, and when a user edits a graphic (for example, a flowchart) in the collaborative document by using an editing terminal, a change process of the graphic can be presented on a following terminal accessing the collaborative document.
In some alternative implementations, the change instruction may be sent by the target server to the follower terminal by using a collaborative editing algorithm. If a plurality of persons edit the same flow chart in the collaborative document at the same time, the target server can solve the conflict by utilizing a collaborative editing algorithm, and the conflict can be solved without lock or user intervention by using the collaborative editing algorithm. The target server can solve the conflict generated by the fact that a plurality of editing terminals send the change instruction at the same time by using a collaborative editing algorithm through the following steps: the method comprises the steps of responding to the received change instructions sent by at least two user terminals, and obtaining the receiving time of the at least two change instructions, wherein the user terminals comprise the editing terminal; determining whether to modify the modification instruction based on the receiving time of the at least two modification instructions; and if so, correcting the change instruction, and sending the corrected change instruction to the following terminal. The target server may further determine whether to modify the modification instruction based on the reception times of the at least two modification instructions by: determining whether the receiving time corresponding to the change instruction sent by the editing terminal is earlier than the receiving time corresponding to the change instruction sent by other user terminals; if not, the modification instruction is modified.
As an example, if a process graph block exists in a current collaborative document, a user a and a user B edit a graph in the collaborative document at the same time, and if the target server first receives a change instruction sent by a user terminal a used by the user a: adding a decision graph block behind a first graph block in the collaborative document, and then receiving a change instruction sent by a user terminal B used by the user B: adding a data graphic block after the first graphic block in the collaborative document. If the editing terminal is the user terminal B, since the receiving time corresponding to the modification instruction sent by the user terminal B is later than the receiving time corresponding to the modification instruction sent by the user terminal a, the target server generally needs to modify the modification instruction sent by the user terminal B into: a data graphical block is added after the second graphical block in the collaborative document. And then, the modified change instruction can be sent to the following terminal, so that the conflict problem is solved.
In some optional implementations, the editing terminal may generate a change instruction for the graph in the collaborative document based on the data in the second data format in the following manner: the editing terminal may compare the data in the second data format with the target data to obtain change information of the graph in the collaborative document, and generate a change instruction including the change information. The target data may be data in a second data format corresponding to a graphic obtained by the user editing a graphic in the collaborative document last time. The data received this time is compared with the data received last time to obtain the data of the changed part of the graph. As an example, the editing terminal may determine the difference between the Data received this time and the Data received last time by using the open source library "just-diff" and convert the difference into an op (operation) in a corresponding Data-SDK (Software Development Kit), which is a Data collaborative SDK based on a collaborative editing algorithm, and the op may enable the Data to be changed from one state to another state, for example, the op from 'abc' to 'abcd' is insert ('d',3), i.e., a character d is added after the third character.
In some optional implementations, the change information may include: the position, size and category of the added graphic block in the collaborative document; or an identifier of a deleted graphic block in the collaborative document; or an identifier of the modified graphical block and a size of the modified graphical block in the collaborative document. The size of the graphic block may include a width and a height of the graphic block. The categories of the graphic blocks may include, but are not limited to: a process graph block, a decision graph block, a document graph block and a data graph block. When a flowchart is inserted in a graphic editor, a corresponding identifier is typically generated for the inserted graphic block, and thus, the identifier of the graphic block may be used to indicate the graphic block in the flowchart.
With continued reference to FIG. 3, a flow 300 of one embodiment of a graph altering method according to the present disclosure is shown. The graph changing method is applied to an editing terminal and comprises the following steps:
step 301, in response to detecting an editing instruction for a graph in the collaborative document, acquiring data in a first data format corresponding to the graph.
In the present embodiment, an execution subject of the graphic change method (e.g., the editing terminal shown in fig. 1) may determine whether an editing instruction by a user for a graphic in a collaborative document is detected. The collaborative document may also be referred to as a shared document or an online document, and generally refers to a document tool used online in a browser, and is characterized in that the content written by the document is automatically saved in real time, and multi-person collaborative editing is supported, that is, multiple persons are supported to edit the same document at the same time. The graphics may include, but are not limited to: a flow chart and a UML diagram.
For example, if the graph is a flowchart, the user may perform the following editing operation on the flowchart in the collaborative document: adding a graphical block in the flowchart in the collaborative document, deleting a graphical block in the flowchart in the collaborative document, and changing a graphical block in the flowchart in the collaborative document.
Here, a built-in "graphic editor" may exist in the collaborative document, a user may edit Graphics in the collaborative document as needed by using the "graphic editor", and the Graphics may exist in the document in the form of SVG (Scalable Vector Graphics) pictures after the editing is completed, so as to facilitate a reader of the document to read the Graphics.
If an editing instruction for a graphic in the collaborative document is detected, the execution subject may obtain data in a first data format corresponding to the graphic. Here, the data corresponding to the graphic may be data corresponding to a graphic change portion. The first data format may be a data format for drawing graphics.
As an example, grapheiditor can be employed as the above-described graphic editor. The graphpaditor is an open source graphical editor. When the grapheiditor is used as a graphic editor in a collaborative document, the first data format is usually an XML format. If the graph editor is used, getgraph XML provided by the graph editor can be called to obtain XML-formatted data corresponding to the edited graph.
Step 302, converting the data in the first data format into the data in the second data format.
In this embodiment, the execution body may analyze the data in the first data format to convert the data in the first data format into the data in the second data format. The second data format may be a data format for collaborative data.
As an example, collaborative editing for graphics may be implemented using a collaborative editing algorithm on the basis of graphpaditor. The collaborative editing algorithm can automatically resolve conflicts when multiple people edit the flow chart. When a collaborative editing algorithm is adopted for data collaboration, the second data format may be a JSON format.
Here, the execution body may convert the XML-formatted data corresponding to the graphic change portion into JSON-formatted data. The execution body may analyze a structure of the XML-formatted data, for example, the XML-formatted data may be composed of a top mxgraphcel tag and a plurality of mxCell, where additional child elements are provided under the mxCell, and the execution body may respectively fill, according to a preset positional relationship, a content in the top mxgraphcel tag, a content in the plurality of mxCell, and a child element under the mxCell in the XML-formatted data to corresponding positions in a JSON-formatted template, so as to obtain JSON-formatted data corresponding to the pattern modification part.
Step 303, generating a change instruction for the graph in the collaborative document based on the data in the second data format.
In this embodiment, the execution subject may generate a change instruction for the graphics in the collaborative document based on the data in the second data format. The modification instruction may include modification information of graphics in the collaborative document. The data in the second data format may include change information of the graphics in the collaborative document, and the change information may include a change type of the graphics, such as addition, deletion, or modification. The execution subject may generate a modification instruction corresponding to the modification type. The change instruction is generally used to instruct a change operation to be performed with respect to the graphics in the collaborative document.
And step 304, sending a change instruction to the following terminal through the target server.
In this embodiment, the execution subject may send a change instruction to the following terminal by using the target server. The target server may be a server that provides support for various functions of the collaborative document. The target server may receive a change instruction sent by the execution subject, and send the received change instruction to a follower terminal accessing the collaborative document.
In this embodiment, after receiving a change instruction for a graphic in the collaborative document, the following terminal may change, by using change information included in the change instruction, data in a second data format corresponding to a current graphic in the collaborative document to obtain data in the second data format after the change. The modified data in the second data format may then be converted into data in the first data format. Finally, the graph in the collaborative document may be modified by using the converted data in the first data format.
The method provided by the above embodiment of the present disclosure realizes collaborative editing of a graphic in a collaborative document, and when a user edits the graphic (for example, a flowchart) in the collaborative document by using an editing terminal, a change process of the graphic can be presented on a following terminal accessing the collaborative document.
In some alternative implementations, the change instruction may be sent by the target server to the follower terminal by using a collaborative editing algorithm. If a plurality of persons edit the same flow chart in the collaborative document at the same time, the target server can solve the conflict by utilizing a collaborative editing algorithm, and the conflict can be solved without lock or user intervention by using the collaborative editing algorithm. The target server can solve the conflict generated by the fact that a plurality of editing terminals send the change instruction at the same time by using a collaborative editing algorithm through the following steps: in response to receiving change instructions sent by at least two user terminals, obtaining the receiving time of the at least two change instructions, wherein the user terminals comprise the execution main body; determining whether to modify the modification instruction based on the receiving time of the at least two modification instructions; and if so, correcting the change instruction, and sending the corrected change instruction to the following terminal. The target server may further determine whether to modify the modification instruction based on the reception times of the at least two modification instructions by: determining whether the receiving time of the change instruction sent by the execution main body is earlier than the receiving time of the change instruction sent by other user terminals; if not, the modification instruction is modified.
As an example, if a process graph block exists in a current collaborative document, a user a and a user B edit a graph in the collaborative document at the same time, and if the target server first receives a change instruction sent by a user terminal a used by the user a: adding a decision graph block behind a first graph block in the collaborative document, and then receiving a change instruction sent by a user terminal B used by the user B: adding a data graphic block after the first graphic block in the collaborative document. If the execution subject is the user terminal B, and the receiving time of the modification instruction sent by the user terminal B is later than the receiving time of the modification instruction sent by the user terminal a, the target server generally needs to modify the modification instruction sent by the user terminal B to: a data graphical block is added after the second graphical block in the collaborative document. And then, the modified change instruction can be sent to the following terminal, so that the conflict problem is solved.
In some optional implementations, the change information may include: the position, size and category of the added graphic block in the collaborative document; or an identifier of a deleted graphic block in the collaborative document; or an identifier of the modified graphical block and a size of the modified graphical block in the collaborative document. The size of the graphic block may include a width and a height of the graphic block. The categories of the graphic blocks may include, but are not limited to: a process graph block, a decision graph block, a document graph block and a data graph block. When a flowchart is inserted in a graphic editor, a corresponding identifier is typically generated for the inserted graphic block, and thus, the identifier of the graphic block may be used to indicate the graphic block in the flowchart.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a document sharing method is shown. The document sharing method is applied to an editing terminal and comprises the following steps:
step 401, in response to detecting an editing instruction for a graph in the collaborative document, acquiring data in a first data format corresponding to the graph.
In the present embodiment, an execution subject of the graphic change method (e.g., the editing terminal shown in fig. 1) may determine whether an editing instruction by a user for a graphic in a collaborative document is detected. The collaborative document may also be referred to as a shared document or an online document, and generally refers to a document tool used online in a browser, and is characterized in that the content written by the document is automatically saved in real time, and multi-person collaborative editing is supported, that is, multiple persons are supported to edit the same document at the same time. The graphics may include, but are not limited to: a flow chart and a UML diagram.
If an editing instruction for a graphic in the collaborative document is detected, the execution subject may obtain data in a first data format corresponding to the graphic. Here, the data corresponding to the graphic may be data corresponding to an edited whole graphic. The first data format may be a data format for drawing graphics.
As an example, grapheiditor can be employed as the above-described graphic editor. The graphpaditor is an open source graphical editor. When the grapheiditor is used as a graphic editor in a collaborative document, the first data format is usually an XML format. If the graph editor is adopted, getgraph XML provided by the graph editor can be called to obtain XML-formatted data corresponding to the edited overall graph.
Step 402, converting the data in the first data format into the data in the second data format.
In this embodiment, step 402 may be performed in a manner similar to step 302, and is not described herein again.
Step 403, comparing the data in the second data format with the target data to obtain the change information of the graph in the collaborative document, and generating a change instruction including the change information.
In this embodiment, the execution subject may compare the data in the second data format with target data to obtain change information of a graphic in the collaborative document, and generate a change instruction including the change information. The target data may be data in a second data format corresponding to a graphic obtained by the user editing a graphic in the collaborative document last time. The data received this time is compared with the data received last time to obtain the data of the changed part of the graph.
Here, the change information may include a change type of the graphic, for example, addition, deletion, or modification. The execution subject may generate a modification instruction corresponding to the modification type. The change instruction is generally used to instruct a change operation to be performed with respect to the graphics in the collaborative document.
As an example, the executing agent may determine the difference between the Data received this time and the Data received last time by using the open source library "just-diff" and convert the difference into an op in a Data-SDK based on a collaborative editing algorithm, where the op may make the Data go from one state to another, for example, the op from 'abc' to 'abcd' is insert ('d',3), i.e., a character d is added after the third character.
And step 404, sending a change instruction to the following terminal through the target server.
In this embodiment, step 404 may be performed in a manner similar to step 304, and will not be described herein again.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 3, the flow 400 of the graph modification method in this embodiment represents a step of comparing the data received this time with the data received last time, so as to generate a modification instruction. Thus, the scheme described in the present embodiment provides a method of determining a graphics alteration section, so that an alteration instruction can be accurately generated.
With continued reference to FIG. 5, a flow 500 of yet another embodiment of a method of graphical modification is shown. The graph changing method is applied to the following terminal and comprises the following steps:
step 501, in response to receiving a change instruction for a graph in the collaborative document, changing data in a second data format corresponding to a current graph in the collaborative document by using change information included in the change instruction to obtain changed data in the second data format.
In the present embodiment, the execution subject of the graphic change method (e.g., the follower terminal shown in fig. 1) may determine whether a change instruction for the graphic in the collaborative document is received. The collaborative document may also be referred to as a shared document or an online document, and generally refers to a document tool used online in a browser, and is characterized in that the content written by the document is automatically saved in real time, and multi-person collaborative editing is supported, that is, multiple persons are supported to edit the same document at the same time. The graphics may include, but are not limited to: a flow chart and a UML diagram.
If the change instruction is received, the execution main body may change the data in the second data format corresponding to the current graph in the collaborative document by using the change information included in the change instruction, so as to obtain the changed data in the second data format.
Here, a built-in "graphic editor" may exist in the collaborative document, and a user may edit a graphic in the collaborative document as needed by using the "graphic editor", and the edited graphic may exist in the document in the form of an SVG picture, so that a reader of the document may conveniently read the graphic.
As an example, grapheiditor can be employed as the above-described graphic editor. The graphpaditor is an open source graphical editor. Collaborative editing for graphics can be realized by using a collaborative editing algorithm on the basis of the grapheiditor. The collaborative editing algorithm can automatically resolve conflicts when multiple people edit the flow chart. When a collaborative editing algorithm is adopted for data collaboration, the second data format may be a JSON format.
Step 502, converting the changed data in the second data format into data in the first data format.
In this embodiment, the execution body may convert the modified data in the second data format into data in the first data format.
As an example, when the grapheiditor is used as the graphic editor in the collaborative document, the first data format is usually an XML format. The execution body may convert the modified JSON-formatted data into XML-formatted data. The execution body may analyze the modified JSON formatted data. For example, the execution body may fill each content in the data in the JSON format into a corresponding position in the template in the XML format according to a preset positional relationship, so as to obtain the data in the corresponding XML format.
Step 503, changing the graph in the collaborative document by using the data in the first data format.
In this embodiment, the execution body may modify the graphics in the collaborative document by using the converted data in the first data format. As an example, if the graphpatter is used as the graphic editor, the execution body may call setGraphXML provided by the graphpatter to present the graphic indicated by the data in the first data format in the current graphic, so as to modify the graphic in the collaborative document.
The method provided by the above embodiment of the present disclosure realizes collaborative editing of a graphic in a collaborative document, and when a user edits the graphic (for example, a flowchart) in the collaborative document by using an editing terminal, a change process of the graphic can be presented on a following terminal accessing the collaborative document.
In some optional implementations, the change information may include: the position, size and category of the added graphic block in the collaborative document; or an identifier of a deleted graphic block in the collaborative document; or an identifier of the modified graphical block and a size of the modified graphical block in the collaborative document. The size of the graphic block may include a width and a height of the graphic block. The categories of the graphic blocks may include, but are not limited to: a process graph block, a decision graph block, a document graph block and a data graph block. When a flowchart is inserted in a graphic editor, a corresponding identifier is typically generated for the inserted graphic block, and thus, the identifier of the graphic block may be used to indicate the graphic block in the flowchart.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a graphics modification apparatus, which corresponds to the method embodiment shown in fig. 3, and which is typically provided in an editing terminal.
As shown in fig. 6, the graphic modification apparatus 600 of the present embodiment includes: an acquisition unit 601, a conversion unit 602, a generation unit 603, and a transmission unit 604. The acquiring unit 601 is configured to acquire, in response to detecting an editing instruction for a graphic in the collaborative document, data in a first data format corresponding to the graphic, where the first data format is a data format for drawing the graphic; the conversion unit 602 is configured to convert data in a first data format into data in a second data format, where the second data format is a data format for collaborative data; the generating unit 603 is configured to generate a change instruction for the graphics in the collaborative document based on the data in the second data format, where the change instruction includes change information of the graphics in the collaborative document; the sending unit 604 is configured to send a change instruction to a following terminal through the target server, where the following terminal is a terminal accessing the collaborative document.
In this embodiment, the specific processing of the acquiring unit 601, the converting unit 602, the generating unit 603, and the sending unit 604 of the graphic changing apparatus 600 may refer to step 301, step 302, step 303, and step 304 in the corresponding embodiment of fig. 3.
In some optional implementations, the change instruction is sent by the target server to the follower terminal by using a collaborative editing algorithm.
In some optional implementations, the generating unit 603 may be further configured to generate a change instruction for a graphic in the collaborative document based on the data in the second data format by: the generating unit 603 may compare the data in the second data format with target data, and generate a modification instruction including the modification information, to obtain modification information of the graph in the collaborative document, where the target data may be the data in the second data format corresponding to the graph obtained by the user editing the graph in the collaborative document last time.
In some optional implementations, the change information may include: the position, size and category of the added graphic block in the collaborative document; or an identifier of a deleted graphic block in the collaborative document; or an identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
With further reference to fig. 7, as an implementation of the methods illustrated in the above figures, the present disclosure provides an embodiment of a pattern modification apparatus, which corresponds to the method embodiment illustrated in fig. 5, and which is typically provided in a follower terminal.
As shown in fig. 7, the graphic modification apparatus 700 of the present embodiment includes: a first modification unit 701, a conversion unit 702 and a second modification unit 703. The first modifying unit 701 is configured to, in response to receiving a modification instruction for a graph in a collaborative document, modify, by using modification information included in the modification instruction, data in a second data format corresponding to a current graph in the collaborative document to obtain modified data in the second data format, where the second data format is a data format for collaborative data; the conversion unit 702 is configured to convert the modified data in the second data format into data in a first data format, where the first data format is a data format for drawing a graph; the second changing unit 703 is configured to change the graph in the collaborative document by using the data in the first data format.
In this embodiment, the specific processing of the first changing unit 701, the converting unit 702 and the second changing unit 703 of the graphic changing apparatus 700 may refer to step 501, step 502 and step 503 in the corresponding embodiment of fig. 5.
In some optional implementations, the change information may include: the position, size and category of the added graphic block in the collaborative document; or an identifier of a deleted graphic block in the collaborative document; or an identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
Referring now to fig. 8, a schematic diagram of an electronic device (e.g., the editing terminal or the follower terminal of fig. 1) 800 suitable for use in implementing embodiments of the present disclosure is shown. The editing terminal or the follower terminal in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and fixed terminals such as a digital TV, a desktop computer, and the like. The editing terminal or the follower terminal shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 8 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure. It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the editing terminal or the follower terminal; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the editing terminal to: in response to the fact that an editing instruction aiming at the graph in the collaborative document is detected, data in a first data format corresponding to the graph are obtained, wherein the first data format is used for drawing the graph; converting the data in the first data format into data in a second data format, wherein the second data format is a data format for the collaborative data; generating a change instruction for the graph in the collaborative document based on the data in the second data format, wherein the change instruction comprises change information of the graph in the collaborative document; and sending a change instruction to a following terminal through the target server, wherein the following terminal is a terminal for accessing the collaborative document. When the one or more programs are executed by the editing terminal, the following terminal is caused to: responding to a received change instruction for the graph in the collaborative document, and changing the data in the second data format corresponding to the current graph in the collaborative document by using change information included in the change instruction to obtain the changed data in the second data format, wherein the second data format is the data format used for the collaborative data; converting the changed data in the second data format into data in a first data format, wherein the first data format is used for drawing graphics; and changing the graph in the collaborative document by using the data in the first data format.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a conversion unit, a generation unit, and a transmission unit; it can also be described as: a processor includes a first modification unit, a conversion unit, and a second modification unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the sending unit may also be described as a "unit that sends a change instruction to a target follower terminal using a target server".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (18)

1. A method for changing graphics is applied to an editing terminal, and is characterized in that the method comprises the following steps:
in response to the fact that an editing instruction aiming at a graph in a collaborative document is detected, data in a first data format corresponding to the graph are obtained, wherein the first data format is used for drawing the graph;
converting the data in the first data format into data in a second data format, wherein the second data format is a data format for collaborative data;
generating a change instruction for the graph in the collaborative document based on the data in the second data format, wherein the change instruction comprises change information of the graph in the collaborative document;
and sending the change instruction to a following terminal through a target server, wherein the following terminal is a terminal for accessing the collaborative document.
2. The method according to claim 1, wherein the change instruction is sent by the target server to the follower terminal using a collaborative editing algorithm.
3. The method of claim 1, wherein generating change instructions for graphics in the collaborative document based on the data in the second data format comprises:
and comparing the data in the second data format with target data to obtain the change information of the graph in the collaborative document, and generating a change instruction comprising the change information, wherein the target data is the data in the second data format corresponding to the graph obtained by the user editing the graph in the collaborative document last time.
4. The method according to one of claims 1 to 3, wherein the change information comprises:
the position, size and category of the added graphic block in the collaborative document; or
An identifier of a deleted graphical block in the collaborative document; or
An identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
5. A graph change method is applied to a following terminal, and is characterized by comprising the following steps:
responding to a received change instruction for a graph in a collaborative document, and changing data in a second data format corresponding to a current graph in the collaborative document by using change information included in the change instruction to obtain changed data in the second data format, wherein the second data format is a data format used for collaborative data;
converting the changed data in the second data format into data in a first data format, wherein the first data format is a data format for drawing graphics;
and changing the graph in the collaborative document by using the data in the first data format.
6. The method of claim 5,
the change information includes:
the position, size and category of the added graphic block in the collaborative document; or
An identifier of a deleted graphical block in the collaborative document; or
An identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
7. A graph changing device is arranged in an editing terminal, and is characterized by comprising:
the acquiring unit is used for responding to the detection of an editing instruction aiming at the graph in the collaborative document, and acquiring data of a first data format corresponding to the graph, wherein the first data format is a data format used for drawing the graph;
a conversion unit, configured to convert the data in the first data format into data in a second data format, where the second data format is a data format for collaborative data;
a generating unit, configured to generate a change instruction for a graphic in the collaborative document based on the data in the second data format, where the change instruction includes change information of the graphic in the collaborative document;
and the sending unit is used for sending the change instruction to a following terminal through a target server, wherein the following terminal is a terminal for accessing the collaborative document.
8. The apparatus according to claim 7, wherein the change instruction is sent by the target server to the follower terminal using a collaborative editing algorithm.
9. The apparatus of claim 7, wherein the generating unit is further configured to generate the change instruction for the graphic in the collaborative document based on the data in the second data format by:
and comparing the data in the second data format with target data to obtain the change information of the graph in the collaborative document, and generating a change instruction comprising the change information, wherein the target data is the data in the second data format corresponding to the graph obtained by the user editing the graph in the collaborative document last time.
10. The apparatus according to one of claims 7 to 9,
the change information includes:
the position, size and category of the added graphic block in the collaborative document; or
An identifier of a deleted graphical block in the collaborative document; or
An identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
11. A graph change device is arranged on a following terminal, and is characterized by comprising:
the collaborative document processing device comprises a first changing unit, a second changing unit and a third changing unit, wherein the first changing unit is used for responding to a received changing instruction aiming at a graph in a collaborative document, changing data in a second data format corresponding to a current graph in the collaborative document by using changing information included in the changing instruction to obtain changed data in the second data format, and the second data format is used for collaborative data;
a conversion unit, configured to convert the modified data in the second data format into data in a first data format, where the first data format is a data format for drawing a graph;
and the second changing unit is used for changing the graph in the collaborative document by utilizing the data in the first data format.
12. The apparatus of claim 11,
the change information includes:
the position, size and category of the added graphic block in the collaborative document; or
An identifier of a deleted graphical block in the collaborative document; or
An identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
13. A graphic modification system, the system comprising:
the editing terminal is used for responding to an editing instruction of a graph in a collaborative document, acquiring data in a first data format corresponding to the graph, converting the data in the first data format into data in a second data format, generating a change instruction of the graph in the collaborative document based on the data in the second data format, and sending the change instruction to a following terminal through a target server, wherein the first data format is a data format used for drawing the graph, the second data format is a data format used for collaborative data, and the change instruction comprises change information of the graph in the collaborative document;
the following terminal is configured to, in response to receiving the change instruction, change data in a second data format corresponding to the current graph in the collaborative document by using change information included in the change instruction to obtain changed data in the second data format, convert the changed data in the second data format into data in a first data format, and change the graph in the collaborative document by using the data in the first data format.
14. The system according to claim 13, wherein the change instruction is sent by the target server to the follower terminal using a collaborative editing algorithm.
15. The system of claim 13,
the editing terminal is further configured to compare the data in the second data format with target data to obtain change information of the graph in the collaborative document, and generate a change instruction including the change information, where the target data is the data in the second data format corresponding to the graph obtained by the user editing the graph in the collaborative document last time.
16. The system according to one of claims 13-15,
the change information includes:
the position, size and category of the added graphic block in the collaborative document; or
An identifier of a deleted graphical block in the collaborative document; or
An identifier of the modified graphical block and a size of the modified graphical block in the collaborative document.
17. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4, 5-6.
18. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4, 5-6.
CN202011297317.8A 2020-11-17 2020-11-17 Method, device and system for changing graph and electronic equipment Pending CN112419448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011297317.8A CN112419448A (en) 2020-11-17 2020-11-17 Method, device and system for changing graph and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011297317.8A CN112419448A (en) 2020-11-17 2020-11-17 Method, device and system for changing graph and electronic equipment

Publications (1)

Publication Number Publication Date
CN112419448A true CN112419448A (en) 2021-02-26

Family

ID=74774300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011297317.8A Pending CN112419448A (en) 2020-11-17 2020-11-17 Method, device and system for changing graph and electronic equipment

Country Status (1)

Country Link
CN (1) CN112419448A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022716A (en) * 2010-11-04 2016-10-12 中兴通讯股份有限公司 Method and system for multi-user cooperative graph editing of mobile terminal
US20170003829A1 (en) * 2015-06-30 2017-01-05 Microsoft Technology Licensing, Llc Graphical user interface facilitating sharing and collaborative editing of electronic documents
EP3230894A1 (en) * 2014-12-11 2017-10-18 Liveloop, Inc. Blended operational transformation for multi-user collaborative applications
US20190102370A1 (en) * 2015-04-30 2019-04-04 Workiva Inc. System and method for convergent document collaboration
CN109815200A (en) * 2019-01-14 2019-05-28 腾讯科技(深圳)有限公司 A kind of sharing files method, apparatus and storage medium
CN110019279A (en) * 2019-04-11 2019-07-16 北京字节跳动网络技术有限公司 Collaboration update method, device, equipment and the storage medium of online document
CN110097612A (en) * 2019-04-02 2019-08-06 北京大麦地信息技术有限公司 A kind of method and device of online graphing element
CN111913979A (en) * 2020-09-29 2020-11-10 大汉软件股份有限公司 Multi-terminal data updating conflict solution method based on block authority lock
CN111914520A (en) * 2019-05-09 2020-11-10 富泰华工业(深圳)有限公司 Document collaborative editing method and device, computer device and storage medium
CN111931466A (en) * 2020-10-12 2020-11-13 北京联想协同科技有限公司 Document processing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022716A (en) * 2010-11-04 2016-10-12 中兴通讯股份有限公司 Method and system for multi-user cooperative graph editing of mobile terminal
EP3230894A1 (en) * 2014-12-11 2017-10-18 Liveloop, Inc. Blended operational transformation for multi-user collaborative applications
US20190102370A1 (en) * 2015-04-30 2019-04-04 Workiva Inc. System and method for convergent document collaboration
US20170003829A1 (en) * 2015-06-30 2017-01-05 Microsoft Technology Licensing, Llc Graphical user interface facilitating sharing and collaborative editing of electronic documents
CN109815200A (en) * 2019-01-14 2019-05-28 腾讯科技(深圳)有限公司 A kind of sharing files method, apparatus and storage medium
CN110097612A (en) * 2019-04-02 2019-08-06 北京大麦地信息技术有限公司 A kind of method and device of online graphing element
CN110019279A (en) * 2019-04-11 2019-07-16 北京字节跳动网络技术有限公司 Collaboration update method, device, equipment and the storage medium of online document
CN111914520A (en) * 2019-05-09 2020-11-10 富泰华工业(深圳)有限公司 Document collaborative editing method and device, computer device and storage medium
CN111913979A (en) * 2020-09-29 2020-11-10 大汉软件股份有限公司 Multi-terminal data updating conflict solution method based on block authority lock
CN111931466A (en) * 2020-10-12 2020-11-13 北京联想协同科技有限公司 Document processing method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHUNXUE WU ET AL.: "Design and analysis of an effective graphics collaborative editing system", 《EURASIP JOURNAL ON IMAGE AND VIDEO PROCESSING》, vol. 2019, 4 March 2019 (2019-03-04), pages 1 - 21 *
他丽娟: "分布式协同图形编辑关键技术研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 3, 15 March 2007 (2007-03-15), pages 138 - 157 *
程文志: "基于Web的协同编辑系统研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 10, 15 October 2014 (2014-10-15), pages 138 - 544 *

Similar Documents

Publication Publication Date Title
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN112073307B (en) Mail processing method, mail processing device, electronic equipment and computer readable medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN113157153A (en) Content sharing method and device, electronic equipment and computer readable storage medium
CN110780874B (en) Method and device for generating information
CN111368519B (en) Method, device, equipment and storage medium for editing online form
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN112269770A (en) Document sharing method, device and system and electronic equipment
CN111309304A (en) Method, device, medium and electronic equipment for generating IDL file
CN110708238B (en) Method and apparatus for processing information
CN111754600A (en) Poster image generation method and device and electronic equipment
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111367689A (en) Interactive prompt information sending method and device of online document and electronic equipment
CN112307393A (en) Information issuing method and device and electronic equipment
CN111596823B (en) Page display method and device and electronic equipment
CN114979256A (en) Message pushing method and device, electronic equipment and computer readable medium
CN111367592B (en) Information processing method and device
CN112419448A (en) Method, device and system for changing graph and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111753238A (en) Data mapping method and device and electronic equipment
CN111294657A (en) Information processing method and device
CN114253520B (en) Interface code generation method and device
CN112380821B (en) Graphic display method and device and electronic equipment
CN111343149B (en) Comment method and device, electronic equipment and computer readable medium
CN112688863B (en) Gateway data processing method and device and electronic equipment

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