qia-browser-libraries
TypeScript icon, indicating that this package has built-in type declarations

3.3.3 • Public • Published

Introduction

As a summary, there are currently 3 modules in this package.

  • Qia.Layout
    • LayoutHelper
  • Qia.KeyboardShortcut
    • KeyboardShortcutHelper
  • Qia.Audio
    • AudioPlayer

Installation

This package can be installed via npm install qia-browser-libraries from https://www.npmjs.com/package/qia-browser-libraries.

Usage

There are two ways of using it:

  • import as ES modules, e.g., import Qia from 'qia-browser-libraries'; const QiaKeyboardShortcut = Qia.KeyboardShortcut or import { KeyboardShortcut as QiaKeyboardShortcut } from 'qia-browser-libraries'
  • import as HTML scripts, e.g., <script src="qia-keyboard-shortcut.js"></script> and const QiaKeyboardShortcut = window.qia.KeyboardShortcut

And there are several import entry points for each module. Take Qia.Audio as an example, the import entry points are as the following.

  • Qia
    • const Qia = window.qia (srcipt[src="qia-audio.js"] or srcipt[src="qia.js"])
    • import Qia from 'qia-browser-libraries'
  • QiaAudio
    • const QiaAudio = Qia.Audio
    • const QiaAudio = window.qia.Audio (srcipt[src="qia-audio.js"] or srcipt[src="qia.js"])
    • import { Audio as QiaAudio } from 'qia-browser-libraries'
    • import QiaAudio from 'qia-browser-libraries/qia-audio'
  • QiaAudioPlayer
    • const QiaAudioPlayer = QiaAudio.AudioPlayer
    • const QiaAudioPlayer = window.qia.AudioPlayer (srcipt[src="qia-audio-player.js"])
    • import { AudioPlayer as QiaAudioPlayer } from 'qia-browser-libraries/qia-audio'
    • import QiaAudioPlayer from 'qia-browser-libraries/qia-audio-player'

For details of the usage, please check the documentation (./guides and ./typedoc) in the package.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.3.32latest

Version History

VersionDownloads (Last 7 Days)Published
3.3.32
3.3.20
3.3.10
2.4.50
1.4.40
1.4.30
1.4.20
1.4.10
1.3.10
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10

Package Sidebar

Install

npm i qia-browser-libraries

Weekly Downloads

0

Version

3.3.3

License

UNLICENSED

Unpacked Size

5.69 MB

Total Files

59

Last publish

Collaborators

  • johannhuang