Skip to content
Snippets Groups Projects
Select Git revision
  • 5d981b17a9c42b8d4c25f8d42b3f74dfce5b1a02
  • mui5-annotation-on-video-stable default
  • get_setter_canvasSizeInformations
  • fix-error-div-into-p
  • annotation-on-video-v2
  • detached
  • annotation-on-video-r17
  • mui5
  • mui5-react-18
  • jacob-test
  • annotation-on-video protected
  • master
  • test-antoinev1
  • 20-fetch-thumbnail-on-annotation
  • add-research-field
  • Save
  • add-plugin
  • 14-wip-no-seek-to
  • 14-bug-on-video-time-control
  • 9_wip_videotests
  • _upgrade_material_ui
  • latest-tetras-16
  • v3.3.0
  • v3.2.0
  • v3.1.1
  • v3.1.0
  • v3.0.0
  • v3.0.0-rc.7
  • v3.0.0-rc.6
  • v3.0.0-rc.5
  • v3.0.0-rc.4
  • v3.0.0-rc.3
  • v3.0.0-rc.2
  • v3.0.0-rc.1
  • v3.0.0-beta.10
  • v3.0.0-beta.9
  • v3.0.0-beta.8
  • v3.0.0-beta.7
  • v3.0.0-beta.6
  • v3.0.0-beta.5
  • v3.0.0-beta.3
41 results

WindowSideBarCanvasPanel.js

Blame
  • index.js 1.53 KiB
    import mirador from 'mirador/dist/es/src/index';
    import annotationPlugins from '../../src';
    import LocalStorageAdapter from '../../src/LocalStorageAdapter';
    import AnnototAdapter from '../../src/AnnototAdapter';
    
    const endpointUrl = 'http://127.0.0.1:3000/annotations';
    const config = {
      annotation: {
        adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`),
        // adapter: (canvasId) => new AnnototAdapter(canvasId, endpointUrl),
        exportLocalStorageAnnotations: false, // display annotation JSON export button
      },
      catalog: [
        { manifestId: 'https://files.tetras-libre.fr/manifests/re_walden_cut.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/jf_peyret_re_walden.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/test_markeas_manifest.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/installation_fresnoy_manifest.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/sceno_avignon_manifest.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/walden_nouvel_manifest.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/walden_nouvel2_manifest.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/score_manifest.json' },
        { manifestId: 'https://files.tetras-libre.fr/manifests/program_manifest.json' },
      ],
      debugMode: true,
      id: 'demo',
      window: {
        defaultSideBarPanel: 'annotations',
        sideBarOpenByDefault: true,
      },
      windows: [
      ],
    };
    
    mirador.viewer(config, [...annotationPlugins]);