protected override async Task OnFirstAfterRenderAsync()
        {
            Config.Ref = Ref;

            thisReference = DotNetObjectReference.Create(this);

            await JsInterop.InvokeAsync <object>("Orions.CodeMirror.init", new object[] { thisReference, Config });
        }
        protected override async Task OnFirstAfterRenderAsync()
        {
            if (ShakaPlayerConfig == null || string.IsNullOrWhiteSpace(ShakaPlayerConfig.Id))
            {
                throw new ArgumentException(nameof(ShakaPlayerConfig));
            }

            await JsInterop.InvokeAsync <object>("Orions.ShakaPlayer.init", new object[] { ShakaPlayerConfig });
        }
Beispiel #3
0
        protected override async Task OnFirstAfterRenderAsync()
        {
            await Vm.Init();

            var jsonData = Vm.GetJesonDesignData();

            thisReference = DotNetObjectReference.Create(this);

            await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.Init", new object[] { thisReference, jsonData });
        }
        public async Task UpdateZone(string oldZone, string newZone)
        {
            if (!string.IsNullOrWhiteSpace(oldZone))
            {
                await JsInterop.InvokeAsync <object>("Orions.MapZone.AddClassById", new object[] { oldZone, _hideElementCSS });
            }

            if (!string.IsNullOrWhiteSpace(newZone))
            {
                await JsInterop.InvokeAsync <object>("Orions.MapZone.RemoveClassById", new object[] { newZone, _hideElementCSS });
            }
        }
        protected override async Task OnFirstAfterRenderAsync()
        {
            thisReference = DotNetObjectReference.Create(this);

            await JsInterop.InvokeAsync <object>("Orions.MapZone.Init", new object[] { _zoneAreaId, _classNameOnMouseOver, thisReference });

            if (!string.IsNullOrEmpty(Zone))
            {
                var zones = Zone.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(it => it.Trim()).ToArray();

                foreach (var zone in zones)
                {
                    await JsInterop.InvokeAsync <object>("Orions.MapZone.RemoveClassById", new object[] { zone, _hideElementCSS });
                }
            }

            await base.OnInitializedAsync();
        }
Beispiel #6
0
 public async Task ShowMainMenu()
 {
     await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.ShowMainMenu");
 }
Beispiel #7
0
 public async Task HideCommonMenu()
 {
     await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.HideCommonMenu");
 }
Beispiel #8
0
 public async Task ZoomOut()
 {
     await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.ZoomOut");
 }
Beispiel #9
0
 public async Task RemoveElement()
 {
     thisReference = DotNetObjectReference.Create(this);
     await JsInterop.InvokeAsync <object>("Orions.FlowDesigner.Remove", new object[] { thisReference });
 }
 public async Task RemovePlayer(string id)
 {
     await JsInterop.InvokeAsync <object>("Orions.ShakaPlayer.remove", new object[] { id });
 }