Layer determination method and device and electronic equipment
By receiving layer modification instructions and determining the target layer in the layer determination method in the cloud computing field, the problem of interface display chaos caused by incorrect hierarchical value settings when modifying the layer is solved, and the fluency of layer adjustment and the correctness of display logic are achieved.
Patent Information
- Application Number
- CN202411873595.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-11
AI Technical Summary
In the field of cloud computing, it is easy to cause hierarchical value settings when modifying layers, resulting in confusion in the interface display.
A layer determination method is provided, by receiving layer modification instructions, determining a predetermined layer type and hierarchy value corresponding to a target position, and determining a target layer from a representative layer. This method sets the hierarchy interval between adjacent layers to be greater than a predetermined threshold to avoid hierarchy conflicts.
It effectively avoids possible hierarchical conflicts during layer modification, ensures the smoothness of layer adjustment and the correctness of display logic, and solves the problem of confusing interface display.
Smart Images

Figure CN119806520A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing, and more specifically, to a layer determination method, device, and electronic device. Background Art
[0002] When setting the display level of the display interface in the related art, since the user may frequently adjust the level, for example, when a new interface is added, this interface must be between interface A and interface B, it is necessary to set the levels of multiple interfaces, which often leads to level confusion.
[0003] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0004] The main purpose of the present application is to provide a layer determination method, device and electronic device to solve the problem of interface display confusion caused by incorrect level value settings when modifying layers in related technologies.
[0005] To achieve the above-mentioned purpose, according to one aspect of the present application, a layer determination method is provided, comprising: receiving a layer modification instruction, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface comprises M representative layers of different layer types, the M representative layers are respectively provided with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold, the target position is a position in the display interface, and M is a positive integer greater than 1; in response to the layer modification instruction, determining a predetermined layer type corresponding to the target position in the display interface; determining a predetermined level value corresponding to the predetermined layer type; determining a predetermined layer corresponding to the predetermined level value from the M representative layers; and determining a target layer based on the predetermined layer and the layer modification parameter.
[0006] Optionally, determining the target layer based on the predetermined layer and the layer modification parameters includes: when the layer modification instruction is a new layer instruction, establishing the target layer based on the layer modification parameters, wherein the level value of the target layer is the predetermined level value plus a predetermined value.
[0007] Optionally, when the layer modification instruction is a new layer creation instruction, before establishing the target layer based on the layer modification parameters, it also includes: determining the interval level value between the predetermined layer and the adjacent representative layer; determining the distribution probability level value of the predetermined layer; and determining the predetermined value based on the interval level value and the distribution probability level value.
[0008] Optionally, before receiving the layer modification instruction, it also includes: determining N layer types corresponding to the display interface, wherein N is a positive integer greater than or equal to M; determining the hierarchy value restriction relationship between the N layer types; based on the hierarchy value restriction relationship, determining representative layers corresponding to the N layer types respectively, and setting the hierarchy values corresponding to the M representative layers respectively.
[0009] Optionally, before determining the representative layers corresponding to the N layer types respectively based on the hierarchy value restriction relationship, and setting the hierarchy values respectively corresponding to the M representative layers, it also includes: determining a display hierarchy value threshold corresponding to the display interface; and determining the hierarchy values respectively corresponding to the M representative layers based on the display hierarchy value threshold and the number of the M representative layers.
[0010] Optionally, in response to the layer modification instruction, determining a predetermined layer type corresponding to the target position in the display interface includes: when the layer modification instruction also carries a layer modification scene parameter, determining P candidate layer types involved in the target position, wherein P is a positive integer greater than 1; and determining the predetermined layer type from the P candidate layer types according to the layer modification scene parameter.
[0011] Optionally, after determining the target layer based on the predetermined layer and the layer modification parameters, it also includes: determining the Q layers included in the display interface respectively correspond to, wherein Q is a positive integer greater than or equal to M; adjusting the Q layers respectively to obtain the updated level values corresponding to the Q layers respectively.
[0012] To achieve the above-mentioned purpose, according to one aspect of the present application, a layer determination device is provided, comprising: a receiving module, configured to receive a layer modification instruction, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface comprises M representative layers of different layer types, the M representative layers are respectively provided with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold value, the target position is a position in the display interface, and M is a positive integer greater than 1; a first determination module, configured to determine, in response to the layer modification instruction, a predetermined layer type corresponding to the target position in the display interface; a second determination module, configured to determine a predetermined level value corresponding to the predetermined layer type; a third determination module, configured to determine a predetermined layer corresponding to the predetermined level value from the M representative layers; and a fourth determination module, configured to determine a target layer according to the predetermined layer and the layer modification parameter.
[0013] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any of the layer determination methods described above.
[0014] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the layer determination methods described above.
[0015] In an embodiment of the present application, a layer modification instruction is received, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface includes M representative layers of different layer types, the M representative layers are respectively set with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold, the target position is a position in the display interface, and M is a positive integer greater than 1; in response to the layer modification instruction, the predetermined layer type corresponding to the target position in the display interface is determined; the predetermined level value corresponding to the predetermined layer type is determined; from the M representative layers, the predetermined layer corresponding to the predetermined level value is determined; according to the predetermined layer and the layer modification parameter, the target layer is determined. In this embodiment, by setting the level interval between adjacent layers to be greater than the predetermined threshold, the level conflict that may occur during the layer modification process can be effectively avoided, ensuring the smoothness of the layer adjustment and the correctness of the display logic. And based on the predetermined level value, the corresponding predetermined layer is located, and then the corresponding target layer is located and modified, and the target layer is modified, created, or deleted. This can solve the problem of confusing interface display caused by incorrect layer value settings when modifying layers in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 A structural block diagram of a computer terminal (or mobile device) for implementing a layer determination method is shown;
[0018] Figure 2 is a flowchart of a layer determination method provided according to an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a layer determination device provided according to an embodiment of the present application;
[0020] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.
[0024] Example 1
[0025] According to an embodiment of the present application, a method embodiment for determining a layer is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a structural block diagram of a computer terminal (or mobile device) for implementing a layer determination method. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0027] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0028] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the layer determination method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned layer determination method is realized. The memory 104 may include a high-speed random access memory, and may also include a 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 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0031] Under the above operating environment, this application provides Figure 2 The layer determination method shown. Figure 2 It is a flowchart of a layer determination method provided according to an embodiment of the present application.
[0032] Step S202, receiving a layer modification instruction, wherein the layer modification instruction is used to modify layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and layer modification parameters, the display interface includes M representative layers of different layer types, the M representative layers are respectively set with corresponding level values, among the M representative layers, the interval level value between two adjacent representative layers is greater than a predetermined threshold, the target position is a position in the display interface, and M is a positive integer greater than 1;
[0033] In step S202 provided in the present application, a layer modification instruction is received.
[0034] Among them, layer modification instructions are involved. Layer modification instructions are a specific control command used to adjust the properties or position of a specific layer in the display interface. Layer modification instructions contain target position information and layer modification parameters. The target position indicates the new position of the layer in the display interface after the instruction is executed. The layer modification parameters are used to adjust the properties of the layer, such as transparency, size, layer value, etc. It can also be a new layer.
[0035] Among them, a predetermined layer is involved. In the display interface, the predetermined layer refers to a layer defined or selected by layer modification parameters. The layer parameters of this layer can be newly created, deleted or modified through layer modification instructions.
[0036] Among them, layer parameters are involved. Layer parameters refer to various attributes that control the display characteristics of the layer, including but not limited to layer value, transparency, position, size, shape, color, whether to create a new layer, whether to delete a layer, etc. This application mainly focuses on the layer value, that is, the position of the layer in the display hierarchy, which determines whether the layer covers other layers or is covered by other layers.
[0037] Among them, layer types are involved. Layer types refer to the classification of layers according to their functions or forms of expression, such as global layers, pop-up layers, loading interface layers, prompt layers, etc. Each type has its own unique display priority and function.
[0038] Among them, the layer value is involved. Each layer has a layer value, which determines the relative position of the layer in the display interface. The higher the layer value, the closer the layer is to the front and can cover the layer with a lower layer value.
[0039] This involves a predetermined threshold, which is a pre-set value used to control the level interval between adjacent layers, ensuring that even when the layer level is modified, there will be no level conflict or level confusion, thereby maintaining the stability and predictability of the display interface.
[0040] In this step, a layer modification instruction is received, and the layer modification instruction is used to modify the position and parameters of a specific layer in the display interface without causing a hierarchy conflict. Specifically, when a layer modification instruction is received, the system will modify the hierarchy value and / or other layer parameters of the predetermined layer according to the target position and layer modification parameters carried in the instruction. The display interface is composed of at least M representative layers, which are of different types, and each layer has a corresponding hierarchy value. The hierarchy value interval between two adjacent representative layers is greater than a predetermined threshold, which ensures that even if the layer hierarchy is frequently modified, the hierarchical relationship between the layers will not be confused, and the target position indicates the specific position where the modified layer should be displayed. There can also be other layers between the M representative layers, and the other layers also belong to the layer type corresponding to the corresponding representative layer to avoid conflicts between different layer types.
[0041] By setting the interval between adjacent layers to be greater than the preset threshold, you can effectively avoid possible layer conflicts during layer modification, ensuring the smoothness of layer adjustment and the correctness of display logic. During testing and maintenance, since the layer levels have clear intervals, when display problems occur, it is easier to locate which two layers have a problem with the level settings, so that they can be quickly repaired.
[0042] Step S204, in response to the layer modification instruction, determining a predetermined layer type corresponding to the target position in the display interface;
[0043] In step S204 provided in the present application, in response to the layer modification instruction, a predetermined layer type corresponding to the target position in the display interface is determined.
[0044] Among them, the target position is involved. In the layer modification instruction, the user specifies the specific position or coordinates where the layer is finally displayed on the display interface.
[0045] Among them, the predetermined layer type is involved. The predetermined layer type refers to the type of layer that matches the target position in the display interface. This is because in interface design, different layer types may have different default level values and display rules. Therefore, determining the layer type corresponding to the target position is crucial to correctly execute the modification instruction.
[0046] By determining a predetermined layer type corresponding to the target position, the layer of this type is modified.
[0047] Step S206, determining a predetermined level value corresponding to a predetermined layer type;
[0048] In step S206 provided in the present application, a predetermined level value corresponding to a predetermined layer type is determined.
[0049] Among them, the predetermined level value is involved. Each layer type has an associated level value, which defines the display order of the layers on the display interface. The predetermined level value is the level value corresponding to the predetermined layer type.
[0050] Describes the process by which, upon receiving a modification instruction for a specific layer type, the system searches for and determines a matching predetermined level value based on the layer type.
[0051] Step S208, determining a predetermined layer corresponding to a predetermined level value from the M representative layers;
[0052] In step S208 provided in the present application, a predetermined layer corresponding to a predetermined level value is determined from the M representative layers.
[0053] Among them, a predetermined layer is involved. Among the M representative layers, the layer that matches the predetermined level value is called the predetermined layer. The predetermined layer is determined according to the consistency of its level value with the predetermined level value, ensuring the correct display order and level occlusion relationship on the display interface.
[0054] Step S210, determining a target layer according to a predetermined layer and a layer modification parameter.
[0055] In step S210 provided in the present application, the step of determining the target layer according to the predetermined layer and the layer modification parameters is described.
[0056] Among them, the target layer is involved, which is the layer adjusted according to the predetermined layer and layer modification parameters after processing the layer modification instruction. The target layer is the final result of the modification instruction, reflecting the user or system's requirements for the layer display properties.
[0057] In the corresponding step, after receiving and parsing the layer modification instruction, the system will determine the target layer based on the location of the predetermined layer according to the predetermined layer (the located layer) and the layer modification parameters (such as the new location, level value, etc.). This process ensures that the execution of the layer modification instruction can be accurately reflected on the specific layer, adjusting its display properties to meet new requirements or achieve the expected display effect.
[0058] In steps S202-S210 provided in the present application, a layer modification instruction is received, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface includes M representative layers of different layer types, the M representative layers are respectively set with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold, the target position is the position in the display interface, and M is a positive integer greater than 1; in response to the layer modification instruction, the predetermined layer type corresponding to the target position in the display interface is determined; the predetermined level value corresponding to the predetermined layer type is determined; from the M representative layers, the predetermined layer corresponding to the predetermined level value is determined; according to the predetermined layer and the layer modification parameter, the target layer is determined. In this embodiment, by setting the level interval between adjacent layers to be greater than the predetermined threshold, the level conflict that may occur during the layer modification process can be effectively avoided, ensuring the smoothness of the layer adjustment and the correctness of the display logic. And based on the predetermined level value, the corresponding predetermined layer is located, and then the corresponding target layer is located and modified, and the target layer is modified, created, or deleted. This can solve the problem of confusing interface display caused by incorrect layer value settings when modifying layers in related technologies.
[0059] Optionally, in the layer determination method provided in the embodiment of the present application, the target layer is determined based on the predetermined layer and the layer modification parameters, including: when the layer modification instruction is a new layer instruction, the target layer is established based on the layer modification parameters, wherein the level value of the target layer is the predetermined level value plus the predetermined value.
[0060] In this embodiment, it is explained that when the layer modification instruction is a new layer creation instruction, a target layer is created according to the layer modification parameters.
[0061] The new layer instruction is explained as a layer modification instruction, which is an instruction for creating a new layer in the display interface. The new layer instruction usually includes preliminary attribute information of the new layer, such as size, position, and relationship with existing layers.
[0062] Among them, the target layer is involved. In this optional embodiment, the target layer is the layer created according to the new layer instruction. Its properties (including the level value) are determined by the layer modification parameters and are the direct result of the new creation operation.
[0063] Among them, a predetermined value is involved. In order to ensure that there is an appropriate level interval between the new layer and the existing layer in the new layer instruction, the system will add a predetermined value to the predetermined level value to generate the final level value of the target layer. Or when there are multiple layers of the corresponding layer type, the position relationship between the target layer and these multiple layers is determined.
[0064] This step describes how the system creates a target layer based on the layer modification parameters and the level value of the predetermined layer type when receiving a new layer instruction. First, the system creates a new layer based on the information given in the layer modification parameters, such as size, position, and transparency. Then, to ensure the correct position of the new layer in the hierarchy, the system adds a predetermined value to the predetermined level value associated with the predetermined layer type to obtain the level value of the target layer. In this way, the new layer can be placed at a level that will not be unnecessarily obscured or erroneously obscured by other layers, maintaining the hierarchical logic and visual consistency of the display interface.
[0065] Through the steps of this embodiment, hierarchical conflicts can be further avoided. By giving the new layer a hierarchy based on a predetermined hierarchy value plus a predetermined value, hierarchical conflicts between the new layer and the existing layer can be effectively avoided, ensuring that the newly created layer can be displayed on the interface as expected. The use of predetermined values helps to maintain the hierarchical structure of the entire display interface, ensuring that even when new layers are frequently created, the hierarchical logic will not be confused, maintaining the stability and consistency of the display effect. When creating a new layer, the correct position and hierarchy value can ensure clear display of information, avoid unnecessary occlusion or display hierarchy errors, and improve the user's efficiency in obtaining information and the interactive experience of the interface.
[0066] Optionally, in the layer determination method provided in the embodiment of the present application, when the layer modification instruction is a new layer instruction, before establishing the target layer based on the layer modification parameters, it also includes: determining the interval level value between the predetermined layer and the adjacent representative layer; determining the distribution probability level value of the predetermined layer; and determining the predetermined value based on the interval level value and the distribution probability level value.
[0067] In this embodiment, detailed steps of determining the predetermined value are explained.
[0068] Among them, adjacent representative layers are involved, and adjacent representative layers refer to representative layers that are adjacent to the predetermined layer type in the hierarchical structure. The determination of adjacent representative layers is crucial for calculating the interval level value and the distribution probability level value, and helps to accurately execute the new layer instruction.
[0069] Among them, the interval level value is involved, which is used to define the level difference between the predetermined layer and the adjacent representative layer. The calculation of the interval level value ensures that the newly created layer is not too close to the existing layer in level, thereby avoiding possible display occlusion or level conflict.
[0070] The distribution probability level value is a level value calculated based on the probability distribution model, which is used to guide the distribution of the newly created layer in the hierarchical structure to ensure the reasonable distribution and display efficiency of the layer level. The distribution probability level value takes into account factors such as layer type and frequency of use, and is an important parameter for determining the level of the newly created layer.
[0071] In this step, when processing a new layer instruction, the system will first determine the interval level value between the predetermined layer and the adjacent representative layer to ensure that the new layer is reasonably located within the level range corresponding to its type. Next, the system will calculate the distribution probability level value based on the distribution and usage probability of the layer to guide the optimal distribution of the new layer in the hierarchical structure. Finally, the system will combine the interval level value with the distribution probability level value to determine a predetermined value. The calculation of the predetermined value comprehensively considers the stability of the hierarchical structure and the optimization of the layer distribution to ensure stability between layers.
[0072] The determination of the interval level value prevents conflicts between the newly created layer and the existing layer in terms of level, ensuring the clear level logic and stable display of the display interface. The introduction of the distribution probability level value makes the level distribution of the newly created layer more reasonable, avoids excessive concentration of levels, and improves display efficiency and visual effects. By reasonably setting the level of the newly created layer, the incorrect occlusion of information is avoided, ensuring the timely display of important information, and improving the user's visual experience and operation efficiency.
[0073] Optionally, in the layer determination method provided in the embodiment of the present application, before receiving the layer modification instruction, it also includes: determining N layer types corresponding to the display interface, where N is a positive integer greater than or equal to M; determining the hierarchy value restriction relationship between the N layer types; based on the hierarchy value restriction relationship, determining representative layers corresponding to the N layer types, respectively, and setting the hierarchy values corresponding to the M representative layers, respectively.
[0074] In this embodiment, the step of setting the level value for the representative layer is described.
[0075] Among them, the hierarchical value restriction relationship is involved. The hierarchical value restriction relationship refers to the constraints and regulations of the preset hierarchical values between N layer types. It defines the hierarchical priority and mutual coverage relationship between different layer types. For example, the pop-up layer is always above the global layer, and the loading interface layer is above the pop-up layer. These rules ensure the stability and consistency of the display logic.
[0076] Among them, M representative layers are involved, where M is a positive integer less than or equal to N, indicating the number of representative layers for which the level values are actually set. The M representative layers are the layers that actually need to be managed among the N layer types, and may be less than N because some layer types are temporarily not used or do not need to set level values.
[0077] Among them, N layer types are involved, where N represents the total number of layer types in the display interface, and N is a positive integer greater than or equal to M, where M is the number of layers actually processed in a specific case. The layer type defines the function, visual characteristics, and default display behavior of the layer, for example, global layer, pop-up layer, loading interface layer, prompt layer, etc.
[0078] In this embodiment, the preparatory work performed by the system before receiving the layer modification instruction is described. First, the system determines the N layer types corresponding to the display interface. This step is to ensure that the hierarchical structure design of the entire display interface is reasonable and comprehensive. Next, the system determines the hierarchical value restriction relationship between these layer types, that is, the relative position and priority of different types of layers in the hierarchy. This is to maintain the hierarchical logic and stability of the display interface. Finally, based on the hierarchical value restriction relationship, the system determines representative layers for the N layer types respectively, and sets specific hierarchical values for the M representative layers. This step is to concretize the hierarchical logic and provide a basis for subsequent layer modification instruction processing.
[0079] By determining the hierarchical value restriction relationship between N layer types, the hierarchical logic of the entire display interface becomes clear and predictable, avoiding hierarchical confusion and display errors. Determining representative layers and their corresponding hierarchical values simplifies the management of a large number of layers, reduces the complexity of layer settings, and enhances the maintainability and scalability of the system. When a layer modification instruction arrives, since the hierarchical value of the representative layer has been pre-set, the system can quickly locate and modify the target layer, improving response speed and operation efficiency.
[0080] Optionally, the system's hierarchical value restriction relationship can be dynamic and can be automatically adjusted according to changes in user operations, device performance, or application requirements to ensure consistency and optimality of layer display in different scenarios. The system also introduces machine learning algorithms to automatically generate or optimize the selection of representative layers based on historical layer usage and user behavior patterns to better reflect the priority and requirements of layer types in actual use.
[0081] Optionally, in the layer determination method provided in the embodiment of the present application, before determining the representative layers corresponding to the N layer types respectively based on the level value restriction relationship, and setting the level values respectively corresponding to the M representative layers, it also includes: determining a display level value threshold corresponding to the display interface; determining the level values respectively corresponding to the M representative layers based on the display level value threshold and the number of M representative layers.
[0082] In this embodiment, the step of setting the level value for the representative layer is described.
[0083] Among them, the display level value threshold is involved, which is a preset value that serves as the boundary or limit of the display interface level value and is used to determine the range of the level value. The display level value threshold can ensure the reasonable distribution of layer levels and prevent display problems caused by too high or too low level values.
[0084] It explains that before setting the hierarchy values of the M representative layers, the system will first determine the display hierarchy value threshold of the display interface, which defines the upper and lower limits of the hierarchy value. Then, the system will calculate and assign the hierarchy value of each representative layer based on the display hierarchy value threshold and the number of M representative layers. This process ensures that the hierarchy values of all representative layers are within a reasonable range, avoiding both excessive concentration and extreme dispersion of hierarchy values, and maintaining clear hierarchy logic of the display interface and stability and consistency of layer display. Determining the hierarchy value based on the hierarchy value threshold and the number of M representative layers ensures the stability of the hierarchy structure, and can maintain a clear display order and hierarchy logic even in frequent layer modification or new creation operations.
[0085] Optionally, in the layer determination method provided in the embodiment of the present application, in response to the layer modification instruction, a predetermined layer type corresponding to the target position in the display interface is determined, including: when the layer modification instruction also carries a layer modification scene parameter, P candidate layer types involved in the target position are determined, where P is a positive integer greater than 1; and based on the layer modification scene parameter, the predetermined layer type is determined from the P candidate layer types.
[0086] In this embodiment, the step of determining a predetermined layer type is described.
[0087] Among them, the layer modification scene parameters are involved, which are additional information carried in the layer modification instruction, used to describe the context or scene of the layer modification, for example, whether the layer modification involves user interaction, whether it is performed in response to a specific event (such as a pop-up window, loading interface, etc.). The scene parameters help the system understand the modification intention and requirements more accurately.
[0088] Among them, the target location is involved. The specific location in the display interface where the layer modification needs to be performed. The target location may be a specific coordinate or an area, which is specified by the layer modification instruction. The location can be used to determine which layer types may be modified.
[0089] Among them, P candidate layer types are involved. After determining the target location, the system will identify P layer types related to it according to the location characteristics. The candidate layer types are candidate types that the system needs to consider in order to respond to the layer modification instruction. They may be related to the display content or function of the target location.
[0090] Among them, the predetermined layer type is involved. After analyzing the layer modification scene parameters, the system determines the most suitable layer type from P candidate layer types to execute the layer modification instruction. The predetermined layer type is the direct object type of the modification operation, which ensures the pertinence and effectiveness of the modification.
[0091] In the steps corresponding to this embodiment, the process of how the system processes the layer modification instruction when the layer modification instruction carries the layer modification scene parameter is described. The system first identifies the P candidate layer types related to the target position specified in the layer modification instruction. Then, the system will analyze the scene requirements (such as whether it is necessary to respond to user interaction, whether it involves specific display effects, etc.) according to the layer modification scene parameters, and select the predetermined layer type that best meets the scene requirements from the P candidate layer types to perform specific layer modification operations. This process ensures that the layer modification instruction can be intelligently processed according to the actual scene and requirements, and improves the accuracy and efficiency of the modification.
[0092] Optionally, in the layer determination method provided in the embodiment of the present application, after determining the target layer based on the predetermined layer and the layer modification parameters, it also includes: determining the Q layers included in the display interface respectively corresponding to each other, where Q is a positive integer greater than or equal to M; adjusting the Q layers respectively to obtain the updated level values respectively corresponding to the Q layers.
[0093] In this embodiment, the steps of adjusting Q layers respectively to obtain updated level values respectively corresponding to the Q layers are described.
[0094] Among them, Q layers are involved, where Q represents the total level value of the layers in the display interface. The Q layers at least include all layers that are visible or potentially displayable on the display interface, which may visually overlap or be overlapped due to different level values.
[0095] Among them, it involves updating the level value, which is the new level value calculated by the system for each actual layer in the Q layers after the layer modification instruction is processed. The calculation of the updated level value takes into account the influence of the layer modification parameters and the predetermined layer type to ensure that the modified layer is correctly positioned in the hierarchy.
[0096] In the steps involved in this embodiment, after the layer modification instruction is processed and the target layer is determined, the system will further analyze the current level values of all Q layers in the display interface. Then, the system will adjust the current level values of the Q layers based on the layer modification parameters to obtain updated level values. This process ensures that the modification operation not only affects the target layer, but also takes into account the impact of the modification on the entire interface hierarchy structure, maintaining the consistency and stability of the interface display logic.
[0097] For example, the global layer is 1000, the pop-up layer is 2000, the loading interface layer is 3000, and the prompt layer is 4000. If the user needs to insert other layers between these layers, he can also customize the layers. For example, if the user designs an application layer, this application layer is to be located above the global layer and below the pop-up layer, then the application layer A can be set to layer 10005. Finally, these layers can be integrated into 1 global layer, 2 application layers A, 3 pop-up layers, 4 loading interfaces, and 5 prompt layers for users to watch. However, when adjusting the layers inside the computer, the global layer is still 1000, the pop-up layer is 2000, the loading interface layer is 3000, the prompt layer is 4000, etc., so as to ensure the stability of the hierarchical structure and facilitate user viewing.
[0098] By adjusting the hierarchical values of Q layers, the system can ensure that even after modifying the target layer, the hierarchical structure of the entire display interface remains coherent and reasonable, avoiding hierarchical confusion and display errors caused by modifying a single layer. After updating the hierarchical value, the display interface can clearly and accurately reflect the user's intention, improving the readability of information and the user's interactive experience.
[0099] Based on the above embodiments and optional embodiments, an optional implementation is provided, which is described in detail below.
[0100] A layer determination method is provided in an optional implementation manner of the present invention.
[0101] For the optional implementation mode of the present application, the levels of the display interface are divided, such as 10,000 levels globally, 20,000 levels for pop-up windows, 30,000 levels for loading interfaces, and 40,000 levels for prompts, to avoid the time wasted by calculating and then determining the levels. Among them, the special effects can be located at the corresponding levels respectively. Solve the problem of interface display covering. Force the corresponding levels to be placed to improve display efficiency.
[0102] When setting up interfaces, the hierarchical relationship between some interfaces is determined. Assume that the determined hierarchical relationship is that the pop-up interface must be above the global interface, the loading interface will be above the pop-up interface, the prompt interface will be above the loading interface, and so on. Therefore, the hierarchical relationship between multiple interfaces can be determined first, and after the hierarchical relationship between multiple interfaces is determined, the hierarchy of these interfaces can be pre-set.
[0103] For example, the global layer is 10,000, the pop-up layer is 20,000, the loading interface layer is 30,000, and the prompt layer is 40,000. If the user needs to insert other layers between these layers, they can also customize the layers. For example, if the user designs an application layer, this application layer is to be located above the global layer and below the pop-up layer, then the application layer can be set to 10005.
[0104] If you need to design additional levels, you can also set them up according to the above steps.
[0105] It should be noted that when setting the hierarchy, you can name the hierarchy and set rules for the hierarchy. For example, the application layer is called A, and then a drawing layer is called B. You can set AB to be above the global layer and below the pop-up layer, and A to be below B. Later, when designing other hierarchies, you can automatically change layers according to the rules to avoid hierarchy confusion.
[0106] In addition, there is also the problem of navigation complexity in the prior art, that is, as the number of levels increases, the complexity of navigation also increases. Therefore, an associated layer control can be set in layer A to ensure that users can easily navigate from one level to another and understand their current location.
[0107] In addition, special effects, special displays, etc. can all be achieved through layers.
[0108] In addition, when testing the layers, you can clearly see which layer has the problem. For example, if the test is stuck at layer 10015, it is clear that the problem is at the layer between the global layer and the pop-up layer, which can better locate the fault.
[0109] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0110] Example 2
[0111] The embodiment of the present application also provides a layer determination device. It should be noted that the layer determination device of the embodiment of the present application can be used to execute the layer determination method provided by the embodiment of the present application. The layer determination device provided by the embodiment of the present application is introduced below.
[0112] According to an embodiment of the present application, a device for implementing the above layer determination method is also provided. Figure 3 is a schematic diagram of a layer determination device provided according to an embodiment of the present application, such as Figure 3 As shown, the device comprises:
[0113] A receiving module 302 is used to receive a layer modification instruction, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface includes M representative layers of different layer types, the M representative layers are respectively provided with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold value, the target position is a position in the display interface, and M is a positive integer greater than 1; a first determining module 304 is used to determine, in response to the layer modification instruction, a predetermined layer type corresponding to the target position in the display interface; a second determining module 306 is used to determine a predetermined level value corresponding to the predetermined layer type; a third determining module 308 is used to determine a predetermined layer corresponding to the predetermined level value from the M representative layers; a fourth determining module 310 is used to determine a target layer according to the predetermined layer and the layer modification parameter.
[0114] The layer determination device provided in the embodiment of the present application comprises a receiving module 302, a first determination module 304, a second determination module 306, a third determination module 308 and a fourth determination module 310. The above modules receive a layer modification instruction, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface comprises M representative layers of different layer types, the M representative layers are respectively provided with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold, the target position is a position in the display interface, and M is a positive integer greater than 1; in response to the layer modification instruction, determine the predetermined layer type corresponding to the target position in the display interface; determine the predetermined level value corresponding to the predetermined layer type; determine the predetermined layer corresponding to the predetermined level value from the M representative layers; and determine the target layer according to the predetermined layer and the layer modification parameter. In this embodiment, by setting the level interval between adjacent layers to be greater than the predetermined threshold, the level conflict that may occur during the layer modification process can be effectively avoided, and the smoothness of the layer adjustment and the correctness of the display logic can be ensured. Based on the predetermined level value, the corresponding predetermined layer is located, and then the corresponding target layer is located and modified, and the target layer is modified, created, or deleted. This can solve the problem of interface display confusion caused by disordered level value settings when modifying layers in related technologies.
[0115] Optionally, in the layer determination device provided in the embodiment of the present application, the fourth determination module 310 also includes an establishment module, which is used to establish a target layer according to the layer modification parameters when the layer modification instruction is a new layer instruction, wherein the level value of the target layer is a predetermined level value plus a predetermined value.
[0116] Optionally, in the layer determination device provided in the embodiment of the present application, the fourth determination module 310 also includes a fifth determination module, which is used to determine the interval level value between the predetermined layer and the adjacent representative layer; a sixth determination module, which is used to determine the distribution probability level value of the predetermined layer; and a seventh determination module, which is used to determine the predetermined value based on the interval level value and the distribution probability level value.
[0117] Optionally, in the layer determination device provided in the embodiment of the present application, the receiving module 302 also includes: an eighth determination module, used to determine N layer types corresponding to the display interface, where N is a positive integer greater than or equal to M; a ninth determination module, used to determine the hierarchical value restriction relationship between the N layer types; and a tenth determination module, used to determine the representative layers corresponding to the N layer types respectively based on the hierarchical value restriction relationship, and set the hierarchical values corresponding to the M representative layers respectively.
[0118] Optionally, in the layer determination device provided in the embodiment of the present application, the receiving module 302 also includes: an eleventh determination module, used to determine the display level value threshold corresponding to the display interface; a twelfth determination module, used to determine the level values corresponding to the M representative layers respectively based on the display level value threshold and the number of M representative layers.
[0119] Optionally, in the layer determination device provided in the embodiment of the present application, the first determination module 304 further includes: a thirteenth determination module, used to determine P candidate layer types involved in the target position when the layer modification instruction also carries a layer modification scene parameter, where P is a positive integer greater than 1; a fourteenth determination module, used to determine a predetermined layer type from the P candidate layer types based on the layer modification scene parameter.
[0120] Optionally, in the layer determination device provided in the embodiment of the present application, the fourth determination module 310 also includes: a fifteenth determination module, used to determine the Q layers included in the display interface respectively correspond to, where Q is a positive integer greater than or equal to M; a sixteenth determination module, used to adjust the Q layers respectively to obtain the updated level values corresponding to the Q layers respectively.
[0121] It should be noted that the receiving module 302, the first determination module 304, the second determination module 306, the third determination module 308 and the fourth determination module 310 correspond to steps S202 to S210 in Embodiment 1, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above Embodiment 1. It should be noted that the above modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above modules may also be part of the device and may be run in the computer terminal 10 provided in Embodiment 1.
[0122] Example 3
[0123] An embodiment of the present application may provide an electronic device, Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 4 As shown, the electronic device may include: one or more ( Figure 4 Only one is shown) a processor, a memory, a storage controller, and a peripheral interface, wherein the peripheral interface is connected to a radio frequency module, an audio module, and a display.
[0124] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0125] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: receiving a layer modification instruction, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface includes M representative layers of different layer types, the M representative layers are respectively set with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold, the target position is the position in the display interface, and M is a positive integer greater than 1; in response to the layer modification instruction, determining a predetermined layer type corresponding to the target position in the display interface; determining a predetermined level value corresponding to the predetermined layer type; determining a predetermined layer corresponding to the predetermined level value from the M representative layers; and determining a target layer based on the predetermined layer and the layer modification parameter.
[0126] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: determine the target layer based on the predetermined layer and layer modification parameters, including: when the layer modification instruction is a new layer instruction, establish the target layer based on the layer modification parameters, wherein the level value of the target layer is the predetermined level value plus the predetermined value.
[0127] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: when the layer modification instruction is a new layer instruction, before establishing the target layer based on the layer modification parameters, it also includes: determining the interval level value between the predetermined layer and the adjacent representative layer; determining the distribution probability level value of the predetermined layer; determining the predetermined value based on the interval level value and the distribution probability level value.
[0128] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: before receiving the layer modification instruction, it also includes: determining N layer types corresponding to the display interface, where N is a positive integer greater than or equal to M; determining the hierarchical value restriction relationship between the N layer types; based on the hierarchical value restriction relationship, determining the representative layers corresponding to the N layer types respectively, and setting the hierarchical values corresponding to the M representative layers respectively.
[0129] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: determining the representative layers corresponding to the N layer types respectively based on the level value restriction relationship, and setting the level values corresponding to the M representative layers respectively, and also including: determining the display level value threshold corresponding to the display interface; determining the level values corresponding to the M representative layers respectively based on the display level value threshold and the number of M representative layers.
[0130] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: in response to the layer modification instruction, determine the predetermined layer type corresponding to the target position in the display interface, including: when the layer modification instruction also carries the layer modification scene parameter, determine P candidate layer types involved in the target position, where P is a positive integer greater than 1; determine the predetermined layer type from the P candidate layer types according to the layer modification scene parameter.
[0131] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: after determining the target layer based on the predetermined layer and layer modification parameters, it also includes: determining the Q layers included in the display interface respectively corresponding to each other, where Q is a positive integer greater than or equal to M; adjusting the Q layers respectively to obtain the updated level values corresponding to the Q layers respectively.
[0132] According to an embodiment of the present application, a method for determining a layer is provided. A layer modification instruction is received, wherein the layer modification instruction is used to modify the layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface includes M representative layers of different layer types, the M representative layers are respectively provided with corresponding level values, the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold value, the target position is a position in the display interface, and M is a positive integer greater than 1; in response to the layer modification instruction, the predetermined layer type corresponding to the target position in the display interface is determined; the predetermined level value corresponding to the predetermined layer type is determined; from the M representative layers, the predetermined layer corresponding to the predetermined level value is determined; according to the predetermined layer and the layer modification parameter, the target layer is determined. In this embodiment, by setting the level interval between adjacent layers to be greater than the predetermined threshold value, the level conflict that may occur during the layer modification process can be effectively avoided, and the smoothness of the layer adjustment and the correctness of the display logic can be ensured. And the corresponding predetermined layer is located based on the predetermined level value, and then the corresponding target layer is located and modified, and the target layer is modified, created, or deleted. This can solve the problem of confusing interface display caused by incorrect layer value settings when modifying layers in related technologies.
[0133] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 4 The structure of the electronic device is not limited. Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations shown.
[0134] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0135] Example 4
[0136] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the layer determination method provided in the first embodiment.
[0137] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0138] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the layer determination method.
[0139] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0140] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0141] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0142] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.
[0143] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable 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 method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0145] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A layer determination method, characterized in that: include: Receive a layer modification instruction, wherein the layer modification instruction is used to modify layer parameters of a predetermined layer in a display interface, the layer modification instruction carries a target position and layer modification parameters, the display interface includes M representative layers of different layer types, the M representative layers are respectively set with corresponding level values, and the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold value, the target position is a position in the display interface, and M is a positive integer greater than 1; In response to the layer modification instruction, determining a predetermined layer type corresponding to the target position in the display interface; Determining a predetermined level value corresponding to the predetermined layer type; Determining a predetermined layer corresponding to the predetermined level value from the M representative layers; A target layer is determined according to the predetermined layer and the layer modification parameter.
2. The method according to claim 1, characterized in that Determining a target layer according to the predetermined layer and the layer modification parameter includes: In the case that the layer modification instruction is a new layer creation instruction, the target layer is established according to the layer modification parameters, wherein the level value of the target layer is the predetermined level value plus a predetermined value.
3. The method according to claim 2, characterized in that In the case where the layer modification instruction is a new layer creation instruction, before establishing the target layer according to the layer modification parameters, the method further includes: Determining the interval level value between the predetermined layer and the adjacent representative layer; Determining a distribution probability level value of the predetermined layer; The predetermined value is determined according to the interval level value and the distribution probability level value.
4. The method according to claim 1, characterized in that Before receiving the layer modification instruction, it also includes: Determine N layer types corresponding to the display interface, where N is a positive integer greater than or equal to M; Determining the hierarchical value restriction relationship between the N layer types; According to the level value restriction relationship, representative layers corresponding to the N layer types are determined, and level values corresponding to the M representative layers are set.
5. The method according to claim 4, characterized in that Before determining representative layers corresponding to the N layer types respectively according to the level value restriction relationship and setting the level values respectively corresponding to the M representative layers, the method further includes: Determining a display level value threshold corresponding to the display interface; The level values respectively corresponding to the M representative layers are determined according to the display level value threshold and the number of the M representative layers.
6. The method according to claim 1, characterized in that In response to the layer modification instruction, determining a predetermined layer type corresponding to the target position in the display interface includes: In a case where the layer modification instruction also carries a layer modification scene parameter, determining P to-be-selected layer types involved in the target position, where P is a positive integer greater than 1; The predetermined layer type is determined from the P candidate layer types according to the layer modification scene parameter.
7. The method according to any one of claims 1 to 6, characterized in that: After determining the target layer according to the predetermined layer and the layer modification parameter, the method further includes: Determine the Q layers included in the display interface respectively correspond to, where Q is a positive integer greater than or equal to M; The Q layers are adjusted respectively and correspondingly to obtain updated level values respectively corresponding to the Q layers.
8. A layer determination device, characterized in that: include: A receiving module, configured to receive a layer modification instruction, wherein the layer modification instruction is used to modify a layer parameter of a predetermined layer in a display interface, the layer modification instruction carries a target position and a layer modification parameter, the display interface includes M representative layers of different layer types, the M representative layers are respectively provided with corresponding level values, and the interval level value between two adjacent representative layers in the M representative layers is greater than a predetermined threshold value, the target position is a position in the display interface, and M is a positive integer greater than 1; A first determination module, configured to determine, in response to the layer modification instruction, a predetermined layer type corresponding to the target position in the display interface; A second determining module, configured to determine a predetermined level value corresponding to the predetermined layer type; A third determining module, configured to determine a predetermined layer corresponding to the predetermined level value from the M representative layers; The fourth determination module is used to determine the target layer according to the predetermined layer and the layer modification parameter.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the layer determination method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the layer determination method as described in any one of claims 1 to 7.
11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the layer determination method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Picture generation method and device, electronic equipment and storage medium
CN120451326A