FakePlanServices constructor
FakePlanServices({
- required DraftDocument document,
- ParametricCatalog? catalog,
- Set<
Handle> frozen = const {}, - double scale = 1,
- bool objectSnap = true,
- KitNames names = KitNames.empty,
- Locale locale = const Locale('en'),
- String decimalSeparator = '.',
- Map<
String, Object> settings = const {}, - AttachmentRegistry? attachments,
Implementation
FakePlanServices({
required this.document,
ParametricCatalog? catalog,
Set<Handle> frozen = const {},
double scale = 1,
this.objectSnap = true,
KitNames names = KitNames.empty,
Locale locale = const Locale('en'),
String decimalSeparator = '.',
Map<String, Object> settings = const {},
AttachmentRegistry? attachments,
}) : _catalog = catalog,
_frozen = frozen,
_settings = settings,
attachments = attachments ?? const _NoAttachments(),
index = SpatialIndex(document),
camera = CameraController(ViewportTransform(
worldToScreenMatrix: Transform2(scale, 0, 0, -scale, 0, 0))),
words = KitNamesWords(names, () => locale,
decimalSeparator: () => decimalSeparator);