Bundled card classes.

This commit is contained in:
Uwe Oestermeier 2019-07-16 09:27:48 +02:00
parent 54912ad37e
commit 09b50d3b81
6 changed files with 2152 additions and 108 deletions

2223
dist/iwmlib.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -2,26 +2,27 @@ import App from './app.js'
import Doctest from './doctest.js'
import Errors from './errors.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 Interface from './interface.js'
import Logging from './logging.js'
import Poppable from './poppable.js'
import PopupMenu from './popupmenu.js'
import Popup from './popup.js'
import {IApp} from './app.js'
import {Capabilities, CapabilitiesTests} from './capabilities.js'
import {EventRecorder} from './events.js'
import {FrameContainer, FrameTarget} from './frames.js'
import {Inspect} from './inspect.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 {Cycle, Colors, Elements, Angle, Dates, Points, Polygon, Rect, Sets, Strings, isEmpty, getId, lerp, debounce, randomInt, randomFloat, LowPassFilter} from './utils.js'
import { IApp } from './app.js'
import { Capabilities, CapabilitiesTests } from './capabilities.js'
import { EventRecorder } from './events.js'
import { FrameContainer, FrameTarget } from './frames.js'
import { Inspect } from './inspect.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 { 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 {CardWrapper} from './card/wrapper.js'
import {Highlight} from './card/highlight.js'
import CardWrapper from './card/wrapper.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
are visible inside doctests.
@ -88,4 +89,6 @@ window.randomInt = randomInt
window.randomFloat = randomFloat
window.CardWrapper = CardWrapper
window.Highlight = Highlight
window.Card = Card
window.Highlight = Highlight
window.Theme = Theme

View File

@ -29,7 +29,7 @@ const enableNearestNeighborTaps = false
*
* The class is used as a namespace and should never called with new.
*/
class Card {
export default class Card {
static setup(context, modules = []) {
console.log("Setup Card...", modules)

View File

@ -30,7 +30,7 @@ function round(value) {
* @class Highlight
* @extends {Object}
*/
export class Highlight extends Object {
export default class Highlight extends Object {
static disableAnimations() {
_HighlightEnabled = false

View File

@ -6,7 +6,7 @@
*
* @class Theme
*/
class Theme {
export default class Theme {
/**
* Loads a config file and parses it to JSON.

View File

@ -4,7 +4,7 @@
import Events from '../events.js'
import { Points } from '../utils.js'
export class CardWrapper extends Object {
export default class CardWrapper extends Object {
constructor(domNode, { triggerSVGClicks = true, allowClickDistance = 44 } = {}) {
super()