Skip to content

Commit 2cc4b71

Browse files
authored
Update / rewrite of the ofxSvg addon to remove dependency on libTinySvg and libxml2. (#8266)
* Update / rewrite of the ofxSvg addon to remove dependency on libTinySvg. * Fix atan2 and return path instead of string for windows. * namespace for return type to address windows problems. * filesystem path vs. string. * remove ofx::svg namespace and replace with ofxSvg for easier compliance with Windows. * fixes for filepath and string on windows. * Copy and move functions. * fix for fill-opacity and populating css values even if they wont be used. * Updates for more path parsing support, text parsing, embedded images and deep copy * more support for legacy transforms and more robust parsing. * Extend ofNode for easier transform maintenance * revert to string for filepath due to msys error. Override customDraw ofNode function. * added offset for paths, for importing and exporting. * custom optional class for legacy support. * use ofNode as base * svg parse example * fixes for no stroke and adding elements * save example * inline documentation and more addImage functions * added remove functionality and update svgSave example to use remove functions. * fix for paths with all closed sub paths to use default winding mode of OF_POLY_WINDING_NONZERO with a function to set it differently.
1 parent aa344f6 commit 2cc4b71

File tree

23 files changed

+7343
-224
lines changed

23 files changed

+7343
-224
lines changed

addons/ofxSvg/addon_config.mk

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
meta:
1818
ADDON_NAME = ofxSvg
19-
ADDON_DESCRIPTION = Addon for parsing svg files into ofPaths
20-
ADDON_AUTHOR = Joshua Noble, maintained by OF Team
19+
ADDON_DESCRIPTION = Addon for parsing, manipulating and saving svg files.
20+
ADDON_AUTHOR = Nick Hardeman, original by Joshua Noble, maintained by OF Team
2121
ADDON_TAGS = "svg"
2222
ADDON_URL = http://github.com/openframeworks/openFrameworks
2323

@@ -59,30 +59,3 @@ common:
5959
# when parsing the file system looking for libraries exclude this for all or
6060
# a specific platform
6161
# ADDON_LIBS_EXCLUDE =
62-
63-
osx:
64-
ADDON_LIBS = libs/svgtiny/lib/macos/svgtiny.xcframework/macos-arm64_x86_64/libsvgtiny.a
65-
ADDON_LIBS += libs/libxml2/lib/macos/libxml2.xcframework/macos-arm64_x86_64/libxml2.a
66-
67-
ios:
68-
ADDON_LIBS = libs/svgtiny/lib/ios/svgtiny.a
69-
ADDON_LIBS += libs/libxml2/lib/ios/xml2.a
70-
71-
linux64:
72-
ADDON_LIBS = libs/svgtiny/lib/linux64/libsvgtiny.a
73-
ADDON_LIBS += libs/libxml2/lib/linux64/libxml2.a
74-
75-
linuxarmv6l:
76-
ADDON_LIBS = libs/svgtiny/lib/linuxarmv6l/libsvgtiny.a
77-
ADDON_LIBS += libs/libxml2/lib/linuxarmv6l/libxml2.a
78-
79-
linuxarmv7l:
80-
ADDON_LIBS = libs/svgtiny/lib/linuxarmv7l/libsvgtiny.a
81-
ADDON_LIBS += libs/libxml2/lib/linuxarmv7l/libxml2.a
82-
83-
linuxaarch64:
84-
ADDON_LIBS = libs/svgtiny/lib/linuxaarch64/libsvgtiny.a
85-
ADDON_LIBS += libs/libxml2/lib/linuxaarch64/libxml2.a
86-
87-
msys2:
88-
ADDON_PKG_CONFIG_LIBRARIES = libxml-2.0

0 commit comments

Comments
 (0)