Skip to content

Commit 90decc9

Browse files
authored
Merge pull request #16 from webarkit/improved-canvas-attach
Improved canvas attach
2 parents 8ce89da + 09a71ea commit 90decc9

5 files changed

Lines changed: 153 additions & 164 deletions

File tree

dist/ARFset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/demo.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010

1111
<body>
12-
<div class="container">
12+
<div class="container" id="cv">
1313
<h1>FeatureSET-Display</h1>
1414
<p>Displaying .iset .fset .fset3 files</p>
1515
<p>Feature points: light green circles</p>
@@ -46,6 +46,9 @@ <h1>FeatureSET-Display</h1>
4646

4747
function loadFset(url) {
4848
var ar = new ARFset.ARFset();
49+
// with attachCanvas we decide the element to attach our canvas.
50+
// Uncomment this line to attach the canvas to the html body tag of the page
51+
ar.attachCanvas('cv');
4952
ar.initialize()
5053
.then((e) => {
5154
ar.loadNFTMarkerBlob(url, (nft) => {

0 commit comments

Comments
 (0)