Lines Matching defs:scale_x
371 double scale_x = 1.0;
374 scale_x = root->viewBox.width() / root->width.computed;
380 os_x << origin_px[Geom::X] * scale_x;
538 double scale_x = 1.0;
541 scale_x = root->width.computed / root->viewBox.width();
543 if (Geom::are_near(scale_x / scale_y, 1.0, Geom::EPSILON)) {
545 scale_x = (scale_x + scale_y)/2.0;
547 if (Geom::are_near(scale_x / scale_none, 1.0, Geom::EPSILON))
548 scale_x = scale_none; // objects are same size, reduce numerical error
549 scale_y = scale_x;
564 origin[Geom::X] = q.quantity * scale_x;
595 spacing[Geom::X] = q.quantity * scale_x;