mirror of
https://github.com/wassname/sloth.git
synced 2026-08-14 12:50:50 +08:00
use ItemFactory inserters
This commit is contained in:
@@ -356,9 +356,11 @@ class AnnotationGraphicsItemFactory:
|
||||
|
||||
# register common item types
|
||||
ItemFactory = AnnotationGraphicsItemFactory()
|
||||
ItemFactory.register('rect', AnnotationGraphicsRectItem, RectItemInserter)
|
||||
ItemFactory.register('point', AnnotationGraphicsPointItem, PointItemInserter)
|
||||
ItemFactory.register('polygon', AnnotationGraphicsRectItem, PolygonItemInserter)
|
||||
ItemFactory.register('rect', AnnotationGraphicsRectItem, RectItemInserter)
|
||||
ItemFactory.register('ratiorect', None, FixedRatioRectItemInserter)
|
||||
ItemFactory.register('point', AnnotationGraphicsPointItem, PointItemInserter)
|
||||
ItemFactory.register('polygon', AnnotationGraphicsRectItem, PolygonItemInserter)
|
||||
ItemFactory.register('poly', AnnotationGraphicsRectItem, PolygonItemInserter)
|
||||
|
||||
### testing
|
||||
import pytest
|
||||
|
||||
Reference in New Issue
Block a user