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
<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.
| Callable | Kind | Exact public signature | Parameter syntax |
|---|---|---|---|
QRCode.makeCode | global-member | function(a) | a |
QRCode.makeImage | global-member | function() | — |
QRCode.clear | global-member | function() | — |
| Member | Kind | Exact public declaration | Parameter syntax |
|---|---|---|---|
QRCode.makeCode | assigned-method | function(a) | a |
QRCode.makeImage | assigned-method | function() | — |
QRCode.clear | assigned-method | function() | — |
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
<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>
Related reference
No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.