Skip to content

Instantly share code, notes, and snippets.



Last active Sep 21, 2020
What would you like to do?
Perspective Editing
license: apache-2.0
Copyright (c) 2017, the Perspective Authors.
This file is part of the Perspective library, distributed under the terms of
the Apache License 2.0. The full license can be found in the LICENSE file.
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<link rel='stylesheet' href="" is="custom-style">
perspective-viewer {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
<perspective-viewer editable>
const WORKER = window.perspective.worker();
function on_load() {
var el = document.getElementsByTagName('perspective-viewer')[0];
const table = WORKER.table(this.response);
window.addEventListener('WebComponentsReady', function() {
var xhr = new XMLHttpRequest();'GET', '', true);
xhr.responseType = "arraybuffer"
xhr.onload = on_load.bind(xhr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment