Tabletop suspension menu marking method and device and electronic equipment
By designing stacked interactive graphics and hiding menu data in the user interaction interface, shortcut menus are automatically generated based on user behavior, which solves the problems of unsightly appearance and monotonous functions of existing shortcut menus, and improves user experience and usability of menu functions.
Patent Information
- Application Number
- CN202410741559.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-03
AI Technical Summary
The shortcut menu of existing web applications or desktop applications has an ugly appearance, monotonous functions, and is difficult to attract users. It cannot be hidden when not in use, causing users to get accustomed to the initial usage behavior, making the shortcut menu function useless.
Provide a method for marking desktop floating menus. By drawing mutually stacked interactive graphics on the user interaction interface, the hidden menu data is in the form of icons, and shortcut menus are automatically generated based on user behavior. Customization and extension functions are added, and graphics and visual elements are used to improve Operability and user experience.
The appearance and operability of the shortcut menu are improved, user satisfaction and loyalty are enhanced, and the shortcut menu function not only has basic functions, but also provides additional usability and attraction.
Smart Images

Figure CN118585101A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software menu interaction, and in particular to a marking method, device and electronic equipment for a desktop floating menu. Background Art
[0002] Currently, most web applications or desktop application shortcut menus are in the form of cards or a set of text links. The appearance is not very beautiful and not very attractive to users. At the same time, the functions are monotonous and cannot be hidden when not in use.
[0003] Ordinary shortcut menus are hard to attract users, after all, there are user shortcut menu lists only after user operations and access behaviors. If the shortcut menu is only displayed in a conspicuous place, users may not buy it. When users access a function module through the system menu and the shortcut menu respectively, if the efficiency difference between the two methods is not very large, then users are likely to get used to the initial usage behavior, which makes the shortcut menu function useless. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a marking method, device and electronic device for a desktop floating menu. By default, a relatively conspicuous icon is displayed in the lower right corner of the desktop, and it will expand when the mouse moves over it. Not only can a shortcut menu set be automatically generated according to user behavior, but also customized shortcut menus and other extended functions are provided, and the operability is significantly improved. The extended functions are also based on the supplement of the application system, and will not appear abrupt, but will make the user's eyes light up. It can be optimized in terms of appearance and operability, with graphics and visual elements as the main elements, and the design of the user interface is presented through graphic modeling, making it easy to understand and operate; thereby improving the usability, accessibility and attractiveness of the user interface, thereby enhancing user satisfaction and loyalty. Some indispensable extended functions can also be added to it, so that it has more than just a shortcut menu function.
[0005] In the first aspect, an embodiment of the present invention provides a method for marking a desktop floating menu, the method comprising: drawing a first interactive graphic and a second interactive graphic stacked on each other on a user interaction interface; wherein the area of the first interactive graphic is larger than the area of the second interactive graphic, and the first interactive graphic is located below the second interactive graphic; multiple menu categories are set in the second interactive graphic; multiple menu data for each menu category are generated, and the multiple menu data are hidden in the first interactive graphic in the form of icons; wherein the menu data includes user-defined menu data, default menu data, and high-frequency menu data generated based on user behavior; when the user clicks on a target menu category in the second interactive graphic, the multiple menu data of the target menu category are displayed in the first interactive graphic.
[0006] In an optional embodiment of the present application, the step of setting a plurality of menu categories in the second interactive graphic includes: placing the plurality of menu categories in the form of icons at the edge of the second interactive graphic based on angle or radian calculation;
[0007] The step of hiding the plurality of menu data in the first interactive graphic in the form of icons includes: hiding the plurality of menu data in the form of icons at the edge of the first interactive graphic based on angle or radian calculation.
[0008] In an optional embodiment of the present application, after the above-mentioned step of hiding multiple menu data in the form of icons at the edge of the first interactive graphic, the method also includes: adjusting the position of the user interaction interface, setting the user interaction interface in a designated area of the browser interface to cover the area of the user interaction interface where icons of menu categories and icons of menu data are not placed.
[0009] In an optional embodiment of the present application, the above method also includes: displaying quotations published by the system on the user interaction interface, setting an audio player, displaying a lucky bag icon, displaying a message notification icon and / or displaying an inverted triangle icon; wherein the inverted triangle icon is used to control the display and hiding of the toolbox.
[0010] In an optional embodiment of the present application, a parent element is defined, and the parent element includes a first child element and a second child element; wherein the first child element is used to draw a first interactive graphic and a second interactive graphic, and the second child element is used to draw an icon; the step of drawing the first interactive graphic and the second interactive graphic stacked on each other in the user interaction interface includes: creating a geometry of the first interactive graphic in the first child element, and adjusting the angle of the geometry of the first interactive graphic; creating a geometry of the second interactive graphic in the first child element, and adjusting the angle of the geometry of the second interactive graphic; adjusting the positions of the geometry of the first interactive graphic and the geometry of the second interactive graphic so that the geometry of the first interactive graphic and the geometry of the second interactive graphic are stacked on each other.
[0011] In an optional embodiment of the present application, the step of setting multiple menu categories in the second interactive graphic includes: creating a shortcut menu icon set in the second sub-element, and evenly distributing the shortcut menu icon set at the edge positions of the second interactive graphic and the first interactive graphic; for the shortcut menu elements of the shortcut menu icon set distributed in the second interactive graphic, calculating the offset distance of each shortcut menu element based on the angular interval between each icon, and setting icons of multiple menu categories based on the offset distance; the step of hiding multiple menu data in the first interactive graphic in the form of icons includes: for the shortcut menu elements of the shortcut menu icon set distributed in the first interactive graphic, calculating the offset distance of each shortcut menu element based on the angular interval between each icon, and setting icons of multiple menu data based on the offset distance.
[0012] In an optional embodiment of the present application, the above-mentioned steps of displaying quotations published by the system in the user interaction interface, setting an audio player, displaying a lucky bag icon, displaying a message notification icon and / or displaying an inverted triangle icon include: adding at least one third child element with an absolute positioning cascading style sheet attribute in the parent element, and the third child element is used to display quotations published by the system in the user interaction interface, setting an audio player, displaying a lucky bag icon, displaying a message notification icon and / or displaying an inverted triangle icon.
[0013] In a second aspect, an embodiment of the present invention further provides a marking device for a desktop floating menu, the device comprising: an interactive graphic drawing module, used to draw a first interactive graphic and a second interactive graphic stacked on each other on a user interaction interface; wherein the area of the first interactive graphic is larger than the area of the second interactive graphic, and the first interactive graphic is located below the second interactive graphic; a menu setting module, used to set multiple menu categories in the second interactive graphic; generate multiple menu data for each menu category, and hide the multiple menu data in the form of icons in the first interactive graphic; wherein the menu data includes user-defined menu data, default menu data, and high-frequency menu data generated based on user behavior; a menu interaction module, used to display multiple menu data of the target menu category in the first interactive graphic when the user clicks on the target menu category in the second interactive graphic.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above-mentioned method for marking the desktop floating menu.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned method for marking the desktop floating menu.
[0016] The embodiments of the present invention bring the following beneficial effects:
[0017] The embodiment of the present invention provides a method, device and electronic device for marking a desktop floating menu, specifically providing a method for marking a desktop floating menu based on event association, drawing a user interaction interface, and generating user menu data by recording and storing user behavior events and displaying it through the user interaction interface. The existing shortcut menu functions can be improved and enriched, thereby achieving the beautification of the appearance and improvement of the operability of the shortcut menu.
[0018] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0019] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flowchart of a method for marking a desktop floating menu provided by an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a user interaction interface provided by an embodiment of the present invention;
[0023] Figure 3 A schematic diagram of another user interaction interface provided by an embodiment of the present invention;
[0024] Figure 4 A schematic diagram of the structure of a marking device for a desktop floating menu provided by an embodiment of the present invention;
[0025] Figure 5 A schematic diagram of the structure of another marking device for a desktop floating menu provided by an embodiment of the present invention;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] At present, most shortcut menus of web applications or desktop applications are in the form of cards or a set of text links. The appearance is not very beautiful and not very attractive to users. At the same time, the functions are monotonous and cannot be hidden when not in use. Ordinary shortcut menus are difficult to attract users. After all, there are user shortcut menu lists only after user operations and access behaviors. If the shortcut menu is only displayed in a conspicuous place, users may not buy it. When users access a function module through the system menu and the shortcut menu respectively, if the efficiency difference between the two methods is not very large, then users will most likely get used to the initial usage behavior, which makes the shortcut menu function ineffective.
[0029] Based on this, an embodiment of the present invention provides a method, device and electronic device for marking a desktop floating menu. The user interaction interface in this embodiment provides the following functional modules:
[0030] 1. System menu shortcut entry, automatically generates shortcut menu list based on user behavior, and can customize or edit shortcut menus.
[0031] 2. Add and display functions for daily quotations. By publishing quotations, quotations are stored in the database and displayed randomly according to certain rules.
[0032] 3. Audio player function, supports audio playback and real-time switching of lyrics or subtitles.
[0033] 4. Message notification, supports viewing the message list received by the current user.
[0034] 5. Lucky bag: supports festival lucky bag function. Click on the lucky bag to open the prizes in the lucky bag.
[0035] 6. A toolbox, providing various operation buttons for the invention, such as editing shortcut menus and publishing quotations.
[0036] The embodiment of the present invention includes the following parts: a user interaction interface drawn by Three.js, user menu data is generated by recording and storing user behaviors and regularly distributed on the interaction interface design in the form of icons, quotations sentences are suspended on the interaction interface design, a vinyl icon (audio player) is suspended on the interaction interface design, a lucky bag icon (lucky bag function) is suspended on the interaction interface design, a message notification icon is suspended on the interaction interface design, and a hidden toolbox is displayed by controlling the inverted triangle icon.
[0037] To facilitate understanding of this embodiment, a method for marking a desktop floating menu disclosed in an embodiment of the present invention is first introduced in detail.
[0038] Embodiment 1:
[0039] The embodiment of the present invention provides a method for marking a desktop floating menu. Figure 1 A flowchart of a method for marking a desktop floating menu is shown, and the method for marking a desktop floating menu includes the following steps:
[0040] Step S102, drawing a first interactive graphic and a second interactive graphic stacked on each other on the user interaction interface; wherein the area of the first interactive graphic is larger than the area of the second interactive graphic, and the first interactive graphic is located below the second interactive graphic.
[0041] See also Figure 2 A schematic diagram of a user interaction interface is shown in FIG. Figure 2 2 mutually stacked mutually stacked are shown, which are the first interactive graph and the second interactive graph. Among them, the interactive graph with a larger area and located at the bottom of the outer circle is the first interactive graph, and the interactive graph with a smaller area and located at the bottom of the inner circle is the second interactive graph.
[0042] Step S104, setting multiple menu categories in the second interactive graphic; generating multiple menu data for each menu category, and hiding the multiple menu data in the first interactive graphic in the form of icons; wherein the menu data includes user-defined menu data, default menu data and high-frequency menu data generated based on user behavior.
[0043] like Figure 2 As shown, in this embodiment, some icons can be set in the first interactive graphic and the second interactive graphic, wherein the icon in the first interactive graphic is an icon of menu data (i.e. Figure 2 The icons in the second interactive graphic are menu category icons (i.e. Figure 2 ).
[0044] The menu data in this embodiment may include user-defined menu data (i.e., customized menu data), system-preset default menu data (i.e., default menu data), and menu data generated based on user behavior (i.e., high-frequency menu data). Therefore, in this embodiment, the user interaction interface drawn by Three.js can generate high-frequency menu data by recording and storing user behavior and regularly distribute it in the form of icons on the interaction interface design.
[0045] Step S106: when the user clicks on a target menu category in the second interactive graphic, a plurality of menu data of the target menu category are displayed in the first interactive graphic.
[0046] When the user clicks on the target menu category in the second interactive graphic, multiple menu data of the target menu category can be displayed in the first interactive graphic. Different types of menu data corresponding to different menu categories can be preset, for example: the first menu category corresponds to high-frequency menu data, and the second menu category corresponds to custom menu data. When the user clicks on the first menu category, all the displayed menu data are high-frequency menu data, and when the user clicks on the second menu category, all the displayed menu data are custom menu data.
[0047] The embodiment of the present invention provides a method for marking a desktop floating menu, specifically a method for marking a desktop floating menu based on event association, drawing a user interaction interface, and generating user menu data by recording and storing user behavior events and displaying it through the user interaction interface. The existing shortcut menu functions can be improved and enriched, thereby achieving the beautification of the appearance and improvement of the operability of the shortcut menu.
[0048] In addition, in some embodiments, the quotations published by the system can be displayed on the user interaction interface, an audio player can be set, a lucky bag icon can be displayed, a message notification icon can be displayed, and / or an inverted triangle icon can be displayed; wherein the inverted triangle icon is used to control the display and hiding of the toolbox.
[0049] See also Figure 3 Another schematic diagram of a user interaction interface is shown in Figure 3 As shown, the user interaction interface in this embodiment can also display quotations released by the system, set an audio player, display a lucky bag icon, display a message notification icon and / or display an inverted triangle icon for controlling the display and hiding of a toolbox.
[0050] Embodiment 2:
[0051] This embodiment provides another method for marking a desktop floating menu, which is implemented on the basis of the above embodiment. In this embodiment, the interactive interface drawing process is specifically described. First, Three.js can be used to draw two stacked disks, one large and one small, in the user interactive interface, and the camera parameters of Three.js can be adjusted.
[0052] In some embodiments, multiple menu categories can be placed in the form of icons at the edge of the second interactive graphic based on angle or radian calculation; multiple menu data can be hidden in the form of icons at the edge of the first interactive graphic based on angle or radian calculation.
[0053] By calculating the angle and radian, the icons can be placed on the edge of the small disk (i.e., the second interactive graphic) and the large disk (i.e., the first interactive graphic). For example, 360° or 2π can be divided equally according to the number of graphics, and the icon can be set with the equal division point as the midpoint of the graphics; the angle value or radian value corresponding to the icon can also be calculated based on the icon size and the preset spacing, which is not limited in this application.
[0054] In some embodiments, the position of the user interaction interface may also be adjusted to set the user interaction interface in a designated area of the browser interface to cover areas of the user interaction interface where icons of menu categories and icons of menu data are not placed.
[0055] If the icons of the menu categories and the menu data are placed in the left area of the user interaction interface, in this embodiment, the position of the user interaction interface can also be adjusted to place it in a designated area of the browser interface (for example, the far right), and to cover the area where the icons of the menu categories and the icons of the menu data are not placed (for example, the right area).
[0056] Embodiment three:
[0057] This embodiment provides another method for marking a desktop floating menu. This method is implemented on the basis of the above embodiment. This embodiment specifically describes the implementation method of drawing an interactive interface. The purpose of this embodiment is to provide a method for marking a desktop floating menu based on event association to improve and enrich the existing shortcut menu functions, thereby achieving the beautification of the appearance and improvement of the operability of the shortcut menu, and using Three.js and Vue component development.
[0058] The present embodiment provides a method for a user interaction interface of a desktop floating shortcut menu function drawn based on Three.js and a shortcut menu function developed in Vue language, including drawing a user interaction interface and shortcut menu icons, automatically generating user shortcut menus and custom shortcut menus in the background, publishing and displaying daily quotations, an audio player, viewing message notifications, a lucky bag function, a toolbox, etc.
[0059] The user interaction interface and shortcut menu icons are drawn using Three.js technology. Two "annular interactive 3D graphics" (cylindrical shape) are drawn, one large and one small, stacked together. They are referred to as "interactive graphics" below. The large "interactive graphic" (i.e. the first interactive graphic) is at the bottom, and the small "interactive graphic" (i.e. the second interactive graphic) is at the top. Then, the shortcut menu icons are evenly placed on the edge of the left half of the two "interactive graphics" through the appendChild() method of the DOM element, and parameters are bound to each icon and click events are set.
[0060] Then the drawn user interaction interface is shifted to the right as a whole until the icons of the upper and lower vertices are completely displayed on the far right of the visible range. The shortcut menu data is generated based on the user's usage behavior. When the user uses the system, the function modules accessed will be recorded and stored in the database. After analyzing the user's behavior, the background generates the user's shortcut menu data and receives it by the front end.
[0061] In some embodiments, a parent element container may be defined, and the container includes a first child element canvas and a second child element icon-warpper; wherein the canvas is used to draw the first interactive graphic and the second interactive graphic, and the icon-warpper is used to draw the icon.
[0062] First, define a parent element container (DIV) container in the Vue code. The parent element container contains the child element canvas (used to draw two "interactive graphics" of different sizes in the stack) and the child element icon-warpper (used to draw the shortcut menu icon).
[0063] In some embodiments, a first interactive graphic geometry may be created on the first sub-element canvas, and the angle of the first interactive graphic geometry may be adjusted; a second interactive graphic geometry may be created on the first sub-element canvas, and the angle of the second interactive graphic geometry may be adjusted; and positions of the first interactive graphic geometry and the second interactive graphic geometry may be adjusted so that the first interactive graphic geometry and the second interactive graphic geometry are stacked on each other.
[0064] Use the DOM element selector to get the container (DIV) canvas, then initialize the Three.js renderer on the canvas, and set the rendering size to 800 pixels in width and 750 pixels in height (the width and height can be adjusted according to actual needs); create an "interactive graphic" geometry discGeometry with a height of 10 (freely adjustable), and set its bottom and top radii to 120 (to control the size of the "interactive graphic").
[0065] Create a highlight surface material, set the material color to #ecbfff, set the transparency to 0.3, create a mesh object cube and wrap the mesh object cube's material on the "interactive graphic"; rotate the "interactive graphic" 30 degrees along the x-axis (adjust the angle to observe the "interactive graphic" from the best perspective). Use the above method to create another "interactive graphic" with a radius of 80, and use the method cube.position.set(x,y,z) provided by the mesh object cube to adjust the positions of the two "interactive graphics" respectively. x, y, and z represent the coordinate positions of the "interactive graphics" in three-dimensional space. Adjust the large "interactive graphic" (i.e. the first interactive graphic) to the bottom and the small "interactive graphic" (i.e. the second interactive graphic) to the top, and finally get two "interactive graphics" in a stacked state.
[0066] In some embodiments, a shortcut menu icon set can be created in the second sub-element icon-warpper, and the shortcut menu icon set can be evenly distributed at the edge positions of the second interactive graphic and the first interactive graphic; for the shortcut menu elements of the shortcut menu icon set distributed in the second interactive graphic, the offset distance of each shortcut menu element is calculated based on the angular interval between each icon, and icons of multiple menu categories are set based on the offset distance; for the shortcut menu elements of the shortcut menu icon set distributed in the first interactive graphic, the offset distance of each shortcut menu element is calculated based on the angular interval between each icon, and icons of multiple menu data are set based on the offset distance.
[0067] Then create a shortcut menu icon list (DIV element collection) in the container icon-warpper. Assume that parentNavList is the shortcut menu collection on the small "interactive graphic" (i.e. the second interactive graphic). Now evenly distribute the shortcut menu icon collection (DIV element collection) on the edges of the two "interactive graphics". Get the center position of the "interactive graphic" according to the width and height of the renderer. Because the "interactive graphic" is rotated, the "interactive graphic" rendered in the HTML container is actually an ellipse. The height and width of the small "interactive graphic" (i.e. the second interactive graphic) in the DOM are obtained through the CSS selector as 500px and 290px respectively (the width and height will vary depending on the camera parameter settings of Three.js).
[0068] Taking the shortcut menu set on the small "interactive graphic" (ie, the second interactive graphic) as an example, the i+1th (i is an integer starting from 0) shortcut menu element is obtained in sequence through the DOM element selector, and the offset distance of each element is obtained by calculation.
[0069] The calculation method is as follows: first, count the total number of icons that need to be placed on the small "interactive graphic" (i.e., the second interactive graphic). For example, based on the angle interval between each icon, under the current renderer parameters, grid object cube configuration parameters, and camera configuration parameters, determine that the total number of icons that can be placed is 6 (when the icons are fully displayed, changing the size of the icons can affect this number).
[0070] If the total number of icons that can be placed is 6, then the angle interval between each icon is 180 degrees / (6-1)=45 degrees, and the angle is converted to radians theta through the method THREE.MathUtils.degToRad (the angle of the icon rotation is converted into a calculable value, so that the icons are evenly distributed at the edge of the "interactive graphic" according to a rule). Then the left offset distance of each element is the width of the small "interactive graphic" (i.e. the second interactive graphic) in the DOM divided by 2, and then multiplied by the negative sine value of the radian (-Math.sin(theta)), and the upward offset distance is the height of the small "interactive graphic" (i.e. the second interactive graphic) in the DOM divided by 2, and then multiplied by the negative cosine value of the radian (-Math.cos(theta)); because the icon needs to be displayed within the range of the "interactive graphic" and needs to have an appropriate interval from the border, after the width and height are divided by 2, it is necessary to subtract an appropriate value to control the position of the icon element in the "interactive graphic".
[0071] Finally, it is concluded that the left offset value is X, and the upward offset value is Y; then the CSS properties of the icon are set in sequence, the icon element is set to absolute positioning, and then the element is set to move 50% of its width and height in the horizontal and vertical directions respectively; finally, the offset distance of the element is set, the left offset pixel value is: X+400 pixels (400 is the distance between the center of the "interactive graphic" and the leftmost side of the renderer) + the distance between the renderer and the leftmost side of the page, and the upward offset pixel value is: Y+505 pixels (505 is the distance between the center of the "interactive graphic" and the top of the renderer) + the distance between the renderer and the top of the page.
[0072] Then add the icon elements to the parent container one by one. You can use the CSS selector to get the height and width of the large "interactive graphic" (i.e. the first interactive graphic) in the DOM, which are 710px and 380px respectively (the width and height will vary depending on the camera parameter settings of Three.js). Follow the above steps to continue adding the icon elements on the large "interactive graphic" (i.e. the first interactive graphic) to the container.
[0073] In some embodiments, at least one third sub-element with an absolute positioning attribute of a Cascading Style Sheets (CSS) can be added to the container. The third sub-element is used to display quotations published by the system in the user interaction interface, set an audio player, display a lucky bag icon, display a message notification icon and / or display an inverted triangle icon.
[0074] Add a third child element with absolute positioning CSS attribute to the parent element container, and set its position to the upper right of the "interactive graphic" to display the quotations published by the system. The quotations are obtained from the database through the back-end interface.
[0075] Change the icon style at the bottom of the large "interactive graphic" (i.e. the first interactive graphic) to the message notification icon, and make it unaffected when switching the icons on the small "interactive graphic" (i.e. the second interactive graphic). Clicking the icon will call the message notification component.
[0076] Add a child element with absolute positioning CSS attribute in the parent element container, and set its position to the lower left of the "interactive graphic" and next to the large "interactive graphic" (i.e. the first interactive graphic). Set the background image of the element to black vinyl. Clicking the element will call the audio player.
[0077] Add a child element with absolute positioning CSS attribute to the parent element container, and set its position to the upper left of the "interactive graphic" and next to the large "interactive graphic" (i.e. the first interactive graphic). Set the element background image to the lucky bag. Clicking the element will call the lucky bag function component.
[0078] Add a child element with absolute positioning CSS attribute in the parent element container, set its position below the message notification icon, set the element background image to an inverted triangle, click to switch to show or hide the toolbar, the toolbar has a quote publishing icon and a shortcut menu deletion icon, click the corresponding icon to perform related operations.
[0079] The embodiment of the present invention specifically provides a method for marking a desktop floating menu based on event association, uses JavaScript 3D library technology based on WebGL to draw the user interaction interface of the present invention, and evenly distributes icons on the interaction interface through an algorithm, with graphics and visual elements as the main elements. It can improve and enrich the existing shortcut menu, thereby achieving the beautification of the appearance and improvement of the operability of the shortcut menu.
[0080] Embodiment 4:
[0081] Corresponding to the above method embodiment, the present invention provides a marking device for a desktop floating menu, see Figure 4 A structural schematic diagram of a marking device for a desktop floating menu is shown, and the marking device for a desktop floating menu includes:
[0082] An interactive graphic drawing module 41 is used to draw a first interactive graphic and a second interactive graphic stacked on each other on the user interaction interface; wherein the area of the first interactive graphic is larger than the area of the second interactive graphic, and the first interactive graphic is located below the second interactive graphic;
[0083] The menu setting module 42 is used to set a plurality of menu categories in the second interactive graphic; generate a plurality of menu data for each menu category, and hide the plurality of menu data in the first interactive graphic in the form of icons; wherein the menu data includes user-defined menu data, default menu data, and high-frequency menu data generated based on user behavior;
[0084] The menu interaction module 43 is used to display multiple menu data of the target menu category in the first interaction graphic when the user clicks on the target menu category in the second interaction graphic.
[0085] The embodiment of the present invention provides a marking device for a desktop floating menu, specifically provides a marking method for a desktop floating menu based on event association, draws a user interaction interface, generates user menu data by recording and storing user behavior events, and displays it through the user interaction interface. The existing shortcut menu functions can be improved and enriched, thereby achieving the beautification of the appearance and improvement of the operability of the shortcut menu.
[0086] The above-mentioned menu setting module is used to place multiple menu categories in the form of icons on the edge of the second interactive graphic based on angle or radian calculation; the above-mentioned menu setting module is used to hide multiple menu data in the form of icons on the edge of the first interactive graphic based on angle or radian calculation.
[0087] The menu setting module is also used to adjust the position of the user interaction interface and set the user interaction interface in a designated area of the browser interface to cover the area of the user interaction interface where the icons of menu categories and menu data are not placed.
[0088] See also Figure 5 A structural schematic diagram of another marking device for a desktop floating menu is shown, and the marking device for the desktop floating menu also includes: an other function setting module 44, which is connected to the interactive graphics drawing module 41, and the other function setting module 44 is used to display quotations released by the system on the user interaction interface, set the audio player, display the lucky bag icon, display the message notification icon and / or display the inverted triangle icon; wherein the inverted triangle icon is used to control the display and hiding of the toolbox.
[0089] A parent element is defined, and the parent element includes a first child element and a second child element; wherein the first child element is used to draw a first interactive graphic and a second interactive graphic, and the second child element is used to draw an icon; the above-mentioned interactive graphic drawing module is used to create a geometric body of the first interactive graphic in the first child element, and adjust the angle of the geometric body of the first interactive graphic; create a geometric body of the second interactive graphic in the first child element, and adjust the angle of the geometric body of the second interactive graphic; adjust the position of the geometric body of the first interactive graphic and the geometric body of the second interactive graphic so that the geometric body of the first interactive graphic and the geometric body of the second interactive graphic are stacked on each other.
[0090] The above-mentioned menu setting module is used to create a shortcut menu icon set in the second sub-element, and evenly distribute the shortcut menu icon set at the edge positions of the second interactive graphic and the first interactive graphic; for the shortcut menu elements of the shortcut menu icon set distributed in the second interactive graphic, the offset distance of each shortcut menu element is calculated based on the angular interval between each icon, and icons of multiple menu categories are set based on the offset distance; the above-mentioned menu setting module is used to calculate the offset distance of each shortcut menu element of the shortcut menu icon set distributed in the first interactive graphic based on the angular interval between each icon, and icons of multiple menu data are set based on the offset distance.
[0091] The above-mentioned other function setting module is used to add at least one third child element with absolute positioning in the parent element. The third child element is used to display the quotations published by the system in the user interaction interface, set the audio player, display the lucky bag icon, display the message notification icon and / or display the inverted triangle icon.
[0092] Technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the marking device of the desktop floating menu described above can refer to the corresponding process in the embodiment of the marking method of the desktop floating menu mentioned above, and will not be repeated here.
[0093] Embodiment 4:
[0094] The embodiment of the present invention further provides an electronic device for executing the above-mentioned marking method of the desktop floating menu; see Figure 6 A structural schematic diagram of an electronic device is shown, which includes a memory 100 and a processor 101, wherein the memory 100 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to implement the above-mentioned desktop floating menu marking method.
[0095] Further, Figure 6 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0096] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0097] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 101. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.
[0098] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned desktop floating menu marking method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0099] The computer program product of the desktop floating menu marking method, device and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and / or device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0101] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0102] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0103] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0104] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for marking a desktop floating menu, characterized in that: The method comprises: Drawing a first interactive graphic and a second interactive graphic stacked on each other on the user interaction interface; wherein the area of the first interactive graphic is larger than the area of the second interactive graphic, and the first interactive graphic is located below the second interactive graphic; Setting a plurality of menu categories in the second interactive graphic; generating a plurality of menu data for each of the menu categories, and hiding the plurality of menu data in the first interactive graphic in the form of icons; wherein the menu data includes user-defined menu data, default menu data, and high-frequency menu data generated based on user behavior; When the user clicks on a target menu category in the second interactive graphic, a plurality of menu data of the target menu category are displayed in the first interactive graphic.
2. The method according to claim 1, characterized in that The step of setting a plurality of menu categories in the second interactive graphic comprises: placing the plurality of menu categories in the form of icons at the edge of the second interactive graphic based on angle or radian calculation; The step of hiding the plurality of menu data in the first interactive graphic in the form of icons comprises: hiding the plurality of menu data in the form of icons at the edge of the first interactive graphic based on angle or radian calculation.
3. The method according to claim 2, characterized in that After the step of hiding the plurality of menu data in the form of icons at the edge of the first interactive graphic, the method further comprises: The position of the user interaction interface is adjusted, and the user interaction interface is set in a designated area of the browser interface to cover the area of the user interaction interface where the icons of the menu categories and the icons of the menu data are not placed.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The user interaction interface displays quotations published by the system, sets an audio player, displays a lucky bag icon, displays a message notification icon and / or displays an inverted triangle icon; wherein the inverted triangle icon is used to control the display and hiding of a toolbox.
5. The method according to claim 4, characterized in that Define a parent element, the parent element includes a first child element and a second child element; wherein the first child element is used to draw a first interactive graphic and a second interactive graphic, and the second child element is used to draw an icon; The step of drawing a first interactive graphic and a second interactive graphic stacked on a user interaction interface includes: creating a geometric body of the first interactive graphic in the first sub-element and adjusting the angle of the geometric body of the first interactive graphic; creating a geometric body of the second interactive graphic in the first sub-element and adjusting the angle of the geometric body of the second interactive graphic; adjusting the positions of the geometric body of the first interactive graphic and the geometric body of the second interactive graphic so that the geometric body of the first interactive graphic and the geometric body of the second interactive graphic are stacked on each other.
6. The method according to claim 5, characterized in that The step of setting a plurality of menu categories in the second interactive graphic comprises: creating a shortcut menu icon set in the second sub-element, and evenly distributing the shortcut menu icon set at the edge positions of the second interactive graphic and the first interactive graphic; for shortcut menu elements of the shortcut menu icon set distributed in the second interactive graphic, calculating an offset distance of each shortcut menu element based on an angular interval between each icon, and setting icons of a plurality of menu categories based on the offset distance; The step of hiding the plurality of menu data in the first interactive graphic in the form of icons comprises: for shortcut menu elements of the shortcut menu icon set distributed in the first interactive graphic, calculating the offset distance of each shortcut menu element based on the angular interval between each icon, and setting icons of the plurality of menu data based on the offset distance.
7. The method according to claim 5, characterized in that The steps of displaying the quotations published by the system, setting an audio player, displaying a lucky bag icon, displaying a message notification icon and / or displaying an inverted triangle icon on the user interaction interface include: At least one third child element with a cascading style sheet attribute of absolute positioning is added to the parent element, and the third child element is used for the user interaction interface to display quotations published by the system, set an audio player, display a lucky bag icon, display a message notification icon and / or display an inverted triangle icon.
8. A marking device for a desktop floating menu, characterized in that: The device comprises: An interactive graphic drawing module, used for drawing a first interactive graphic and a second interactive graphic stacked on each other on a user interaction interface; wherein the area of the first interactive graphic is larger than the area of the second interactive graphic, and the first interactive graphic is located below the second interactive graphic; A menu setting module, used to set a plurality of menu categories in the second interactive graphic; generate a plurality of menu data for each of the menu categories, and hide the plurality of menu data in the first interactive graphic in the form of icons; wherein the menu data includes user-defined menu data, default menu data, and high-frequency menu data generated based on user behavior; The menu interaction module is used to display a plurality of menu data of the target menu category in the first interaction graphic when the user clicks on the target menu category in the second interaction graphic.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method for marking a desktop floating menu according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the method for marking a desktop floating menu according to any one of claims 1 to 7.
