Bundled card classes.
This commit is contained in:
parent
54912ad37e
commit
09b50d3b81
2223
dist/iwmlib.js
vendored
2223
dist/iwmlib.js
vendored
File diff suppressed because it is too large
Load Diff
@ -2,26 +2,27 @@ import App from './app.js'
|
|||||||
import Doctest from './doctest.js'
|
import Doctest from './doctest.js'
|
||||||
import Errors from './errors.js'
|
import Errors from './errors.js'
|
||||||
import Events from './events.js'
|
import Events from './events.js'
|
||||||
import {DOMFlip, DOMFlippable, CardLoader, PDFLoader, ImageLoader, FrameLoader, HTMLLoader} from './flippable.js'
|
import { DOMFlip, DOMFlippable, CardLoader, PDFLoader, ImageLoader, FrameLoader, HTMLLoader } from './flippable.js'
|
||||||
import Index from './index.js'
|
import Index from './index.js'
|
||||||
import Interface from './interface.js'
|
import Interface from './interface.js'
|
||||||
import Logging from './logging.js'
|
import Logging from './logging.js'
|
||||||
import Poppable from './poppable.js'
|
import Poppable from './poppable.js'
|
||||||
import PopupMenu from './popupmenu.js'
|
import PopupMenu from './popupmenu.js'
|
||||||
import Popup from './popup.js'
|
import Popup from './popup.js'
|
||||||
import {IApp} from './app.js'
|
import { IApp } from './app.js'
|
||||||
import {Capabilities, CapabilitiesTests} from './capabilities.js'
|
import { Capabilities, CapabilitiesTests } from './capabilities.js'
|
||||||
import {EventRecorder} from './events.js'
|
import { EventRecorder } from './events.js'
|
||||||
import {FrameContainer, FrameTarget} from './frames.js'
|
import { FrameContainer, FrameTarget } from './frames.js'
|
||||||
import {Inspect} from './inspect.js'
|
import { Inspect } from './inspect.js'
|
||||||
import {PointMap, InteractionPoints, Interaction, IInteractionTarget, InteractionDelta, InteractionMapper, InteractionDelegate, IInteractionMapperTarget} from './interaction.js'
|
import { PointMap, InteractionPoints, Interaction, IInteractionTarget, InteractionDelta, InteractionMapper, InteractionDelegate, IInteractionMapperTarget } from './interaction.js'
|
||||||
import {ITapDelegate, ResizeEvent, DOMScatterContainer, AbstractScatter, DOMScatter, ScatterEvent, BaseEvent} from './scatter.js'
|
import { ITapDelegate, ResizeEvent, DOMScatterContainer, AbstractScatter, DOMScatter, ScatterEvent, BaseEvent } from './scatter.js'
|
||||||
import {Cycle, Colors, Elements, Angle, Dates, Points, Polygon, Rect, Sets, Strings, isEmpty, getId, lerp, debounce, randomInt, randomFloat, LowPassFilter} from './utils.js'
|
import { Cycle, Colors, Elements, Angle, Dates, Points, Polygon, Rect, Sets, Strings, isEmpty, getId, lerp, debounce, randomInt, randomFloat, LowPassFilter } from './utils.js'
|
||||||
import UITest from './uitest.js'
|
import UITest from './uitest.js'
|
||||||
|
|
||||||
import {CardWrapper} from './card/wrapper.js'
|
import CardWrapper from './card/wrapper.js'
|
||||||
import {Highlight} from './card/highlight.js'
|
import Highlight from './card/highlight.js'
|
||||||
|
import Card from './card/card.js'
|
||||||
|
import Theme from './card/theme.js'
|
||||||
|
|
||||||
/* Needed to ensure that rollup.js includes class definitions and the classes
|
/* Needed to ensure that rollup.js includes class definitions and the classes
|
||||||
are visible inside doctests.
|
are visible inside doctests.
|
||||||
@ -88,4 +89,6 @@ window.randomInt = randomInt
|
|||||||
window.randomFloat = randomFloat
|
window.randomFloat = randomFloat
|
||||||
|
|
||||||
window.CardWrapper = CardWrapper
|
window.CardWrapper = CardWrapper
|
||||||
window.Highlight = Highlight
|
window.Card = Card
|
||||||
|
window.Highlight = Highlight
|
||||||
|
window.Theme = Theme
|
||||||
|
@ -29,7 +29,7 @@ const enableNearestNeighborTaps = false
|
|||||||
*
|
*
|
||||||
* The class is used as a namespace and should never called with new.
|
* The class is used as a namespace and should never called with new.
|
||||||
*/
|
*/
|
||||||
class Card {
|
export default class Card {
|
||||||
|
|
||||||
static setup(context, modules = []) {
|
static setup(context, modules = []) {
|
||||||
console.log("Setup Card...", modules)
|
console.log("Setup Card...", modules)
|
||||||
|
@ -30,7 +30,7 @@ function round(value) {
|
|||||||
* @class Highlight
|
* @class Highlight
|
||||||
* @extends {Object}
|
* @extends {Object}
|
||||||
*/
|
*/
|
||||||
export class Highlight extends Object {
|
export default class Highlight extends Object {
|
||||||
|
|
||||||
static disableAnimations() {
|
static disableAnimations() {
|
||||||
_HighlightEnabled = false
|
_HighlightEnabled = false
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* @class Theme
|
* @class Theme
|
||||||
*/
|
*/
|
||||||
class Theme {
|
export default class Theme {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads a config file and parses it to JSON.
|
* Loads a config file and parses it to JSON.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
import Events from '../events.js'
|
import Events from '../events.js'
|
||||||
import { Points } from '../utils.js'
|
import { Points } from '../utils.js'
|
||||||
|
|
||||||
export class CardWrapper extends Object {
|
export default class CardWrapper extends Object {
|
||||||
|
|
||||||
constructor(domNode, { triggerSVGClicks = true, allowClickDistance = 44 } = {}) {
|
constructor(domNode, { triggerSVGClicks = true, allowClickDistance = 44 } = {}) {
|
||||||
super()
|
super()
|
||||||
|
Loading…
Reference in New Issue
Block a user