/// <summary> /// コンストラクタ。 /// </summary> public Offscreen(Size2D size, IJSInProcessRuntime jsRuntime) { _jsOffscreen = JSObjectReference.From(jsRuntime, "Sample.BlazorWasm.TextEditor.Offscreen.create", new { w = size.Width, h = size.Height }); _writer = new Utf8JsonWriter(_utf8jsonMemory); Init(); }
/// <summary> /// コンストラクタ。 /// </summary> public Font(string family, double height, IJSInProcessRuntime jsRuntime) { _jsFont = JSObjectReference.From(jsRuntime, "Sample.BlazorWasm.TextEditor.Font.create", family, height); }
/// <summary> /// コンストラクタ。 /// </summary> public InputMethod(JSObjectReference jsRefTextEditorComponent) { _jsInputMethod = JSObjectReference.From(jsRefTextEditorComponent, "bindInputMethod"); }