0.3.15 • Published 5 months ago

poe-custom-elements v0.3.15

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

poe-custom-elements

Path of Exile custom elements

Demo

npm install poe-custom-elements

Usage

Here is an example with a stash tab

First, you need to open node_modules/poe-custom-elements and copy poe-ce-assets dir to your public folder.

import 'poe-custom-elements/stash-tab.js';
/* 
 JS object of stash tab from Poe API
 https://www.pathofexile.com/developer/docs/reference#stashes-get
 Check TabWithItems, PoeItem .d.ts types file
(Keep in mind, that exact json importing is a Vite feature, not a real JS) 
*/
import quad from './QuadStashStd.json';

const el = document.createElement('poe-stash-tab');
el.tab = quad;
document.body.append(el);

Check JS Example

Customizing base path for assets

By default, you need to copy assets folder from node_modules/poe-custom-elements/dist/poe-ce-assets to your public folder. So that your public folder has poe-ce-assets folder. You can customize this path.

import { setBasePath } from 'poe-custom-elements/lib/base_path.js';
setBasePath('/poe');
0.3.15

5 months ago

0.3.14

9 months ago

0.3.13

9 months ago

0.3.12

9 months ago

0.3.11

9 months ago

0.3.9

9 months ago

0.3.10

9 months ago

0.3.8

11 months ago

0.3.7

11 months ago

0.3.6

11 months ago

0.3.5

11 months ago

0.3.4

12 months ago

0.3.3

12 months ago

0.3.2

12 months ago

0.3.1

12 months ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago