Catalog npm
Back to packageRELEASE DETAILS

1.0.8

npm

3d-word-rain

3d word rain

3dwordrain文字雨黑客帝国
Published3 Jun 2019
Direct dependencies17
Transitive dependenciesNot calculated

README

Current package documentation

3d-word-rain

made by threejs

  • Hold down the left mouse button and drag to rotate. The center of rotation is the center of the text rain
  • Mouse wheel control camera's movement
  • the main body of the text rain is 25 * 25 * 25 text geometries, so maybe you can see the edge of the rain
  • To run the source file, you can run it through http-server ,and run gulp meanwhile(to convert node - > browser es5)
  • the bundle.js is not be uglified, it's really a big file
  • Maybe it's a little incongruous. If you are good at UI design, please tell me how to adjust the style~~

cmd:

npm i 3d-word-rain

js:

import by npm

const wordRain = require('3d-word-rain')
wordRain.rain('path/to/font.json')

if you dont know what's the font.json file, you can see /fonts/Arial_Bold.json in the node_modules, and copy it to a static file to use by url(that you can request by a browser), must be a json file, not ttf/woff file! it can be searched by google or 百度.

import by script tag

<script src="dist/js/bundle.js"></script>
<script>
    rain('path/to/font.json')
</script>

import 2d version by script tag

<script src="dist/js/bundle2.js"></script>
<script>
    rain()
</script>

demo image

3d-word-rain

3d word rain

2d-word-rain

2d word rain

changelog

1.08: 
	now you can assign a element as a container, the default container is document.body.
	use it like this way.
	
	rain('path/to/font.json', rootElement)
	
1.09:
    add mobile end support and exposing some attributes as following:
    
        - rain.scene        # for get the scene of 3d-word-rain
        - rain.renderer     # for get rendererElement
        - rain.cameraMaster # for controling the movement of camera
        - rain.stopFlag     # for checking whether it is animating or not
    
    add start function and stop function.
    use rain.stop() to stop animating, use rain.start() to restart animating.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 17

Native requirements
17 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
three
Environment
{
  "local_name": "three",
  "alias": false,
  "peer_metadata": null
}
^0.99.0runtime
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.2.2development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.2.3development
babel-plugin-transform-runtime
Environment
{
  "local_name": "babel-plugin-transform-runtime",
  "alias": false,
  "peer_metadata": null
}
^6.23.0development
babel-preset-env
Environment
{
  "local_name": "babel-preset-env",
  "alias": false,
  "peer_metadata": null
}
^1.7.0development
browserify
Environment
{
  "local_name": "browserify",
  "alias": false,
  "peer_metadata": null
}
^16.2.3development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^5.11.1development
eslint-config-standard
Environment
{
  "local_name": "eslint-config-standard",
  "alias": false,
  "peer_metadata": null
}
^12.0.0development
eslint-plugin-html
Environment
{
  "local_name": "eslint-plugin-html",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
eslint-plugin-import
Environment
{
  "local_name": "eslint-plugin-import",
  "alias": false,
  "peer_metadata": null
}
^2.14.0development
eslint-plugin-node
Environment
{
  "local_name": "eslint-plugin-node",
  "alias": false,
  "peer_metadata": null
}
^8.0.0development
eslint-plugin-promise
Environment
{
  "local_name": "eslint-plugin-promise",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
eslint-plugin-standard
Environment
{
  "local_name": "eslint-plugin-standard",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
gulp-babel
Environment
{
  "local_name": "gulp-babel",
  "alias": false,
  "peer_metadata": null
}
^8.0.0development
gulp-watch
Environment
{
  "local_name": "gulp-watch",
  "alias": false,
  "peer_metadata": null
}
^5.0.1development
vinyl-source-stream
Environment
{
  "local_name": "vinyl-source-stream",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-KGMRKy2LFqAHiXTSWvx8RFG19qIehdxCXPeUCc2u2mVTbtklnbLIsuP5He79Ls3Bf/lER6ZSoZmhsa22HqeM9Q==",
  "shasum": "f00666f3adda316500eddf35564d985af2d3ef65",
  "tarball": "https://registry.npmjs.org/3d-word-rain/-/3d-word-rain-1.0.8.tgz",
  "fileCount": 19,
  "unpackedSize": 2700429,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9MC4CRA9TVsSAnZWagAAmQMP/1WW12gleQ5v2RLOweT9\nalQ/Zfs8T6+6vALWii5CbGLZeZACoTm0fzHFqt/+8NcYvV27SrhY0qFgKO+2\n54c2Y+360feiidBWgvE3Xrl81cQ6bogCeY/qBtj3yjU8EYjGIOB7lPyMdXge\nVr2E67esz5W5JHirGTSJ/b5PsFSKc+lhZ/b1tSI+W1gCzkx7CcCP1xGqiZAl\nQ+Ppa4HDiDKXRGT7qixtbn4ml3vGg50URR3PTeEm8yo1JzzYHw4F6ChY6xVB\naBj8/FeqCHvaNgZMykApQY/0qFz6H2CW8bOJ+x1okINiDW7upnQMT83WexRQ\nxjrHSWq8Ku7UaTwpfUVssvOn0rQnAJq25EMo7fxFGKu0cpgNvVR9K9Cg5pkb\noNcZbhOgUn5u0TZMWu8M2RCZ5XPwRoS2vXi+brLUJA4KtYSKcYoBZ8rMUnZC\nLgazMHxhVdUbs+U2fE2tBhHmxN7FZSTDbvuZkHDFpLoJIUyFZZvgOvxs00YR\nw8fI+25UWf6T5/i9F0Y//Ed5eXBhahV/fSLh0RQB2D0fnss4vs+0oe77qZQH\nGqpbhHWMn3fTFnuOyRmHz3ZZtatbwH5U3s/ea7vWOGm91OACPMDkUuQSVjZH\nnwewI7Ng21EiIxVTfveH7S1js1l+p9ma5A1QllYIGMG5cAIx1wUrPX5WkoI7\nGpdg\r\n=6EhB\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIHjwJLNsYlOXjnVbzdBFLav6fE9XG1GVdRTA2qfNEhGuAiBTVnl10ZNaetiYQ/HGIzc390q/gpbP7R2vNueEp0rYGw=="
    }
  ]
}

Repository

PENDING
stupppid/3d-word-rain

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9163f58b623bc61cc122f21c19bcc6a75cd0d5c2bcdd67956da7364c3cf9243b

Other collected versions

1.0.96 Jun1.0.730 Dec1.0.628 Dec1.0.528 Dec1.0.428 Dec1.0.328 DecView all collected versions →