Skip to content

Commit 5738b37

Browse files
authored
feat(Filelink): Add Filelink class to replace client.transform (#195)
BREAKING CHANGE: Add new Filelink class for better transforms support * docs(Filelink): Add documentation to filelink
1 parent 91b07ac commit 5738b37

22 files changed

+1663
-717
lines changed

examples/transform/demo.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
window.addEventListener('DOMContentLoaded', function () {
22
const apikey = 'YOUR_APIKEY';
3-
const client = filestack.init(apikey);
3+
const src = new filestack.Filelink('7m1aL2WEQg2Dkh1Cxgpi', apikey)
4+
src.blur({amount: 15})
5+
.border()
6+
.resize({
7+
width: 720,
8+
height: 480,
9+
}
10+
);
411

5-
const src = client.transform('7m1aL2WEQg2Dkh1Cxgpi', {
6-
blur: {
7-
amount: 15
8-
},
9-
border: true,
10-
resize: {
11-
width: 720,
12-
height: 480,
13-
},
14-
});
1512

1613
const img = document.createElement('img');
17-
img.src = src;
14+
img.src = src.toString();
1815

1916
document.getElementById('content').appendChild(img);
2017
});

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function karmaConfig(config) {
7373
// 'bs_safari_osx_stable',// for now disabled, need to firgure out whats happend (timeouted)
7474
// 'bs_chrome_windows',
7575
// 'bs_firefox_windows',
76-
'bs_edge_windows_latest',
76+
// 'bs_edge_windows_latest',
7777
'chrome_headless',
7878
'firefox_headless',
7979
] : [

0 commit comments

Comments
 (0)