@threepipe/plugin-svg-renderer 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -2
- package/dist/BasicSVGRendererPlugin.d.ts +1 -1
- package/dist/BasicSVGRendererPlugin.d.ts.map +1 -1
- package/dist/ThreeSVGRendererPlugin.d.ts +1 -1
- package/dist/ThreeSVGRendererPlugin.d.ts.map +1 -1
- package/dist/dependencies.txt +78 -7
- package/dist/index.js +16334 -16364
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15818 -15875
- package/dist/index.mjs.map +1 -1
- package/dist/three-mesh-halfedge/core/Face.d.ts.map +1 -1
- package/dist/three-mesh-halfedge/core/Halfedge.d.ts.map +1 -1
- package/dist/three-mesh-halfedge/core/HalfedgeDS.d.ts.map +1 -1
- package/dist/three-mesh-halfedge/core/Vertex.d.ts +1 -1
- package/dist/three-mesh-halfedge/core/Vertex.d.ts.map +1 -1
- package/dist/three-mesh-halfedge/index.d.ts +1 -0
- package/dist/three-mesh-halfedge/operations/addEdge.d.ts +3 -3
- package/dist/three-mesh-halfedge/operations/addFace.d.ts +3 -3
- package/dist/three-mesh-halfedge/operations/addVertex.d.ts +3 -3
- package/dist/three-mesh-halfedge/operations/cutFace.d.ts +4 -4
- package/dist/three-mesh-halfedge/operations/removeEdge.d.ts +2 -2
- package/dist/three-mesh-halfedge/operations/removeFace.d.ts +2 -2
- package/dist/three-mesh-halfedge/operations/removeVertex.d.ts +2 -2
- package/dist/three-mesh-halfedge/operations/setFromGeometry.d.ts +2 -2
- package/dist/three-mesh-halfedge/operations/splitEdge.d.ts +4 -4
- package/dist/three-mesh-halfedge/setuptests.d.ts +2 -0
- package/dist/three-mesh-halfedge/utils/geometry.d.ts +2 -2
- package/dist/three-svg-renderer/SVGRenderer.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/SVGMesh.d.ts +6 -13
- package/dist/three-svg-renderer/core/SVGMesh.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/index.d.ts +3 -3
- package/dist/three-svg-renderer/core/svg/SVGDrawHandler.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/svg/passes/ChainPass.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/svg/passes/DrawPass.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/svg/passes/FillPass.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/svg/passes/SingularityPointPass.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/svg/passes/index.d.ts +4 -4
- package/dist/three-svg-renderer/core/viewmap/Chain.d.ts +1 -1
- package/dist/three-svg-renderer/core/viewmap/Chain.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/viewmap/Polygon.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/viewmap/ViewEdge.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/viewmap/ViewVertex.d.ts +3 -3
- package/dist/three-svg-renderer/core/viewmap/ViewVertex.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/viewmap/Viewmap.d.ts +1 -1
- package/dist/three-svg-renderer/core/viewmap/Viewmap.d.ts.map +1 -1
- package/dist/three-svg-renderer/core/viewmap/operations/assignPolygons.d.ts +2 -2
- package/dist/three-svg-renderer/core/viewmap/operations/computeChainsVisibility.d.ts +3 -3
- package/dist/three-svg-renderer/core/viewmap/operations/computeMeshIntersections.d.ts +2 -2
- package/dist/three-svg-renderer/core/viewmap/operations/createChains.d.ts +4 -4
- package/dist/three-svg-renderer/core/viewmap/operations/createViewVertex.d.ts +3 -3
- package/dist/three-svg-renderer/core/viewmap/operations/find2dSingularities.d.ts +1 -1
- package/dist/three-svg-renderer/core/viewmap/operations/find3dSingularities.d.ts +5 -5
- package/dist/three-svg-renderer/core/viewmap/operations/meshIntersectionCb.d.ts +3 -3
- package/dist/three-svg-renderer/core/viewmap/operations/setupEdges.d.ts +4 -4
- package/dist/three-svg-renderer/core/viewmap/operations/splitEdge.d.ts +4 -4
- package/dist/three-svg-renderer/index.d.ts +1 -1
- package/dist/three-svg-renderer/setuptests.d.ts +1 -0
- package/dist/three-svg-renderer/utils/buffergeometry.d.ts +1 -1
- package/dist/three-svg-renderer/utils/orientationtests.d.ts +2 -2
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +1 -1
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +4 -4
- package/docs/assets/style.css +18 -3
- package/docs/classes/BasicSVGRenderer.html +102 -3
- package/docs/classes/BasicSVGRendererPlugin.html +416 -8
- package/docs/classes/DrawPass.html +119 -10
- package/docs/classes/FillPass.html +147 -10
- package/docs/classes/SVGDrawHandler.html +104 -4
- package/docs/classes/SVGDrawInfo.html +74 -3
- package/docs/classes/SVGMesh.html +284 -8
- package/docs/classes/SVGRenderInfo.html +84 -3
- package/docs/classes/SVGRenderer.html +158 -13
- package/docs/classes/ThreeSVGRendererPlugin.html +576 -18
- package/docs/classes/Viewmap.html +168 -4
- package/docs/classes/ViewmapBuildInfo.html +91 -4
- package/docs/hierarchy.html +32 -1
- package/docs/index.html +38 -1
- package/docs/interfaces/FillPassOptions.html +93 -7
- package/docs/interfaces/SVGDrawOptions.html +54 -2
- package/docs/interfaces/SVGMeshOptions.html +54 -2
- package/docs/interfaces/SVGTexture.html +66 -5
- package/docs/interfaces/ViewmapOptions.html +69 -2
- package/package.json +2 -2
- package/src/ThreeSVGRendererPlugin.ts +2 -2
- package/src/three-svg-renderer/core/SVGMesh.ts +6 -14
- package/src/three-svg-renderer/core/viewmap/operations/computePolygons.ts +1 -1
- package/tsconfig.json +2 -2
|
@@ -1,2 +1,54 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SVGMeshOptions | Threepipe SVG Rendering Plugins</title><meta name="description" content="Documentation for Threepipe SVG Rendering Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"
|
|
2
|
-
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SVGMeshOptions | Threepipe SVG Rendering Plugins</title><meta name="description" content="Documentation for Threepipe SVG Rendering Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Threepipe SVG Rendering Plugins</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="" aria-current="page">SVGMeshOptions</a></li></ul>
|
|
12
|
+
<h1>Interface SVGMeshOptions</h1></div>
|
|
13
|
+
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">SVGMeshOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#bvhoptions">bvhOptions</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">BVHOptions</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources">
|
|
14
|
+
<ul>
|
|
15
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts#L25" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts:25</a></li></ul></aside>
|
|
16
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
17
|
+
<section class="tsd-panel tsd-index-panel">
|
|
18
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
19
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
20
|
+
<div class="tsd-accordion-details">
|
|
21
|
+
<section class="tsd-index-section">
|
|
22
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="properties">Properties<a href="#properties" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
23
|
+
<div class="tsd-index-list"><a href="#bvhoptions" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>bvh<wbr/>Options?</span></a>
|
|
24
|
+
</div></section></div></details></section></section>
|
|
25
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
26
|
+
<h2 class="tsd-anchor-link" id="properties-1">Properties<a href="#properties-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
27
|
+
<section>
|
|
28
|
+
<section class="tsd-panel tsd-member">
|
|
29
|
+
<h3 class="tsd-anchor-link" id="bvhoptions"><code class="tsd-tag">Optional</code><span>bvh<wbr/>Options</span><a href="#bvhoptions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
30
|
+
<div class="tsd-signature"><span class="tsd-kind-property">bvhOptions</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">BVHOptions</span></div><aside class="tsd-sources">
|
|
31
|
+
<ul>
|
|
32
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts#L26" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts:26</a></li></ul></aside></section></section></details></div>
|
|
33
|
+
<div class="col-sidebar">
|
|
34
|
+
<div class="page-menu">
|
|
35
|
+
<div class="tsd-navigation settings">
|
|
36
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
37
|
+
<h3>Settings</h3></summary>
|
|
38
|
+
<div class="tsd-accordion-details">
|
|
39
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
40
|
+
<ul id="tsd-filter-options">
|
|
41
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
42
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div>
|
|
43
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
44
|
+
<details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
45
|
+
<h3>On This Page</h3></summary>
|
|
46
|
+
<div class="tsd-accordion-details">
|
|
47
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary>
|
|
48
|
+
<div><a href="#bvhoptions"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>bvh<wbr/>Options</span></a></div></details></div></details></div>
|
|
49
|
+
<div class="site-menu">
|
|
50
|
+
<nav class="tsd-navigation"><a href="../index.html">Threepipe SVG Rendering Plugins</a>
|
|
51
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
52
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
53
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
54
|
+
<div class="overlay"></div></body></html>
|
|
@@ -1,7 +1,68 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SVGTexture | Threepipe SVG Rendering Plugins</title><meta name="description" content="Documentation for Threepipe SVG Rendering Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SVGTexture | Threepipe SVG Rendering Plugins</title><meta name="description" content="Documentation for Threepipe SVG Rendering Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Threepipe SVG Rendering Plugins</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="" aria-current="page">SVGTexture</a></li></ul>
|
|
12
|
+
<h1>Interface SVGTexture</h1></div>
|
|
13
|
+
<section class="tsd-panel tsd-comment">
|
|
14
|
+
<div class="tsd-comment tsd-typography"><p>SVGTexture allows to add a texture to a SVGMesh.
|
|
2
15
|
Raster image (.jpeg, .png) or vector graphics (.svg) are supported.</p>
|
|
3
|
-
</div></section
|
|
16
|
+
</div></section>
|
|
17
|
+
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">SVGTexture</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#name">name</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#url">url</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources">
|
|
18
|
+
<ul>
|
|
19
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts#L33" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts:33</a></li></ul></aside>
|
|
20
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
21
|
+
<section class="tsd-panel tsd-index-panel">
|
|
22
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
23
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
24
|
+
<div class="tsd-accordion-details">
|
|
25
|
+
<section class="tsd-index-section">
|
|
26
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="properties">Properties<a href="#properties" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
27
|
+
<div class="tsd-index-list"><a href="#name" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>name</span></a>
|
|
4
28
|
<a href="#url" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>url</span></a>
|
|
5
|
-
</div></section></div></details></section></section
|
|
6
|
-
|
|
7
|
-
|
|
29
|
+
</div></section></div></details></section></section>
|
|
30
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
31
|
+
<h2 class="tsd-anchor-link" id="properties-1">Properties<a href="#properties-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
32
|
+
<section>
|
|
33
|
+
<section class="tsd-panel tsd-member">
|
|
34
|
+
<h3 class="tsd-anchor-link" id="name"><span>name</span><a href="#name" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
35
|
+
<div class="tsd-signature"><span class="tsd-kind-property">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
36
|
+
<div class="tsd-comment tsd-typography"><p>Name of the texture</p>
|
|
37
|
+
</div><aside class="tsd-sources">
|
|
38
|
+
<ul>
|
|
39
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts#L37" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts:37</a></li></ul></aside></section>
|
|
40
|
+
<section class="tsd-panel tsd-member">
|
|
41
|
+
<h3 class="tsd-anchor-link" id="url"><span>url</span><a href="#url" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
42
|
+
<div class="tsd-signature"><span class="tsd-kind-property">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
43
|
+
<div class="tsd-comment tsd-typography"><p>DataUrl to the image and vector graphics texture</p>
|
|
44
|
+
</div><aside class="tsd-sources">
|
|
45
|
+
<ul>
|
|
46
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts#L41" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/SVGMesh.ts:41</a></li></ul></aside></section></section></details></div>
|
|
47
|
+
<div class="col-sidebar">
|
|
48
|
+
<div class="page-menu">
|
|
49
|
+
<div class="tsd-navigation settings">
|
|
50
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
51
|
+
<h3>Settings</h3></summary>
|
|
52
|
+
<div class="tsd-accordion-details">
|
|
53
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
54
|
+
<ul id="tsd-filter-options">
|
|
55
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
56
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div>
|
|
57
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
58
|
+
<details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
59
|
+
<h3>On This Page</h3></summary>
|
|
60
|
+
<div class="tsd-accordion-details">
|
|
61
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary>
|
|
62
|
+
<div><a href="#name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>name</span></a><a href="#url"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>url</span></a></div></details></div></details></div>
|
|
63
|
+
<div class="site-menu">
|
|
64
|
+
<nav class="tsd-navigation"><a href="../index.html">Threepipe SVG Rendering Plugins</a>
|
|
65
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
66
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
67
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
68
|
+
<div class="overlay"></div></body></html>
|
|
@@ -1,5 +1,72 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ViewmapOptions | Threepipe SVG Rendering Plugins</title><meta name="description" content="Documentation for Threepipe SVG Rendering Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ViewmapOptions | Threepipe SVG Rendering Plugins</title><meta name="description" content="Documentation for Threepipe SVG Rendering Plugins"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Threepipe SVG Rendering Plugins</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="" aria-current="page">ViewmapOptions</a></li></ul>
|
|
12
|
+
<h1>Interface ViewmapOptions</h1></div>
|
|
13
|
+
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">ViewmapOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#creaseangle">creaseAngle</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">max</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">min</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#defaultmeshcolor">defaultMeshColor</a><span class="tsd-signature-symbol">?:</span> <a href="https://threejs.org/docs" class="tsd-signature-type external" target="_blank">ColorRepresentation</a><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#ignorevisibility">ignoreVisibility</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#updatemeshes">updateMeshes</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources">
|
|
14
|
+
<ul>
|
|
15
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts#L43" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts:43</a></li></ul></aside>
|
|
16
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
17
|
+
<section class="tsd-panel tsd-index-panel">
|
|
18
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
19
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
20
|
+
<div class="tsd-accordion-details">
|
|
21
|
+
<section class="tsd-index-section">
|
|
22
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="properties">Properties<a href="#properties" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
23
|
+
<div class="tsd-index-list"><a href="#creaseangle" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>crease<wbr/>Angle?</span></a>
|
|
2
24
|
<a href="#defaultmeshcolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>default<wbr/>Mesh<wbr/>Color?</span></a>
|
|
3
25
|
<a href="#ignorevisibility" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ignore<wbr/>Visibility?</span></a>
|
|
4
26
|
<a href="#updatemeshes" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>update<wbr/>Meshes?</span></a>
|
|
5
|
-
</div></section></div></details></section></section
|
|
27
|
+
</div></section></div></details></section></section>
|
|
28
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
29
|
+
<h2 class="tsd-anchor-link" id="properties-1">Properties<a href="#properties-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
30
|
+
<section>
|
|
31
|
+
<section class="tsd-panel tsd-member">
|
|
32
|
+
<h3 class="tsd-anchor-link" id="creaseangle"><code class="tsd-tag">Optional</code><span>crease<wbr/>Angle</span><a href="#creaseangle" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
33
|
+
<div class="tsd-signature"><span class="tsd-kind-property">creaseAngle</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">max</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">min</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources">
|
|
34
|
+
<ul>
|
|
35
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts#L47" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts:47</a></li></ul></aside></section>
|
|
36
|
+
<section class="tsd-panel tsd-member">
|
|
37
|
+
<h3 class="tsd-anchor-link" id="defaultmeshcolor"><code class="tsd-tag">Optional</code><span>default<wbr/>Mesh<wbr/>Color</span><a href="#defaultmeshcolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
38
|
+
<div class="tsd-signature"><span class="tsd-kind-property">defaultMeshColor</span><span class="tsd-signature-symbol">?:</span> <a href="https://threejs.org/docs" class="tsd-signature-type external" target="_blank">ColorRepresentation</a></div><aside class="tsd-sources">
|
|
39
|
+
<ul>
|
|
40
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts#L46" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts:46</a></li></ul></aside></section>
|
|
41
|
+
<section class="tsd-panel tsd-member">
|
|
42
|
+
<h3 class="tsd-anchor-link" id="ignorevisibility"><code class="tsd-tag">Optional</code><span>ignore<wbr/>Visibility</span><a href="#ignorevisibility" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
43
|
+
<div class="tsd-signature"><span class="tsd-kind-property">ignoreVisibility</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources">
|
|
44
|
+
<ul>
|
|
45
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts#L45" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts:45</a></li></ul></aside></section>
|
|
46
|
+
<section class="tsd-panel tsd-member">
|
|
47
|
+
<h3 class="tsd-anchor-link" id="updatemeshes"><code class="tsd-tag">Optional</code><span>update<wbr/>Meshes</span><a href="#updatemeshes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
48
|
+
<div class="tsd-signature"><span class="tsd-kind-property">updateMeshes</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources">
|
|
49
|
+
<ul>
|
|
50
|
+
<li>Defined in <a href="https://github.com/repalash/threepipe/blob/22e60ca1980038c64d4fb4661ac2b8dab0cb1b52/plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts#L44" class="external" target="_blank">plugins/svg-renderer/src/three-svg-renderer/core/viewmap/Viewmap.ts:44</a></li></ul></aside></section></section></details></div>
|
|
51
|
+
<div class="col-sidebar">
|
|
52
|
+
<div class="page-menu">
|
|
53
|
+
<div class="tsd-navigation settings">
|
|
54
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
55
|
+
<h3>Settings</h3></summary>
|
|
56
|
+
<div class="tsd-accordion-details">
|
|
57
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
58
|
+
<ul id="tsd-filter-options">
|
|
59
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
60
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div>
|
|
61
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
62
|
+
<details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
63
|
+
<h3>On This Page</h3></summary>
|
|
64
|
+
<div class="tsd-accordion-details">
|
|
65
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary>
|
|
66
|
+
<div><a href="#creaseangle"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>crease<wbr/>Angle</span></a><a href="#defaultmeshcolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>default<wbr/>Mesh<wbr/>Color</span></a><a href="#ignorevisibility"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ignore<wbr/>Visibility</span></a><a href="#updatemeshes"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>update<wbr/>Meshes</span></a></div></details></div></details></div>
|
|
67
|
+
<div class="site-menu">
|
|
68
|
+
<nav class="tsd-navigation"><a href="../index.html">Threepipe SVG Rendering Plugins</a>
|
|
69
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
70
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
71
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
72
|
+
<div class="overlay"></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threepipe/plugin-svg-renderer",
|
|
3
3
|
"description": "Plugins for SVG Rendering of 3d objects for Threepipe",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"dependencies": {},
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"threepipe": ">=0.1.0",
|
|
8
8
|
"@svgdotjs/svg.js": "^3.2.0",
|
|
9
|
-
"three-mesh-bvh": "^0.
|
|
9
|
+
"three-mesh-bvh": "^0.9.18"
|
|
10
10
|
},
|
|
11
11
|
"peerDependenciesMeta": {
|
|
12
12
|
"@svgdotjs/svg.js": {
|
|
@@ -200,7 +200,7 @@ export class ThreeSVGRendererPlugin extends AViewerPluginSync {
|
|
|
200
200
|
|
|
201
201
|
protected _onMeshDispose(ev: any) {
|
|
202
202
|
if (!ev.target) return
|
|
203
|
-
const mesh = ev.target as
|
|
203
|
+
const mesh = ev.target as IObject3D
|
|
204
204
|
const svgMesh = this._meshes.get(mesh.uuid)
|
|
205
205
|
if (!svgMesh) return
|
|
206
206
|
svgMesh.dispose()
|
|
@@ -210,7 +210,7 @@ export class ThreeSVGRendererPlugin extends AViewerPluginSync {
|
|
|
210
210
|
}
|
|
211
211
|
protected _onMeshUpdate(ev: any) {
|
|
212
212
|
if (!ev.target) return
|
|
213
|
-
const mesh = ev.target as
|
|
213
|
+
const mesh = ev.target as IObject3D
|
|
214
214
|
const svgMesh = this._meshes.get(mesh.uuid)
|
|
215
215
|
if (!svgMesh) return
|
|
216
216
|
svgMesh.updateObject()
|
|
@@ -14,18 +14,16 @@ import {Color, Material, Mesh, Vector3} from 'three';
|
|
|
14
14
|
import {HalfedgeDS} from '../../three-mesh-halfedge';
|
|
15
15
|
import {
|
|
16
16
|
acceleratedRaycast,
|
|
17
|
+
BVHOptions,
|
|
17
18
|
CENTER,
|
|
18
|
-
|
|
19
|
-
disposeBoundsTree,
|
|
20
|
-
MeshBVH,
|
|
21
|
-
MeshBVHOptions
|
|
19
|
+
MeshBVH
|
|
22
20
|
} from 'three-mesh-bvh';
|
|
23
21
|
import {computeMorphedGeometry, disposeMesh} from '../utils/buffergeometry';
|
|
24
22
|
|
|
25
23
|
type ColorMaterial = Material & {color: Color};
|
|
26
24
|
|
|
27
25
|
export interface SVGMeshOptions {
|
|
28
|
-
bvhOptions?:
|
|
26
|
+
bvhOptions?: BVHOptions;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
/**
|
|
@@ -43,13 +41,7 @@ export interface SVGTexture {
|
|
|
43
41
|
url: string;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
export interface BufferGeometry {
|
|
48
|
-
boundsTree?: MeshBVH;
|
|
49
|
-
computeBoundsTree: typeof computeBoundsTree;
|
|
50
|
-
disposeBoundsTree: typeof disposeBoundsTree;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
44
|
+
// BufferGeometry.boundsTree is declared by three-mesh-bvh (GeometryBVH, which MeshBVH extends)
|
|
53
45
|
|
|
54
46
|
|
|
55
47
|
/**
|
|
@@ -62,7 +54,7 @@ export class SVGMesh {
|
|
|
62
54
|
readonly sourceMesh: Mesh;
|
|
63
55
|
readonly threeMesh = new Mesh();
|
|
64
56
|
readonly hes: HalfedgeDS;
|
|
65
|
-
readonly bvhOptions:
|
|
57
|
+
readonly bvhOptions: BVHOptions;
|
|
66
58
|
bvh: MeshBVH;
|
|
67
59
|
drawFills = true;
|
|
68
60
|
drawVisibleContours = true;
|
|
@@ -94,7 +86,7 @@ export class SVGMesh {
|
|
|
94
86
|
|
|
95
87
|
// Setup BVH
|
|
96
88
|
const bvhOptions = {
|
|
97
|
-
|
|
89
|
+
targetLeafSize: 1,
|
|
98
90
|
strategy: CENTER,
|
|
99
91
|
...options?.bvhOptions
|
|
100
92
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Licence: Licence.md
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import Arrangement2D from 'arrangement-2d-js';
|
|
15
|
+
import Arrangement2D from '@threepipe/arrangement-2d-js';
|
|
16
16
|
import {Vector2} from 'three';
|
|
17
17
|
import {ChainVisibility} from '../Chain';
|
|
18
18
|
import {Polygon} from '../Polygon';
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"
|
|
3
|
+
"strict": false,
|
|
4
|
+
"types": ["*"],
|
|
4
5
|
"rootDir": "./src",
|
|
5
6
|
"allowJs": true,
|
|
6
7
|
"checkJs": false,
|
|
@@ -27,7 +28,6 @@
|
|
|
27
28
|
"allowImportingTsExtensions": true,
|
|
28
29
|
"paths": {
|
|
29
30
|
"three-mesh-halfedge": ["./src/three-mesh-halfedge"],
|
|
30
|
-
"three": ["threepipe"],
|
|
31
31
|
},
|
|
32
32
|
"lib": [
|
|
33
33
|
"es2020",
|