PHP 8.3.30
Preview: ListBullet.php Size: 1.30 KB
/home/getspomw/itechservicellc.com/vendor/dompdf/dompdf/src/Positioner/ListBullet.php

<?php
/**
 * @package dompdf
 * @link    https://github.com/dompdf/dompdf
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */
namespace Dompdf\Positioner;

use Dompdf\FrameDecorator\AbstractFrameDecorator;
use Dompdf\FrameDecorator\ListBullet as ListBulletFrameDecorator;

/**
 * Positions list bullets
 *
 * @package dompdf
 */
class ListBullet extends AbstractPositioner
{
    /**
     * @param ListBulletFrameDecorator $frame
     */
    function position(AbstractFrameDecorator $frame): void
    {
        // List markers are positioned to the left of the border edge of their
        // parent element (FIXME: right for RTL)
        $parent = $frame->get_parent();
        $style = $parent->get_style();
        $cbw = $parent->get_containing_block("w");
        $margin_left = (float) $style->length_in_pt($style->margin_left, $cbw);
        $border_edge = $parent->get_position("x") + $margin_left;

        // This includes the marker indentation
        $x = $border_edge - $frame->get_margin_width();

        // The marker is later vertically aligned with the corresponding line
        // box and its vertical position is fine-tuned in the renderer
        $p = $frame->find_block_parent();
        $y = $p->get_current_line_box()->y;

        $frame->set_position($x, $y);
    }
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
4.56 KB lrw-r--r-- 2025-10-28 20:22:00
Edit Download
1.11 KB lrw-r--r-- 2025-10-28 20:22:00
Edit Download
861 B lrw-r--r-- 2025-10-28 20:22:00
Edit Download
3.54 KB lrw-r--r-- 2025-10-28 20:22:00
Edit Download
1.71 KB lrw-r--r-- 2025-10-28 20:22:00
Edit Download
1.30 KB lrw-r--r-- 2025-10-28 20:22:00
Edit Download
495 B lrw-r--r-- 2025-10-28 20:22:00
Edit Download
810 B lrw-r--r-- 2025-10-28 20:22:00
Edit Download
747 B lrw-r--r-- 2025-10-28 20:22:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).