Check patentability & draft patents in minutes with Patsnap Eureka AI!

User track drawing method and device, computer equipment and storage medium

A user trajectory and computer program technology, applied in the computer field, can solve the problems that the canvas cannot draw complex and changeable animations, cannot achieve cyclic redrawing, and cannot meet user needs, etc.

Pending Publication Date: 2022-03-15
深圳依时货拉拉科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the event distribution is handled by the canvas, and the events of the drawn content need to be processed by itself, that is, the canvas does not provide a method for adding event monitoring to its internal elements. For example, to enable the elements in the Canvas to respond to events, you need to get the coordinates of the clicked element Scope monitors and makes changes to its internal elements, and because the drawing of Canvas is static, it cannot achieve cyclic redrawing. The above reasons make it impossible to draw complex and changeable animations using canvas, such as custom curves, irregular polygons such as circles Corner rectangle, which cannot meet user needs

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
  • User track drawing method and device, computer equipment and storage medium
  • User track drawing method and device, computer equipment and storage medium
  • User track drawing method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

[0043] The present application provides a user trajectory drawing method. In one embodiment, the user trajectory drawing method includes such as figure 1 The steps shown will be described in detail below.

[0044] S110: Process event distribution through JavaScript, use Canvas to draw full-level tracks on the canvas, full-level tracks include multiple level nodes and full-level track arcs for connecting nodes of each level.

[0045] Wherein, to process event distribution through JavaScript, you can use canvas.addEventListener to add event monitoring, such as waiting for mouse movement (m...

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 relates to a user track drawing method and device, computer equipment and a storage medium. The method comprises the steps that event distribution is processed through JavaScript, a full-level track is drawn on canvas through Canvas, and the full-level track comprises a plurality of level nodes and full-level track arcs used for connecting the level nodes; calculating a node coordinate of a user node according to the user growth value, and calculating a user track radian according to the starting point coordinate of the full-level track arc and the node coordinate of the user node; and according to the radian of the user track, drawing a dynamic user track in combination with a request Animation Frame function of the JavaScript. According to the embodiment of the invention, a complex and changeable animation effect can be realized by utilizing Javascript event distribution and Canvas2D drawing technologies.

Description

technical field [0001] The present application relates to the field of computers, in particular to a user trajectory drawing method, device, computer equipment and storage medium. Background technique [0002] At present, the event distribution is handled by the canvas, and the events of the drawn content need to be processed by itself, that is, the canvas does not provide a method for adding event monitoring to its internal elements. For example, to enable the elements in the Canvas to respond to events, you need to get the coordinates of the clicked element Scope monitors and makes changes to its internal elements, and because the drawing of Canvas is static, it cannot achieve cyclic redrawing. The above reasons make it impossible to draw complex and changeable animations using canvas, such as custom curves, irregular polygons such as circles Corner rectangle, and thus can not meet the needs of users. Contents of the invention [0003] Aiming at the above-mentioned defi...

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
IPC IPC(8): G06T13/80
CPCG06T13/80
Inventor 徐协鹏
Owner 深圳依时货拉拉科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More