Example #1
0
        /// Adds a point to this series.
        public void Add(T value, float x, float y)
        {
            var pt = new GraphPt <T>(this, value, x, y);

            _ptList.Add(pt);
            if (!float.IsNaN(x) && !float.IsInfinity(x) && !float.IsNaN(y) && !float.IsInfinity(y))
            {
                XStats.Push(x);
                YStats.Push(y);
            }
        }
Example #2
0
        private Page()
        {
            var stats = new XStats();
            Document.Body.AppendChild(stats.Element);

            new SonicEngine();
             

            BuildAngular.Setup(); 

        }
Example #3
0
        public static void Setup()
        {
            var stats = new XStats();

            Document.Body.AppendChild(stats.Element);


            var module = angular.Module("MimeGame", new string[] { "ui.utils", "ui.bootstrap" })
                         .Config(new object[] { "$httpProvider", new Action <dynamic>(buildHttpProvider) })
                         .Controller(LevelSelectorController.Name, new object[] { ScopeName, CreateUIService.Name, new Func <LevelSelectorScope, CreateUIService, object>((scope, createUIService) => new LevelSelectorController(scope, createUIService)) })
                         .Controller(TriangleGameController.Name, new object[] { ScopeName, RaphaelPaperService.Name, new Func <TriangleGameScope, RaphaelPaperService, object>((scope, paperService) => new TriangleGameController(scope, paperService)) })
                         .Service(CreateUIService.Name, new object[] { CompileName, RootScopeName, new Func <CompileService, IRootScopeService, object>((compileService, rootScopeService) => new CreateUIService(compileService, rootScopeService)) })
                         .Service(RaphaelPaperService.Name, new object[] { new Func <object>(() => new RaphaelPaperService()) })
                         .Directive(TriangleDirective.Name, new object[] { RaphaelPaperService.Name, new Func <RaphaelPaperService, object>((paperService) => new TriangleDirective(paperService)) })
                         .Directive(FancyListDirective.Name, new object[] { new Func <object>(() => new FancyListDirective()) })
                         .Directive(FancyListIndexDirective.Name, new object[] { new Func <object>(() => new FancyListIndexDirective()) })
                         .Directive(FancyHorizontalListDirective.Name, new object[] { new Func <object>(() => new FancyHorizontalListDirective()) })
                         .Directive(FancyHorizontalListIndexDirective.Name, new object[] { new Func <object>(() => new FancyHorizontalListIndexDirective()) })
                         .Directive(DraggableDirective.Name, new object[] { new Func <object>(() => new DraggableDirective()) })
                         .Directive(FloatingWindowDirective.Name, new object[] { new Func <object>(() => new FloatingWindowDirective()) })
                         .Directive(ForNextDirective.Name, new object[] { new Func <object>(() => new ForNextDirective()) })
                         .Filter(RoundFilter.Name, new object[] { new Func <Func <object, object> >(() => new RoundFilter().Filter) })
                         .Filter(SwitchFilter.Name, new object[] { new Func <Func <bool, object, object, object> >(() => new SwitchFilter().Filter) })
                         .Run(new object[]
            {
                Http, TemplateCache, CreateUIService.Name, new Action <IHttpService, ITemplateCacheService, CreateUIService>(
                    (http, templateCache, createUIService) =>
                {
                    buildCache(http, templateCache);
                    createUIService.Create(LevelSelectorController.View);
                    createUIService.Create(TriangleGameController.View);
                })
            });


            //            MinimizeController.Register(module);

            angular.Bootstrap(Window.Document, "MimeGame");
        }