1.0.29 • Published 2 years ago

@bitforgehq/genie-ar-button v1.0.29

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

Yago AR Button

WebComponent to directly launch AR view on supported devices or show a QR Code overlay dialog.

More details and examples on https://ar-webshop.com/

Installation

Via npm

Use your favorite package manager:

npm install @bitforgehq/genie-ar-button
# OR:
yarn add @bitforgehq/genie-ar-button

Link the source in your script:

import '@bitforgehq/genie-ar-button';

Via CDN

Add these two javascript files at the end of your document or in your <head>:

<script src="https://unpkg.com/vue@2/dist/vue.min.js"></script>
<script type="module" src="https://unpkg.com/@bitforgehq/genie-ar-button/dist/ar-button.min.js"></script>

Usage

Include the WebComponent in your Website where the button should appear.

<ar-button
    model="<yago-slug>"
    text="Place in your space"
    qr-size="300"
    qr-title="Here we go!"
    qr-text="Scan the QR Code with your smartphone to place the model in your space.">
</ar-button>
PropertyTypeDescription
modelstringThe slug (Short-URL) of your yago model. Usually 8 characters.
textstringText in the AR Button. Default is 'Place in your space'.
qr-sizenumberSize of the QR Code in the modal popup window.
qr-titlestringTitle text in the modal popup window.
qr-textstringCall to action text in the modal popup window.

Styling

You can style Yago AR button with global CSS variables:

ar-button {
    --font-family: "Comic Neue";
    --background-color: black;
    --color: white;
    --border: 1px solid black;
    --border-radius: 8px;
    --padding: 16px;
    --ar-icon-height: 24px;
    --ar-icon-width: 24px;
    --qr-code-border-color: black;
}

If you want to style further details, you need to customize the code and deploy Yago Button yourself.

Development

To start hacking:

yarn install
yarn serve

Issues and pull requests are highly welcome!

1.0.26

2 years ago

1.0.25

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.24

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago