CN109992178B - Control method and device of target component, storage medium and electronic device - Google Patents
Control method and device of target component, storage medium and electronic device Download PDFInfo
- Publication number
- CN109992178B CN109992178B CN201810002854.1A CN201810002854A CN109992178B CN 109992178 B CN109992178 B CN 109992178B CN 201810002854 A CN201810002854 A CN 201810002854A CN 109992178 B CN109992178 B CN 109992178B
- Authority
- CN
- China
- Prior art keywords
- component
- target
- animation
- target component
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000009471 action Effects 0.000 claims abstract description 169
- 230000004044 response Effects 0.000 claims abstract description 15
- 238000004590 computer program Methods 0.000 claims description 14
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 239000011159 matrix material Substances 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 description 48
- 230000005540 biological transmission Effects 0.000 description 4
- 238000013519 translation Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005034 decoration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a control method and device of a target component, a storage medium and an electronic device. Wherein the method comprises the following steps: acquiring a component control instruction, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to a target operation; loading a target component animation in response to the component control instruction; converting the target component animation into one or more component actions; the control-target component performs one or more component actions. The invention solves the technical problem that the operation of the components on the client can not be realized.
Description
Technical Field
The present invention relates to the field of electronics, and in particular, to a method and apparatus for controlling a target component, a storage medium, and an electronic apparatus.
Background
Component animation is an important component of terminal technology, and can realize rich User Interface (UI) effect under the support of the component animation, so that excellent interaction experience is brought to users. However, the prior art cannot realize that a specific animation effect is applied to the components after the application is released, so that a plurality of rich component animation effects cannot be operated, can only be released together with the application, and seriously affects the product experience. The prior art can realize the animation effect of the terminal component through view animation or attribute animation. Under the current flow, the implementation of the component animation starts from providing a good effect by a designer to ending the release of the application, and the whole process is ended after the release of the application is finished, so that the animation effect newly designed by the component application designer can not be achieved, the richness of the application is seriously influenced, and the characteristics and interactive experience of the product are limited.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a control method and device of a target component, a storage medium and an electronic device, which are used for at least solving the technical problem that the operation of the component on a client cannot be realized.
According to an aspect of the embodiment of the present invention, there is provided a control method of a target component, including: acquiring a component control instruction, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to target operation; loading the target component animation in response to the component control instruction; converting the target component animation into one or more component actions; and controlling the target component to execute the one or more component actions.
According to another aspect of the embodiment of the present invention, there is also provided a control device for a target assembly, including: the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a component control instruction, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to target operation; the loading module is used for responding to the component control instruction and loading the target component animation; the conversion module is used for converting the target component animation into one or more component actions; and the control module is used for controlling the target component to execute the one or more component actions.
According to a further aspect of an embodiment of the present invention, there is also provided a storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to perform the method of any of the above-mentioned methods when run.
According to a further aspect of an embodiment of the invention there is also provided an electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the preceding claims by means of the computer program.
In the embodiment of the invention, an acquisition component control instruction is adopted, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to target operation; loading a target component animation in response to the component control instruction; converting the target component animation into one or more component actions; the method comprises the steps of controlling a target component to execute one or more component actions, indicating the target component animation to be displayed by the target component through a component control instruction, loading the target component animation in response to the acquired component control instruction, converting the target component animation into one or more component actions, and controlling the target component to execute the component actions, so that different animation effects can be displayed by the target component for different target operations, the animation effects displayed by the target component can be operated, the aim of richer animation effects displayed by the component on a client is achieved, the technical effect of operating the component on the client is achieved, and the technical problem that the operation of the component on the client cannot be achieved is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an alternative method of controlling a target assembly according to an embodiment of the application;
FIG. 2 is a schematic illustration of an alternative control method for a target component according to an embodiment of the application;
FIG. 3 is a schematic illustration of an alternative method of controlling a target assembly according to an alternative embodiment of the application;
FIG. 4 is a schematic illustration of another alternative method of controlling a target assembly according to an alternative embodiment of the application;
FIG. 5 is a schematic diagram of a control device of an alternative target assembly according to an embodiment of the application;
FIG. 6 is a schematic illustration of an application scenario of an alternative method of controlling a target component according to an embodiment of the application; and
fig. 7 is a schematic diagram of an alternative electronic device according to an embodiment of the application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided a control method of a target component, as shown in fig. 1, the method including:
s102, acquiring a component control instruction, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to target operation;
S104, responding to the component control instruction, and loading the target component animation;
s106, converting the target component animation into one or more component actions;
s108, the control target component executes one or more component actions.
Alternatively, in the present embodiment, the control method of the target component described above may be applied to a hardware environment constituted by the terminal 202 as shown in fig. 2. As shown in fig. 2, a client 204 is installed in a terminal 202, where the client 204 obtains a component control instruction, where the component control instruction is used to instruct a target component in the client 204 to display a target component animation corresponding to a target operation, and the client 204 responds to the component control instruction, loads the target component animation, converts the target component animation into one or more component actions, and controls the target component to execute the one or more component actions.
Alternatively, in this embodiment, the control method of the target component may be applied, but not limited to, in a scenario of operating a component in a client. The client may be, but not limited to, various types of applications, such as an online education application, an instant messaging application, a community space application, a game application, a shopping application, a browser application, a financial application, a multimedia application, and the like. In particular, the method and the device can be applied to the scene of operating the components in the client in the instant messaging application or can also be applied to the scene of operating the components in the client in the game application to realize the operation of the components on the client. The above is merely an example, and there is no limitation in this embodiment.
Alternatively, in the present embodiment, the target component may be any one of elements in the client. For example: interfaces, lists, menus, icons, etc.
Alternatively, in the present embodiment, the target operations may include, but are not limited to: click operations, drag operations, slide operations, zoom operations, and the like. The object on which the target operation is performed may be not a target component, but may be a target component, and is not limited in this embodiment.
For example: taking an object to be executed with a target operation as a target component, where the target component is a chat interface of an instant messaging client, as shown in fig. 3, the target operation is clicking the chat interface, and the target component animation is chatting interface, then after the client detects that a user clicks the chat interface, the client obtains a component control instruction for indicating to control the chatting interface to display a chatting effect, and the client loads the chatting animation of the chat interface in response to the component control instruction, and converts the animation into five component actions, including: the chat interface shifts to the left side of the screen, the chat interface shifts to the upper side of the screen, the chat interface shifts to the right side of the screen, the chat interface shifts to the lower side of the screen, the chat interface returns to the center of the screen, and the client controls the chat interface to execute the five actions, so that the animation effect of the shake of the chat interface is displayed on the screen of the client.
In another example, taking the object on which the target operation is performed as other elements in the client (such as a microphone icon in a chat interface), the target component is an information input box in the chat interface of the instant messaging client, as shown in fig. 4, the target operation is to click on the microphone icon, the target component animation is changed into a microphone after the information input box rotates 360 degrees, after the client detects that the user clicks on the microphone icon, the client acquires a component control instruction for indicating to change into the microphone after the control information input box rotates 360 degrees, and the client loads the animation of changing into the microphone after the information input box rotates 360 degrees in response to the component control instruction, and converts the animation into eight component actions, including: the information input frame rotates anticlockwise to a 45-degree position, the information input frame rotates anticlockwise to a 90-degree position, the information input frame rotates anticlockwise to a 135-degree position, the information input frame rotates anticlockwise to a 180-degree position, the information input frame rotates anticlockwise to a 225-degree position, the information input frame rotates anticlockwise to a 270-degree position, the information input frame rotates anticlockwise to a 315-degree position, the information input frame becomes a microphone icon, the client controls the information input frame to execute the eight actions, and then an animation effect that the information input frame becomes a microphone after rotating 360 degrees is displayed on a screen of the client.
Alternatively, in the present embodiment, the component action may include, but is not limited to, attribute information of the component, animation information of the component, and the like. For example: the control component may perform component actions, such as, but not limited to, the control component performing actions of changing coordinates of the component, such as translation, rotation, scaling, etc., and may also display animation effects, such as changing transparency, changing brightness, changing contrast, displaying animation, displaying images, etc., on the control component.
Alternatively, in the present embodiment, a component action bearing unit may be set up for a target component in a client, and loading, conversion, and control operations of the component to perform a component action of a target component animation may be performed by the component action bearing unit.
Alternatively, in the present embodiment, the target component animation may be, but not limited to, acquired from a server, or may be, but not limited to, stored locally at the client. The developer of the client can modify, replace and the like the component animation stored on the client and store the component animation on the server, and the client can periodically download the component animation of the new version stored on the server to the local for storage or replace the original version. Alternatively, the client may query whether an updated version exists on the server each time a component animation is acquired, pull the version from the server if there is an update, and directly load the locally stored component animation if there is no update.
Alternatively, in the present embodiment, the process of converting the target component animation may be, but not limited to, performing operations such as checking, parsing, calculating, converting, and decorating the target component animation, by which the target component animation is converted into action matrix information that can be calculated with component coordinates to control the position of the component.
Therefore, through the steps, the component control instruction indicates the target component animation to be displayed by the target component, the target component animation is loaded in response to the acquired component control instruction, the target component animation is converted into one or more component actions, and the target component is controlled to execute the component actions, so that for different target operations, the target component can display different animation effects, the animation effects displayed by the target component can be operated, the aim of richer animation effects displayed by the component on the client is achieved, the technical effect of operating the component on the client is achieved, and the technical problem that the operation of the component on the client cannot be achieved is solved.
As an alternative, loading the target component animation in response to the component control instruction includes:
S1, acquiring a target operation identifier carried in a component control instruction, wherein the target operation identifier is used for identifying a target operation;
s2, searching a target component animation corresponding to the target operation identifier from the operation identifiers and the component animations with the corresponding relations;
and S3, loading the animation of the target component in the client.
Optionally, in this embodiment, the component control instruction may carry a target operation identifier for identifying a target operation, and the target component animation is found from the operation identifier and the component animation that have a corresponding relationship by using the target operation identifier, and is loaded in the client.
In an alternative embodiment, the operation identifier and the component animation with the corresponding relationship are stored in the client in a form as shown in table 1, and if the target operation identifier carried in the component control instruction acquired by the client is ID-2, the client searches the corresponding relationship indicated by table 1 for the target component animation corresponding to the target operation identifier ID-2 as an animation file 2, and loads the animation file 2 into the client.
TABLE 1
Operation of | Operation identification | Component animation |
Operation 1 | ID-1 | Animation file 1 |
Operation 2 | ID-2 | Animation file 2 |
Operation 3 | ID-3 | Animation file 3 |
As an alternative, converting the target component animation to one or more component actions includes:
s1, acquiring one or more action elements and action time corresponding to each action element from a target component animation;
s2, determining one or more component actions according to the action elements and the action time, wherein each component action comprises one or more action elements and action time with corresponding relations.
Optionally, in this embodiment, the component actions include action elements and action times corresponding to the action elements, where the action times are used to indicate presentation times of the action elements in the target component animation, that is, one or more component actions are used to control each action performed by the target component and a sequential relationship between the actions.
In an alternative embodiment, each component action may be referred to as an action sub, where the action sub includes an action effect unit (i.e., action element) and a time axis (i.e., action time), where the action effect unit may represent an action effect such as pan, zoom, rotate, transparency, and the like, and the time axis may represent a time relationship between action effects.
Alternatively, in the present embodiment, the target component may be controlled to perform one or more component actions by controlling the target component to perform one or more action elements in the time sequence of the action time.
As an alternative, each action element includes: attribute information and/or animation information, wherein the attribute information is used for indicating characteristic attributes of the target component, the animation information is used for indicating animation played on the target component, and controlling the target component to execute the action element comprises one of the following steps:
s1, controlling a target component to display attribute information;
s2, displaying animation information on the target component;
and S3, controlling the target component to display the attribute information, and simultaneously displaying the animation information on the target component.
Alternatively, in the present embodiment, the attribute information may include, but is not limited to, coordinate information of the component, display information of the component (e.g., information of transparency, brightness, contrast, color, etc.), character information in the component (e.g., font, style, size of characters), and the like.
Alternatively, in the present embodiment, the animation information may include, but is not limited to, information including video, images, and the like displayed on the component.
As an alternative, the acquiring the component control instruction includes:
S1, detecting target operation executed by an account of a login client on a target object in the client;
s2, acquiring a target component corresponding to the target operation from the operation and component with the corresponding relation;
s3, generating a component control instruction based on the target component.
Alternatively, in the present embodiment, there may be a correspondence between an operation performed on the client and a component in the client, such as: for the same object in the client, different operations may control different components to perform different component animations. The client can acquire the target component from the operation and the component with the corresponding relation according to the target operation detected on the client and executed on the target object in the client, and generate a component control instruction to instruct the target component in the control client to display the target component animation corresponding to the target operation.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a control device for a target component for implementing the control method for a target component, as shown in fig. 5, the device including:
1) The obtaining module 52 is configured to obtain a component control instruction, where the component control instruction is configured to instruct a target component in the control client to display a target component animation corresponding to the target operation;
2) A loading module 54 for loading the target component animation in response to the component control instruction;
3) A conversion module 56 for converting the target component animation into one or more component actions;
4) A control module 58 for controlling the target component to perform one or more component actions.
Alternatively, in the present embodiment, the control device of the target component described above may be applied to a hardware environment constituted by the terminal 202 as shown in fig. 2. As shown in fig. 2, a client 204 is installed in a terminal 202, where the client 204 obtains a component control instruction, where the component control instruction is used to instruct a target component in the client 204 to display a target component animation corresponding to a target operation, and the client 204 responds to the component control instruction, loads the target component animation, converts the target component animation into one or more component actions, and controls the target component to execute the one or more component actions.
Alternatively, in this embodiment, the control device of the target component may be applied, but not limited to, in a scenario of operating a component in a client. The client may be, but not limited to, various types of applications, such as an online education application, an instant messaging application, a community space application, a game application, a shopping application, a browser application, a financial application, a multimedia application, and the like. In particular, the method and the device can be applied to the scene of operating the components in the client in the instant messaging application or can also be applied to the scene of operating the components in the client in the game application to realize the operation of the components on the client. The above is merely an example, and there is no limitation in this embodiment.
Alternatively, in the present embodiment, the target component may be any one of elements in the client. For example: interfaces, lists, menus, icons, etc.
Alternatively, in the present embodiment, the target operations may include, but are not limited to: click operations, drag operations, slide operations, zoom operations, and the like. The object on which the target operation is performed may be not a target component, but may be a target component, and is not limited in this embodiment.
For example: taking an object to be executed with a target operation as a target component, where the target component is a chat interface of an instant messaging client, as shown in fig. 3, the target operation is clicking the chat interface, and the target component animation is chatting interface, then after the client detects that a user clicks the chat interface, the client obtains a component control instruction for indicating to control the chatting interface to display a chatting effect, and the client loads the chatting animation of the chat interface in response to the component control instruction, and converts the animation into five component actions, including: the chat interface shifts to the left side of the screen, the chat interface shifts to the upper side of the screen, the chat interface shifts to the right side of the screen, the chat interface shifts to the lower side of the screen, the chat interface returns to the center of the screen, and the client controls the chat interface to execute the five actions, so that the animation effect of the shake of the chat interface is displayed on the screen of the client.
In another example, taking the object on which the target operation is performed as other elements in the client (such as a microphone icon in a chat interface), the target component is an information input box in the chat interface of the instant messaging client, as shown in fig. 4, the target operation is to click on the microphone icon, the target component animation is changed into a microphone after the information input box rotates 360 degrees, after the client detects that the user clicks on the microphone icon, the client acquires a component control instruction for indicating to change into the microphone after the control information input box rotates 360 degrees, and the client loads the animation of changing into the microphone after the information input box rotates 360 degrees in response to the component control instruction, and converts the animation into eight component actions, including: the information input frame rotates anticlockwise to a 45-degree position, the information input frame rotates anticlockwise to a 90-degree position, the information input frame rotates anticlockwise to a 135-degree position, the information input frame rotates anticlockwise to a 180-degree position, the information input frame rotates anticlockwise to a 225-degree position, the information input frame rotates anticlockwise to a 270-degree position, the information input frame rotates anticlockwise to a 315-degree position, the information input frame becomes a microphone icon, the client controls the information input frame to execute the eight actions, and then an animation effect that the information input frame becomes a microphone after rotating 360 degrees is displayed on a screen of the client.
Alternatively, in the present embodiment, the component action may include, but is not limited to, attribute information of the component, animation information of the component, and the like. For example: the control component may perform component actions, such as, but not limited to, the control component performing actions of changing coordinates of the component, such as translation, rotation, scaling, etc., and may also display animation effects, such as changing transparency, changing brightness, changing contrast, displaying animation, displaying images, etc., on the control component.
Alternatively, in the present embodiment, a component action bearing unit may be set up for a target component in a client, and loading, conversion, and control operations of the component to perform a component action of a target component animation may be performed by the component action bearing unit.
Alternatively, in the present embodiment, the target component animation may be, but not limited to, acquired from a server, or may be, but not limited to, stored locally at the client. The developer of the client can modify, replace and the like the component animation stored on the client and store the component animation on the server, and the client can periodically download the component animation of the new version stored on the server to the local for storage or replace the original version. Alternatively, the client may query whether an updated version exists on the server each time a component animation is acquired, pull the version from the server if there is an update, and directly load the locally stored component animation if there is no update.
Alternatively, in the present embodiment, the process of converting the target component animation may be, but not limited to, performing operations such as checking, parsing, calculating, converting, and decorating the target component animation, by which the target component animation is converted into action matrix information that can be calculated with component coordinates to control the position of the component.
Therefore, through the device, the component control instruction indicates the target component animation to be displayed by the target component, the target component animation is loaded in response to the acquired component control instruction, the target component animation is converted into one or more component actions, and the target component is controlled to execute the component actions, so that for different target operations, the target component can display different animation effects, the animation effects displayed by the target component can be operated, the aim of richer animation effects displayed by the component on the client is achieved, the technical effect of operating the component on the client is achieved, and the technical problem that the operation of the component on the client cannot be realized is solved.
As an alternative, the loading module includes:
1) The first acquisition unit is used for acquiring a target operation identifier carried in the component control instruction, wherein the target operation identifier is used for identifying a target operation;
2) The searching unit is used for searching the target component animation corresponding to the target operation identifier from the operation identifiers and the component animations with the corresponding relation;
3) And the loading unit is used for loading the target component animation in the client, wherein the component action bearing unit is used for playing the target component animation.
Optionally, in this embodiment, the component control instruction may carry a target operation identifier for identifying a target operation, and the target component animation is found from the operation identifier and the component animation that have a corresponding relationship by using the target operation identifier, and is loaded in the client.
In an alternative embodiment, the operation identifier and the component animation with the corresponding relationship are stored in the client in a form as shown in table 2, and if the target operation identifier carried in the component control instruction acquired by the client is ID-2, the client searches the corresponding relationship indicated by table 2 for the target component animation corresponding to the target operation identifier ID-2 as the animation file 2, and loads the animation file 2 into the client.
TABLE 2
As an alternative, the conversion module includes:
1) The second acquisition unit is used for acquiring one or more action elements and action time corresponding to each action element from the target component animation;
2) And the determining unit is used for determining one or more component actions according to the action elements and the action time, wherein each component action comprises one or more action elements and action time with corresponding relations.
Optionally, in this embodiment, the component actions include action elements and action times corresponding to the action elements, where the action times are used to indicate presentation times of the action elements in the target component animation, that is, one or more component actions are used to control each action performed by the target component and a sequential relationship between the actions.
In an alternative embodiment, each component action may be referred to as an action sub, where the action sub includes an action effect unit (i.e., action element) and a time axis (i.e., action time), where the action effect unit may represent an action effect such as pan, zoom, rotate, transparency, and the like, and the time axis may represent a time relationship between action effects.
Alternatively, in the present embodiment, the target component may be controlled to perform one or more component actions by controlling the target component to perform one or more action elements in the time sequence of the action time.
As an alternative, each action element includes: attribute information for indicating a characteristic attribute of the target component and/or animation information for indicating an animation played on the target component, the control unit including one of:
1) The first control subunit is used for controlling the target component to display attribute information;
2) A second control subunit for displaying the animation information on the target component;
3) And the third control subunit is used for controlling the target component to display the attribute information and simultaneously displaying the animation information on the target component.
Alternatively, in the present embodiment, the attribute information may include, but is not limited to, coordinate information of the component, display information of the component (e.g., information of transparency, brightness, contrast, color, etc.), character information in the component (e.g., font, style, size of characters), and the like.
Alternatively, in the present embodiment, the animation information may include, but is not limited to, information including video, images, and the like displayed on the component.
As an alternative, the acquiring module includes:
1) The detection unit is used for detecting target operation executed by an account of the login client on a target object in the client;
2) A third obtaining unit, configured to obtain a target component corresponding to the target operation from the operation and component having the corresponding relationship;
3) And the generating unit is used for generating the component control instruction based on the target component.
Alternatively, in the present embodiment, there may be a correspondence between an operation performed on the client and a component in the client, such as: for the same object in the client, different operations may control different components to perform different component animations. The client can acquire the target component from the operation and the component with the corresponding relation according to the target operation detected on the client and executed on the target object in the client, and generate a component control instruction to instruct the target component in the control client to display the target component animation corresponding to the target operation.
The application environment of the embodiment of the present invention may be, but is not limited to, the application environment in the above embodiment, and this will not be described in detail in this embodiment. The embodiment of the invention provides an alternative specific application example for implementing the control method of the target component.
As an alternative embodiment, the control method of the target component may be applied, but not limited to, in the scenario of controlling the target component as shown in fig. 6. Component animation is an important component of terminal technology, can realize rich UI effects under the support of the component animation, and brings excellent interaction experience to users. However, the prior art cannot implement an operation of applying a specific animation effect to a component after the application is released, which causes that a plurality of rich component animation effects cannot be operated, can only be released together with the application, and seriously affects the product experience. In view of this difficulty, the present embodiment introduces the concept of a component action bearing unit and an action sub.
The component action bearing unit aims at completing management of operation action content, including loading, checking, analyzing, operation, conversion, decoration and the like, until an action child of the component action is obtained. The concept of action sub refers to elements representing the most basic actions that can be performed by the component obtained through matrix operation, and the elements include effect units such as translation, scaling, rotation and transparency, and time axis units. By establishing a mapping relation between the component and the component action bearing unit, the basic action effect borne by the component action bearing unit can be combined with the time axis combination to be applied to the released terminal component, and richer and better user experience is provided.
As shown in fig. 6, a component action bearing unit is created and a mapping relation is established with a target component, and a newly designed target component animation is loaded by the component action bearing unit. After loading, verifying, analyzing, calculating, converting and modifying the animation information row of the target assembly, and converting the designed animation into action matrix information through the steps, wherein the matrix can be calculated with the assembly coordinates so as to control the position, display effect and the like of the target assembly. And generating an action sub, wherein the action sub comprises an action effect unit and a time axis, the action effect unit is used for representing action effects such as translation, scaling, rotation and transparency, and the time axis is used for representing the time relation among the effects. And combining the action effect unit with the time axis, generating a component animation effect, acting on the target component, and controlling the coordinates of the target component. By adopting the mode, the user can be reached by issuing the component animation, and the interaction experience is improved.
According to the technical scheme, the original one-time molding and release component animation effects which cannot be changed are expanded, the operation requirements of component animation are met, the component animation can be controlled to be played after application release, the application effects are enriched, the interactivity is improved, and the user experience is further improved.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic apparatus for implementing control of the above-mentioned target assembly, as shown in fig. 7, the electronic apparatus including: one or more (only one is shown in the figure) processors 702, a memory 704, in which a computer program is stored, which are arranged to perform the steps of any of the method embodiments described above, a sensor 706, an encoder 708 and a transmission means 710.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a component control instruction, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to target operation;
s2, responding to the component control instruction, and loading a target component animation;
s3, converting the target component animation into one or more component actions;
s4, controlling the target component to execute one or more component actions.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 7 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 7 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The memory 704 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a target component in the embodiment of the present invention, and the processor 702 executes the software programs and modules stored in the memory 704, thereby performing various functional applications and data processing, that is, implementing the method for controlling a target component. Memory 704 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 704 may further include memory located remotely from the processor 702, such remote memory being connectable to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 710 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 710 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 710 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In particular, the memory 704 is used to store target component animations, as well as applications.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, acquiring a component control instruction, wherein the component control instruction is used for indicating a target component in a control client to display a target component animation corresponding to target operation;
s2, responding to the component control instruction, and loading a target component animation;
s3, converting the target component animation into one or more component actions;
s4, controlling the target component to execute one or more component actions.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the above embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (12)
1. A method of controlling a target assembly, comprising:
acquiring a component control instruction in the process of operating a component in a client, wherein the component control instruction is used for indicating and controlling a target component in the client to display a target component animation corresponding to target operation, and the target component animation is an animation which is obtained by modifying the component animation stored in the client by a developer of the client and is stored on a server;
Loading the target component animation on the client in response to the component control instructions; converting the target component animation into one or more component actions; controlling the target component to execute the one or more component actions;
loading the target component animation in response to the component control instruction comprises:
acquiring a target operation identifier carried in the component control instruction, wherein the target operation identifier is used for identifying the target operation; searching the target component animation corresponding to the target operation identifier from the operation identifiers and the component animations with the corresponding relation; loading the target component animation in the client;
a process for converting the animation of the target component, comprising:
and verifying, analyzing, operating, converting and modifying the target component animation to convert the target component animation into action matrix information, wherein the action matrix information is used for operating with component coordinates so as to control the position of the component.
2. The method of claim 1, wherein converting the target component animation to one or more component actions comprises:
acquiring one or more action elements and action time corresponding to each action element from the target component animation;
And determining one or more component actions according to the action elements and the action time, wherein each component action comprises one or more action elements and action time with corresponding relations.
3. The method of claim 2, wherein controlling the target component to perform the one or more component actions comprises:
and controlling the target component to execute the one or more action elements according to the time sequence of the action time.
4. A method according to claim 3, wherein each of the action elements comprises: attribute information and/or animation information, wherein the attribute information is used for indicating characteristic attributes of the target component, the animation information is used for indicating animation played on the target component, and controlling the target component to execute the action element comprises one of the following steps:
controlling the target component to display the attribute information;
displaying the animation information on the target component;
and controlling the target component to display the attribute information, and simultaneously displaying the animation information on the target component.
5. The method of any one of claims 1 to 4, wherein obtaining component control instructions comprises:
Detecting the target operation executed by an account logged in the client on a target object in the client;
acquiring the target component corresponding to the target operation from the operation and component with the corresponding relation;
the component control instructions are generated based on the target component.
6. A control device of a target assembly, characterized by comprising:
the system comprises an acquisition module, a server and a storage module, wherein the acquisition module is used for acquiring a component control instruction in the process of operating a component in a client, wherein the component control instruction is used for indicating and controlling a target component in the client to display a target component animation corresponding to target operation, and the target component animation is an animation which is obtained by modifying the component animation stored in the client by a developer of the client and is stored in the server;
a loading module, configured to load, on the client, the target component animation acquired from the server in response to the component control instruction;
the conversion module is used for converting the target component animation into one or more component actions;
a control module for controlling the target component to perform the one or more component actions;
the loading module comprises:
The first acquisition unit is used for acquiring a target operation identifier carried in the component control instruction, wherein the target operation identifier is used for identifying the target operation;
the searching unit is used for searching the target component animation corresponding to the target operation identifier from the operation identifiers and the component animations with the corresponding relation;
the loading unit is used for loading the target component animation in the client, wherein the component action bearing unit is used for playing the target component animation;
the conversion module is used for:
and verifying, analyzing, operating, converting and modifying the target component animation to convert the target component animation into action matrix information, wherein the action matrix information is used for operating with component coordinates so as to control the position of the component.
7. The apparatus of claim 6, wherein the conversion module comprises:
the second acquisition unit is used for acquiring one or more action elements and action time corresponding to each action element from the target component animation;
and the determining unit is used for determining one or more component actions according to the action elements and the action time, wherein each component action comprises one or more action elements and action time with corresponding relations.
8. The apparatus of claim 7, wherein the control module comprises:
and the control unit is used for controlling the target component to execute the one or more action elements according to the time sequence of the action time.
9. The apparatus of claim 8, wherein each of the action elements comprises: attribute information for indicating a characteristic attribute of the target component and/or animation information for indicating an animation played on the target component, the control unit including one of:
a first control subunit, configured to control the target component to display the attribute information;
a second control subunit for displaying the animation information on the target component;
and the third control subunit is used for controlling the target component to display the attribute information and simultaneously displaying the animation information on the target component.
10. The apparatus according to any one of claims 6 to 9, wherein the acquisition module comprises:
the detection unit is used for detecting the target operation executed by the account logged in the client on the target object in the client;
A third obtaining unit, configured to obtain, from operations and components having a correspondence relationship, the target component corresponding to the target operation;
and the generating unit is used for generating the component control instruction based on the target component.
11. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when run.
12. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 5 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002854.1A CN109992178B (en) | 2018-01-02 | 2018-01-02 | Control method and device of target component, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002854.1A CN109992178B (en) | 2018-01-02 | 2018-01-02 | Control method and device of target component, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109992178A CN109992178A (en) | 2019-07-09 |
CN109992178B true CN109992178B (en) | 2023-09-26 |
Family
ID=67128289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810002854.1A Active CN109992178B (en) | 2018-01-02 | 2018-01-02 | Control method and device of target component, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109992178B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113687815B (en) * | 2021-09-07 | 2024-03-15 | 网易(杭州)网络有限公司 | Method and device for processing dynamic effects of multiple components in container, electronic equipment and storage medium |
CN114546568A (en) * | 2022-02-25 | 2022-05-27 | 重庆紫光华山智安科技有限公司 | Method, device, electronic device and storage medium for dragging and dropping page elements |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102007486A (en) * | 2007-03-26 | 2011-04-06 | 郑相国 | Program designed master animation and method for producing thereof |
CN102289339A (en) * | 2010-06-21 | 2011-12-21 | 腾讯科技(深圳)有限公司 | Method and device for displaying expression information |
CN106250046A (en) * | 2016-08-10 | 2016-12-21 | 北京金山安全软件有限公司 | Praise processing method and device and terminal equipment |
CN107204031A (en) * | 2017-04-27 | 2017-09-26 | 腾讯科技(深圳)有限公司 | Information displaying method and device |
CN107294838A (en) * | 2017-05-24 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Animation producing method, device, system and the terminal of social networking application |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101337292B1 (en) * | 2012-01-27 | 2013-12-05 | (주) 골프존 | System for providing a ball game and method therefor |
-
2018
- 2018-01-02 CN CN201810002854.1A patent/CN109992178B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102007486A (en) * | 2007-03-26 | 2011-04-06 | 郑相国 | Program designed master animation and method for producing thereof |
CN102289339A (en) * | 2010-06-21 | 2011-12-21 | 腾讯科技(深圳)有限公司 | Method and device for displaying expression information |
CN106250046A (en) * | 2016-08-10 | 2016-12-21 | 北京金山安全软件有限公司 | Praise processing method and device and terminal equipment |
CN107204031A (en) * | 2017-04-27 | 2017-09-26 | 腾讯科技(深圳)有限公司 | Information displaying method and device |
CN107294838A (en) * | 2017-05-24 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Animation producing method, device, system and the terminal of social networking application |
Also Published As
Publication number | Publication date |
---|---|
CN109992178A (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10735814B2 (en) | Extracting media content from social networking services | |
CN103369369B (en) | Media content and the system and method presented are extracted from social networking service | |
CN107045508B (en) | Application program processing method and device | |
CN110784752A (en) | Video interaction method and device, computer equipment and storage medium | |
JP5530557B1 (en) | Server, program and method for distributing content | |
CN104202718A (en) | Method and device for providing information for user | |
US9892658B1 (en) | System and method for dynamically inserting tutorials in a mobile application | |
CN112667942B (en) | Animation generation method, device and medium | |
CN103150658A (en) | Augmented reality (AR) customizing system and method facing to terminal user | |
CN111324275A (en) | Broadcasting method and device for elements in display picture | |
CN112068873A (en) | Webpage generation method, device, server and storage medium | |
CN113242308B (en) | Information pushing method, device, equipment and storage medium | |
CN109992178B (en) | Control method and device of target component, storage medium and electronic device | |
CN116688526A (en) | Virtual character interaction method and device, terminal equipment and storage medium | |
Punt et al. | An integrated environment and development framework for social gaming using mobile devices, digital TV and Internet | |
EP4407409A1 (en) | Behavior wallpaper unlocking method and apparatus, and electronic device | |
CN112837129A (en) | App store display method, device, electronic device and storage medium | |
JP2015115057A (en) | Server, program and method for distributing content | |
US20190082195A1 (en) | Network Based Publication and Dynamic Distribution of Live Media Content | |
CN112799552B (en) | Popularization picture sharing method and device and storage medium | |
CN114765700A (en) | Information interaction method and device, storage medium and electronic equipment | |
US20190268386A1 (en) | Enhancement to autonomously executed applications | |
HK40044243A (en) | A promotion picture sharing method, device and storage medium | |
CN112637640B (en) | Video interaction method and device | |
HK40043830A (en) | Method and device for displaying application store, electronic apparatus and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |