Skip to content

Commit

Permalink
Examples: Remove import maps polyfill (#26836)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofugaro committed Sep 26, 2023
1 parent 1a67ba7 commit 8d241a6
Show file tree
Hide file tree
Showing 826 changed files with 1,442 additions and 5,828 deletions.
4 changes: 0 additions & 4 deletions docs/manual/ar/introduction/Installation.html
Expand Up @@ -85,8 +85,6 @@ <h2>التثبيت من CDN أو استضافة ثابتة</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down Expand Up @@ -126,8 +124,6 @@ <h2>أمثلة</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
4 changes: 1 addition & 3 deletions docs/manual/en/introduction/Installation.html
Expand Up @@ -149,8 +149,6 @@ <h3>Development</h3>
We imported code from 'three' (an npm package) in <i>main.js</i>, and web browsers don't know what that means. In <i>index.html</i> we'll need to add an [link:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap import map] defining where to get the package. Put the code below inside the <i>&lt;head>&lt/head></i> tag, after the styles.
</p>
<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand All @@ -161,7 +159,7 @@ <h3>Development</h3>
&lt;/script>
</code>
<p>
Don't forget to replace <i>&lt;version&gt;</i> with an actual version of three.js, like <i>"v0.149.0"</i>. The most recent version can be found on the [link:https://www.npmjs.com/package/three?activeTab=versions npm version list]. Because import maps are [link:https://caniuse.com/import-maps not yet supported] by some major browsers, we include the polyfill <i>es-module-shims.js</i>.
Don't forget to replace <i>&lt;version&gt;</i> with an actual version of three.js, like <i>"v0.149.0"</i>. The most recent version can be found on the [link:https://www.npmjs.com/package/three?activeTab=versions npm version list].
</p>
</li>
<li>
Expand Down
8 changes: 0 additions & 8 deletions docs/manual/fr/introduction/Installation.html
Expand Up @@ -68,8 +68,6 @@ <h2>Installer depuis un CDN ou un hébergement statique</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand All @@ -87,10 +85,6 @@ <h2>Installer depuis un CDN ou un hébergement statique</h2>
&lt;/script>
</code>

<p>
Étant donné que les Import maps ne sont pas encore supportées par tous les navigateurs, il est nécessaire d'ajouter le polyfill *es-module-shims.js*.
</p>

<h2>Addons</h2>

<p>
Expand All @@ -113,8 +107,6 @@ <h2>Addons</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
8 changes: 0 additions & 8 deletions docs/manual/it/introduction/Installation.html
Expand Up @@ -69,8 +69,6 @@ <h2>Installazione da CDN o hosting statico</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand All @@ -88,10 +86,6 @@ <h2>Installazione da CDN o hosting statico</h2>
&lt;/script>
</code>

<p>
Poiché le mappe di importazione non sono ancora supportate da tutti i browser, è necessario aggiungere il polyfill *es-module-shims.js*.
</p>

<h2>Addons</h2>

<p>
Expand All @@ -113,8 +107,6 @@ <h2>Addons</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
4 changes: 0 additions & 4 deletions docs/manual/ja/introduction/Installation.html
Expand Up @@ -69,8 +69,6 @@ <h2>CDNや静的ホスティングからインストールをする</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down Expand Up @@ -110,8 +108,6 @@ <h2>Addons</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
4 changes: 0 additions & 4 deletions docs/manual/ko/introduction/Installation.html
Expand Up @@ -77,8 +77,6 @@ <h2>static hosting 및 CDN을 통한 설치</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down Expand Up @@ -122,8 +120,6 @@ <h2>Addons</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
8 changes: 0 additions & 8 deletions docs/manual/pt-br/introduction/Installation.html
Expand Up @@ -53,8 +53,6 @@ <h2>Instalar através de CDN ou hospedagem estática</h2>
<p>A biblioteca three.js pode ser utilizada sem nenhum sistema de build, seja fazendo o upload dos arquivos para seu próprio servidor web ou usando um CDN existente. Como a biblioteca depende dos ES modules, qualquer script que faça referência a eles deve usar <em>type="module"</em> como mostrado abaixo. Também é necessário definir um mapa de importação que resolva a importação direta do `three`.</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand All @@ -76,10 +74,6 @@ <h2>Instalar através de CDN ou hospedagem estática</h2>
Nem todos os recursos disponíveis são acessados diretamente através do módulo <em>three</em>. Outras partes populares da biblioteca - tais como controls, loaders e post-processing effects - devem ser importados da subpasta [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm examples/jsm]. Para aprender mais, veja o <em>Exemplo</em> abaixo.
</p>

<p>
Como os mapas de importação ainda não são suportados por todos os navegadores, é necessário adicionar o polyfill *es-module-shims.js*.
</p>

<h2>Addons</h2>

<p>
Expand All @@ -99,8 +93,6 @@ <h2>Addons</h2>
<p>Se o three.js foi instalado de um CDN, use o mesmo CDN para instalar outros componentes:</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
8 changes: 0 additions & 8 deletions docs/manual/ru/introduction/Installation.html
Expand Up @@ -92,8 +92,6 @@ <h2>Установка с CDN или статического хостинга</
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand All @@ -111,10 +109,6 @@ <h2>Установка с CDN или статического хостинга</
&lt;/script>
</code>

<p>
Поскольку импорт карт еще не поддерживается всеми браузерами, необходимо добавить полифил *es-module-shims.js*.
</p>

<h2>Дополнения</h2>

<p>
Expand Down Expand Up @@ -143,8 +137,6 @@ <h2>Дополнения</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
4 changes: 0 additions & 4 deletions docs/manual/zh/introduction/Installation.html
Expand Up @@ -67,8 +67,6 @@ <h2>从CDN或静态主机安装</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down Expand Up @@ -108,8 +106,6 @@ <h2>Addons</h2>
</p>

<code>
&lt;script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js">&lt;/script>

&lt;script type="importmap">
{
"imports": {
Expand Down
5 changes: 0 additions & 5 deletions docs/scenes/bones-browser.html
Expand Up @@ -22,11 +22,6 @@
</style>
</head>
<body>

<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>

<script type="importmap">
{
"imports": {
Expand Down
5 changes: 0 additions & 5 deletions docs/scenes/ccdiksolver-browser.html
Expand Up @@ -22,11 +22,6 @@
</style>
</head>
<body>

<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>

<script type="importmap">
{
"imports": {
Expand Down
7 changes: 1 addition & 6 deletions docs/scenes/geometry-browser.html
Expand Up @@ -22,11 +22,6 @@
</style>
</head>
<body>

<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>

<script type="importmap">
{
"imports": {
Expand Down Expand Up @@ -758,7 +753,7 @@
lights[ 0 ] = new DirectionalLight( 0xffffff, 3 );
lights[ 1 ] = new DirectionalLight( 0xffffff, 3 );
lights[ 2 ] = new DirectionalLight( 0xffffff, 3 );

lights[ 0 ].position.set( 0, 200, 0 );
lights[ 1 ].position.set( 100, 200, 100 );
lights[ 2 ].position.set( - 100, - 200, - 100 );
Expand Down
5 changes: 0 additions & 5 deletions docs/scenes/material-browser.html
Expand Up @@ -22,11 +22,6 @@
</style>
</head>
<body>

<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/es-module-shims@1.8.0/dist/es-module-shims.js"></script>

<script type="importmap">
{
"imports": {
Expand Down
4 changes: 0 additions & 4 deletions editor/index.html
Expand Up @@ -45,10 +45,6 @@
<script src="js/libs/tern-threejs/threejs.js"></script>
<script src="js/libs/signals.min.js"></script>

<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="js/libs/es-module-shims.js"></script>

<script type="importmap">
{
"imports": {
Expand Down

0 comments on commit 8d241a6

Please sign in to comment.