Skip to content
/ xlay Public

PHP library to draw xlay (*.lay6 , *.lmk) SprintLayout files.

License

Notifications You must be signed in to change notification settings

Tropby/xlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PHP library to draw xlay (*.lay6 , *.lmk) SprintLayout files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages