Skip to content

Commit 01206ac

Browse files
authored
Examples: Renamed external tag to community (#32232)
1 parent 0893385 commit 01206ac

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

examples/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
195195

196196
function createLink( file, tags ) {
197197

198-
const external = Array.isArray( tags ) && tags.includes( 'external' ) ? ' <span class="tag">external</span>' : '';
198+
const community = Array.isArray( tags ) && tags.includes( 'community' ) ? '<span class="tag">community</span>' : '';
199199

200200
let href = file + '.html';
201201

@@ -210,8 +210,9 @@ <h1><a href="https://threejs.org">three.js</a></h1>
210210
<a href="${ href }" target="viewer">
211211
<div class="cover">
212212
<img src="screenshots/${ file }.jpg" loading="lazy" width="400" />
213+
${ community }
213214
</div>
214-
<div class="title">${ getName( file ) }${ external }</div>
215+
<div class="title">${ getName( file ) }</div>
215216
</a>
216217
</div>
217218
`;

examples/tags.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"misc_controls_orbit": [ "rotation" ],
66
"misc_controls_trackball": [ "rotation" ],
77
"misc_controls_transform": [ "scale", "rotate", "translate" ],
8-
"misc_raycaster_helper": [ "external" ],
8+
"misc_raycaster_helper": [ "community" ],
99
"physics_ammo_cloth": [ "integration" ],
10-
"physics_jolt_instancing": [ "external" ],
11-
"physics_rapier_instancing": [ "external" ],
12-
"physics_rapier_basic": [ "external" ],
13-
"physics_rapier_joints": [ "external" ],
14-
"physics_rapier_character_controller": [ "external" ],
15-
"physics_rapier_vehicle_controller": [ "external" ],
16-
"webgl_batch_lod_bvh": [ "external", "accelerate", "performance", "extension", "plugin", "library", "three.ez" ],
10+
"physics_jolt_instancing": [ "community" ],
11+
"physics_rapier_instancing": [ "community" ],
12+
"physics_rapier_basic": [ "community" ],
13+
"physics_rapier_joints": [ "community" ],
14+
"physics_rapier_character_controller": [ "community" ],
15+
"physics_rapier_vehicle_controller": [ "community" ],
16+
"webgl_batch_lod_bvh": [ "community", "accelerate", "performance", "extension", "plugin", "library", "three.ez" ],
1717
"webgl_clipping": [ "solid" ],
1818
"webgl_clipping_advanced": [ "solid" ],
1919
"webgl_clipping_intersection": [ "solid" ],
@@ -23,7 +23,7 @@
2323
"webgl_framebuffer_texture": [ "renderTarget" ],
2424
"webgl_geometries": [ "geometry" ],
2525
"webgl_geometry_colors_lookuptable": [ "vertex" ],
26-
"webgl_geometry_csg": [ "external", "csg", "bvh", "constructive", "solid", "geometry", "games", "level" ],
26+
"webgl_geometry_csg": [ "community", "csg", "bvh", "constructive", "solid", "geometry", "games", "level" ],
2727
"webgl_geometry_nurbs": [ "curve", "surface" ],
2828
"webgl_geometry_spline_editor": [ "curve" ],
2929
"webgl_geometry_terrain": [ "fog" ],
@@ -45,14 +45,14 @@
4545
"webgl_lights_pointlights": [ "multiple" ],
4646
"webgl_lines_fat": [ "gpu", "stats", "panel" ],
4747
"webgl_lines_fat_raycasting": [ "gpu", "stats", "panel", "raycast" ],
48-
"webgl_loader_gltf_animation_pointer": [ "external", "animation", "gltf" ],
49-
"webgl_loader_3dtiles": [ "external", "3dtiles", "3d-tiles", "maps", "tiles", "globe", "earth", "cesium" ],
48+
"webgl_loader_gltf_animation_pointer": [ "community", "animation", "gltf" ],
49+
"webgl_loader_3dtiles": [ "community", "3dtiles", "3d-tiles", "maps", "tiles", "globe", "earth", "cesium" ],
5050
"webgl_loader_gltf_dispersion": [ "transmission" ],
51-
"webgl_loader_gltf_progressive_lod": [ "external", "performance", "plugin", "library", "level", "details" ],
52-
"webgl_loader_ifc": [ "external" ],
51+
"webgl_loader_gltf_progressive_lod": [ "community", "performance", "plugin", "library", "level", "details" ],
52+
"webgl_loader_ifc": [ "community" ],
5353
"webgl_loader_ldraw": [ "lego" ],
5454
"webgl_loader_pdb": [ "molecules", "css2d" ],
55-
"webgl_loader_texture_lottie": [ "external" ],
55+
"webgl_loader_texture_lottie": [ "community" ],
5656
"webgl_loader_texture_ultrahdr": [ "hdr", "jpg", "ultrahdr" ],
5757
"webgl_loader_ttf": [ "text", "font" ],
5858
"webgl_lod": [ "level", "details" ],
@@ -73,9 +73,9 @@
7373
"webgl_math_orientation_transform": [ "rotation" ],
7474
"webgl_mirror": [ "reflection" ],
7575
"webgl_portal": [ "frameCorners", "renderTarget" ],
76-
"webgl_modifier_subdivision": [ "external", "community", "smooth" ],
76+
"webgl_modifier_subdivision": [ "community", "smooth" ],
7777
"webgl_morphtargets_horse": [ "animation" ],
78-
"webgl_morphtargets_webcam": [ "external" ],
78+
"webgl_morphtargets_webcam": [ "community" ],
7979
"webgl_multiple_elements": [ "differential equations", "physics" ],
8080
"webgl_multiple_elements_text": [ "font" ],
8181
"webgl_panorama_cube": [ "envmap" ],
@@ -110,9 +110,9 @@
110110
"webgl_postprocessing_unreal_bloom_selective": [ "glow" ],
111111
"webgl_postprocessing_3dlut": [ "color grading" ],
112112
"webgl_materials_modified": [ "onBeforeCompile" ],
113-
"webgl_raycaster_bvh": [ "external", "query", "bounds", "tree", "accelerate", "performance", "community", "extension", "plugin", "library", "three-mesh-bvh" ],
114-
"webgl_renderer_pathtracer": [ "external", "raytracing", "pathtracing", "library", "plugin", "extension", "community", "three-gpu-pathtracer", "three-mesh-bvh" ],
115-
"webgpu_compute_particles_snow": [ "external", "webgpu", "stats-gl" ],
113+
"webgl_raycaster_bvh": [ "community", "query", "bounds", "tree", "accelerate", "performance", "extension", "plugin", "library", "three-mesh-bvh" ],
114+
"webgl_renderer_pathtracer": [ "community", "raytracing", "pathtracing", "library", "plugin", "extension", "three-gpu-pathtracer", "three-mesh-bvh" ],
115+
"webgpu_compute_particles_snow": [ "community", "webgpu", "stats-gl" ],
116116
"webgl_shadowmap_csm": [ "cascade" ],
117117
"webgl_shadowmap_pcss": [ "soft" ],
118118
"webgl_simple_gi": [ "global illumination" ],

files/main.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,11 @@ iframe#viewer {
591591
}
592592

593593
.card .tag {
594+
position: absolute;
595+
top: 8px;
596+
right: 8px;
594597
background-color: var(--background-color);
595598
color: var(--color-blue);
596-
margin-left: 6px;
597599
padding: 1px 6px 2px;
598600
border-radius: 2px;
599601
font-size: calc(var(--font-size) - 2px);

0 commit comments

Comments
 (0)