public SourceTransformer(
            CanvasDocument app,
            ErrorContainer errors,
            Dictionary <string, ControlTemplate> defaultValueTemplates,
            Theme theme,
            ComponentInstanceTransform componentInstanceTransform,
            EditorStateStore stateStore,
            TemplateStore templateStore,
            Entropy entropy)
        {
            _templateTransforms = new List <IControlTemplateTransform>();
            _templateTransforms.Add(new GalleryTemplateTransform(defaultValueTemplates, stateStore));
            _templateTransforms.Add(new AppTestTransform(app, errors, templateStore, stateStore, entropy));
            _templateTransforms.Add(componentInstanceTransform);

            _groupControlTransform = new GroupControlTransform(errors, stateStore, entropy);

            _defaultValTransform = new DefaultValuesTransform(defaultValueTemplates, theme, stateStore);
        }
示例#2
0
 public ComponentDefinitionTransform(ErrorContainer errors, TemplateStore templateStore, ComponentInstanceTransform componentInstanceTransform)
 {
     _templateStore = templateStore;
     _componentInstanceTransform = componentInstanceTransform;
     _errors = errors;
 }