Browse Source

Bundled card classes.

obersalzberg
Uwe Oestermeier 1 year ago
parent
commit
09b50d3b81
6 changed files with 2152 additions and 108 deletions
  1. +2132
    -91
      dist/iwmlib.js
  2. +16
    -13
      lib/bundle.js
  3. +1
    -1
      lib/card/card.js
  4. +1
    -1
      lib/card/highlight.js
  5. +1
    -1
      lib/card/theme.js
  6. +1
    -1
      lib/card/wrapper.js

+ 2132
- 91
dist/iwmlib.js
File diff suppressed because it is too large
View File


+ 16
- 13
lib/bundle.js 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

+ 1
- 1
lib/card/card.js 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)

+ 1
- 1
lib/card/highlight.js 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

+ 1
- 1
lib/card/theme.js View File

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

+ 1
- 1
lib/card/wrapper.js 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()

Loading…
Cancel
Save