Add types and comments to make combined image+text decluttering clearer

This commit is contained in:
Andreas Hocevar
2020-10-05 15:21:40 +02:00
parent 187a216379
commit c9ebf79df5
6 changed files with 48 additions and 33 deletions

View File

@@ -100,15 +100,15 @@ class VectorContext {
/**
* @param {import("../style/Image.js").default} imageStyle Image style.
* @param {Object=} opt_sharedData Shared data for combined decluttering with a text style.
* @param {import("../render/canvas.js").DeclutterImageWithText=} opt_declutterImageWithText Shared data for combined decluttering with a text style.
*/
setImageStyle(imageStyle, opt_sharedData) {}
setImageStyle(imageStyle, opt_declutterImageWithText) {}
/**
* @param {import("../style/Text.js").default} textStyle Text style.
* @param {Object=} opt_sharedData Shared data for combined decluttering with an image style.
* @param {import("../render/canvas.js").DeclutterImageWithText=} opt_declutterImageWithText Shared data for combined decluttering with an image style.
*/
setTextStyle(textStyle, opt_sharedData) {}
setTextStyle(textStyle, opt_declutterImageWithText) {}
}
export default VectorContext;