jointjs
Version:
JavaScript diagramming library
13 lines (9 loc) • 558 B
HTML
<pre class="docs-method-signature"><code>env.test(name)</code></pre>
<p>Tests whether the browsers supports the given feature or not. Returns <code>true</code> if the feature is supported, otherwise it returns <code>false</code>.</p>
<pre><code>if (joint.env.test('someFeature')) {
// Feature is supported.
}</code></pre>
<p>JointJS ships with the following tests:</p>
<ul>
<li><b>svgforeignobject</b> - Tests whether the browser supports <a href="https://developer.mozilla.org/cs/docs/Web/SVG/Element/foreignObject">foreignObject</a>.</li>
</ul>