GoJS - Interactive JavaScript Diagrams for the Web
GoJSis a JavaScript and TypeScript library for building interactive diagrams and graphs
From simple flowcharts and org charts to highly-specific industrial diagrams, SCADA and BPMN diagrams, medical diagrams such as genograms and outbreak modeling diagrams, and more. GoJS makes constructing graphs of complex nodes, links, and groups easy with customizable templates and layouts.
GoJS offers advanced features for user interactivity such as drag-and-drop, copy-and-paste, in-place text editing, tooltips, context menus, automatic layouts, templates, data binding and models, transactional state and undo management, palettes, overviews, event handlers, commands, extensible tools for custom operations, and customizable animations.
We maintain hundreds ofsample diagrams, detailing different examples of interactivity, templates, and user logic for you to start from. We offer free developer-to-developer support during evaluation.
Flowcharts
Build interactive flowcharts or flow diagrams. Let your users build, modify, and save Diagrams with JSON model output.
State Charts
Visualize State Charts and other behavior diagrams. Create diagrams with live updates to monitor state, or interactive diagrams for planning.
Sankey Diagrams
GoJS allows considerable customization of Links and Nodes to build all kinds of diagrams. Visualize flow, or connect pipes
Genogram Diagrams
Create Genogram and Medical diagrams, or editable family trees with collapsible levels.
Org Charts
Create classic org charts for viewing or editing. Automatic layouts make different visualization options easy.
Dynamic Ports
Dynamically add ports and custom link routing. Use data-bindings to save and load routes within the Model JSON.
Industrial Processes
Model industrial processes, workflows, SCADA diagrams and more. Permissions and validation make it easy to add rules and constraints when your customers build diagrams.
Dynamic Grouping
Use groups as containers and subgraphs, with group members bounds by their own rules and layouts.
고유 한 클래스 나 ID가없는 요소를 찾으려고합니다.(그런 다음 해당 요소의 부모를 찾아야합니다.)
Therefore it is not enough that you use:contains()selector, you also need to check if the text you search for is thedirect contentof the element you are targeting for, something like that:
따라서:contains()selector를 사용하는 것으로는 충분하지 않습니다.검색하는 텍스트가 대상 요소의직접 콘텐츠인지 확인해야합니다.
Element에 포함된 텍스트(Text)로 객체를 찾아라!
function findElementByText(text) {
var jSpot = $("b:contains(" + text + ")")
.filter(function() { return $(this).children().length === 0;})
.parent(); // because you asked the parent of that element
return jSpot;
}
C:\Users\HWKim>node -v
v14.15.1
C:\Users\HWKim>node
Welcome to Node.js v14.15.1.
Type ".help" for more information.
> console.log(1+1)
2
undefined
> console.log(1+1);
2
undefined
>
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>
C:\Users\HWKim>