![]() ![]() Common Interaction Event Event NameĪctivated by clicking the left button of mouse or Enter button.Īctivated by double clicking the left button of mouse.Īctivated when mouse enters an item. propagationStopped: Wheher stop the propogationĮventName can be refered to the following parts.timeStamp: The time stamp the event triggered.where the button can be used to distinguish the left/middle/right button of the mouse on some events like click or dblclick originalEvent: The original client event object. ![]() defaultPrevented: Whether prevent the original event.target: The target Shape on the item being manupulated, or the canvas instance.item: The item being manipulated, which can be a node, an edge, or a Combo).canvasY: The y coordinate about parent DOM of the canvas.canvasX: The x coordinate about parent DOM of the canvas.clientY: The y coordinate about the client.clientX: The x coordinate about the client.Where, the event object evt has the properties: When its type is number, the paddings around the graph are the same The top, right, bottom, right paddings of the exported image. If it is not assigned, the background will be transparent. Where the imageConfig is the configuration for exported image: Name The configuration for the exported image, detials are shown below When the renderer is 'svg', toFullDataURL will export a svg file When the renderer of the graph is 'canvas'(default), type takes effect. 'image/png' / 'image/jpeg' / 'image/webp' / 'image/bmp' Trigger ? : 'click' | 'contextmenu' } Functions graph.downloadFullImage(name, type, imageConfig)Įxport the whole graph as an image, whatever (a part of) the graph is out of the screen. ShouldBegin ? : (evt ? : IG6GraphEvent ) => boolean // 允许出现 tooltip 的 item 类型 ReactNode // offsetX 与 offsetY 需要加上父容器的 padding HandleMenuClick ? : (target : HTMLElement, item : Item ) => void ĬustomContent ? : (evt ? : IG6GraphEvent ) => React. The delegateStyle has the properties: NameĬontainer ? : HTMLDivElement | string | null The style of the delegate of the items on the graph Options: 'default': Render all the graphics shapes on the graph 'keyShape': Only render the keyShape of the items on the graph to reach better performance 'delegate': Only render the delegate of the items on the graph to reach better performance. The className of the DOM element of the view port on the Minimap ![]() The className of the DOM element of the Minimap The plugin will generate a new one if container is not defined ![]() The user interface in Tauri apps currently leverages tao as a window handling library on macOS and Windows, and gtk on Linux via the Tauri-team incubated and maintained WRY, which creates a unified interface to the system webview (and other goodies like Menu and Taskbar), leveraging WebKit on macOS, WebView2 on Windows and WebKitGTK on Linux.Type ? : 'default' | 'keyShape' | 'delegate' The backend of the application is a rust-sourced binary with an API that the front-end can interact with. Developers can integrate any front-end framework that compiles to HTML, JS and CSS for building their user interface. Tauri is a framework for building tiny, blazing fast binaries for all major desktop platforms. Tauri - Build smaller, faster, and more secure desktop applications with a web frontend. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |