0.2.16 • Published 2 years ago

arweave-viewer v0.2.16

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm npm bundle size NPM

arweave-viewer

Web Component to display arweave content.

Run npx http-server to view docs

dynamic-svg-renderer

This web component takes a source code or arweave hash reference and renders a svg image that responds to attribute changes. Key Attributes are

  • theme: theme string
  • hue: id for generative theme.
  • duration: number
  • intensity: number
  • depth: number
  • progress: number

Source

The content of the svg can be set multiple ways

  • source: url of source code. eg source="https://arweave.net/15khInB7-fbJMLokDdGBFQ4ZVdJYJ2EA8q1yokGfqRA" This can also be a dataUrl, which is useful for svg based nft.
  • content: innerHtml content for the render iframe. eg content="<svg></svg>"
  • hash:arweave hash id. (will load content from url. DEPRECATED. Should use source attribute instead)
  • src: ?

PROPS

  • uid: optional uid id to insert into svg. For multiple images in same page if you want to reference one optional/deprecated:
  • debug: flag to switch on debug information
  • style: Style string to pass into viewer card attribute
0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.41

3 years ago

0.1.42

3 years ago

0.1.43

2 years ago

0.1.40

3 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.30

3 years ago

0.1.31

3 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.34

3 years ago

0.1.35

3 years ago

0.1.36

3 years ago

0.1.37

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.38

3 years ago

0.1.39

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.1.0-0

3 years ago

0.0.1

3 years ago