Capability first · transport second

QRCode.min.js

Vendored QRCode generator for DOM, canvas, SVG, and image output.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
On this page

Overview

Vendored QRCode generator for DOM, canvas, SVG, and image output.

  • Artifact
    QRCode.min.js · classic-script
  • Classification
    vendor
  • Availability
    Browser vendor script
  • Normalization
    Vendor-native.

Import and lifecycle

HTML
<script src="/arcane/modules/QRCode.min.js"></script>

Classic-script load defines global QRCode. Construction and makeCode() render canvas/SVG/table/image DOM under the target; clear() removes rendered output.

Application-facing behavior: No ESM exports; global QRCode, makeCode(), makeImage(), clear(), CorrectLevel.

Protocol and host implementation

Classic script global + DOM/canvas/SVG This detail does not widen the application-facing API or grant authority.

Exports, signatures, parameters, and results

This artifact has no ESM bindings. Its public load, global, asset, or worker contract is listed below.

CallableKindExact public signatureParameter syntax
QRCode.makeCodeglobal-memberfunction(a)a
QRCode.makeImageglobal-memberfunction()
QRCode.clearglobal-memberfunction()
MemberKindExact public declarationParameter syntax
QRCode.makeCodeassigned-methodfunction(a)a
QRCode.makeImageassigned-methodfunction()
QRCode.clearassigned-methodfunction()

Parameter meanings and results

new QRCode(elementOrId,{text?,width=256,height=256,typeNumber=4,colorDark,colorLight,correctLevel=QRCode.CorrectLevel.H}); makeCode(text); makeImage(); clear(); no ESM exports.

Events, side effects, and errors

Source-literal CustomEvent dispatches

No source-literal CustomEvent dispatch is part of this artifact.

Lifecycle and event flow

This artifact has no additional documented lifecycle event flow.

Direct coded failures

This artifact directly assigns no stable coded failure.

Exported Error subclasses

This artifact exports no Error subclass.

Documented failure behavior

  • Vendor-native QR capacity, DOM, and canvas errors.

Availability and capabilities

Browser vendor script. Vendor-native.

None.

Load example

HTML
<div id="qr"></div>
<script src="/arcane/modules/QRCode.min.js"></script>
<script>
new QRCode(document.getElementById('qr'), {
    text:'https://example.com',
    width:128,
    height:128,
    correctLevel:QRCode.CorrectLevel.H
});
</script>

No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.