-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
237 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
|
||
Leonardo SVG library | ||
Copyright (C) 2024 by Federico Ghedina <[email protected]> | ||
Copyright (C) 2025 by Federico Ghedina <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"EXE": [ | ||
"mkdir -p demo/gbelt/js demo/gbelt/css", | ||
"cp source/media/gbelt.png demo/gbelt/gbelt.png" | ||
], | ||
"source/demo/gbelt/index.js": "demo/gbelt/js -vars=source/vars.json", | ||
"source/demo/gbelt/index.less": "demo/gbelt/css -plugins=malta-less -vars=source/vars.json", | ||
"source/demo/gbelt/index.html": "demo/gbelt -plugins=malta-browser-refresh -vars=source/vars.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
$$../_commonHead.html$$ | ||
<title>$DEMO.GBELT.TITLE$</title> | ||
</head> | ||
|
||
<body> | ||
<div id="trg">...</div> | ||
<script src="js/index.js"></script> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
window.onload = function () { | ||
var target = document.getElementById('trg'), | ||
prop = 350/350, | ||
// width = Math.min(987, window.innerWidth-50), | ||
width = window.innerWidth, | ||
height = parseInt(width / prop, 10), | ||
Leo = Leonardo(width, height, { ns: '*', target: target }), | ||
main = Leo.group(); | ||
|
||
img = Leo.image(0,0,width, height, './gbelt.png').setAttributes({opacity: 0.4}), | ||
main.append(img); | ||
Leo.append(main); | ||
Leo.render(); | ||
Leo.positionInspector('[{r%x}, {r%y}],'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
body{ | ||
margin:0; | ||
padding:0; | ||
#trg{ | ||
svg{ | ||
border:1px solid white | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.