Translations:Release notes/1.1/156/en
Jump to navigation
Jump to search
- Breaking change: Python 2 is no longer supported, extensions require at least Python 3.6 (Bug extensions#351)
- Breaking change:
Element.description()
is nowElement.desc
. The new form now includesElement.desc = "some value"
for setting the attribute, andElement.title
, which works the same way asdesc
(only for the title/tooltip) and didn't exist before. - Element selections API has been improved, the API in 1.0 of using
self.svg.selected
is deprecated in favour of the newself.svg.selection
interface. The previous API will continue to work for the time being but should be updated to the new API. Selection is now a type ofElementList
which provides filtering, ordering and other generalised functionality. If you need an element list, for example to make a bounding box, this is the way to do it. - New:
Element.unit
,Element.unittouu()
,Element.uutounit()
andElement.add_unit()
Element.is_sensitive()
andElement.set_sensitive()
ExtensionClass.extra_nss = {}
can be set to add namespaces, e.g. in jessyInkExtension.get_resource(filename)
gets files from the extension's own code repository (e.g. an image to include in the dialog, an SVG template, a data file …)Extension.document_path()
andExtension.absolute_href()
can get a filename or location relative to the document's location (if it's saved)- Multiple functions have been added that make it easier to handle transformations in extensions, so if you've been relying on doing those manually in your extension, you may like to check back to see if inkex supports them now (cross product, easier chaining of transforms, polar coordinates functions,