MCPcopy Create free account
hub / github.com/CoderOpen/waimai / contextRotate

Function contextRotate

front/components/u-charts/u-charts.js:1449–1458  ·  view source on GitHub ↗
(context, opts)

Source from the content-addressed store, hash-verified

1447}
1448
1449function contextRotate(context, opts) {
1450 if (opts.rotateLock !== true) {
1451 context.translate(opts.height, 0);
1452 context.rotate(90 * Math.PI / 180);
1453 } else if (opts._rotate_ !== true) {
1454 context.translate(opts.height, 0);
1455 context.rotate(90 * Math.PI / 180);
1456 opts._rotate_ = true;
1457 }
1458}
1459
1460function drawPointShape(points, color, shape, context, opts) {
1461 context.beginPath();

Callers 1

drawChartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected