Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.24 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.24 KB

XLay

This library is based on the reverse engeneering of Sergey-Raevskiy (https://github.com/sergey-raevskiy/xlay). It can render a layout (with some restrictions).

The Software SprintLayout 6 is published and sold by Abacom. I do not have anything to do with this company.

The core feature of this library is to analyze a *.lay6 file and draw its content in an image (SVG). It is also working with macro files.

Short Example

Render board 0 from a lay6-file

<?php

require_once("../src/xlay.inc.php");

$renderer = new \XLay\Renderer\SVG();
$file = \XLay\XLay::loadLay6("test.lay6");
$svg = $renderer->render($file->getBoards()[0]);
echo $svg;

Render a macro

<?php

require_once("../src/xlay.inc.php");

$renderer = new \XLay\Renderer\SVG();
$file = \XLay\XLay::loadMacro("test.lmk");
$svg = $renderer->render($file, null, \XLay\Layer::LAYERS_DEFAULT_ORDER,[0,0,0],[$file->getOffsetX(),$file->getOffsetY()]);
echo $svg;

Examples

The SVG example will render a SVG image. Therefore a website is created to setup the options for the rendering.

ToDo

HERE