Form rendering method and device based on canvas elements and computer equipment

An element and table technology, applied in the computer field, can solve problems such as poor compatibility and low rendering efficiency, and achieve the effect of ensuring efficiency and improving compatibility

Active Publication Date: 2020-08-04
PING AN HEALTH INSURANCE CO LTD
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present application provides a table rendering method, device and computer equipment based on the canvas element, which can solve the problems of poor compatibility and low rendering efficiency when rendering and generating tables

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
  • Form rendering method and device based on canvas elements and computer equipment
  • Form rendering method and device based on canvas elements and computer equipment
  • Form rendering method and device based on canvas elements and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Hereinafter, the present application will be described in detail with reference to the accompanying drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0026] Aiming at the current problem of poor compatibility and low rendering efficiency when using the table tag to render and generate a table, the embodiment of this application provides a table rendering method based on the canvas element, such as figure 1 As shown, the method includes:

[0027] 101. Introduce the JavaScript file of canvas-Table in the page where the table is to be created, so as to use the canvas-Table function globally.

[0028] Among them, the canvas-Table function is a creation function used to create a canvas element and a Worker thread; the canvas element is an HTML element that can use scripts (here specifically refers to JavaScript) to draw graphics. It...

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 form rendering method and device based on canvas elements and computer equipment, and can solve the problems of poor compatibility and low rendering efficiency when a form isgenerated through rendering. The method comprises the steps: introducing a JavaScript file of a canvas-Table into a page of a to-be-created table, so as to enable a canvas-Table function to be globally used; creating a canvas element in a main thread on the basis of the canvas-Table function, and inserting the canvas element into an element node to be rendered; utilizing the canvas-Table functionto create a Worker thread, and utilizing the canvas-Table function to create a Worker thread; uploading the to-be-rendered data corresponding to each to-be-rendered element node to the Worker threadand handing over the control right of the canvas; and rendering and generating a table on the Worker thread by utilizing a drawing function in the to-be-rendered data. The method is suitable for rendering and generating the table.

Description

technical field [0001] The present application is applicable to the field of computer technology, and in particular relates to a table rendering method, device and computer equipment based on a canvas element. Background technique [0002] Since tables are the most commonly used in the development process, in order to quickly create tables and bind data, thereby speeding up the generation of tables, rendering is often used, which greatly reduces the amount of code and makes table generation more convenient and precise. [0003] At present, some table rendering components in the industry still use the outdated table tag for layout. However, the table tag does not support the performance of the mobile terminal. crashes, making rendering less efficient. Contents of the invention [0004] In view of this, the present application provides a table rendering method, device and computer equipment based on canvas elements, which can solve the problems of poor compatibility and lo...

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): G06F8/38G06F9/451G06F40/18
CPCG06F8/38G06F9/451G06F40/18Y02D10/00
Inventor 赵学通
Owner PING AN HEALTH INSURANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products