public void Fill_Text(TransferFillTextParameters transferFillTextParameters) { if (_JsInteropExecutionMode == 0) { BCCCJsInterop.Fill_Text(canvasID, transferFillTextParameters); } else { SB_Append("ctx1.fillText(\"" + transferFillTextParameters.text + "\"," + transferFillTextParameters.x + "," + transferFillTextParameters.y + ");"); } }
public static Task <bool> Fill_Text(string canvasID, TransferFillTextParameters transferFillTextParameters) { return(JSRuntime.Current.InvokeAsync <bool>("JsInteropClockCanvas.Fill_Text", new { canvasID, transferFillTextParameters })); }
public static bool Fill_Text(string canvasID, TransferFillTextParameters transferFillTextParameters) { return (JSRuntime.Current as IJSInProcessRuntime).Invoke<bool>("JsInterop.Fill_Text", new { canvasID, transferFillTextParameters }); }