forZoomlevel method

  1. @override
RenderinstructionArea forZoomlevel(
  1. int zoomlevel,
  2. int level
)
override

Creates a zoom level specific copy of this area instruction.

Applies zoom level dependent scaling to all rendering properties including fill, stroke, and bitmap parameters.

zoomlevel Target zoom level for scaling calculations Returns a new scaled area instruction

Implementation

@override
RenderinstructionArea forZoomlevel(int zoomlevel, int level) {
  return RenderinstructionArea(level)
    ..renderinstructionScale(this, zoomlevel)
    ..baseSrcMixinScale(this, zoomlevel)
    ..bitmapSrcMixinScale(this, zoomlevel)
    ..fillSrcMixinScale(this, zoomlevel)
    ..strokeSrcMixinScale(this, zoomlevel);
}