WO2017067265A1 - Canvas element processing method and device - Google Patents

Canvas element processing method and device Download PDF

Info

Publication number
WO2017067265A1
WO2017067265A1 PCT/CN2016/091989 CN2016091989W WO2017067265A1 WO 2017067265 A1 WO2017067265 A1 WO 2017067265A1 CN 2016091989 W CN2016091989 W CN 2016091989W WO 2017067265 A1 WO2017067265 A1 WO 2017067265A1
Authority
WO
WIPO (PCT)
Prior art keywords
canvas
canvas element
key point
target
elements
Prior art date
Application number
PCT/CN2016/091989
Other languages
French (fr)
Chinese (zh)
Inventor
万飞超
Original Assignee
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2017067265A1 publication Critical patent/WO2017067265A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Definitions

  • the present application relates to the field of software element processing, and more particularly to a canvas element processing method and apparatus.
  • the desktop is the main display interface of the computer. Multiple program windows opened by the user can be displayed on the desktop.
  • a specific display method of scatter is that a plurality of program windows are displayed in a stack, that is, each upper program window covers a part of each lower program window.
  • the user needs to click each program window in turn, so that the computer will place the clicked program window on the top layer in response to the user's each click operation (of course, the previous top level program)
  • the window becomes the program window of the next layer).
  • the present application provides a canvas element processing method for solving the technical problem that the user needs to perform a click operation on each canvas element when the user wants to process the elements in the canvas in the prior art, and the operation is not convenient.
  • the present application also provides a canvas element processing device for ensuring the application and implementation of the method in practice.
  • a first aspect of the present application provides a canvas element processing method, including:
  • the trigger preset canvas element processing module processes the at least one target canvas element in sequence.
  • a second aspect of the present application provides a canvas element processing apparatus, including:
  • a canvas element display module configured to display a canvas to be processed, wherein the to-be-processed canvas includes a plurality of canvas elements
  • a target canvas element determining module configured to determine, in the plurality of canvas elements, at least one target canvas element that the line track sequentially passes in response to a line trajectory drawn by the user on the to-be-processed canvas;
  • the target canvas element processing module is configured to trigger the preset canvas element processing module to sequentially process the at least one target canvas element.
  • the present application includes the following advantages:
  • the present application provides an embodiment of a method for processing a canvas element.
  • a canvas including a plurality of canvas elements is first displayed. If the user wants to sequentially process a certain canvas element, the canvas can be drawn on the canvas.
  • the embodiment determines the canvas elements that the line trajectory passes in sequence, and triggers the canvas element processing module to sequentially process the determined canvas elements.
  • the embodiment does not require the user to perform operations such as clicking on each canvas element in turn, and only draws lines that sequentially pass through the canvas elements, and the user's operation is simpler and the user experience is better.
  • FIG. 1 is a flowchart of an embodiment of a method for processing a canvas element provided by the present application
  • FIG. 2 is a diagram showing an example of a canvas element included in a canvas to be processed provided by the present application
  • FIG. 3 is a flowchart of an implementation manner of determining a target canvas element provided by the present application
  • FIG. 4 is a flow chart of another implementation manner of determining a target canvas element provided by the present application.
  • FIG. 5 is a structural block diagram of an embodiment of a canvas element processing apparatus provided by the present application.
  • the canvas element processing method embodiment may include steps S101 to S103.
  • Step S101 Display a canvas to be processed, and the canvas to be processed includes several canvas elements.
  • the present embodiment can be applied to various scenarios.
  • the canvas and canvas elements to be processed are represented in different forms.
  • the canvas to be processed is the desktop, and the canvas element is the program window; and if the document includes multiple text boxes, the pending canvas is In the document interface, the canvas element is the text box; for example, if the processing interface of the multitasking software includes multiple tasks, the canvas to be processed is the processing interface, and the canvas element is the tasks.
  • the canvas to be processed is an interface that contains one or more canvas elements, which are elements that are subject to the same type of processing action.
  • a plurality of program windows are to be set with respective display layers
  • each of the plurality of text boxes is to be set with a respective display layer
  • a plurality of tasks are set with respective priorities.
  • Step S102 In response to the line trajectory drawn by the user on the canvas to be processed, among the plurality of canvas elements, at least one target canvas element through which the line trajectory passes sequentially is determined.
  • the user can use the mouse or the touch tool to draw a line trajectory in the interface of the canvas to be processed.
  • the canvas element that the line trajectory passes in sequence is determined, and the canvas element may be all or part of the canvas element in the to-be-processed canvas.
  • the determined canvas element is referred to as a target canvas element.
  • the number of the target canvas elements may be one or plural, and the present application is not specifically limited.
  • the canvas to be processed includes a canvas element E1, a canvas element E2, a canvas element E3, a canvas element E4, and a canvas element E5.
  • the target canvas element in which the line track passes sequentially may be a canvas element E1, a canvas element E2, and a canvas.
  • direction of the line track is one end to the other end of the line track, and is not limited to the start point to the end point of the stroke action, that is, the end point to the start point.
  • the motion trajectory from point A to point B is a line trajectory.
  • the target canvas element that the line trajectory passes in sequence it can start from point A or start from point B.
  • the determined target canvas element is as shown in FIG. 2, and may be a canvas element E1, a canvas element E2, and a canvas element E4, or may be a canvas element E4, a canvas element E2, and a canvas element E1.
  • Step S103 Triggering the preset canvas element processing module sequentially processes at least one target canvas element.
  • the canvas element processing module is a preset module, and the canvas elements in the canvas are to be processed. Similar to the description of the above canvas elements, the canvas element processing module behaves in different forms in different application scenarios.
  • the canvas element processing module is a module for setting a display layer of the program window; for example, if the canvas element is a text box in the document, the canvas element processing module is a display layer for setting the text box.
  • Module for example, the canvas element is a task in the multitasking interface, and the canvas element processing module is a module that sets the task priority.
  • the program windows determined in sequence are the program window E1, the program window E2, and the program window E4, and the canvas element processing module sets the display layer of the program window E1 to layer 1,
  • the display layer of the program window E2 is set to the layer 2
  • the display layer of the program window E4 is set to the layer 3.
  • the program window E1 is displayed on the uppermost layer, and the program window E2 and the program window E4 are sequentially displayed underneath.
  • the canvas element processing method embodiment displays a canvas including a plurality of canvas elements. If the user wants to process a certain canvas element in sequence, the scribe operation may be performed on the canvas according to The line trajectory drawn by the user, the embodiment determines the canvas element that the line trajectory passes in sequence, and triggers the canvas element processing module to sequentially process the determined canvas elements.
  • the embodiment does not require the user to perform operations such as clicking on each canvas element in turn, and only draws lines that sequentially pass through the canvas elements, and the user's operation is simpler and the user experience is better.
  • the specific implementation manner of determining at least one target canvas element in which the line trajectory passes sequentially may include the following steps. A1 to step A2.
  • Step A1 In response to the line trajectory drawn by the user on the canvas to be processed, at least one key point in the line trajectory is sequentially determined according to the extending direction of the line trajectory.
  • the user can draw a line trajectory on the canvas to be processed, and the extending direction of the line trajectory can be from any end of the line trajectory to the other end.
  • select one or more key points On the line track, select one or more key points. As shown in FIG. 2, the key points selected on the line track L are P1 to P9.
  • the selection key point may be an equidistant selection, or may be a non-equidistant selection, or may be a turning point in the search line trajectory, and the turning point as a key point.
  • these methods are merely illustrative examples.
  • the manner in which the key points are selected in the present application may not be limited thereto, and may be any manner of taking points on the existing online bar.
  • each key point is sequentially determined according to the extending direction of the line trajectory, and therefore, each key point has a certain order. In order to reflect the order of each key point, it is possible to save each key point in a first-in, first-out queue.
  • the data structure of the storage key points is not limited to the first-in first-out queue, but also other types.
  • each key point in an array, a linked list, or the like; wherein, the order of the array subscripts indicates the order in which the keys are determined, and the front and back pointers of the linked list indicate the order of determination.
  • Step A2 Determine, according to the determining order of the at least one key point, the target canvas elements in the display area that contain the key points; wherein the target canvas elements are different from each other.
  • the canvas elements associated with the key points are sequentially determined.
  • the canvas element When the canvas element is displayed in the canvas to be processed, it needs to occupy a certain area. Therefore, this association appears as a key point in the display area of the canvas element.
  • the key points are sequentially compared with the canvas elements to find the associated target canvas elements.
  • the key points are taken out from the queue heads in turn, and the extracted key points are compared with the respective canvas elements to find the target canvas elements, and the action is taken until the last key. point.
  • the found target canvas elements can be placed in the FIFO queue, that is, each target canvas element is determined to be placed in the FIFO queue from the end of the queue.
  • the target canvas element may also be placed in other data structures, such as an array, a linked list, or another queue, which is not specifically limited in this application.
  • the target canvas elements of the search are different from each other. The reason is that there may be situations where multiple key points are contained by the same canvas element, so that when each key point is compared to a canvas element, the same canvas element may be determined multiple times as the target canvas element, but each The canvas element only needs to be determined once. Therefore, it is necessary to define the determined target canvas elements and further define them as mutually different canvas elements.
  • the key point P2, the key point P3, and the key point P4 are all included in the display area of the canvas element E1.
  • the canvas element E1 is determined as the target canvas element multiple times. . Therefore, it is necessary to define the target canvas elements to be different to ensure that there is only one target canvas element E1.
  • the key points are sequentially selected according to the direction of the line trajectory, when the target canvas elements are searched, they are sequentially executed according to the selection order of the key points. Therefore, the generation of the target canvas elements is also sequential.
  • the sequence reflects the direction of the line trajectory, which means that the user wants to process the target canvas elements in turn.
  • the comparison with the key points may be all canvas elements, or part of the canvas elements, specifically with step A2 (according to the determined order of at least one key point, sequentially determining the target including the key points in the display area)
  • step A2 accordinging to the determined order of at least one key point, sequentially determining the target including the key points in the display area
  • the specific implementation of the canvas element corresponds.
  • the present application provides two specific implementations of step A2.
  • the first implementation manner may include the following steps S301 to S305.
  • Step S301 According to the determining order of the at least one key point, the first key point is taken as the current key point.
  • step S302 among the plurality of canvas elements, the candidate canvas element including the current key point in the display area is searched; if found, step S303 is performed, and if not found, step S305 is performed.
  • the canvas element including the key point P1 is searched, and if not found, the next key point P2 is taken out from the queue Q in step S305, and the present embodiment is re-executed.
  • the canvas element including the key point P2 is searched for, and the canvas element E1 is found, and step S303 is performed.
  • the found canvas elements are referred to as alternate canvas elements.
  • Step S303 It is determined whether there is no target canvas element determined by the candidate canvas element, and if so, step S304 is performed, and if not, step S305 is performed.
  • the determined target canvas element may be stored in the queue Q.
  • the specific implementation manner of this step may be: searching for the existence of the standby in the queue Q.
  • the canvas element is selected. If it does not exist, it indicates that the candidate canvas element has not been determined as the target canvas element, and the candidate canvas element may be stored as a target canvas element in the queue Q. If it already exists, the next key point is taken out in queue Q, and the candidate canvas element is searched for the next key point.
  • the target canvas element determined for the key point P2 is the canvas element E1
  • the candidate canvas element determined for the key point P3 is also the canvas element E1. Since the canvas element E1 has been determined as the target canvas element, step S305 is performed to traverse the next step. key point.
  • Step S304 Determine the candidate canvas element as the target canvas element.
  • the determined target canvas elements can be stored in various data structures such as a queue, an array, or a linked list.
  • Step S305 The next key point is taken as the current key point, and the process returns to step S302 until the last key point.
  • each key point is compared with all the canvas elements.
  • the comparison process of each key point after finding the canvas element containing the key point, it is judged whether the canvas element exists once, and then the next key point is compared.
  • each key point may not be compared with all the canvas elements. For different key points, you can compare all or part of the canvas elements to find the target canvas element.
  • step A2 may include the following steps S401 to S404.
  • the first key point is taken as the current key point according to the determined order of at least one key point.
  • step S402 In the canvas element that removes the target canvas element, search for a canvas element that includes the current key point in the display area; if found, step S403 is performed; if not, step S404 is performed.
  • step S403 it is first determined whether there is a target canvas element. If it exists, the target canvas element is removed from all the canvas elements, and among the remaining canvas elements, the canvas element including the current key point in the display area is searched. If it does not exist, look it up in all canvas elements. It should be noted that, for the first key point, step S403 has not been executed yet. Therefore, the target canvas element does not exist yet, and the target canvas element may be considered to be empty, that is, searched in all the canvas elements.
  • the target canvas element can be continuously determined in step S403.
  • the target canvas element may be constantly changing each time this step is performed.
  • the current key point is the key point P3.
  • the canvas element E2 to E5 other than the canvas element E1 is searched.
  • the target canvas element is determined as the canvas element E2 for the key point P4
  • the current key point is the key point P5.
  • the canvas element E1 and the canvas element E3 other than the canvas element E2 are searched.
  • step S404 Taking the next key point as the current key point, returning to step S402 to remove the canvas element of the target canvas element, and searching for the canvas element in the display area that includes the current key point until the last key point.
  • the target canvas elements determined in step S102 may be sequentially stored in the queue.
  • the specific implementation manner of the step S103 triggering the preset canvas element processing module to process the at least one target canvas element in sequence may include the following step B1 or include step B2.
  • Step B1 The target canvas element is sequentially taken out from the queue head of the queue, and each target canvas element is taken out, and the preset canvas element processing module is triggered to process the target canvas element.
  • Step B2 The target canvas element is sequentially taken out from the tail of the queue, and each target canvas element is taken out, and the preset canvas element processing module is triggered to process the target canvas element.
  • the target canvas elements can be taken from the team leader in turn, or the target canvas elements can be processed from the tail of the team.
  • the target canvas element can be taken out from the head of the team; if the user wants to, the later the canvas element is processed later, the team can be processed from the team. Remove the canvas element at the end.
  • the canvas element processing apparatus provided in the present application will be described below. It should be noted that the description of the canvas element processing apparatus can be referred to the above canvas processing method, and will not be described below.
  • the apparatus embodiment may specifically include: a canvas element display module 501, a target canvas element determining module 502, and a target canvas element processing module 503; wherein:
  • a canvas element display module 501 configured to display a canvas to be processed, and the canvas to be processed includes a plurality of canvas elements;
  • a target canvas element determining module 502 configured to determine, in response to the line trajectory drawn by the user on the canvas to be processed, at least one target canvas element through which the line trajectory passes in sequence;
  • the target canvas element processing module 503 is configured to trigger the preset canvas element processing module to sequentially process the at least one target canvas element.
  • the canvas element display module 501 displays a canvas including a plurality of canvas elements. If the user wants to sequentially process a certain canvas element, the line can be scribed on the canvas.
  • the target canvas element determining module 502 determines, according to the line trajectory drawn by the user, the canvas element that the line trajectory passes in sequence, and the target canvas element processing module 503 triggers the canvas element processing module to sequentially process the determined canvas elements.
  • the embodiment does not require the user to perform operations such as clicking on each canvas element in turn, and only draws lines that sequentially pass through the canvas elements, and the user's operation is simpler and the user experience is better.
  • the target canvas element determining module 502 specifically includes: a line key point determining submodule, and a target canvas element determining submodule; wherein:
  • a line key point determining sub-module configured to sequentially determine at least one key point in the line track according to a line trajectory drawn by the user on the canvas to be processed according to an extending direction of the line trajectory;
  • the target canvas element determining sub-module is configured to sequentially determine a target canvas element including a key point in the display area according to the determining order of the at least one key point; wherein each target canvas element is different from each other.
  • an implementation manner of the target canvas element determining submodule may include: a first current key point determining unit, a first candidate canvas element determining unit, a first target canvas element determining unit, and a first next key point determining unit. And a second next key point determining unit; wherein:
  • a first current key point determining unit configured to use the first key point as a current key point according to the determined order of the at least one key point
  • a first candidate canvas element determining unit configured to search, among the plurality of canvas elements, an alternative canvas element that includes a current key point in the display area;
  • a first target canvas element determining unit configured to determine the candidate canvas element as the target canvas element if the target canvas element determined by the candidate canvas element is found and does not exist;
  • a first next key point determining unit configured to: if the target canvas element determined by the candidate canvas element is found, and the next key point is used as the current key point, triggering the first candidate canvas element determining unit until the last a key point;
  • the second next key point determining unit is configured to trigger the first candidate canvas element determining unit until the last key point if the next key point is used as the current key point if not found.
  • the second implementation manner of the target canvas element determining submodule may include: a second current key point determining unit, a second candidate canvas element determining unit, a second target canvas element determining unit, and a third next key point determining Unit;
  • a second current key point determining unit configured to use the first key point as a current key point according to the determining order of the at least one key point
  • a second candidate canvas element determining unit configured to: in the canvas element that removes the target canvas element, search for a canvas element that includes a current key point in the display area; if found, trigger a second target canvas element determining unit; if not found , triggering a third next key point determining unit;
  • a second target canvas element determining unit configured to determine the found canvas element as a target canvas element
  • the third next key point determining unit is configured to use the next key point as the current key point to trigger the second candidate canvas element determining unit until the last key point.
  • the target canvas element determined by the target canvas element determining module 502 is sequentially stored in the queue; correspondingly, the target canvas element processing module 503 may specifically include: a team head processing submodule, or a tail processing Submodule; where:
  • a team leader processing sub-module configured to sequentially extract a target canvas element from a queue head, and each time a target canvas element is taken, triggering a preset canvas element processing module to process the target canvas element;
  • the tail processing sub-module is configured to sequentially extract the target canvas elements from the tail of the queue, and each time a target canvas element is taken, the preset canvas element processing module is triggered to process the target canvas element.

Abstract

A canvas element processing method. A canvas comprising a plurality of canvas elements is displayed; if a user wants to sequentially process some canvas element(s), the user can perform a line drawing operation on the canvas; and canvas elements that a line track sequentially passes through are determined according to the line track drawn out by the user; and a canvas element processing module is triggered to sequentially process the determined canvas elements. Compared with the prior art, operations, such as sequentially clicking canvas elements, are not needed for users in the method, and it is only required to sequentially draw the lines passing through the canvas elements. Operations of the user are simpler, and user experience is better. Also provided is a canvas element processing device, for use in ensuring the application and implementation of the method in the actual operation.

Description

画布元素处理方法及装置Canvas element processing method and device 技术领域Technical field
本申请涉及软件元素处理领域,更具体地,是画布元素处理方法及装置。The present application relates to the field of software element processing, and more particularly to a canvas element processing method and apparatus.
背景技术Background technique
在计算机领域中,桌面是计算机的主要展示界面。用户打开的多个程序窗口,可以散落显示在桌面中。一种具体的散落显示方式是,多个程序窗口层叠显示,即每一个上层的程序窗口会覆盖每一个下层的程序窗口的一部分。In the computer field, the desktop is the main display interface of the computer. Multiple program windows opened by the user can be displayed on the desktop. A specific display method of scatter is that a plurality of program windows are displayed in a stack, that is, each upper program window covers a part of each lower program window.
目前,要实现上述的显示效果,用户需要依次点击每个程序窗口,这样,计算机会响应于用户的每次点击操作,将点击的该程序窗口放置在最上层(当然,前一个最上层的程序窗口就成为下一层的程序窗口)。可见,在现有的这种实现方式中,用户需要对每个想要处理的程序窗口均执行点击操作,不够方便,用户体验较差。At present, in order to achieve the above display effect, the user needs to click each program window in turn, so that the computer will place the clicked program window on the top layer in response to the user's each click operation (of course, the previous top level program) The window becomes the program window of the next layer). It can be seen that in the existing implementation manner, the user needs to perform a click operation on each program window that is to be processed, which is not convenient and the user experience is poor.
发明内容Summary of the invention
有鉴于此,本申请提供了一种画布元素处理方法,用以解决现有技术中用户在想要处理画布中的元素时,需要对每个画布元素均执行点击操作,操作不够方便的技术问题。另外,本申请还提供了一种画布元素处理装置,用以保证所述方法在实际中的应用及实现。In view of this, the present application provides a canvas element processing method for solving the technical problem that the user needs to perform a click operation on each canvas element when the user wants to process the elements in the canvas in the prior art, and the operation is not convenient. . In addition, the present application also provides a canvas element processing device for ensuring the application and implementation of the method in practice.
为实现所述目的,本申请提供的技术方案如下:To achieve the stated object, the technical solution provided by the present application is as follows:
本申请的第一方面提供了一种画布元素处理方法,包括:A first aspect of the present application provides a canvas element processing method, including:
显示待处理画布,所述待处理画布中包含若干画布元素;Displaying a canvas to be processed, the canvas to be processed containing a plurality of canvas elements;
响应于用户在所述待处理画布上划出的线条轨迹,在所述若干画布元素中,确定所述线条轨迹依次经过的至少一个目标画布元素;Determining, in the plurality of canvas elements, at least one target canvas element through which the line trajectory passes in response to a line trajectory drawn by the user on the canvas to be processed;
触发预设画布元素处理模块依次处理所述至少一个目标画布元素。The trigger preset canvas element processing module processes the at least one target canvas element in sequence.
本申请的第二方面提供了一种画布元素处理装置,包括: A second aspect of the present application provides a canvas element processing apparatus, including:
画布元素显示模块,用于显示待处理画布,所述待处理画布中包含若干画布元素;a canvas element display module, configured to display a canvas to be processed, wherein the to-be-processed canvas includes a plurality of canvas elements;
目标画布元素确定模块,用于响应于用户在所述待处理画布上划出的线条轨迹,在所述若干画布元素中,确定所述线条轨迹依次经过的至少一个目标画布元素;a target canvas element determining module, configured to determine, in the plurality of canvas elements, at least one target canvas element that the line track sequentially passes in response to a line trajectory drawn by the user on the to-be-processed canvas;
目标画布元素处理模块,用于触发预设画布元素处理模块依次处理所述至少一个目标画布元素。The target canvas element processing module is configured to trigger the preset canvas element processing module to sequentially process the at least one target canvas element.
与现有技术相比,本申请包括以下优点:Compared with the prior art, the present application includes the following advantages:
由以上可知,本申请提供了一种画布元素处理方法实施例,本实施例首先显示包含若干画布元素的画布,若用户想要依次处理某个(些)画布元素时,可以在画布上进行划线操作,根据用户划出的线条轨迹,本实施例确定出该线条轨迹依次经过的画布元素,并触发画布元素处理模块依次处理确定出的该些画布元素。与现有技术相比,本实施例并不需要用户依次对各个画布元素进行点击等操作,仅划出依次经过该些画布元素的线条即可,用户的操作更加简单,用户体验更好。As can be seen from the above, the present application provides an embodiment of a method for processing a canvas element. In this embodiment, a canvas including a plurality of canvas elements is first displayed. If the user wants to sequentially process a certain canvas element, the canvas can be drawn on the canvas. In the line operation, according to the line trajectory drawn by the user, the embodiment determines the canvas elements that the line trajectory passes in sequence, and triggers the canvas element processing module to sequentially process the determined canvas elements. Compared with the prior art, the embodiment does not require the user to perform operations such as clicking on each canvas element in turn, and only draws lines that sequentially pass through the canvas elements, and the user's operation is simpler and the user experience is better.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can obtain other drawings according to the provided drawings without any creative work.
图1为本申请提供的画布元素处理方法实施例的流程图;1 is a flowchart of an embodiment of a method for processing a canvas element provided by the present application;
图2为本申请提供的待处理画布包含的画布元素示例图;2 is a diagram showing an example of a canvas element included in a canvas to be processed provided by the present application;
图3为本申请提供的确定目标画布元素的一种实现方式流程图;FIG. 3 is a flowchart of an implementation manner of determining a target canvas element provided by the present application;
图4为本申请提供的确定目标画布元素的另一实现方式流程图;4 is a flow chart of another implementation manner of determining a target canvas element provided by the present application;
图5为本申请提供的画布元素处理装置实施例的结构框图。FIG. 5 is a structural block diagram of an embodiment of a canvas element processing apparatus provided by the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行 清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solution in the embodiment of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. It is clear that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
参见图1,其示出了本申请提供的画布元素处理方法实施例的流程。如图1所示,该画布元素处理方法实施例可以包括步骤S101~步骤S103。Referring to FIG. 1, there is shown a flow of an embodiment of a canvas element processing method provided by the present application. As shown in FIG. 1 , the canvas element processing method embodiment may include steps S101 to S103.
步骤S101:显示待处理画布,待处理画布中包含若干画布元素。Step S101: Display a canvas to be processed, and the canvas to be processed includes several canvas elements.
其中,本实施例可以应用在各种不同的场景中,在不同的应用场景中,待处理画布及画布元素表现为不同形式。The present embodiment can be applied to various scenarios. In different application scenarios, the canvas and canvas elements to be processed are represented in different forms.
例如,电脑、手机等电子设备的桌面上显示有多个程序窗口,则待处理画布为该桌面,画布元素为该些程序窗口;又如,文档中包括多个文本框,则待处理画布为该文档界面,画布元素为该些文本框;再如,多任务处理软件的处理界面中包括多个任务,则待处理画布为该处理界面,画布元素为该些任务。For example, if a computer, a mobile phone, or the like has a plurality of program windows displayed on the desktop, the canvas to be processed is the desktop, and the canvas element is the program window; and if the document includes multiple text boxes, the pending canvas is In the document interface, the canvas element is the text box; for example, if the processing interface of the multitasking software includes multiple tasks, the canvas to be processed is the processing interface, and the canvas element is the tasks.
以上几种仅仅是示例说明,本申请并不局限于此。但是,总结来说,待处理画布为包含一个或多个画布元素的界面,其中,该些画布元素为要接受同种类型处理动作的元素。例如,在以上应用场景示例中,多个程序窗口均要被设置各自的显示图层,多个文本框均要被设置各自的显示图层、多个任务均要被设置各自的优先级。The above are merely examples, and the application is not limited thereto. However, in summary, the canvas to be processed is an interface that contains one or more canvas elements, which are elements that are subject to the same type of processing action. For example, in the above application scenario example, a plurality of program windows are to be set with respective display layers, and each of the plurality of text boxes is to be set with a respective display layer, and a plurality of tasks are set with respective priorities.
步骤S102:响应于用户在待处理画布上划出的线条轨迹,在若干画布元素中,确定线条轨迹依次经过的至少一个目标画布元素。Step S102: In response to the line trajectory drawn by the user on the canvas to be processed, among the plurality of canvas elements, at least one target canvas element through which the line trajectory passes sequentially is determined.
其中,用户在待处理画布的界面中,可以使用鼠标或者触控工具等,划出线条轨迹。根据线条轨迹的方向,确定出该线条轨迹依次经过的画布元素,该画布元素可以是该待处理画布中的全部或者部分画布元素。为了便于描述,将确定出的画布元素称为目标画布元素。目标画布元素的个数可以是一个,也可以是多个,本申请并不具体限定。The user can use the mouse or the touch tool to draw a line trajectory in the interface of the canvas to be processed. According to the direction of the line trajectory, the canvas element that the line trajectory passes in sequence is determined, and the canvas element may be all or part of the canvas element in the to-be-processed canvas. For ease of description, the determined canvas element is referred to as a target canvas element. The number of the target canvas elements may be one or plural, and the present application is not specifically limited.
以图2所示的线条轨迹经过的画布元素为例进行说明。如图2所示,待处理画布中包含画布元素E1、画布元素E2、画布元素E3、画布元素E4及画布元素E5,线条轨迹依次经过的目标画布元素可以为画布元素E1、画布元素E2及画布元素E4。 The canvas element passing through the line trajectory shown in FIG. 2 will be described as an example. As shown in FIG. 2, the canvas to be processed includes a canvas element E1, a canvas element E2, a canvas element E3, a canvas element E4, and a canvas element E5. The target canvas element in which the line track passes sequentially may be a canvas element E1, a canvas element E2, and a canvas. Element E4.
需要说明的是,线条轨迹的方向是线条轨迹的一端到另一端,并不局限于从划出动作的起点到终点,即也可以是终点到起点。It should be noted that the direction of the line track is one end to the other end of the line track, and is not limited to the start point to the end point of the stroke action, that is, the end point to the start point.
例如,用户的划出动作从A点开始,运动到B点结束,则A点到B点的运动轨迹为线条轨迹。确定该线条轨迹依次经过的目标画布元素时,可以从A点开始,或者,也可以从B点开始。确定出的目标画布元素如图2所示,可以依次为画布元素E1、画布元素E2及画布元素E4,或者,也可以依次为画布元素E4、画布元素E2及画布元素E1。For example, if the user's stroke action starts from point A and moves to point B, the motion trajectory from point A to point B is a line trajectory. When determining the target canvas element that the line trajectory passes in sequence, it can start from point A or start from point B. The determined target canvas element is as shown in FIG. 2, and may be a canvas element E1, a canvas element E2, and a canvas element E4, or may be a canvas element E4, a canvas element E2, and a canvas element E1.
步骤S103:触发预设画布元素处理模块依次处理至少一个目标画布元素。Step S103: Triggering the preset canvas element processing module sequentially processes at least one target canvas element.
其中,画布元素处理模块是预置模块,要对待处理画布中的画布元素进行处理。与上述画布元素的说明同理,画布元素处理模块在不同的应用场景中,表现为不同的形式。The canvas element processing module is a preset module, and the canvas elements in the canvas are to be processed. Similar to the description of the above canvas elements, the canvas element processing module behaves in different forms in different application scenarios.
例如,画布元素为程序窗口,则画布元素处理模块为设置程序窗口的显示图层的模块;又如,画布元素为文档中的文本框,则画布元素处理模块为设置文本框的显示图层的模块;再如,画布元素为多任务处理界面中的任务,则画布元素处理模块为设置任务优先级的模块。For example, if the canvas element is a program window, the canvas element processing module is a module for setting a display layer of the program window; for example, if the canvas element is a text box in the document, the canvas element processing module is a display layer for setting the text box. Module; for example, the canvas element is a task in the multitasking interface, and the canvas element processing module is a module that sets the task priority.
触发画布元素处理模块,按照确定目标画布元素的先后顺序,依次处理目标画布元素。Trigger the canvas element processing module to process the target canvas elements in turn according to the order in which the target canvas elements are determined.
以目标画布元素为程序窗口为例说明,依次确定出的程序窗口分别为程序窗口E1、程序窗口E2及程序窗口E4,画布元素处理模块将程序窗口E1的显示图层设置为图层1、将程序窗口E2的显示图层设置为图层2、将程序窗口E4的显示图层设置为图层3。这样,程序窗口E1显示在最上层,底下依次显示程序窗口E2及程序窗口E4。Taking the target canvas element as a program window as an example, the program windows determined in sequence are the program window E1, the program window E2, and the program window E4, and the canvas element processing module sets the display layer of the program window E1 to layer 1, The display layer of the program window E2 is set to the layer 2, and the display layer of the program window E4 is set to the layer 3. Thus, the program window E1 is displayed on the uppermost layer, and the program window E2 and the program window E4 are sequentially displayed underneath.
由以上技术方案可知,本申请提供的画布元素处理方法实施例,显示包含若干画布元素的画布,若用户想要依次处理某个(些)画布元素时,可以在画布上进行划线操作,根据用户划出的线条轨迹,本实施例确定出该线条轨迹依次经过的画布元素,并触发画布元素处理模块依次处理确定出的该些画布元素。与现有技术相比,本实施例并不需要用户依次对各个画布元素进行点击等操作,仅划出依次经过该些画布元素的线条即可,用户的操作更加简单,用户体验更好。 It can be seen from the above technical solution that the canvas element processing method embodiment provided by the present application displays a canvas including a plurality of canvas elements. If the user wants to process a certain canvas element in sequence, the scribe operation may be performed on the canvas according to The line trajectory drawn by the user, the embodiment determines the canvas element that the line trajectory passes in sequence, and triggers the canvas element processing module to sequentially process the determined canvas elements. Compared with the prior art, the embodiment does not require the user to perform operations such as clicking on each canvas element in turn, and only draws lines that sequentially pass through the canvas elements, and the user's operation is simpler and the user experience is better.
在实际应用中,上述实施例中步骤S102响应于用户在待处理画布上划出的线条轨迹,在若干画布元素中,确定线条轨迹依次经过的至少一个目标画布元素的具体实现方式可以包括以下步骤A1~步骤A2。In a practical application, in the step S102 in the above embodiment, in response to the line trajectory drawn by the user on the canvas to be processed, in a plurality of canvas elements, the specific implementation manner of determining at least one target canvas element in which the line trajectory passes sequentially may include the following steps. A1 to step A2.
步骤A1:响应于用户在待处理画布上划出的线条轨迹,依据线条轨迹的延伸方向,依次确定线条轨迹中的至少一个关键点。Step A1: In response to the line trajectory drawn by the user on the canvas to be processed, at least one key point in the line trajectory is sequentially determined according to the extending direction of the line trajectory.
其中,用户可以在待处理画布上划出线条轨迹,线条轨迹的延伸方向可以是从线条轨迹的任意一端到另外一端。在线条轨迹上,选择出一个或多个关键点。如图2所示,在线条轨迹L上选择的关键点为P1~P9。The user can draw a line trajectory on the canvas to be processed, and the extending direction of the line trajectory can be from any end of the line trajectory to the other end. On the line track, select one or more key points. As shown in FIG. 2, the key points selected on the line track L are P1 to P9.
具体地,选择关键点可以是等距选择,或者,可以是非等距选择,或者,可以是查找线条轨迹中的转折点,将转折点作为关键点。当然,这几种方式仅仅是说明示例,本申请选择关键点的方式可以并不局限于此,可以是现有的在线条上取点的任意方式。Specifically, the selection key point may be an equidistant selection, or may be a non-equidistant selection, or may be a turning point in the search line trajectory, and the turning point as a key point. Certainly, these methods are merely illustrative examples. The manner in which the key points are selected in the present application may not be limited thereto, and may be any manner of taking points on the existing online bar.
需要说明的是,各个关键点是按照线条轨迹的延伸方向依次确定出来的,因此,各个关键点是具有确定顺序。为了体现各个关键点的先后确定顺序,可以是将各个关键点保存在先进先出的队列中。当然,存储关键点的数据结构并不局限于先进先出的队列,还可以是其他类型。It should be noted that each key point is sequentially determined according to the extending direction of the line trajectory, and therefore, each key point has a certain order. In order to reflect the order of each key point, it is possible to save each key point in a first-in, first-out queue. Of course, the data structure of the storage key points is not limited to the first-in first-out queue, but also other types.
例如,还可以是将各个关键点存储在数组、链表等中;其中,数组下标的顺序表示关键点的确定顺序,链表的前后指针表示确定顺序。For example, it is also possible to store each key point in an array, a linked list, or the like; wherein, the order of the array subscripts indicates the order in which the keys are determined, and the front and back pointers of the linked list indicate the order of determination.
步骤A2:依据至少一个关键点的确定顺序,依次确定出显示区域内包含关键点的目标画布元素;其中,各个目标画布元素互不相同。Step A2: Determine, according to the determining order of the at least one key point, the target canvas elements in the display area that contain the key points; wherein the target canvas elements are different from each other.
其中,按照关键点的确定顺序,依次确定与关键点关联的画布元素。画布元素显示在待处理画布中时,是需要占据一定的区域面积的。因此,这种关联表现为画布元素的显示区域内包含关键点。Wherein, according to the determined order of the key points, the canvas elements associated with the key points are sequentially determined. When the canvas element is displayed in the canvas to be processed, it needs to occupy a certain area. Therefore, this association appears as a key point in the display area of the canvas element.
具体地,按照关键点的先后确定顺序,依次分别将关键点与画布元素进行比对,查找关联的目标画布元素。以关键点存储在先进先出的队列为例说明,从队列的队首依次取出关键点,将取出的关键点分别与各个画布元素进行比对,以查找目标画布元素,取出动作直至最后一个关键点。另外,查找到的目标画布元素可以放入该先进先出队列中,即每确定出一个目标画布元素便从队尾依次放入该先进先出队列中。当然,目标画布元素还可以是放置在其他数据结构中,如数组、链表或者另一队列,本申请并不做具体限定。 Specifically, in accordance with the order in which the key points are determined, the key points are sequentially compared with the canvas elements to find the associated target canvas elements. Taking the key points stored in the first-in-first-out queue as an example, the key points are taken out from the queue heads in turn, and the extracted key points are compared with the respective canvas elements to find the target canvas elements, and the action is taken until the last key. point. In addition, the found target canvas elements can be placed in the FIFO queue, that is, each target canvas element is determined to be placed in the FIFO queue from the end of the queue. Of course, the target canvas element may also be placed in other data structures, such as an array, a linked list, or another queue, which is not specifically limited in this application.
需要说明的是,查找的目标画布元素之间是互不相同的。原因是,可能存在多个关键点都被同一画布元素包含的情况,这样,将每个关键点与画布元素进行比对时,同一画布元素可能被多次确定为目标画布元素,但是,每个画布元素只需被确定一次即可。因此,需要对确定出的目标画布元素进行限定,将其进一步限定为互不相同的画布元素。It should be noted that the target canvas elements of the search are different from each other. The reason is that there may be situations where multiple key points are contained by the same canvas element, so that when each key point is compared to a canvas element, the same canvas element may be determined multiple times as the target canvas element, but each The canvas element only needs to be determined once. Therefore, it is necessary to define the determined target canvas elements and further define them as mutually different canvas elements.
如图2所示,关键点P2、关键点P3及关键点P4均包含在画布元素E1的显示区域内,在查找包含关键点的画布元素时,画布元素E1会多次被确定为目标画布元素。因此,需要限定目标画布元素是不同的,以保证仅有一个目标画布元素E1。As shown in FIG. 2, the key point P2, the key point P3, and the key point P4 are all included in the display area of the canvas element E1. When the canvas element containing the key point is searched, the canvas element E1 is determined as the target canvas element multiple times. . Therefore, it is necessary to define the target canvas elements to be different to ensure that there is only one target canvas element E1.
需要说明的是,由于关键点是按照线条轨迹的方向依次选取出来的,在查找目标画布元素时,是按照关键点的选取顺序依次执行的,因此,目标画布元素的产生也是具有先后顺序的,该先后顺序体现的是线条轨迹的方向,即可以体现用户想要依次处理目标画布元素的意愿。It should be noted that since the key points are sequentially selected according to the direction of the line trajectory, when the target canvas elements are searched, they are sequentially executed according to the selection order of the key points. Therefore, the generation of the target canvas elements is also sequential. The sequence reflects the direction of the line trajectory, which means that the user wants to process the target canvas elements in turn.
在实施中,与关键点进行比对的可以是全部画布元素,也可以是部分的画布元素,具体与步骤A2(依据至少一个关键点的确定顺序,依次确定出显示区域内包含关键点的目标画布元素)的具体实现方式相对应。如下,本申请提供了步骤A2的两种具体实现方式。In the implementation, the comparison with the key points may be all canvas elements, or part of the canvas elements, specifically with step A2 (according to the determined order of at least one key point, sequentially determining the target including the key points in the display area) The specific implementation of the canvas element) corresponds. As follows, the present application provides two specific implementations of step A2.
如图3所示,第一种实现方式可以包括以下步骤S301~步骤S305。As shown in FIG. 3, the first implementation manner may include the following steps S301 to S305.
步骤S301:依据至少一个关键点的确定顺序,将首个关键点作为当前关键点。Step S301: According to the determining order of the at least one key point, the first key point is taken as the current key point.
具体地,假设一个或多个关键点存储在队列Q中,将队列Q的队首中的首个元素即关键点P1取出,将关键点P1作为当前关键点。Specifically, it is assumed that one or more key points are stored in the queue Q, and the first element in the head of the queue Q, that is, the key point P1 is taken out, and the key point P1 is taken as the current key point.
步骤S302:在若干画布元素中,查找显示区域内包含当前关键点的备选画布元素;若查找到,执行步骤S303,若未查找到,执行步骤S305。In step S302, among the plurality of canvas elements, the candidate canvas element including the current key point in the display area is searched; if found, step S303 is performed, and if not found, step S305 is performed.
如图2所示的画布元素示例,在画布元素E1~画布元素E5中,查找包含关键点P1的画布元素,未查找到,执行步骤S305从队列Q中取出下一关键点P2,重新执行本步骤,在画布元素E1~画布元素E5中,查找包含关键点P2的画布元素,查找到画布元素E1,执行步骤S303。As an example of the canvas element shown in FIG. 2, in the canvas element E1 to the canvas element E5, the canvas element including the key point P1 is searched, and if not found, the next key point P2 is taken out from the queue Q in step S305, and the present embodiment is re-executed. In the canvas element E1 to the canvas element E5, the canvas element including the key point P2 is searched for, and the canvas element E1 is found, and step S303 is performed.
为了便于描述,将查找到的画布元素称为备选画布元素。 For ease of description, the found canvas elements are referred to as alternate canvas elements.
步骤S303:判断是否并未存在由备选画布元素确定的目标画布元素,若是,执行步骤S304,若否,执行步骤S305。Step S303: It is determined whether there is no target canvas element determined by the candidate canvas element, and if so, step S304 is performed, and if not, step S305 is performed.
在实施中,确定出的目标画布元素可以存储在队列Q中,相应地,步骤S302确定出某个备选画布元素后,本步骤的具体实现方式可以是,在队列Q中查找是否存在该备选画布元素,若未存在,则表明该备选画布元素还未被确定为目标画布元素,则可以将该备选画布元素作为目标画布元素存储在队列Q中。若已经存在,则在队列Q中取出下一关键点,为该下一关键点查找备选画布元素。In an implementation, the determined target canvas element may be stored in the queue Q. Correspondingly, after determining an candidate canvas element in step S302, the specific implementation manner of this step may be: searching for the existence of the standby in the queue Q. The canvas element is selected. If it does not exist, it indicates that the candidate canvas element has not been determined as the target canvas element, and the candidate canvas element may be stored as a target canvas element in the queue Q. If it already exists, the next key point is taken out in queue Q, and the candidate canvas element is searched for the next key point.
以图2为例说明。为关键点P2确定的目标画布元素为画布元素E1,为关键点P3确定的备选画布元素也为画布元素E1,由于画布元素E1已经被确定为了目标画布元素,因此,执行步骤S305遍历下一关键点。Take Figure 2 as an example. The target canvas element determined for the key point P2 is the canvas element E1, and the candidate canvas element determined for the key point P3 is also the canvas element E1. Since the canvas element E1 has been determined as the target canvas element, step S305 is performed to traverse the next step. key point.
步骤S304:将备选画布元素确定为目标画布元素。Step S304: Determine the candidate canvas element as the target canvas element.
其中,可以将确定出的目标画布元素存在队列、数组或者链表等各种数据结构中。Among them, the determined target canvas elements can be stored in various data structures such as a queue, an array, or a linked list.
步骤S305:将下一关键点作为当前关键点,返回执行步骤S302,直至最后一个关键点。Step S305: The next key point is taken as the current key point, and the process returns to step S302 until the last key point.
由以上可知,该第一种实现方式中,将每个关键点与全部的画布元素进行比对。在每个关键点的比对过程中,查找到包含该关键点的画布元素后,便判断一次是否存在该画布元素,然后再比对下一关键点。From the above, in the first implementation, each key point is compared with all the canvas elements. In the comparison process of each key point, after finding the canvas element containing the key point, it is judged whether the canvas element exists once, and then the next key point is compared.
在步骤A2(依据至少一个关键点的确定顺序,依次确定出显示区域内包含关键点的目标画布元素)的第二种实现方式中,可以不将每个关键点与全部的画布元素进行比对,对于不同的关键点,可以与全部或部分的画布元素进行比对,来查找目标画布元素。In the second implementation manner of the step A2 (determining the target canvas elements including the key points in the display area according to the determination order of the at least one key point), each key point may not be compared with all the canvas elements. For different key points, you can compare all or part of the canvas elements to find the target canvas element.
如图4所示,步骤A2的另一具体实现方式可以包括以下步骤S401~步骤S404。As shown in FIG. 4, another specific implementation of step A2 may include the following steps S401 to S404.
S401:依据至少一个关键点的确定顺序,将首个关键点作为当前关键点。S401: The first key point is taken as the current key point according to the determined order of at least one key point.
S402:在去除目标画布元素的画布元素中,查找显示区域内包含当前关键点的画布元素;若查找到,执行步骤S403;若未查找到,执行步骤S404。 S402: In the canvas element that removes the target canvas element, search for a canvas element that includes the current key point in the display area; if found, step S403 is performed; if not, step S404 is performed.
其中,首先判断是否存在目标画布元素。若存在,则在全部的画布元素中,去除目标画布元素,在剩余的画布元素中,查找显示区域内包含该当前关键点的画布元素。若不存在,则在全部的画布元素中进行查找。需要说明的是,对于首个关键点,还并未执行过步骤S403,因此,还并未存在目标画布元素,可以认为目标画布元素为空,即在全部的画布元素中进行查找。Among them, it is first determined whether there is a target canvas element. If it exists, the target canvas element is removed from all the canvas elements, and among the remaining canvas elements, the canvas element including the current key point in the display area is searched. If it does not exist, look it up in all canvas elements. It should be noted that, for the first key point, step S403 has not been executed yet. Therefore, the target canvas element does not exist yet, and the target canvas element may be considered to be empty, that is, searched in all the canvas elements.
需要说明的是,由于本实现方式是循环执行的,因此,步骤S403可以不断确定出目标画布元素。这样,在每次执行本步骤时,目标画布元素可能是不断改变的。It should be noted that, since the implementation is cyclically executed, the target canvas element can be continuously determined in step S403. Thus, the target canvas element may be constantly changing each time this step is performed.
如图2所示,为关键点P2确定的目标画布元素为画布元素E1后,当前关键点为关键点P3,本步骤执行时,便在画布元素E1之外的画布元素E2~E5中进行查找。接着,为关键点P4确定目标画布元素为画布元素E2后,当前关键点为关键点P5,本步骤执行时,便在画布元素E1及画布元素E2之外的画布元素E3~E5中进行查找。As shown in FIG. 2, after the target canvas element determined for the key point P2 is the canvas element E1, the current key point is the key point P3. When this step is executed, the canvas element E2 to E5 other than the canvas element E1 is searched. . Next, after the target canvas element is determined as the canvas element E2 for the key point P4, the current key point is the key point P5. When this step is executed, the canvas element E1 and the canvas element E3 other than the canvas element E2 are searched.
S403:将查找到的画布元素确定为目标画布元素。S403: Determine the found canvas element as the target canvas element.
S404:将下一关键点作为当前关键点,返回执行步骤S402在去除目标画布元素的画布元素中,查找显示区域内包含当前关键点的画布元素,直至最后一个关键点。S404: Taking the next key point as the current key point, returning to step S402 to remove the canvas element of the target canvas element, and searching for the canvas element in the display area that includes the current key point until the last key point.
需要说明的是,本实现方式仅仅说明了与第一种实现方式的不同之处,其他方面可以参考第一种实现方式的说明。It should be noted that the present implementation only illustrates the difference from the first implementation manner, and other aspects may refer to the description of the first implementation manner.
由以上可知,本实现方式中,查找包含关键点的画布元素时,并非是将全部的画布元素均与关键点进行比对,进行比对的画布元素个数会随着执行次数的增多而减少,该种实现方式效率更高。It can be seen from the above that in the present implementation, when searching for a canvas element including a key point, not all the canvas elements are compared with the key points, and the number of the canvas elements to be compared decreases as the number of executions increases. This kind of implementation is more efficient.
在实施中,图1所示的画布元素处理方法实施例中,步骤S102确定出的目标画布元素可以是依次存储在队列中的。相应地,步骤S103触发预设画布元素处理模块依次处理至少一个目标画布元素的具体实现方式可以包括以下步骤B1,或者,包括步骤B2。In an implementation, in the embodiment of the canvas element processing method shown in FIG. 1, the target canvas elements determined in step S102 may be sequentially stored in the queue. Correspondingly, the specific implementation manner of the step S103 triggering the preset canvas element processing module to process the at least one target canvas element in sequence may include the following step B1 or include step B2.
步骤B1:依次从队列的队首取出目标画布元素,每取出一个目标画布元素,触发预设画布元素处理模块处理该述目标画布元素。 Step B1: The target canvas element is sequentially taken out from the queue head of the queue, and each target canvas element is taken out, and the preset canvas element processing module is triggered to process the target canvas element.
步骤B2:依次从队列的队尾取出目标画布元素,每取出一个目标画布元素,触发预设画布元素处理模块处理该述目标画布元素。Step B2: The target canvas element is sequentially taken out from the tail of the queue, and each target canvas element is taken out, and the preset canvas element processing module is triggered to process the target canvas element.
简单来讲,可以根据用户的实际需求,依次从队首取目标画布元素进行处理,或者,也可以是从队尾取目标画布元素进行处理。In simple terms, according to the actual needs of the user, the target canvas elements can be taken from the team leader in turn, or the target canvas elements can be processed from the tail of the team.
例如,用户想要实现,越先划过的画布元素越先被处理,则可以从队首取出目标画布元素;若用户想要,越后划过的画布元素越后被处理,则可以从队尾取出画布元素。For example, if the user wants to realize that the tile element that is crossed first is processed first, the target canvas element can be taken out from the head of the team; if the user wants to, the later the canvas element is processed later, the team can be processed from the team. Remove the canvas element at the end.
以下对本申请提供的画布元素处理装置进行介绍,需要说明的是,有关画布元素处理装置的说明可以参照上文的画布处理方法,以下并不赘述。The canvas element processing apparatus provided in the present application will be described below. It should be noted that the description of the canvas element processing apparatus can be referred to the above canvas processing method, and will not be described below.
参见图5,其示出了画布元素处理装置实施例的结构。如图5所示,该装置实施例可以具体包括:画布元素显示模块501、目标画布元素确定模块502及目标画布元素处理模块503;其中:Referring to Figure 5, there is shown the structure of an embodiment of a canvas element processing apparatus. As shown in FIG. 5, the apparatus embodiment may specifically include: a canvas element display module 501, a target canvas element determining module 502, and a target canvas element processing module 503; wherein:
画布元素显示模块501,用于显示待处理画布,待处理画布中包含若干画布元素;a canvas element display module 501, configured to display a canvas to be processed, and the canvas to be processed includes a plurality of canvas elements;
目标画布元素确定模块502,用于响应于用户在待处理画布上划出的线条轨迹,在若干画布元素中,确定线条轨迹依次经过的至少一个目标画布元素;a target canvas element determining module 502, configured to determine, in response to the line trajectory drawn by the user on the canvas to be processed, at least one target canvas element through which the line trajectory passes in sequence;
目标画布元素处理模块503,用于触发预设画布元素处理模块依次处理至少一个目标画布元素。The target canvas element processing module 503 is configured to trigger the preset canvas element processing module to sequentially process the at least one target canvas element.
由以上可知,本申请提供的画布元素处理装置实施例,画布元素显示模块501显示包含若干画布元素的画布,若用户想要依次处理某个(些)画布元素时,可以在画布上进行划线操作,目标画布元素确定模块502根据用户划出的线条轨迹,确定出该线条轨迹依次经过的画布元素,目标画布元素处理模块503触发画布元素处理模块依次处理确定出的该些画布元素。与现有技术相比,本实施例并不需要用户依次对各个画布元素进行点击等操作,仅划出依次经过该些画布元素的线条即可,用户的操作更加简单,用户体验更好。As can be seen from the above, in the canvas element processing apparatus embodiment provided by the present application, the canvas element display module 501 displays a canvas including a plurality of canvas elements. If the user wants to sequentially process a certain canvas element, the line can be scribed on the canvas. The target canvas element determining module 502 determines, according to the line trajectory drawn by the user, the canvas element that the line trajectory passes in sequence, and the target canvas element processing module 503 triggers the canvas element processing module to sequentially process the determined canvas elements. Compared with the prior art, the embodiment does not require the user to perform operations such as clicking on each canvas element in turn, and only draws lines that sequentially pass through the canvas elements, and the user's operation is simpler and the user experience is better.
可选地,目标画布元素确定模块502具体包括:线条关键点确定子模块、以及目标画布元素确定子模块;其中: Optionally, the target canvas element determining module 502 specifically includes: a line key point determining submodule, and a target canvas element determining submodule; wherein:
线条关键点确定子模块,用于响应于用户在待处理画布上划出的线条轨迹,依据线条轨迹的延伸方向,依次确定线条轨迹中的至少一个关键点;a line key point determining sub-module, configured to sequentially determine at least one key point in the line track according to a line trajectory drawn by the user on the canvas to be processed according to an extending direction of the line trajectory;
目标画布元素确定子模块,用于依据至少一个关键点的确定顺序,依次确定出显示区域内包含关键点的目标画布元素;其中,各个目标画布元素互不相同。The target canvas element determining sub-module is configured to sequentially determine a target canvas element including a key point in the display area according to the determining order of the at least one key point; wherein each target canvas element is different from each other.
具体地,目标画布元素确定子模块的一种实现方式可以包括:第一当前关键点确定单元、第一备选画布元素确定单元、第一目标画布元素确定单元、第一下一关键点确定单元、以及第二下一关键点确定单元;其中:Specifically, an implementation manner of the target canvas element determining submodule may include: a first current key point determining unit, a first candidate canvas element determining unit, a first target canvas element determining unit, and a first next key point determining unit. And a second next key point determining unit; wherein:
第一当前关键点确定单元,用于依据至少一个关键点的确定顺序,将首个关键点作为当前关键点;a first current key point determining unit, configured to use the first key point as a current key point according to the determined order of the at least one key point;
第一备选画布元素确定单元,用于在若干画布元素中,查找显示区域内包含当前关键点的备选画布元素;a first candidate canvas element determining unit, configured to search, among the plurality of canvas elements, an alternative canvas element that includes a current key point in the display area;
第一目标画布元素确定单元,用于若查找到、并且不存在由备选画布元素确定的目标画布元素,将备选画布元素确定为目标画布元素;a first target canvas element determining unit, configured to determine the candidate canvas element as the target canvas element if the target canvas element determined by the candidate canvas element is found and does not exist;
第一下一关键点确定单元,用于若查找到、并且存在由备选画布元素确定的目标画布元素,将下一关键点作为当前关键点,触发第一备选画布元素确定单元,直至最后一个关键点;a first next key point determining unit, configured to: if the target canvas element determined by the candidate canvas element is found, and the next key point is used as the current key point, triggering the first candidate canvas element determining unit until the last a key point;
第二下一关键点确定单元,用于若未查找到,将下一关键点作为当前关键点,触发第一备选画布元素确定单元,直至最后一个关键点。The second next key point determining unit is configured to trigger the first candidate canvas element determining unit until the last key point if the next key point is used as the current key point if not found.
另外,目标画布元素确定子模块的第二种实现方式可以包括:第二当前关键点确定单元、第二备选画布元素确定单元、第二目标画布元素确定单元、以及第三下一关键点确定单元;其中:In addition, the second implementation manner of the target canvas element determining submodule may include: a second current key point determining unit, a second candidate canvas element determining unit, a second target canvas element determining unit, and a third next key point determining Unit; where:
第二当前关键点确定单元,用于依据至少一个关键点的确定顺序,将首个关键点作为当前关键点;a second current key point determining unit, configured to use the first key point as a current key point according to the determining order of the at least one key point;
第二备选画布元素确定单元,用于在去除目标画布元素的画布元素中,查找显示区域内包含当前关键点的画布元素;若查找到,触发第二目标画布元素确定单元;若未查找到,触发第三下一关键点确定单元; a second candidate canvas element determining unit, configured to: in the canvas element that removes the target canvas element, search for a canvas element that includes a current key point in the display area; if found, trigger a second target canvas element determining unit; if not found , triggering a third next key point determining unit;
第二目标画布元素确定单元,用于将查找到的画布元素确定为目标画布元素;a second target canvas element determining unit, configured to determine the found canvas element as a target canvas element;
第三下一关键点确定单元,用于将下一关键点作为当前关键点,触发第二备选画布元素确定单元,直至最后一个关键点。The third next key point determining unit is configured to use the next key point as the current key point to trigger the second candidate canvas element determining unit until the last key point.
在实施中,可选地,目标画布元素确定模块502确定出的目标画布元素依次存储在队列中;相应地,目标画布元素处理模块503可以具体包括:队首处理子模块,或者,队尾处理子模块;其中:In an implementation, optionally, the target canvas element determined by the target canvas element determining module 502 is sequentially stored in the queue; correspondingly, the target canvas element processing module 503 may specifically include: a team head processing submodule, or a tail processing Submodule; where:
队首处理子模块,用于依次从队列的队首取出目标画布元素,每取出一个目标画布元素,触发预设画布元素处理模块处理该述目标画布元素;a team leader processing sub-module, configured to sequentially extract a target canvas element from a queue head, and each time a target canvas element is taken, triggering a preset canvas element processing module to process the target canvas element;
队尾处理子模块,用于依次从队列的队尾取出目标画布元素,每取出一个目标画布元素,触发预设画布元素处理模块处理该述目标画布元素。The tail processing sub-module is configured to sequentially extract the target canvas elements from the tail of the queue, and each time a target canvas element is taken, the preset canvas element processing module is triggered to process the target canvas element.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。It should be noted that each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the embodiments are referred to each other. can.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括上述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this context, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or device that includes the above described elements.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to make or use the application. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application is not limited to the embodiments shown herein, but is to be accorded the broadest scope of the principles and novel features disclosed herein.

Claims (10)

  1. 一种画布元素处理方法,其特征在于,包括:A canvas element processing method, comprising:
    显示待处理画布,所述待处理画布中包含若干画布元素;Displaying a canvas to be processed, the canvas to be processed containing a plurality of canvas elements;
    响应于用户在所述待处理画布上划出的线条轨迹,在所述若干画布元素中,确定所述线条轨迹依次经过的至少一个目标画布元素;Determining, in the plurality of canvas elements, at least one target canvas element through which the line trajectory passes in response to a line trajectory drawn by the user on the canvas to be processed;
    触发预设画布元素处理模块依次处理所述至少一个目标画布元素。The trigger preset canvas element processing module processes the at least one target canvas element in sequence.
  2. 根据权利要求1所述的画布元素处理方法,其特征在于,所述响应于用户在所述待处理画布上划出的线条轨迹,在所述多个画布元素中,确定所述线条轨迹依次经过的至少一个目标画布元素,包括:The canvas element processing method according to claim 1, wherein in the plurality of canvas elements, the line trajectory is sequentially passed in response to a line trajectory drawn by the user on the canvas to be processed. At least one target canvas element, including:
    响应于用户在所述待处理画布上划出的线条轨迹,依据所述线条轨迹的延伸方向,依次确定所述线条轨迹中的至少一个关键点;Responding to at least one key point in the line trajectory according to an extending direction of the line trajectory in response to a line trajectory drawn by the user on the to-be-processed canvas;
    依据所述至少一个关键点的确定顺序,依次确定出显示区域内包含所述关键点的目标画布元素;其中,各个所述目标画布元素互不相同。Determining, in accordance with the determined order of the at least one key point, target canvas elements including the key points in the display area; wherein each of the target canvas elements is different from each other.
  3. 根据权利要求2所述的画布元素处理方法,其特征在于,所述依据至少一个所述关键点的确定顺序,依次确定出显示区域内包含所述关键点的目标画布元素,包括:The canvas element processing method according to claim 2, wherein the determining, according to the determining order of the at least one of the key points, sequentially determining a target canvas element including the key point in the display area, comprising:
    依据所述至少一个关键点的确定顺序,将首个所述关键点作为当前关键点;Determining, according to the determined order of the at least one key point, the first key point as a current key point;
    在所述若干画布元素中,查找显示区域内包含所述当前关键点的备选画布元素;In the plurality of canvas elements, searching for an alternative canvas element in the display area that includes the current key point;
    若查找到、并且不存在由所述备选画布元素确定的目标画布元素,将所述备选画布元素确定为目标画布元素;If the target canvas element determined by the candidate canvas element is found and does not exist, the candidate canvas element is determined as the target canvas element;
    若查找到、并且存在由所述备选画布元素确定的目标画布元素,将下一关键点作为当前关键点,返回在所述若干画布元素中,查找显示区域内包含所述当前关键点的备选画布元素,直至最后一个所述关键点;If the target canvas element determined by the candidate canvas element is found, and the next key point is used as the current key point, returning to the plurality of canvas elements, searching for the current key point in the display area Select the canvas element until the last key point;
    若未查找到,将下一关键点作为当前关键点,返回在所述若干画布元素中,查找显示区域内包含所述当前关键点的备选画布元素,直至最后一个所述关键点。 If not found, the next key point is taken as the current key point, and returned to the plurality of canvas elements to find an alternate canvas element in the display area that includes the current key point until the last one of the key points.
  4. 根据权利要求2所述的画布元素处理方法,其特征在于,所述依据所述至少一个关键点的确定顺序,依次确定出显示区域内包含所述关键点的目标画布元素,包括:The canvas element processing method according to claim 2, wherein the determining, according to the determining order of the at least one key point, sequentially determining a target canvas element including the key point in the display area, comprising:
    依据所述至少一个关键点的确定顺序,将首个所述关键点作为当前关键点;Determining, according to the determined order of the at least one key point, the first key point as a current key point;
    在去除目标画布元素的所述画布元素中,查找显示区域内包含所述当前关键点的画布元素;In the canvas element that removes the target canvas element, searching for a canvas element in the display area that includes the current key point;
    若查找到,将查找到的所述画布元素确定为目标画布元素;If found, the found canvas element is determined as the target canvas element;
    若未查找到,将下一关键点作为当前关键点,返回在去除目标画布元素的所述画布元素中,查找显示区域内包含所述当前关键点的画布元素,直至最后一个所述关键点。If not found, the next key point is taken as the current key point, and the canvas element in the display area containing the current key point is searched for in the canvas element of the target canvas object, until the last one of the key points.
  5. 根据权利要求1所述的画布元素处理方法,其特征在于,确定出的目标画布元素依次存储在队列中;The canvas element processing method according to claim 1, wherein the determined target canvas elements are sequentially stored in a queue;
    相应地,所述触发预设画布元素处理模块依次处理所述至少一个目标画布元素,包括:Correspondingly, the triggering preset canvas element processing module sequentially processes the at least one target canvas element, including:
    依次从所述队列的队首取出所述目标画布元素,每取出一个所述目标画布元素,触发预设画布元素处理模块处理该述目标画布元素;And sequentially extracting the target canvas element from the queue head of the queue, and each time the one of the target canvas elements is taken, triggering a preset canvas element processing module to process the target canvas element;
    或者,or,
    依次从所述队列的队尾取出所述目标画布元素,每取出一个所述目标画布元素,触发预设画布元素处理模块处理该述目标画布元素。The target canvas element is sequentially taken out from the tail of the queue, and each of the target canvas elements is taken out, and the preset canvas element processing module is triggered to process the target canvas element.
  6. 一种画布元素处理装置,其特征在于,包括:A canvas element processing device, comprising:
    画布元素显示模块,用于显示待处理画布,所述待处理画布中包含若干画布元素;a canvas element display module, configured to display a canvas to be processed, wherein the to-be-processed canvas includes a plurality of canvas elements;
    目标画布元素确定模块,用于响应于用户在所述待处理画布上划出的线条轨迹,在所述若干画布元素中,确定所述线条轨迹依次经过的至少一个目标画布元素;a target canvas element determining module, configured to determine, in the plurality of canvas elements, at least one target canvas element that the line track sequentially passes in response to a line trajectory drawn by the user on the to-be-processed canvas;
    目标画布元素处理模块,用于触发预设画布元素处理模块依次处理所述至少一个目标画布元素。The target canvas element processing module is configured to trigger the preset canvas element processing module to sequentially process the at least one target canvas element.
  7. 根据权利要求6所述的画布元素处理装置,其特征在于,所述目标画布元素确定模块包括: The canvas element processing device according to claim 6, wherein the target canvas element determining module comprises:
    线条关键点确定子模块,用于响应于用户在所述待处理画布上划出的线条轨迹,依据所述线条轨迹的延伸方向,依次确定所述线条轨迹中的至少一个关键点;a line key point determining submodule, configured to sequentially determine at least one key point in the line track according to an extending direction of the line track in response to a line trajectory drawn by the user on the to-be-processed canvas;
    目标画布元素确定子模块,用于依据所述至少一个关键点的确定顺序,依次确定出显示区域内包含所述关键点的目标画布元素;其中,各个所述目标画布元素互不相同。The target canvas element determining submodule is configured to sequentially determine target canvas elements including the key points in the display area according to the determining order of the at least one key point; wherein each of the target canvas elements is different from each other.
  8. 根据权利要求7所述的画布元素处理装置,其特征在于,所述目标画布元素确定子模块包括:The canvas element processing device according to claim 7, wherein the target canvas element determining submodule comprises:
    第一当前关键点确定单元,用于依据所述至少一个关键点的确定顺序,将首个所述关键点作为当前关键点;a first current key point determining unit, configured to use the first key point as a current key point according to the determining order of the at least one key point;
    第一备选画布元素确定单元,用于在所述若干画布元素中,查找显示区域内包含所述当前关键点的备选画布元素;a first candidate canvas element determining unit, configured to search, among the plurality of canvas elements, an alternative canvas element that includes the current key point in the display area;
    第一目标画布元素确定单元,用于若查找到、并且不存在由所述备选画布元素确定的目标画布元素,将所述备选画布元素确定为目标画布元素;a first target canvas element determining unit, configured to determine the candidate canvas element as a target canvas element if the target canvas element determined by the candidate canvas element is found and does not exist;
    第一下一关键点确定单元,用于若查找到、并且存在由所述备选画布元素确定的目标画布元素,将下一关键点作为当前关键点,触发第一备选画布元素确定单元,直至最后一个所述关键点;a first next key point determining unit, configured to: if the target canvas element determined by the candidate canvas element is found, and the next key point is used as the current key point, triggering the first candidate canvas element determining unit, Until the last key point;
    第二下一关键点确定单元,用于若未查找到,将下一关键点作为当前关键点,触发第一备选画布元素确定单元,直至最后一个所述关键点。And a second next key point determining unit, configured to trigger the first candidate canvas element determining unit until the last one of the key points if the next key point is used as the current key point if not found.
  9. 根据权利要求7所述的画布元素处理装置,其特征在于,所述目标画布元素确定子模块包括:The canvas element processing device according to claim 7, wherein the target canvas element determining submodule comprises:
    第二当前关键点确定单元,用于依据所述至少一个关键点的确定顺序,将首个所述关键点作为当前关键点;a second current key point determining unit, configured to use the first key point as a current key point according to the determining order of the at least one key point;
    第二备选画布元素确定单元,用于在去除目标画布元素的所述画布元素中,查找显示区域内包含所述当前关键点的画布元素;若查找到,触发第二目标画布元素确定单元;若未查找到,触发第三下一关键点确定单元;a second candidate canvas element determining unit, configured to: in the canvas element that removes the target canvas element, search for a canvas element that includes the current key point in the display area; if found, trigger a second target canvas element determining unit; If not found, triggering a third next key point determining unit;
    第二目标画布元素确定单元,用于将查找到的所述画布元素确定为目标画布元素;a second target canvas element determining unit, configured to determine the found canvas element as a target canvas element;
    第三下一关键点确定单元,用于将下一关键点作为当前关键点,触发第二备选画布元素确定单元,直至最后一个所述关键点。 The third next key point determining unit is configured to use the next key point as the current key point to trigger the second candidate canvas element determining unit until the last one of the key points.
  10. 根据权利要求6所述的画布元素处理装置,其特征在于,目标画布元素确定模块确定出的目标画布元素依次存储在队列中;相应地,所述目标画布元素处理模块包括:队首处理子模块,或者,队尾处理子模块;其中:The canvas element processing apparatus according to claim 6, wherein the target canvas element determined by the target canvas element determining module is sequentially stored in the queue; correspondingly, the target canvas element processing module comprises: a team head processing submodule , or, the tail processing submodule; where:
    队首处理子模块,用于依次从所述队列的队首取出所述目标画布元素,每取出一个所述目标画布元素,触发预设画布元素处理模块处理该述目标画布元素;a team leader processing sub-module, configured to sequentially extract the target canvas element from the queue head of the queue, and each time the one of the target canvas elements is taken, triggering a preset canvas element processing module to process the target canvas element;
    队尾处理子模块,用于依次从所述队列的队尾取出所述目标画布元素,每取出一个所述目标画布元素,触发预设画布元素处理模块处理该述目标画布元素。 The tail processing sub-module is configured to sequentially extract the target canvas element from the tail of the queue, and each time the one of the target canvas elements is taken, the preset canvas element processing module is triggered to process the target canvas element.
PCT/CN2016/091989 2015-10-23 2016-07-28 Canvas element processing method and device WO2017067265A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510701435.3A CN105303593A (en) 2015-10-23 2015-10-23 Canvas element processing method and canvas element processing apparatus
CN201510701435.3 2015-10-23

Publications (1)

Publication Number Publication Date
WO2017067265A1 true WO2017067265A1 (en) 2017-04-27

Family

ID=55200812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091989 WO2017067265A1 (en) 2015-10-23 2016-07-28 Canvas element processing method and device

Country Status (2)

Country Link
CN (1) CN105303593A (en)
WO (1) WO2017067265A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033844A (en) * 2023-10-07 2023-11-10 之江实验室 Canvas element layout method and device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105303593A (en) * 2015-10-23 2016-02-03 广州视睿电子科技有限公司 Canvas element processing method and canvas element processing apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7000197B1 (en) * 2000-06-01 2006-02-14 Autodesk, Inc. Method and apparatus for inferred selection of objects
CN103019592A (en) * 2012-11-30 2013-04-03 北京小米科技有限责任公司 Method and device for selecting interface identifiers as well as mobile terminal
CN104049880A (en) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 Method and device for batch selection of multiple pictures
CN104182156A (en) * 2013-05-22 2014-12-03 腾讯科技(深圳)有限公司 Touch screen device, and batch selection method and batch selection device of touch screen device
CN105303593A (en) * 2015-10-23 2016-02-03 广州视睿电子科技有限公司 Canvas element processing method and canvas element processing apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7000197B1 (en) * 2000-06-01 2006-02-14 Autodesk, Inc. Method and apparatus for inferred selection of objects
CN103019592A (en) * 2012-11-30 2013-04-03 北京小米科技有限责任公司 Method and device for selecting interface identifiers as well as mobile terminal
CN104049880A (en) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 Method and device for batch selection of multiple pictures
CN104182156A (en) * 2013-05-22 2014-12-03 腾讯科技(深圳)有限公司 Touch screen device, and batch selection method and batch selection device of touch screen device
CN105303593A (en) * 2015-10-23 2016-02-03 广州视睿电子科技有限公司 Canvas element processing method and canvas element processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033844A (en) * 2023-10-07 2023-11-10 之江实验室 Canvas element layout method and device, storage medium and electronic equipment
CN117033844B (en) * 2023-10-07 2024-01-16 之江实验室 Canvas element layout method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN105303593A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
EP2972742B1 (en) Semantic zoom-based navigation of displayed content
US10140269B2 (en) Viewing effects of proposed change in document before committing change
US9965559B2 (en) Providing automatic actions for mobile onscreen content
US9939992B2 (en) Methods and systems for navigating a list with gestures
US10146407B2 (en) Physical object detection and touchscreen interaction
JP6227541B2 (en) Visual navigation of documents by object
US20140109012A1 (en) Thumbnail and document map based navigation in a document
US20120185787A1 (en) User interface interaction behavior based on insertion point
US20130191781A1 (en) Displaying and interacting with touch contextual user interface
US20140129991A1 (en) Character input prompting method and electronic device
US9262213B1 (en) Dynamic suggestion of next task based on task navigation information
US11010211B2 (en) Content processing across applications
CN105824552B (en) A kind of recognition methods of text information and device
US9355086B2 (en) User interface elements for content selection and extended content selection
US20130067306A1 (en) Formula entry for limited display devices
US20140113268A1 (en) Interactive visual assessment after a rehearsal of a presentation
JP2015515703A (en) Auto-complete content
KR20160125401A (en) Inline and context aware query box
WO2017067265A1 (en) Canvas element processing method and device
US20150134641A1 (en) Electronic device and method for processing clip of electronic document
US11069019B2 (en) Multi-threaded asynchronous frame processing
JP2015011370A (en) Information processing device, gui operation support method, and program
US10545916B2 (en) File management method for selecting files to process a file management instruction simultaneously
US20160370960A1 (en) Electronic device including touch screen display for processing file instructions simultaneously and method of operating same
US10146409B2 (en) Computerized dynamic splitting of interaction across multiple content

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16856700

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856700

Country of ref document: EP

Kind code of ref document: A1