-
Notifications
You must be signed in to change notification settings - Fork 287
/
README.html
361 lines (346 loc) · 17.3 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- ////////////////////////////////////////////////////////////////////////
// @license
// This demo file is part of yFiles for HTML 2.6.
// Copyright (c) 2000-2024 by yWorks GmbH, Vor dem Kreuzberg 28,
// 72070 Tuebingen, Germany. All rights reserved.
//
// yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
// of demo files in source code or binary form, with or without
// modification, is not permitted.
//
// Owners of a valid software license for a yFiles for HTML version that this
// demo is shipped with are allowed to use the demo source code as basis
// for their own yFiles for HTML powered applications. Use of such programs is
// governed by the rights and conditions as set out in the yFiles for HTML
// license agreement.
//
// THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
// NO EVENT SHALL yWorks BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
////////////////////////////////////////////////////////////////////////-->
<title>yFiles for HTML Programming Samples and Tutorials </title>
<link rel="stylesheet" href="../doc/readme-style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<style>
.first-paragraph {
margin-top: 0;
}
.hidden {
display: none;
}
#no-search-results {
text-align: center;
padding: 24px;
line-height: 2;
font-size: 20px;
}
.btn {
display: inline-block;
background-color: #ea720b;
color: #f7f7f7;
padding: 8px;
text-decoration: none;
margin-top: 8px;
}
.btn:hover {
text-decoration: none;
}
.js .ts-only,
.ts .js-only {
display: none;
}
</style>
<script>
window.isReadme = true
</script>
<script src="resources/filesystem-warning.js"></script>
</head>
<body>
<div id="no-ie">
<h2>Your browser does not support modern CSS</h2>
<p>This page will be displayed incorrectly. We recommend using a more recent browser.</p>
<p>Note that yFiles for HTML itself does not rely on these features.</p>
</div>
<div id="header" class="hide-toggle-sidebar-button">Demo Applications</div>
<main class="demo-browser-main">
<div class="readme-sidebar demo-browser-sidebar">
<div class="search-container">
<input
id="search"
type="search"
value=""
title="Search"
placeholder="Search"
autofocus
tabindex="1"
/>
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path
fill="#706f6f"
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
></path>
<path d="M0 0h24v24H0z" fill="none"></path>
</svg>
</div>
</div>
<div class="content-centered">
<div class="content-wide">
<div id="general-intro">
<p class="first-paragraph">
The <a href="https://www.yworks.com/products/yfiles-for-html">yFiles for HTML 2.6.0.4</a> demo applications are available in
both JavaScript and TypeScript.
<span class="js-only"
>Show <a href="../demos-ts/README.html">TypeScript Demos</a>.</span
>
<span class="ts-only"
>Show <a href="../demos-js/README.html">JavaScript Demos</a>.</span
>
</p>
</div>
<p>
The complete source code of all of these demos is part of the yFiles for HTML package and
available at
<a href="https://github.com/yWorks/yfiles-for-html-demos">GitHub</a>.
</p>
<p id="online-notice">
All of these demos are also hosted at the
<a href="https://www.yworks.com/demos" target="_blank">yWorks homepage</a>.
</p>
<div class="important" id="no-ecmascript6" style="display: none">
<p>These demos use ECMAScript 6 features that your browser does not support.</p>
<p>
Please switch to a browser with support for ECMAScript 6, for example Chrome, Firefox,
Edge, or Safari.
</p>
<p>
Note that ECMAScript 6 is a requirement of the demos, only. The yFiles for HTML
library itself is compatible with ECMAScript 5.
</p>
</div>
<div class="demo-grid">
<div id="no-search-results" style="display: none">
No demos match your search query.
<br />
<a href="#" class="reset-search btn">Click here to see all demos</a>
</div>
<noscript>
Please enable JavaScript to see and search the list of the available demos.
</noscript>
<div id="demo-descriptions">
<div id="application-features" class="hidden">
<p>
These demos are an introduction to the features of the yFiles for HTML diagramming
library for building an application. They cover a broad range of topics including
building graphs from JSON data, drag and drop, tooltips, snapping (guide lines),
etc.
</p>
<p>
They is intended for developers who are interested in how to implement specific
application features. If you are new to the yFiles for HTML diagramming library, we
recommend to start with the
<a href="#tutorial-basic-features">Basic Features</a> tutorial. Then, have a look
at the samples of this tutorial that cover the features you are interested in.
</p>
<p>
To make full use of these demos, we also recommend to review and possibly modify
the source code for each sample project.
</p>
</div>
<div id="layout-features" class="hidden">
<p>
This collection of demos showcases important features of the layout algorithms of
the yFiles for HTML library and provides guidance for each feature on how to configure
the algorithm properly.
</p>
<p>
It is intended for developers who are interested in how to implement specific
layout features. If you are new to the yFiles for HTML diagramming library, we recommend
to start with the <a href="#tutorial-basic-features">Basic Features</a> tutorial.
Then, have a look at the samples of this tutorial that cover the features you are
interested in.
</p>
<p>
To make full use of these demos, we recommend to review and possibly modify the
source code for each sample project. The source code for layout configurations
shown in a demo application can often be directly reused in another application.
</p>
</div>
</div>
<div id="non-tutorial-grid"></div>
<div class="tutorial-header hidden" id="tutorial-basic-features-header">
Tutorial: Basic Features
</div>
<div id="tutorial-basic-features" class="hidden">
<p>
This Basic Features Tutorial is a step-by-step introduction to the concepts and main
features of the yFiles for HTML diagramming library. Topics include basic styling, user
interaction, Undo/Redo, clipboard, group nodes and folding.
</p>
<p>
It is intended for developers who want to get started with the library in an
effective way. If you are new to the yFiles for HTML diagramming library, we recommend to
start by going through the projects in this tutorial one by one. In addition, have a
look at the
<a href="../doc/api/index.html#/dguide/getting_started">Getting Started</a>
chapter of the Developer's Guide.
</p>
<p>
To make full use of the tutorial, we also recommend to review and possibly modify
the source code for each sample project.
</p>
</div>
<div id="tutorial-basic-features-grid"></div>
<div class="tutorial-header hidden" id="tutorial-node-style-implementation-header">
Tutorial: Node Style Implementation
</div>
<div id="tutorial-node-style-implementation" class="hidden">
<p>
This tutorial is a step-by-step guide to customizing the visual representation of
nodes. Moreover, it presents a visual representation of nodes that depends on the
current application state. Finally, several optimization strategies are discussed.
</p>
<p>
It is intended for users who want to learn how to create custom styles from scratch.
If you are new to styles, in particular to their customization, we recommend to
start by going through the tutorial steps that show the basics one by one. Of the
specialized topics, you can skip the ones that doesn't apply to your use case. To
make full use of the tutorial, we recommend to review and possibly modify the source
code of the sample projects.
</p>
</div>
<div id="tutorial-node-style-implementation-grid"></div>
<div class="tutorial-header hidden" id="tutorial-label-style-implementation-header">
Tutorial: Label Style Implementation
</div>
<div id="tutorial-label-style-implementation" class="hidden">
<p>
This tutorial is a step-by-step guide to customizing the visual representation of
labels. It shows the creation of custom styles for nodes, edges, labels, and ports.
Moreover, it presents a custom arrowhead rendering, a customized edge selection, and
a visual representation of graph elements that depends on the current application
state. Finally, several optimization strategies are discussed.
</p>
<p>
It is intended for users who want to learn how to create custom styles from scratch.
If you are new to styles, in particular to their customization, we recommend to
start by going through the tutorial steps that show the basics one by one. Of the
specialized topics, you can skip the ones that doesn't apply to your use case. To
make full use of the tutorial, we recommend to review and possibly modify the source
code of the sample projects.
</p>
</div>
<div id="tutorial-label-style-implementation-grid"></div>
<div class="tutorial-header hidden" id="tutorial-edge-style-implementation-header">
Tutorial: Edge Style Implementation
</div>
<div id="tutorial-edge-style-implementation" class="hidden">
<p>
This tutorial is a step-by-step guide to customizing the visual representation of
nodes. It shows the creation of custom styles for nodes, edges, labels, and ports.
Moreover, it presents a custom arrowhead rendering, a customized edge selection, and
a visual representation of graph elements that depends on the current application
state. Finally, several optimization strategies are discussed.
</p>
<p>
It is intended for users who want to learn how to create custom styles from scratch.
If you are new to styles, in particular to their customization, we recommend to
start by going through the tutorial steps that show the basics one by one. Of the
specialized topics, you can skip the ones that doesn't apply to your use case. To
make full use of the tutorial, we recommend to review and possibly modify the source
code of the sample projects.
</p>
</div>
<div id="tutorial-edge-style-implementation-grid"></div>
<div class="tutorial-header hidden" id="tutorial-port-style-implementation-header">
Tutorial: Port Style Implementation
</div>
<div id="tutorial-port-style-implementation" class="hidden">
<p>
This tutorial is a step-by-step guide to customizing the visual representation of
nodes. It shows the creation of custom styles for nodes, edges, labels, and ports.
Moreover, it presents a custom arrowhead rendering, a customized edge selection, and
a visual representation of graph elements that depends on the current application
state. Finally, several optimization strategies are discussed.
</p>
<p>
It is intended for users who want to learn how to create custom styles from scratch.
If you are new to styles, in particular to their customization, we recommend to
start by going through the tutorial steps that show the basics one by one. Of the
specialized topics, you can skip the ones that doesn't apply to your use case. To
make full use of the tutorial, we recommend to review and possibly modify the source
code of the sample projects.
</p>
</div>
<div id="tutorial-port-style-implementation-grid"></div>
<div class="tutorial-header hidden" id="tutorial-graph-builder-header">
Tutorial: Graph Builder
</div>
<div id="tutorial-graph-builder" class="hidden">
<p>
This tutorial is a step-by-step guide to configuring the GraphBuilder class which
helps to conveniently transfer business data into a graph that you can display,
manage and explore. It shows how to load data from different data sources and how to
customize the visualizations of the graph elements and/or how to add labels.
</p>
<p>
It is intended for users who want to learn how to convert their data into a graph.
To make full use of the tutorial, we recommend to review and possibly modify the
source code of the sample projects.
</p>
</div>
<div id="tutorial-graph-builder-grid"></div>
<div class="tutorial-header hidden" id="unavailable-header" style="display: none">
Demos Available in Complete Package
</div>
<div id="unavailable-grid" style="display: none"></div>
</div>
</div>
</div>
</main>
<!-- populated by readme-style.js -->
<div id="footer-detailed"></div>
<template id="grid-item-template">
<div class="thumbnail">
<a href="{{demoPath}}">
<img src="{{thumbnailPath}}" loading="lazy" />
</a>
</div>
<div class="description">
<h2 class="title"><a href="{{demoPath}}" tabindex="{{index}}">{{name}}</a></h2>
<p class="details">{{summary}}</p>
<div class="tags"></div>
<div class="gradient-overlay"></div>
</div>
<div class="actions">
<a href="{{demoPath}}" class="action-run"></a>
</div>
</template>
<template id="accordion-template">
<div class="accordion-pane">
<h5 class="accordion-title">
{{title}}
<i class="accordion-icon"></i>
</h5>
<div class="accordion-content demo-items demo-items-{{identifier}}"></div>
</div>
</template>
<template id="demo-header-template">
<div class="demo-header hidden" id="{{identifier}}-demo-header">{{title}} Demos</div>
</template>
<script src="resources/readme-demo-data.js"></script>
<script src="resources/readme-demo-support.js" async></script>
<script src="../doc/readme-style.js"></script>
</body>
</html>