Home > front end >  JS, how to implement the line testing
JS, how to implement the line testing

Time:09-26

Has passed the js generation base lines (including curve, the thickness range), subsequent users can through the finger or the mouse MiaoHong line, consult warrior, how to determine customer MiaoHong deviation with the base line, so as to realize the customer evaluation,

CodePudding user response:

If correct understanding can be roughly this

Cache when JS generation base line data of change the base line (see you mainly Y), react with the state, and other things you see in a similar cache,
When user tracing than mouse or finger XY coordinates, then according to the coordinates generated on behalf of the deviation of the line, the demand depends on the specific rules

CodePudding user response:

Attached a link on the mouse x, y axis