'now' and 'lastNow' as draw parameters
This commit is contained in:
@@ -58,6 +58,9 @@ export default class Sketch {
|
|||||||
this.canvas.width = this.container.offsetWidth;
|
this.canvas.width = this.container.offsetWidth;
|
||||||
this.canvas.height = this.container.offsetHeight;
|
this.canvas.height = this.container.offsetHeight;
|
||||||
|
|
||||||
|
this.context.lastUTC = this.context.utc || null;
|
||||||
|
this.context.utc = Date.now();
|
||||||
|
|
||||||
this.context.now = now;
|
this.context.now = now;
|
||||||
this.context.lastNow = this.lastNow;
|
this.context.lastNow = this.lastNow;
|
||||||
|
|
||||||
|
|||||||
@@ -223,6 +223,9 @@ export class Tessellate {
|
|||||||
height, width,
|
height, width,
|
||||||
scale: this.cartographer.getScale(),
|
scale: this.cartographer.getScale(),
|
||||||
|
|
||||||
|
lastNow: context.lastUTC,
|
||||||
|
now: context.utc,
|
||||||
|
|
||||||
tilePoints: this.getTilePoints({
|
tilePoints: this.getTilePoints({
|
||||||
upperLeftX: 0,
|
upperLeftX: 0,
|
||||||
upperLeftY: 0,
|
upperLeftY: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user