From 8b166289503554db23c3af92e81d99824ccdbcbc Mon Sep 17 00:00:00 2001 From: Aiosa <469130@mail.muni.cz> Date: Fri, 22 Nov 2024 12:43:14 +0100 Subject: [PATCH] Write documentation fo cache/data overhaul. Rename url type to be more explicit. --- src/datatypeconvertor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datatypeconvertor.js b/src/datatypeconvertor.js index afce0a7c..ed6f0d8c 100644 --- a/src/datatypeconvertor.js +++ b/src/datatypeconvertor.js @@ -213,8 +213,8 @@ $.DataTypeConvertor = class { return context; }; - this.learn("context2d", "url", (tile, ctx) => ctx.canvas.toDataURL(), 1, 2); - this.learn("image", "url", (tile, image) => image.url); + this.learn("context2d", "webImageUrl", (tile, ctx) => ctx.canvas.toDataURL(), 1, 2); + this.learn("image", "webImageUrl", (tile, image) => image.url); this.learn("image", "context2d", canvasContextCreator, 1, 1); this.learn("url", "image", imageCreator, 1, 1);