Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Webpage element collision judgment method and device

A technology of web page elements and web pages, which is applied in the field of computer graphics and image processing, and can solve problems such as inaccurate judgment results and inaccurate judgment results

Active Publication Date: 2016-07-20
ALIBABA GRP HLDG LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that inaccurate judgment results may be obtained
[0007] When the above third method is used to detect whether the irregularly shaped web page elements appearing in other web pages collide, there will also be the problem of inaccurate judgment results.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Webpage element collision judgment method and device
  • Webpage element collision judgment method and device
  • Webpage element collision judgment method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] In order to improve the accuracy of judging whether irregularly shaped webpage elements collide, Embodiment 1 of the present application provides a method such as figure 2 The method for judging the collision of web page elements is shown. The method mainly includes the following steps:

[0027] Step 21, according to the current position information of the first reference object in the web page, and the information representing the relative position of the first reference object and the first web page element outline in the web page, determine the current position information of the first web page element outline;

[0028] Wherein, the relative position of the first reference object and the first web page element satisfies the following conditions:

[0029] When the position of the first reference object in the web page changes, the relative position of the first reference object and the first web page element remains unchanged.

[0030] In an implementation manner, ...

Embodiment 2

[0065] Based on the same inventive concept as the method provided in Embodiment 1, Embodiment 2 provides a device for judging collision of webpage elements, which is used to improve the accuracy of judging whether irregularly shaped webpage elements collide. Such as Figure 4 As shown, the apparatus for judging collision of webpage elements includes: a location information determining unit 41 and a collision judging unit 42 . The function implementation of these units is described below:

[0066] The position information determination unit 41 is configured to determine the first web page element outline according to the current position information of the first reference object in the web page and the information representing the relative position of the first reference object and the first web page element outline in the web page Current position information: According to the current position information of the second reference object in the webpage, and the information repr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a webpage element collision judgment method, which is used for improving the accuracy of a webpage element collision judgment result. By adopting the method, even if the shape of a webpage element is irregular, current position information of a contour line of the webpage element can be accurately determined according to the position information of a reference object that has a fixed relative position with the webpage element and information that represents the relative position of the webpage element and the reference object, therefore, for different webpage elements, whether different webpage elements generate collision can be accurately determined according to the current position information of the respective contour lines. The invention further discloses a webpage element collision judgment device.

Description

technical field [0001] The present application relates to the technical field of computer graphics and image processing, in particular to a method and device for judging the collision of web page elements. Background technique [0002] In the prior art, in the process of developing or running the web game, it may be necessary to detect whether the web elements appearing on the web game page collide. For example, if some animation effects need to be generated when web page elements collide, this detection needs to be performed. It should be noted that "collision of webpage elements" means that different webpage elements overlap in the webpage. After the collision detection result is obtained, corresponding operations can be performed according to the collision detection result, for example, in the case of collision avoidance, when a collision is detected, the relative position of the web page element is adjusted; in the case of using collision information, When a collision ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 吴瑞
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products