Interface interaction method and apparatus, device and storage medium
By pre-building a drag-and-drop response strategy set and an interface interaction method, each drag-and-drop interaction operation is ensured to have a unique response strategy, which solves the problem of insufficient response of the drag-and-drop interaction function in the existing technology and achieves efficient maintenance and control of computer software tools. Version iteration.
Patent Information
- Application Number
- PCT/CN2024/075884
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-23
- Filing Date
- 2024-02-05
- Publication Date
- 2024-08-29
AI Technical Summary
Existing computer software tools have shortcomings and limitations in response when processing complex drag-and-drop interaction functions, resulting in poor maintainability and insufficient version iteration capabilities, and cannot effectively respond to different interaction situations and multiple complex interaction situations.
Provide an interface interaction method that ensures that each drag-and-drop interaction operation has a unique response strategy by pre-building a drag-and-drop response strategy set, and determines and executes an effective response strategy after receiving the drag-and-drop interaction operation, and displays the interaction results. , to ensure the effectiveness and response consistency of drag-and-drop interaction operations.
It achieves effective response to complex drag-and-drop interactions, enhances the maintainability and version iteration capabilities of computer software tools, avoids shortcomings and limitations in traditional user interface framework design, and provides unified and standardized drag-and-drop interactions. response form.
Smart Images

Figure CN2024075884_29082024_PF_FP_ABST
Abstract
Description
Interface interaction method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese application with application number 202310193953.3 and application date February 23, 2023, and claims its priority. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field
[0003] The embodiments of the present disclosure relate to the field of computer application technology, and in particular to an interface interaction method, apparatus, device, and storage medium. Background Art
[0004] With the development of computer technology, computer software tools (such as special effects or interface design tools, etc.) have become more and more powerful in terms of functionality, which has correspondingly increased the user's interactive needs when operating computer software tools, and as a result, more and more interactive methods for interacting with computer software tool interfaces have emerged.
[0005] Generally, the drag-and-drop function is a very important interaction method in computer software tools and has a wide range of applications. Moreover, the response logic corresponding to the drag-and-drop interaction is becoming more and more complex.
[0006] Summary of the Invention
[0007] The present disclosure provides an interface interaction method, apparatus, device and storage medium to achieve effective response to drag interaction operations involved in the interface.
[0008] In a first aspect, an embodiment of the present disclosure provides an interface interaction method, the interface interaction method comprising:
[0009] Receiving a drag interaction operation, wherein the dragged object of the drag interaction operation is presented on the displayed interactive interface;
[0010] If there is a valid drag response strategy in the pre-built drag response strategy set for the drag interaction operation, executing the response logic in the valid drag response strategy and obtaining an execution result, wherein the drag response strategies in the drag response strategy set are orthogonal to each other;
[0011] When it is determined that the execution result is valid, the drag interaction result relative to the drag object is displayed on the interactive interface.
[0012] In a second aspect, an embodiment of the present disclosure further provides an interface interaction device, the interface interaction device comprising:
[0013] a receiving module, configured to receive a drag interaction operation, wherein the dragged object of the drag interaction operation is presented on the displayed interactive interface;
[0014] an execution module, configured to, if a valid drag response strategy exists in a pre-built drag response strategy set for the drag interaction operation, execute the response logic in the valid drag response strategy and obtain an execution result, wherein the drag response strategies in the drag response strategy set are orthogonal to each other;
[0015] The display module can be configured to display the drag interaction result relative to the drag object on the interactive interface when it is determined that the execution result is valid.
[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0017] one or more processors;
[0018] a storage device for storing one or more programs,
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the interface interaction method as described in any embodiment of the present disclosure.
[0020] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the interface interaction method as described in any embodiment of the present disclosure.
[0021] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product comprising instructions which, when executed by a processor, result in the implementation of the interface interaction method as described in the embodiment of the present disclosure.
[0022] In a sixth aspect, an embodiment of the present disclosure further provides a computer program, comprising a program code, which, when executed by a processor, causes the interface interaction method as described in the embodiment of the present disclosure to be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0024] FIG1 is a flow chart of an interface interaction method provided by an embodiment of the present disclosure;
[0025] FIG1a is a flow chart showing an example of an interface interaction method according to an embodiment of the present disclosure;
[0026] FIG2 is a schematic structural diagram of an interface interaction device provided by an embodiment of the present disclosure;
[0027] FIG3 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0039] It should be noted that the application scenario of this embodiment can be described as: a computer software tool with an interactive interface (such as a special effects production tool, etc.), and accordingly, the interactive interface can be a scene production interface, a special effects production interface, etc. Generally, the interactive interface includes the controls required for the operation of the computer software tool, a control panel, and a view panel that displays information in a tree structure. During the operation of the computer software tool, the operator of the computer software tool can generate interactive operations with the interactive interface through input forms such as mouse, touch, and shortcut keys. The drag-and-drop interactive operation can be regarded as one of the interactive forms.
[0040] Generally speaking, drag-and-drop functionality, as a crucial interaction method in computer software tools, is widely used, and the corresponding response logic for drag-and-drop interactions is becoming increasingly complex. For example, in a production-oriented computer software tool, when an operator drags different objects within a module on the software tool interface, the response to the drag operation needs to display different rendering results for each dragged object. Furthermore, when responding to the drag operation, the software tool also needs to generate different drag feedback for different dragging situations.
[0041] Currently, most computer software tools utilize traditional user interface architecture design principles to design their interactive interfaces. However, these interfaces cannot effectively respond to complex drag-and-drop interactions, resulting in shortcomings and limitations. This also hinders subsequent maintenance and version iteration of the software tools. For example, when faced with different interaction scenarios, the required execution logic must be confined to a specific module. Furthermore, multiple complex interaction scenarios can lead to coupled execution logic, resulting in poor maintainability and limited scalability during version iterations.
[0042] Based on this, the present embodiment provides an interface interaction method. Figure 1 shows a flow chart of an interface interaction method provided by an embodiment of the present disclosure. The present embodiment of the present disclosure is applicable to the case of performing drag interaction operations on the interface of a computer software tool. The method can be executed by an interface interaction device, which can be integrated into a computer software tool. The computer software tool can be implemented in the form of software and / or hardware. Optionally, the computer software tool can be integrated into an electronic device and implemented by the electronic device. The electronic device is preferably a desktop computer, tablet computer, laptop computer, server, etc.
[0043] As shown in FIG1 , the interface interaction method of the embodiment of the present disclosure may specifically include:
[0044] S101: receiving a drag interaction operation, wherein a drag object of the drag interaction operation is presented on a displayed interactive interface.
[0045] In this embodiment, the interactive interface may be an interface with interactive controls / components presented on a running computer software tool, which is configured on the subject (electronic device) executing the method provided in this embodiment. The dragged object may be a control or component in any functional module presented on the interactive interface.
[0046] Taking a special effects creation tool as an example, the interactive interface may be a special effects creation interface, which may include a special effects creation panel, a creation preview display panel, and a navigation tree view panel. The navigation tree displayed in the navigation tree view panel may be constructed based on relevant information about component data involved in the special effects creation.
[0047] For example, the displayed navigation tree may include multiple root component collection nodes, and each root component collection node may further include sub-component collection nodes. Each root component collection node may be presented in the navigation tree view panel according to a specific rendering order. Continuing with the above description, each node under the navigation tree presented in the navigation tree view panel may be considered an interactive control or interactive component. Similarly, the items in the menu bar and function panel bar presented in the authoring panel may also be considered interactive controls or interactive components.
[0048] In this embodiment, the drag object can be any information content presented in the interactive interface, and the drag interaction operation can be considered as an interaction operation generated by the operator performing a certain drag action on the drag object. This step can generate a drag interaction operation when receiving a certain drag action on the drag object.
[0049] For example, still taking the special effects production interface as an example, the dragged object can be any node (root component node or subcomponent node) in the navigation tree view panel, and the drag interaction operation can be the interaction operation generated when the dragged object is selected and dragged to the blank space below, or it can be the interaction operation generated when the dragged object is selected and dragged to the middle position between two component nodes.
[0050] It should be noted that the drag interaction operation may have multiple drag objects or corresponding drag behaviors. In the conventional framework design of computer software tools, as long as a drag interaction operation is received, a response will be given to the drag interaction operation, but the response result presented may not meet the drag function requirements of the computer software tool.
[0051] S102. When there is a valid drag response strategy in the pre-built drag response strategy set for the drag interaction operation, execute the response logic in the valid drag response strategy and obtain an execution result, wherein the drag response strategies in the drag response strategy set are orthogonal to each other.
[0052] In this embodiment, after receiving the drag interaction operation in the above steps, the response method for the drag interaction operation is different from the existing conventional response method. This embodiment pre-constructs a drag response strategy set, which includes at least one drag response strategy, which is equivalent to pre-constructing a matching drag response strategy for various drag interaction operations that may be triggered.
[0053] Each drag response strategy may include two parts: one part is the strategy effectiveness determination logic used to match the drag interaction operation, and the other part is the drag response logic required to respond to the drag interaction operation after the strategy takes effect. At the same time, in order to ensure that there is a unique drag response logic that can respond to the drag interaction operation, this embodiment, when constructing the drag response strategy, must ensure that different drag response strategies are mutually orthogonal. In a preferred implementation, the mutual orthogonality between different drag response strategies can be specifically the mutual orthogonality between the strategy effectiveness determination logics contained in different drag response strategies; further, it can also be limited that the drag response logics contained in the drag response strategy are also mutually orthogonal.
[0054] Continuing with the above description, the mutual orthogonality can be understood as the different judgment conditions corresponding to the policy effectiveness judgment logic in different drag response strategies are all different. On this basis, the execution contents of the drag response logic corresponding to different drag response strategies can also be limited to be different. In this way, the decoupling between the drag response strategies corresponding to different drag interaction operations can be achieved. It is through the above design in this embodiment that the mutual restrictions between different drag interaction operations are avoided, and the shortcomings and limitations of the existing drag interaction are solved, which makes it easier to iterate the dimensions and versions of computer software tools in the later stages.
[0055] It can be seen that before responding to the received drag response strategy, this step needs to determine whether there is a matching valid drag response strategy from the drag response strategy set. In one implementation, the relevant drag interaction operation information contained in the received drag interaction operation can be analyzed. Based on the drag interaction operation information and the strategy effectiveness determination logic, it can be determined whether there is a drag response strategy in the drag response strategy set that matches the received drag interaction operation. If so, it can be considered that there is a valid drag response strategy for the corresponding drag interaction operation.
[0056] If there is a valid drag response strategy in the drag response strategy set for the drag interaction operation, this step can execute the response logic in the valid drag response strategy to respond to the drag interaction operation, and the corresponding execution result can be obtained after the response logic is executed. The execution result can include return value information indicating whether the response execution is effective, and can also include interface rendering related information used for interface rendering after the interactive interface responds to the drag interaction operation at the visual level and / or component update related information used for component update.
[0057] S103: When it is determined that the execution result is valid, display the drag interaction result relative to the drag object on the interactive interface.
[0058] It can be known that the execution result after responding to the drag interaction operation will eventually be presented on the interactive interface. This embodiment limits the condition for presenting the execution result on the interactive interface to the above-mentioned determined execution result being a valid execution result. After determining that the execution result is valid, this step can render the drag interaction result relative to the dragged object on the interactive interface based on the relevant information in the execution result.
[0059] Exemplarily, when the drag interaction operation is characterized by the behavior of dragging any component node in the navigation tree view panel downward to a blank space, after determining through the above steps of this embodiment that there is a valid drag response strategy for the drag interaction operation, and executing the response logic in the valid drag response strategy to obtain the execution result, if the execution result is a valid execution result, then after rendering through the relevant information for interface / component rendering contained in the execution result, the drag interaction result that can finally be displayed on the interactive interface is that the root component node is at the end position in the navigation tree view panel, that is, the presentation position of the root component node in the navigation tree view panel is at the bottom of all the presented nodes.
[0060] The disclosed embodiments provide an interface interaction method that is equivalent to adding a set of drag response strategies corresponding to different drag interaction operations to a computer software tool providing interface interaction. This method determines a valid drag response strategy upon receiving a drag interaction operation, responds to the drag interaction operation only when a valid drag response strategy is determined to exist, and renders the execution result on an interactive interface to display the drag interaction result only when the execution result after executing the response is determined to be valid. Compared to interface interaction implementations based on traditional user interface framework designs, this method implements a mutually orthogonal decoupling design for the drag response strategies corresponding to each drag interaction operation, adds a validity determination for the drag interaction operation, and ensures that each valid drag interaction operation has a unique drag response strategy. This method effectively avoids the shortcomings and limitations of existing complex drag function implementations, expands the executable drag interaction operation forms, and achieves effective response to drag interaction operations. Furthermore, this technical solution constructs a set of drag response strategies in a mutually orthogonal manner, achieving unified and standardized response forms for drag interaction operations, which is more conducive to functional maintenance and version iteration of the computer software tool in the future.
[0061] It should be noted that the interface interaction method provided in this embodiment is equivalent to designing a drag interaction scheduling framework with a unified external interface at the bottom layer. Under this drag interaction scheduling framework, a drag response strategy set can be pre-built. The drag response strategy set can be regarded as a container object that collects instances of various drag response strategies required for the operation of computer software tools.
[0062] In this embodiment, it can be considered that each drag response strategy in the drag response strategy set describes the strategy information according to the preset drag interaction paradigm. For example, each drag response strategy includes an initialization interface, an effectiveness judgment interface, and a response logic execution interface that are regulated by the drag interaction paradigm. Each interface has a unified input and output data structure.
[0063] Continuing with the above description, different drag response strategies only match one type of drag interaction operation. This embodiment can call the drag response strategy set through a unified interface based on the drag input data involved in the drag interaction operation, and judge the drag interaction operation and the drag response strategy by accessing the effectiveness judgment interface within each drag response strategy, so as to determine whether there is a valid drag response strategy for the drag interaction operation, and then when there is a valid drag response strategy, the drag interaction operation is considered to be a valid drag interaction operation that can be responded to.
[0064] As a first optional embodiment of the present disclosure, based on the above embodiment, the above interface interaction method can be further optimized, and specifically can further include the following execution steps:
[0065] a1) Obtaining drag interaction data determined by the drag interaction operation, and forming validity determination information according to the drag interaction data.
[0066] Continuing with the above description, the additional execution step of the first optional embodiment of the present disclosure can be executed after receiving a drag interaction operation to determine a valid drag response strategy. In this embodiment, the drag interaction data can be understood as the drag input data generated when a drag interaction operation is generated when a drag action is applied to a dragged object on an interactive interface. The drag interaction data can be considered as the drag input data encapsulated according to a certain standardized data format.
[0067] It should be noted that the generated drag interaction operation can be initially received by the software interaction event function module on the computer software tool, and the drag input data of the drag interaction operation can be received at the same time. After that, the function module can encapsulate the drag input data according to a uniformly defined input data format to obtain the drag interaction data, so that the above-mentioned framework for drag interaction scheduling can obtain the drag interaction data through a unified interface.
[0068] As an implementation method, the drag interaction data can be determined as follows: extracting the drag input data corresponding to the drag interaction operation; encapsulating the drag input data according to the input data format defined by a preset drag interaction paradigm to form the drag interaction data.
[0069] In this embodiment, the software interaction event function module on the computer software tool can extract the drag input data of the received drag interaction operation to obtain the key information contained in the drag input data. Next, the extracted drag input data can be encapsulated in accordance with the definition of the input data format in the pre-set drag interaction paradigm to form drag interaction data that meets the input data format.
[0070] The above conversion of drag input data to drag interaction data realizes the standardization and unification of data formats in interface interaction, ensuring the accuracy and effectiveness of subsequent execution of interface interaction methods.
[0071] The execution target of the above steps of the first optional embodiment of the present disclosure can be considered to be a drag interaction scheduling framework designed and integrated into the running computer software tool. The drag interaction data obtained in this step can be considered to be data encapsulated in a unified input data format, which may include data related to the drag object and drag behavior of the drag interaction operation. This step can also generate effectiveness determination information that can be used to match the drag response strategy by analyzing the drag interaction data.
[0072] The drag object data in the drag interaction data can be used to determine the number of drag objects affected by the drag interaction operation, the location of each drag object in the interactive interface, and other information. The drag behavior data can be used to determine the type of drag behavior performed on the drag objects. This step can generate validation information based on the information analyzed above. The validation information can include the number of drag objects, their locations, and the type of drag behavior performed.
[0073] b1) determining a valid drag response strategy from the drag response strategy set according to the effectiveness determination information.
[0074] In this embodiment, the drag response strategy set includes multiple pre-built drag response strategies, each drag response strategy includes response effectiveness judgment logic with different judgment conditions. Through the response effectiveness judgment logic, it can be determined whether there is a valid drag response strategy for the drag interaction operation. If it is determined after judgment that there is a valid drag response strategy for the drag interaction operation, the drag interaction operation can be considered as a valid drag interaction operation, which is equivalent to continuing to execute the subsequent related response logic of the drag.
[0075] As one implementation method, the steps of determining an effective drag response strategy may include:
[0076] b11) Obtaining a drag response strategy included in the drag response strategy set, wherein the drag response strategy includes a response effectiveness determination logic defined according to a preset drag interaction paradigm.
[0077] This step can directly obtain all the drag response strategies contained in the pre-built drag response strategy set. Among them, the number of drag response strategies contained in the drag response strategy set and the corresponding response effectiveness judgment logic can be dynamically updated. In the later maintenance or version iteration stage of the computer software tool, new drag response strategies can be added according to actual drag function requirements.
[0078] It can be understood that this embodiment follows the design specifications of the drag interaction framework. Each drag response strategy in the drag response strategy set needs to be constructed based on the relevant definitions in the preset drag interaction paradigm. The response effectiveness judgment logic, which is a relatively critical part of the drag response strategy, is also designed in accordance with the definitions in the drag interaction paradigm.
[0079] In this embodiment, the response effectiveness judgment logic may include the execution trigger conditions when the drag interaction operation executes the response logic in the drag response strategy, such as whether there are 3 dragged objects, whether each dragged object is in the same sub-scene created, and whether the dragging behavior performed on the dragged object is dragging to the blank space below, etc.
[0080] b12) Using the validation determination information as input data of the response validation determination logic, running the response validation determination logic, and obtaining the running return value of the response validation determination logic.
[0081] In this embodiment, the validity determination information can be used as input data to sequentially execute the response validity determination logic in each drag response strategy, and a return value for each validity determination logic can be obtained. For example, the return value obtained in this step can be a flag value indicating whether the response is valid, and the flag value can preferably be set to '0' or '1'.
[0082] b13) Determine whether there is a target operation return value that meets the response valid mark value. If so, execute step b14); if not, execute step b15).
[0083] In this embodiment, the operation return value obtained above can be compared with the pre-set response valid mark value, and the comparison result can be used to determine whether there is an operation return value that matches the response valid mark value. If so, it can be considered that the target operation return value exists, and the operation of step b14) can be continued; if not, it can be considered that the target operation return value does not exist, and the operation of step b15) can be performed.
[0084] For example, following the above description, if the response valid mark value is set to '1' in this embodiment, this step can search for each operation return value obtained above to determine whether there is a case where the operation return value is '1'. If so, it is considered that there is a target operation return value that meets the conditions; otherwise, there is no target operation return value.
[0085] It can be known that when this step determines that there is a target operation return value, according to the design specifications of this embodiment, there can only be one target operation return value among multiple operation return values.
[0086] b14) Determining the drag response strategy corresponding to the target operation return value as the effective drag response strategy.
[0087] This step is executed when the above determination is "yes", and can determine the drag response strategy corresponding to the target operation return value as the effective drag response strategy corresponding to the drag interaction operation.
[0088] b15) Determine whether the valid drag response strategy does not exist in the drag response strategy set.
[0089] This step is executed when the above determination is "No", and it can be determined that there is no valid drag response strategy for the drag interaction operation in the drag response strategy set, and it can be considered that the drag interaction operation is not a valid drag interaction operation.
[0090] It should be noted that in the implementation of the above-mentioned effective drag response strategy, the effectiveness judgment information can be first combined with the response effectiveness judgment logic of each drag response strategy to obtain the respective operation return values; then, each operation return value is uniformly compared with the response effective mark value to determine whether the target operation return value exists. Another execution implementation is to combine the effectiveness judgment information with a drag response strategy, and directly compare the obtained operation return value with the response effective mark value. If the two match, it can be directly considered that there is an effective drag response strategy for the drag interaction operation, and the judgment of the effective drag response strategy can be ended, and there is no need to judge with other drag response strategies; otherwise, another drag response strategy is selected to repeat the above judgment. If the last drag response strategy has not matched the response effective mark value, it can be considered that there is no effective drag response strategy for the drag interaction operation in the drag response strategy set.
[0091] The determination and implementation of the above-mentioned effective drag response strategy in this embodiment is equivalent to the process of searching for an executable drag response strategy for the drag interaction operation. The unified specification of each drag response strategy and the unified specification of input data in the above implementation are conducive to the global execution of drag interaction scheduling, and better ensure the later maintainability and iterativeness of the drag interaction operation running on the interface interaction function.
[0092] The interface interaction method provided in the first optional embodiment of this embodiment adds an execution step for determining the validity of the drag interaction operation. Unlike existing interaction implementations that unconditionally respond to various drag operations, the technical solution of this embodiment implements standardized constraints on drag interaction operations, thereby responding only to selected valid drag interaction operations, ensuring the effectiveness of drag interaction and providing a better user experience for interface interaction. It also provides underlying data support for the subsequent maintainability and iteration of drag interaction.
[0093] As a second optional embodiment of the embodiment of the present disclosure, based on the above embodiment, the above interface interaction method can be further optimized, and specifically the following steps can be performed: when there is no valid drag response strategy relative to the drag interaction operation in the drag response strategy set, cancel the response to the drag interaction operation, keep the display state of the drag object in the interactive interface unchanged, and / or display an interface prompt indicating that the drag interaction operation is invalid.
[0094] In the second optional embodiment of the present disclosure, a specific implementation is given for determining that there is no valid drag response strategy for a drag interaction operation. Specifically, if it is determined that there is no valid drag response strategy, the received drag interaction operation can be considered to be an invalid drag interaction operation. At this time, the response to the drag interaction operation can be directly canceled through the steps provided in the second optional embodiment of the present disclosure, and at the visualization level, the display state of the selected drag object does not change with the movement of the generated drag behavior. At this time, the display state of the drag object will remain unchanged. Furthermore, at the visualization level, an interface prompt indicating that the received drag interaction operation is an invalid operation can also be displayed.
[0095] For example, taking the special effects production interface as an interactive interface, a navigation tree view panel is presented on the production interface, and the navigation tree view panel displays multiple root component nodes and their corresponding sub-component nodes. If the dragged object of the drag interaction operation is one of the root component nodes and a sub-component node under other root component nodes, and the dragging behavior is manifested as dragging the dragged object to the middle of the two root component nodes, then when the effective drag response strategy is determined by the method provided above in this embodiment, a determination result can be obtained that there is no effective drag response strategy for the drag interaction operation.
[0096] Continuing with the above description, if there is no valid drag response strategy for the drag interaction operation, the drag interaction operation can be considered an invalid drag interaction operation, and the subsequent response to the drag interaction operation can be canceled. The visual effect is that the display position of each selected drag object (which may include a root component node and multiple sub-component nodes under other root component nodes) does not change with the dragging behavior. At the same time, an interface prompt can be given for the invalid drag interaction operation, such as popping up a window to indicate that the drag interaction operation is invalid as an interface prompt; or the drag cursor acting on the drag object can be directly grayed out to provide an interface prompt that no response to the drag interaction operation will be performed.
[0097] The second optional embodiment of the present disclosure is an optimization of the interface interaction method provided by this embodiment. It provides a specific implementation when the drag interaction operation is an invalid drag interaction operation, better improves the execution logic of the interface interaction, and is different from the existing interface interaction implementation in which a response is given as long as dragging is performed and it is not determined whether the drag interaction operation is suitable for a response. The technical solution of the second optional embodiment of the present disclosure is more conducive to the effective response of the drag interaction operation in the interface interaction.
[0098] As a third optional embodiment of the embodiment of the present disclosure, based on the above embodiment, the above interface interaction method can be further optimized, and specifically the following steps can be performed: when it is determined that the execution result is invalid, the display state of the drag object in the interactive interface remains unchanged, and / or, an interface prompt indicating that the execution result of the drag interaction operation is invalid is displayed.
[0099] In the third optional embodiment of the present disclosure, a specific execution implementation is provided when the drag interaction operation is determined to have a valid drag response strategy, but the execution result is invalid after executing the response logic. Specifically, after determining that there is a valid drag response strategy and executing the response logic in the valid drag response strategy, the execution results obtained are valid and invalid. When the execution result is invalid, it can be considered that a runtime error occurred during the execution of the response logic. At this time, although the execution of the response logic is completed, due to the invalid execution result, the display state of the selected drag object presented at the visualization level does not change with the movement of the generated drag behavior. This step will still keep the display state of the drag object on the interactive interface unchanged. Furthermore, at the visualization level, an interface prompt indicating that the execution result after receiving the drag interaction operation response is an invalid execution can also be displayed.
[0100] For example, still taking the special effects production interface as an interactive interface as an example, multiple root component nodes and their corresponding sub-component nodes are displayed in the navigation tree view panel presented in the production interface. If the dragged object of the drag interaction operation is one of the root component nodes, and the dragging behavior is manifested as dragging the dragged object to the blank space at the bottom of the navigation tree view panel, then when the effective drag response strategy is determined by the method provided above in this embodiment, a determination result that there is an effective drag response strategy for the drag interaction operation can be obtained.
[0101] Continuing with the above description, when there is a valid drag response strategy for the drag interaction operation, the drag interaction operation itself can be considered a valid drag interaction operation, and the drag interaction operation can be subsequently responded to based on the response logic in the valid drag response strategy. When the execution result of the response logic is invalid, it is equivalent to a failure to respond to the drag interaction operation. At this time, the visual effect is that the display position of the selected drag object (selected root component node) does not change. Correspondingly, an interface prompt can also be given for the invalid execution result that appears after the drag interaction operation response. The form of the interface prompt can also be to pop up a window to display that the execution result after the drag interaction operation response is invalid; or, the drag cursor acting on the drag object can be directly grayed out to provide an interface prompt for not rendering the invalid execution result of the drag interaction operation response.
[0102] The third optional embodiment of the present disclosure is an optimization of the interface interaction method provided above in this embodiment. It provides a specific implementation when the execution result is invalid, and also improves the execution logic of the interface interaction. The third optional embodiment of the present disclosure better avoids the impact of the execution result of the failed response on the interface interaction, and also visually reflects the invalid response through this presentation form, thereby better improving the user experience during the interface interaction implementation process.
[0103] As a fourth optional embodiment of the present disclosure, based on the above embodiment, the above interface interaction method can be further optimized, and specifically the following steps can be performed:
[0104] It can be known that the following steps of the fourth optional embodiment of the present disclosure specifically provide a determination implementation of whether the execution result is valid or invalid, providing basic data support for the effective response of the drag interaction operation in the interface interaction.
[0105] a2) When the response to the dragging behavior event corresponding to the dragging object is completed according to the response logic, an execution return value representing whether the execution is normal or not is generated, constituting an execution result.
[0106] In this embodiment, when a valid drag response strategy exists for a drag interaction operation and a drag behavior event corresponding to the drag object affected by the drag interaction operation is completed according to the response logic in the valid drag response strategy, an execution result can be generated, and the execution result includes an execution return value indicating whether the execution is normal or not. The execution return value is generated after the response to the drag behavior event corresponding to the drag object is completed according to the response logic.
[0107] b2) If the execution return value indicates that the execution is normal, determining that the execution result is valid; otherwise, determining that the execution result is invalid.
[0108] This step can further determine whether the included execution return value indicates that the response logic is executed normally. If so, the execution result can be considered valid; if not, the execution result can be considered invalid.
[0109] The execution result determined in this embodiment is valid or invalid, and there are corresponding execution steps afterwards. It can be known that different execution steps have different visual effects displayed at the visualization level.
[0110] To better understand the interface interaction method provided above in this embodiment, this embodiment provides an example. FIG1a is an example process effect diagram of an interface interaction method provided in an embodiment of the present disclosure. As shown in FIG1a, this embodiment divides the execution object of the interface interaction method into two parts: one part is a software interaction event module 11 in a computer software tool, and the other part is a drag interaction scheduling framework 12 designed in the computer software tool, which is specifically executed by a drag scheduling system 121 in the drag interaction scheduling framework 12. As shown in FIG1a, the implementation of the interface interaction method may specifically include the following process steps:
[0111] S1. The software interaction event module monitors the operator's drag interaction input on the interactive interface, receives the drag interaction operation and obtains the drag input data.
[0112] S2. The software interaction event module encapsulates the drag input data according to the input data format defined by the drag interaction paradigm, forms drag interaction data and sends it to the drag scheduling system.
[0113] S3. The drag scheduling system drags the interaction data and forms validation determination information based on the drag interaction data.
[0114] S4. The drag scheduling system determines the effective drag response strategy for the drag response strategy in the drag response strategy set according to the effectiveness determination information.
[0115] S5. When the drag scheduling system determines that there is no valid drag response strategy for the drag interaction operation, the system feeds back information of canceling the response to the drag interaction operation to the software interaction event module.
[0116] S6. The software interaction event module keeps the display state of the dragged object on the interactive interface unchanged, and provides an interface prompt indicating that the dragging is invalid.
[0117] S7. When the drag scheduling system determines that a valid drag response strategy exists for the drag interaction operation, the response logic in the valid drag response strategy is executed and an execution result is obtained.
[0118] S8. When the drag scheduling system determines that the execution result is invalid, it feeds back information indicating that the drag is invalid to the software interaction event module, and returns to execute S6.
[0119] S9. When the drag scheduling system determines that the execution result is valid, the execution result is fed back to the software interaction event module.
[0120] S10. The software interaction event module displays the drag interaction result relative to the drag object on the interactive interface according to the execution result.
[0121] FIG2 is a structural diagram of an interface interaction device provided by an embodiment of the present disclosure. As shown in FIG2 , the device includes: a receiving module 21, an execution module 22, and a display module 23, wherein:
[0122] A receiving module 21 is configured to receive a drag interaction operation, wherein the dragged object of the drag interaction operation is presented on the displayed interactive interface;
[0123] an execution module 22 configured to, if a valid drag response strategy exists in a pre-built drag response strategy set for the drag interaction operation, execute the response logic in the valid drag response strategy and obtain an execution result, wherein the drag response strategies included in the drag response strategy set are orthogonal to each other;
[0124] The display module 23 is configured to display the drag interaction result relative to the drag object on the interactive interface when it is determined that the execution result is valid.
[0125] The embodiment of the present disclosure provides an interface interaction device, which is equivalent to adding a set of drag response strategies corresponding to different drag interaction operations to the computer software tool providing the interface interaction, so as to determine the effective drag response strategy after receiving the drag interaction operation, and only respond to the drag interaction operation when it is determined that there is an effective drag response strategy, and only render the execution result on the interactive interface to realize the display of the drag interaction result when the execution result after executing the response is determined to be valid. The interface interaction device performs a mutually orthogonal decoupling design on the drag response strategies corresponding to each drag interaction operation, adds a validity judgment of the drag interaction operation, and ensures that each valid drag interaction operation has a unique drag response strategy, effectively avoiding the shortcomings and limitations of the existing complex drag function implementation, expanding the executable drag interaction operation forms, and realizing the effective response of the drag interaction operation. At the same time, the technical solution constructs the drag response strategy set design in a mutually orthogonal form, realizes the unification and standardization of the drag interaction operation response form, and is more conducive to the functional maintenance and version iteration of the computer software tool in the later stage.
[0126] Furthermore, the device may also include:
[0127] an information generation module, which may be configured to obtain drag interaction data determined by the drag interaction operation, and form validation determination information according to the drag interaction data;
[0128] The effectiveness determination module may be configured to determine a valid drag response strategy from the drag response strategy set according to the effectiveness determination information.
[0129] Furthermore, the device may also include: an interaction data determination module, which may be configured to extract the drag input data corresponding to the drag interaction operation; encapsulate the drag input data according to the input data format defined by a preset drag interaction paradigm to form the drag interaction data.
[0130] Furthermore, the effectiveness determination module can be specifically configured as follows:
[0131] Obtaining a drag response strategy included in the drag response strategy set, wherein the drag response strategy includes a response effectiveness determination logic defined according to a preset drag interaction paradigm;
[0132] Using the validation determination information as input data of the response validation determination logic, running the response validation determination logic, and obtaining a return value of the response validation determination logic;
[0133] If there is a target run return value that satisfies the response valid flag value, the drag response strategy corresponding to the target run return value is determined as the valid drag response strategy; otherwise, it is determined that the valid drag response strategy does not exist in the drag response strategy set.
[0134] Furthermore, the device further includes a first invalidation processing module, which can be configured to:
[0135] When there is no valid drag response strategy for the drag interaction operation in the drag response strategy set, cancel the response to the drag interaction operation, keep the display state of the drag object in the interactive interface unchanged, and / or display an interface prompt indicating that the drag interaction operation is invalid.
[0136] Furthermore, the device may further include: a second invalidation processing module, which may be configured to:
[0137] When it is determined that the execution result is invalid, the display state of the drag object on the interactive interface is kept unchanged, and / or an interface prompt indicating that the execution result of the drag interaction operation is invalid is displayed.
[0138] Furthermore, the device may also include:
[0139] The value generation module may be configured to generate an execution return value indicating whether the execution is normal or not when the response to the dragging behavior event corresponding to the dragging object is completed according to the response logic, constituting an execution result;
[0140] The result validity determination module may be configured to determine that the execution result is valid if the execution return value indicates that the execution is normal; otherwise, determine that the execution result is invalid;
[0141] The execution return value is generated after the response to the drag behavior event corresponding to the drag object is completed according to the response logic.
[0142] The interface interaction device provided by the embodiment of the present disclosure can execute the interface interaction method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0143] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0144] FIG3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG3 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG3 ) 300 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG3 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0145] As shown in FIG3 , the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. Various programs and data required for the operation of the electronic device 300 are also stored in the RAM 303. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An edit / output (I / O) interface 305 is also connected to the bus 304.
[0146] Typically, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although FIG3 shows the electronic device 300 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0147] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0148] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0149] The electronic device provided by the embodiment of the present disclosure and the interface interaction method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0150] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the interface interaction method provided in the above embodiment.
[0151] It should be noted that the computer-readable medium described above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0152] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0153] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0154] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives a drag interaction operation, and the drag object of the drag interaction operation is presented on the displayed interactive interface; when there is a valid drag response strategy in the pre-built drag response strategy set relative to the drag interaction operation, executes the response logic in the valid drag response strategy and obtains an execution result, wherein the drag response strategies in the drag response strategy set are mutually orthogonal; when it is determined that the execution result is valid, displays the drag interaction result relative to the drag object on the interactive interface.
[0155] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0156] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0157] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0158] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0159] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0160] The present disclosure may be embodied in any form described herein, including but not limited to the illustrative examples listed below, which describe the structure, features, and functions of some parts of the present disclosure. However, it should be understood that various modifications may be made without departing from the spirit and scope of the present disclosure.
[0161] According to one or more embodiments of the present disclosure, [Example 1] provides an interface interaction method, the method comprising:
[0162] Receiving a drag interaction operation, wherein the dragged object of the drag interaction operation is presented on the displayed interactive interface;
[0163] If there is a valid drag response strategy in the pre-built drag response strategy set for the drag interaction operation, executing the response logic in the valid drag response strategy and obtaining an execution result, wherein the drag response strategies in the drag response strategy set are orthogonal to each other;
[0164] When it is determined that the execution result is valid, the drag interaction result relative to the drag object is displayed on the interactive interface.
[0165] According to one or more embodiments of the present disclosure, [Example 2] provides an interface interaction method, which may further include:
[0166] Obtaining drag interaction data determined by the drag interaction operation, and forming validity determination information according to the drag interaction data;
[0167] According to the effectiveness determination information, a valid drag response strategy is determined from the drag response strategy set.
[0168] According to one or more embodiments of the present disclosure, [Example 3] provides an interface interaction method, wherein the steps of determining drag interaction data may include:
[0169] Extracting drag input data corresponding to the drag interaction operation;
[0170] The drag input data is encapsulated according to an input data format defined by a preset drag interaction paradigm to form the drag interaction data.
[0171] According to one or more embodiments of the present disclosure, [Example 4] provides an interface interaction method that can further optimize the determination of an effective drag response strategy from the drag response strategy set based on the effectiveness determination information. Specifically, the method may include:
[0172] Obtaining a drag response strategy included in the drag response strategy set, wherein the drag response strategy includes a response effectiveness determination logic defined according to a preset drag interaction paradigm;
[0173] Using the validation determination information as input data of the response validation determination logic, running the response validation determination logic, and obtaining a return value of the response validation determination logic;
[0174] If there is a target run return value that satisfies the response valid flag value, the drag response strategy corresponding to the target run return value is determined as the valid drag response strategy; otherwise, it is determined that the valid drag response strategy does not exist in the drag response strategy set.
[0175] According to one or more embodiments of the present disclosure, [Example 5] provides an interface interaction method, which may also include:
[0176] When there is no valid drag response strategy for the drag interaction operation in the drag response strategy set, cancel the response to the drag interaction operation, keep the display state of the drag object in the interactive interface unchanged, and / or display an interface prompt indicating that the drag interaction operation is invalid.
[0177] According to one or more embodiments of the present disclosure, [Example 6] provides an interface interaction method, which may further include:
[0178] When it is determined that the execution result is invalid, the display state of the drag object on the interactive interface is kept unchanged, and / or an interface prompt indicating that the execution result of the drag interaction operation is invalid is displayed.
[0179] According to one or more embodiments of the present disclosure, [Example 7] provides an interface interaction method, which may further include:
[0180] When the response to the dragging behavior event corresponding to the dragging object is completed according to the response logic, an execution return value representing whether the execution is normal or not is generated, constituting an execution result;
[0181] If the execution return value indicates that the execution is normal, then the execution result is determined to be valid; otherwise, the execution result is determined to be invalid;
[0182] The execution return value is generated after the response to the drag behavior event corresponding to the drag object is completed according to the response logic.
[0183] According to one or more embodiments of the present disclosure, [Example 8] provides an interface interaction device, the device comprising:
[0184] a receiving module, configured to receive a drag interaction operation, wherein the dragged object of the drag interaction operation is presented on the displayed interactive interface;
[0185] an execution module configured to, if a valid drag response strategy exists in a pre-built drag response strategy set for the drag interaction operation, execute the response logic in the valid drag response strategy and obtain an execution result, wherein the drag response strategies included in the drag response strategy set are orthogonal to each other;
[0186] The display module can be configured to display the drag interaction result relative to the drag object on the interactive interface when it is determined that the execution result is valid.
[0187] According to one or more embodiments of the present disclosure, [Example 9] provides an electronic device, including:
[0188] one or more processors;
[0189] a storage device for storing one or more programs;
[0190] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of [Example 1] to [Example 7].
[0191] According to one or more embodiments of the present disclosure, [Example 10] provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method as in any one of [Example 1] to [Example 7] is implemented.
[0192] According to one or more embodiments of the present disclosure, [Example 11] provides a computer program product comprising instructions that, when executed by a processor, result in the implementation of a method as in any one of [Example 1] to [Example 7].
[0193] According to one or more embodiments of the present disclosure, [Example 12] provides a computer program, including program code, which, when executed by a processor, causes the implementation of the method in any one of [Example 1] to [Example 7].
[0194] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0195] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0196] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. An interface interaction method, include: Receiving a drag interaction operation, wherein a drag object of the drag interaction operation is presented on the displayed interactive interface; When there is a valid drag response strategy in the pre-built drag response strategy set for the drag interaction operation, executing the response logic in the valid drag response strategy and obtaining an execution result, wherein the drag response strategies in the drag response strategy set are orthogonal to each other; When it is determined that the execution result is valid, the drag interaction result relative to the drag object is displayed on the interactive interface.
2. The method according to claim 1, further comprising: include: Obtaining drag interaction data determined by the drag interaction operation, and forming validity determination information according to the drag interaction data; According to the effectiveness determination information, a determination is made on a valid drag response strategy from the drag response strategy set.
3. The method according to claim 2, in, The determination of the drag interaction data includes: Extracting drag input data corresponding to the drag interaction operation; The drag input data is encapsulated according to an input data format defined by a preset drag interaction paradigm to form the drag interaction data.
4. The method according to claim 2, in, The determining of a valid drag response strategy from the drag response strategy set according to the effectiveness determination information includes: Acquire a drag response strategy included in the drag response strategy set, wherein the drag response strategy includes a response effectiveness determination logic defined according to a preset drag interaction paradigm; Using the validity determination information as input data of the response validity determination logic, running the response validity determination logic, and obtaining the running return value of the response validity determination logic; If there is a target operation return value that satisfies the response valid mark value, the drag response strategy corresponding to the target operation return value is determined as the valid drag response strategy; otherwise, It is determined that the valid drag response strategy does not exist in the drag response strategy set.
5. The method according to any one of claims 1 to 4, further comprising: include: When there is no valid drag response strategy for the drag interaction operation in the drag response strategy set, cancel the response to the drag interaction operation, keep the display state of the drag object in the interactive interface unchanged, and / or display an interface prompt indicating that the drag interaction operation is invalid.
6. The method according to any one of claims 1 to 5, further comprising: include: When it is determined that the execution result is invalid, the display state of the drag object on the interactive interface is kept unchanged, and / or an interface prompt indicating that the execution result of the drag interaction operation is invalid is displayed.
7. The method according to any one of claims 1 to 6, further comprising: include: When the response to the drag behavior event corresponding to the drag object is completed according to the response logic, an execution return value representing whether the execution is normal or not is generated to constitute an execution result; If the execution return value indicates that the execution is normal, determining that the execution result is valid; Otherwise, determining that the execution result is invalid; The execution return value is generated after the response to the drag behavior event corresponding to the drag object is completed according to the response logic.
8. An interface interaction device, include: A receiving module configured to receive a drag interaction operation, wherein the drag object of the drag interaction operation is presented on the displayed interactive interface; an execution module, configured to, if there is a valid drag response strategy in the pre-built drag response strategy set for the drag interaction operation, execute the response logic in the valid drag response strategy and obtain an execution result, wherein the drag response strategies included in the drag response strategy set are orthogonal to each other; The display module can be configured to display the drag interaction result relative to the drag object on the interactive interface when it is determined that the execution result is valid.
9. The device according to claim 8, further comprising: include: an information generating module, configured to obtain the drag interaction data determined by the drag interaction operation, and form validity determination information according to the drag interaction data; The effectiveness determination module is configured to determine a valid drag response strategy from the drag response strategy set according to the effectiveness determination information.
10. The device according to claim 9, further comprising: include: an interaction data determination module, configured to extract drag input data corresponding to the drag interaction operation; The drag input data is encapsulated according to an input data format defined by a preset drag interaction paradigm to form the drag interaction data.
11. The device according to claim 9, in, The effectiveness determination module is configured as follows: Acquire a drag response strategy included in the drag response strategy set, wherein the drag response strategy includes a response effectiveness determination logic defined according to a preset drag interaction paradigm; Using the validity determination information as input data of the response validity determination logic, running the response validity determination logic, and obtaining the running return value of the response validity determination logic; If there is a target operation return value that satisfies the response valid mark value, the drag response strategy corresponding to the target operation return value is determined as the valid drag response strategy; Otherwise, it is determined that the valid drag response strategy does not exist in the drag response strategy set.
12. The device according to any one of claims 8 to 11, further comprising: include: The first invalid processing module can be configured as follows: When there is no valid drag response strategy for the drag interaction operation in the drag response strategy set, cancel the response to the drag interaction operation, keep the display state of the drag object in the interactive interface unchanged, and / or display an interface prompt indicating that the drag interaction operation is invalid.
13. The device according to any one of claims 8 to 12, further comprising: include: The second invalid processing module can be configured as follows: When it is determined that the execution result is invalid, the display state of the drag object on the interactive interface is kept unchanged, and / or an interface prompt indicating that the execution result of the drag interaction operation is invalid is displayed.
14. The device according to any one of claims 8 to 13, further comprising: include: The value generation module may be configured to generate an execution return value indicating whether the execution is normal or not when the response to the drag behavior event corresponding to the drag object is completed according to the response logic, thereby constituting an execution result; A result validity determination module may be configured to determine that the execution result is valid if the execution return value indicates that the execution is normal; Otherwise, determining that the execution result is invalid; The execution return value is generated after the response to the drag behavior event corresponding to the drag object is completed according to the response logic.
15. An electronic device, include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
16. A computer-readable storage medium having a computer program stored thereon, in, When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
17. A computer program product comprising instructions which, when executed by a processor, result in the implementation of the method according to any one of claims 1 to 7.
18. A computer program comprising a program code which, when executed by a processor, results in the implementation of the method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Data visualization system based on Web
CN102609507A
Interaction method and device, electronic equipment and storage medium
CN113986111A
Implementation method for dragging shadow animation effect and related equipment
CN114356186A
Method, device and equipment for generating front-end page based on drag-and-drop mode and storage medium
CN114489623A
Interface interaction method and device, equipment and storage medium
CN116069227A
Cited By
A vehicle end image display method, system, device and storage medium
CN122928605A
