opal-js_wrap-three 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
+ "@babel/cli": "^7.16.0",
3
4
  "@babel/plugin-transform-runtime": "^7.16.5",
4
5
  "@babel/preset-env": "^7.16.5",
5
6
  "@rollup/plugin-babel": "^5.3.0",
data/rollup.config.js CHANGED
@@ -15,6 +15,7 @@ export default {
15
15
  "babelHelpers": "runtime",
16
16
  "presets": ["@babel/preset-env"],
17
17
  "compact" : false,
18
+ "targets": { "chrome": 38 },
18
19
  "plugins": [
19
20
  "@babel/plugin-transform-runtime"
20
21
  ]
data/src/three.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import * as Three from 'three';
1
+ import * as THREE from 'three';
2
2
 
3
- globalThis.Three = Three;
3
+ globalThis.THREE = globalThis.three = THREE;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-js_wrap-three
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - hmdne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-14 00:00:00.000000000 Z
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -40,8 +40,15 @@ files:
40
40
  - LICENSE.txt
41
41
  - README.md
42
42
  - Rakefile
43
+ - babel.config.json
43
44
  - bin/console
44
45
  - bin/setup
46
+ - examples/clipping_intersection/Gemfile
47
+ - examples/clipping_intersection/example.rb
48
+ - examples/clipping_intersection/run.sh
49
+ - examples/gltf_loader/Gemfile
50
+ - examples/gltf_loader/example.rb
51
+ - examples/gltf_loader/run.sh
45
52
  - examples/readme/Gemfile
46
53
  - examples/readme/example.rb
47
54
  - examples/readme/run.sh
@@ -70,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
77
  requirements:
71
78
  - - ">="
72
79
  - !ruby/object:Gem::Version
73
- version: 2.4.0
80
+ version: 2.6.0
74
81
  required_rubygems_version: !ruby/object:Gem::Requirement
75
82
  requirements:
76
83
  - - ">="