Commit Graph

26 Commits

Author SHA1 Message Date
Gustavo "Guz" L. de Mello
063e31687a refactor(text-rendering): ♻️ good enough text to path 2024-01-17 23:18:27 -03:00
Gustavo "Guz" L. de Mello
74bb268d8d refactor: ♻️ flatten svg files 2024-01-17 23:08:42 -03:00
Gustavo "Guz" L. de Mello
ba31a3bc29 revert(text-rendering): font embedding
time to reinvent the wheel again
2024-01-17 15:26:59 -03:00
Gustavo "Guz" L. de Mello
eb491916bc fix: 🐛 xlink namespace missing 2024-01-17 13:33:39 -03:00
Gustavo "Guz" L. de Mello
555b70a0e4 chore: 🔧 upload test.svg, to be tested on github
Uploaded the generated svg to be tested on
github and other environments
2024-01-16 18:58:57 -03:00
Gustavo "Guz" L. de Mello
40c89b11c4 refactor(text-rendering): ♻️ use embeded fonts
Removed the text to path conversion, it was
too complicated to align the generated paths
with the dynamic layouts' texts. So embeded
font files using data URIs is being used,
this is experimental and a "quick-fix", because
data URIs could be not compatible and/or work
in some environments and browsers. A comment and/or
issue with more details about this will be created.
2024-01-16 18:55:41 -03:00
Guz013
fc3243dfe7 feat(banners-lib): text to svg converting 2023-12-01 15:32:52 -03:00
Guz013
2a464eeee4 feat(banners-lib): background solid color change 2023-12-01 10:59:42 -03:00
Guz013
9ad2ca0d3c feat(banners-lib): basic custom icon fetching 2023-11-30 17:53:51 -03:00
Guz013
171c5ffd96 feat(banners-lib): title position manipulation
The banner's title now can changes position to fit
correctly when there's no subtitle.
2023-11-30 15:15:50 -03:00
Guz013
416f6a3cd2 fix(banners-lib): 🐛 right-to-left layouts not being imported 2023-11-30 15:14:48 -03:00
Guz013
784ad332a3 fix(types): 🐛 change HTMLElement to Element type 2023-11-30 15:13:30 -03:00
Guz013
47bbf1da46 refactor(banners-lib)!: 💥 ♻️ move library setting to the Banner Object 2023-11-30 15:10:50 -03:00
Guz013
bd580db9f5 feat(banners-lib): basic title and subtitle manipulation 2023-11-30 14:16:20 -03:00
Guz013
9f71f741e8 refactor(banners-lib): ♻️ moved type definitions files 2023-11-29 16:35:20 -03:00
Guz013
42f4091087 feat(banners-lib): read svg files without node:fs
Added to the SVG converting script a line to create .svg.js files.
These files are normal JS files that exports just a single string,
the SVG file content. This way the library doesn't need a build
step to embed these files and/or node:fs to read them.
2023-11-29 16:33:24 -03:00
Guz013
94fca1a902 feat(ci): 👷 add lint-staged back 2023-11-29 16:31:01 -03:00
Guz013
f8dfce5aac feat(banners-lib): Banner Object API type definitions 2023-11-29 12:07:11 -03:00
Guz013
599cb5f202 fix: 🐛 project structure and pnpm workspaces 2023-11-29 10:29:24 -03:00
Guz013
c4434a5c3e refactor: ♻️ remove in between code eslint-disable comments 2023-11-28 17:33:24 -03:00
Guz013
0761b45d56 chore: 🔧 create script for converting the banners 2023-11-28 17:20:40 -03:00
Guz013
aa95cb5366 chore: 🔧 export banners to their repective files 2023-11-28 17:19:30 -03:00
Guz013
d3f63086f8 refactor: ♻️ place banners in different pages
Orgnanized the banners in the design file, now each is
on a different page/canvas. This also fixes the exported
SVGs having the other banners code in them.
2023-11-28 17:18:22 -03:00
Guz013
df77a46db6 feat: inkscape svg files for the banners
These files will be converted to standard SVG files using a script.
So things like Inkscape's labels can be converted to IDs (because
Inkscape doesn't support duplicated IDs on the design.inkscape.svg
file).
2023-11-28 13:30:21 -03:00
Guz013
c5c036d4da feat(banners-lib): horizontal banner layouts
Created the basic layout SVG file in Inkscape. The exported
SVG needs to have specific ids for each element, so it can
be edited programically later.
2023-11-28 10:47:20 -03:00
Guz013
e3e3ba3683 chore: 🔧 initial setup 2023-11-27 15:50:22 -03:00