Skip to content

Commit ac3ada5

Browse files
added: bianco.pointer
1 parent decac08 commit ac3ada5

File tree

4 files changed

+59
-54
lines changed

4 files changed

+59
-54
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ It's strongly recommended to install only the modules you really need
4646
- [bianco.force-reflow](https://github.com/biancojs/force-reflow#api) Force DOM reflows
4747
- [bianco.css](https://github.com/biancojs/css#api) CSS helper
4848
- [bianco.attr](https://github.com/biancojs/attr#api) DOM attributes
49+
- [bianco.pointer](https://github.com/biancojs/pointer#api) Pointer events helpers
4950

5051
## TODO
5152

@@ -59,8 +60,8 @@ List of the bianco modules to create:
5960
- [x] bianco.force-reflow
6061
- [x] bianco.css
6162
- [x] bianco.attr
62-
- [ ] bianco.cookie
63-
- [ ] bianco.pointer
63+
- [x] bianco.pointer
64+
- [ ] ~~bianco.cookie~~ [see cookie-js](https://github.com/js-cookie/js-cookie)
6465
- [ ] ~~bianco.monad or bianco.chain?~~ [see ruit](https://github.com/GianlucaGuarini/ruit)
6566
- [ ] ~~bianco.stream~~ [see erre](https://github.com/GianlucaGuarini/erre)
6667
- [ ] ~~bianco.animate~~ [see animore](https://github.com/GianlucaGuarini/animore)

index.next.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ export {
1212
once as onceEvent
1313
} from 'bianco.events'
1414

15+
// attributes helpers
16+
export {
17+
get as getAttr,
18+
set as setAttr,
19+
remove as removeAttr,
20+
has as hasAttr
21+
} from 'bianco.attr'
22+
1523
// css helpers
1624
export {
1725
get as getCss,
@@ -25,7 +33,7 @@ export {
2533
loadImages
2634
} from 'bianco.images-loader'
2735

28-
// viewport module
36+
// viewport helpers
2937
export {
3038
scrollbarWidth,
3139
documentHeight,
@@ -36,10 +44,7 @@ export {
3644
elementOffsetLeft
3745
} from 'bianco.viewport'
3846

39-
// attributes helpers
47+
// pointer helpers
4048
export {
41-
get as getAttr,
42-
set as setAttr,
43-
remove as removeAttr,
44-
has as hasAttr
45-
} from 'bianco.attr'
49+
postion as pointerPosition
50+
} from 'bianco.pointer'

package-lock.json

Lines changed: 37 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@
3838
"rollup-plugin-node-resolve": "^3.4.0"
3939
},
4040
"dependencies": {
41-
"bianco.attr": "^0.0.5",
42-
"bianco.css": "0.0.4",
43-
"bianco.events": "^0.0.7",
44-
"bianco.images-loader": "0.0.7",
45-
"bianco.query": "^0.0.8",
46-
"bianco.viewport": "0.0.5"
41+
"bianco.attr": "^1.0.0",
42+
"bianco.css": "^1.0.0",
43+
"bianco.events": "^1.0.0",
44+
"bianco.images-loader": "^1.0.0",
45+
"bianco.pointer": "^1.0.0",
46+
"bianco.query": "^1.0.0",
47+
"bianco.viewport": "^1.0.0"
4748
}
4849
}

0 commit comments

Comments
 (0)