MCPcopy Index your code
hub / github.com/Justineo/vue-clamp

github.com/Justineo/vue-clamp @v1.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.5.1 ↗ · + Follow
496 symbols 1,175 edges 62 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

vue-clamp

GitHub stars npmx version

Clamping primitives for Vue 3. The package includes components for multiline text, trusted inline HTML, single-line strings with fixed affixes and configurable ellipsis placement, and wrapped item lists.

Packages

  • packages/vue-clamp: published vue-clamp library.
  • packages/website: documentation and demo site.

Development

This workspace uses Vite+. Run project tasks through vp.

vp install

Run the full local readiness check:

vp run ready

Common commands:

vp check
vp test
vp run test:browser
vp run build
vp run website#dev

Extension points exported contracts — how you extend this code

PreparedText (Interface)
(no doc)
packages/vue-clamp/src/text.ts
TextClampHint (Interface)
(no doc)
packages/vue-clamp/src/text.ts
TextClampResult (Interface)
(no doc)
packages/vue-clamp/src/text.ts
ClampProps (Interface)
(no doc)
packages/vue-clamp/src/types.ts
ClampSlots (Interface)
(no doc)
packages/vue-clamp/src/types.ts

Core symbols most depended-on inside this repo

settle
called by 96
packages/vue-clamp/tests/browser.ts
waitUntilVisible
called by 39
packages/vue-clamp/tests/browser.ts
rootElement
called by 38
packages/vue-clamp/tests/browser.ts
mountWrapTableScenario
called by 26
tools/benchmark/src/components.browser.benchmark.ts
runBenchmark
called by 26
packages/vue-clamp/tests/wrap.browser.benchmark.ts
textElement
called by 25
packages/vue-clamp/tests/browser.ts
sampleVisibleLineCounts
called by 25
packages/vue-clamp/tests/browser.ts
mountClamp
called by 24
packages/vue-clamp/tests/browser.ts

Shape

Function 472
Interface 14
Method 6
Class 4

Languages

TypeScript100%

Modules by API surface

packages/vue-clamp/tests/demo-page.browser.test.ts72 symbols
packages/vue-clamp/tests/wrap.browser.benchmark.ts53 symbols
tools/benchmark/src/helpers.ts40 symbols
packages/vue-clamp/src/rich.ts38 symbols
tools/benchmark/src/components.browser.benchmark.ts35 symbols
packages/vue-clamp/tests/text.browser.benchmark.ts31 symbols
tools/benchmark/scripts/render-matrix-report.mjs30 symbols
packages/vue-clamp/tests/rich.browser.benchmark.ts22 symbols
packages/vue-clamp/tests/browser.ts22 symbols
packages/vue-clamp/tests/wrap.browser.test.ts17 symbols
packages/vue-clamp/src/text.ts13 symbols
packages/vue-clamp/src/wrap/flow.ts11 symbols

For agents

$ claude mcp add vue-clamp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page