polymer-vis

WebJar for polymer-vis

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bowergithub.polymervis
Идентификатор

Идентификатор

polymer-vis
Последняя версия

Последняя версия

2.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

polymer-vis
WebJar for polymer-vis
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/PolymerVis/polymer-vis

Скачать polymer-vis

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.polymervis/polymer-vis/ -->
<dependency>
    <groupId>org.webjars.bowergithub.polymervis</groupId>
    <artifactId>polymer-vis</artifactId>
    <version>2.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.polymervis/polymer-vis/
implementation 'org.webjars.bowergithub.polymervis:polymer-vis:2.0.3'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.polymervis/polymer-vis/
implementation ("org.webjars.bowergithub.polymervis:polymer-vis:2.0.3")
'org.webjars.bowergithub.polymervis:polymer-vis:jar:2.0.3'
<dependency org="org.webjars.bowergithub.polymervis" name="polymer-vis" rev="2.0.3">
  <artifact name="polymer-vis" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.polymervis', module='polymer-vis', version='2.0.3')
)
libraryDependencies += "org.webjars.bowergithub.polymervis" % "polymer-vis" % "2.0.3"
[org.webjars.bowergithub.polymervis/polymer-vis "2.0.3"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)

Модули Проекта

Данный проект не имеет модулей.

PolymerVis

PolymerVis is a suite of Polymer elements for visualizations.

Quick start

Import the polymer-vis.html file to use any of the utility functions.

<link rel="import" href="../bower_components/polymer-vis.html">

Alternatively, you can also include it as a script instead.

<script src="../bower_components/build/es5/polymer-vis.js"></script>

API reference

PolymerVis.loadScript(src, onload, onerror, optAsync) ⇒ HTMLScriptElement

Convenience method for dynamically loading a script.

This method creates a new <script> element with the provided URL and appends it to the document to start loading. In the onload callback, the import property of the link element will contain the imported document contents.

Kind: global method of PolymerVis.loadScript

Param Type Description
src string The url to the script to load.
onload function callback when script is loaded.
onerror function callback when error loading script.
optAsync boolean whether to execute the script asynchronously.

PolymerVis.loadStylesheet(href, onload, onerror, optAsync) ⇒ HTMLLinkElement

Convenience method for dynamically loading a stylesheet.

This method creates a new <link rel="stylesheet"> element with the provided URL and appends it to the document to start loading. In the onload callback, the import property of the link element will contain the imported document contents.

Kind: global method of PolymerVis.loadStylesheet

Param Type Description
href string The url to the script to load.
onload function callback when script is loaded.
onerror function callback when error loading script.
optAsync boolean whether to execute the script asynchronously.

PolymerVis.insertCssIntoShadowRoot(cssSrc, shadowRoot, onload, id)

Load an external CSS file, and insert a style element into the shadowRoot.

Kind: global method of PolymerVis.insertCssIntoShadowRoot

Param Type Description
cssSrc String url to the css file
shadowRoot String Node to insert the style element
onload function callback when CSS is inserted
id String id for style element

Example

PolymerVis.insertCssIntoShadowRoot('https://some.css', ele.shadowRoot, 'custom');

PolymerVis.isInShadowRoot(node) ⇒ Node

Check if the node is inside a shadowRoot or not. Return the shadowRoot otherwise return false.

Kind: global method of PolymerVis.isInShadowRoot

Param Type Description
node Node the node to check
org.webjars.bowergithub.polymervis

PolymerVis

Polymer components for Visualizations (has no affiliation with Polymer or Google).

Версии библиотеки

Версия
2.0.3