nozaki87 / iota-noz Goto Github PK
View Code? Open in Web Editor NEWLittel modification of IOTA (https://github.com/thaga/IOTA)
Littel modification of IOTA (https://github.com/thaga/IOTA)
【デモ】 実行デモがこちらにあります → http://thaga.github.io/IOTA/ 左上のボタンでTHETA画像選択(複数選択可)あるいはドラッグ&ドロップ(複数ドロップ可)すると ビューアとして使えます。 複数画像を見ている場合は、左右カーソルキー[←][→]で、画像を切り替えられます。 自分のwebページでTHETA画像を公開する例はこちら → http://thaga.github.io/IOTA/multi-sample.html iota.jsx.jsは、ページ内に"iota-canvas"というidのcanvas要素があるかどうかで動作が変わります。 存在する場合はブラウザ画面の中で一杯に広がってビューアになります。 "iota-canvas"が存在しない場合は、ページ内に存在しdata-theta-img属性を持つcanvas要素を探し出し、 それぞれにTHETA画像を表示します。 どちらのモードでも、ダブルクリックすると全画面モードになります。 Fキーを押すと投影方法が 通常⇔魚眼 と変わります。 【自分のwebページにIOTAを組み込む】 1. IOTAを追加 head要素の中かどこか、適当な所に <script src="http://thaga.github.io/IOTA/iota.jsx.js"></script> を置く。 github上のiota.jsx.jsはいつどう変化するか分からないので、自分の手元にコピーしておいて、 src="..."の部分もそちらを参照するよう変更しておく事をオススメ致します。 2. THETA画像を見るためのcanvas要素を追加 THETAの画像を置きたい場所に、 <canvas data-theta-img="??????.jpg" width="384" height="256"></canvas> を置く。 THETA画像のURLを、data-theta-img属性で指定してください。 サイズとは、まぁ、適当に、変更してください。 【iota.jsxからiota.jsx.jsを生成する】(iota.jsxを自分でいじくる人向け) コンパイルにはJSX( http://jsx.github.io/ )が必要です。 JSXをインストール後、 > jsx --disable-type-check --executable web --output iota.jsx.js iota.jsx でコンパイルできます。 --disable-type-checkが必要です。 【ライセンス?】 このディレクトリ内のソースは全てNYSL( http://www.kmonos.net/nysl/ )です。 煮るなり焼くなり好きにしてください。 以上
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.