@vectojs/core 1.7.1 → 1.8.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/README.md CHANGED
@@ -147,6 +147,17 @@ outside the viewport or a `clipChildren` ancestor. Tooling can inspect the curre
147
147
  node with `scene.getContentElement(entityId)`. Virtualized or non-materialized off-viewport text is
148
148
  not searchable until the application brings it into the active scene.
149
149
 
150
+ Code-like renderers can compile their logical source once with `prepareContentGrid()` and return the
151
+ same immutable plan as `ContentProjection.grid`. The plan retains UTF-16 source ranges, legal
152
+ grapheme carets, CR/LF ownership, tab stops, wide CJK/emoji advances, Arabic shaping, and Unicode
153
+ bidi positions. Scene projects those cells in logical source order, performs font calibration in a
154
+ cold offscreen batch, and uses the plan's local geometry for pointer selection even when the entity
155
+ is rotated, scaled, or the page is zoomed.
156
+
157
+ Selection routing preserves forward/reverse drag direction, Shift extension, word and line
158
+ selection, and exact clipboard source. Projection rebuild/removal/destroy paths release active
159
+ selection and pending calibration ownership before replacing DOM carriers.
160
+
150
161
  ## Performance model
151
162
 
152
163
  Useful levers include on-demand rendering, viewport culling, spatial hashing, prepared text layout,
@@ -154,7 +165,9 @@ typed reusable buffers, batched WebGL points, and optional WebGPU particle compu
154
165
  workload allocation-free or GPU-bound; profile the renderer and entity types used by your app.
155
166
 
156
167
  Run the repository benchmarks with `bun run benchmark`, `bun run compare:dom`, and
157
- `bun run compare`.
168
+ `bun run compare`. Prepared-grid scaling can be measured independently with
169
+ `bun run --cwd packages/core benchmark:grid`; benchmark timing is release evidence rather than a
170
+ wall-clock CI gate.
158
171
 
159
172
  ## Related packages
160
173
 
@@ -0,0 +1,24 @@
1
+ # Third-Party Notices
2
+
3
+ `@vectojs/core` includes code from the following project in its distributable JavaScript bundles.
4
+
5
+ ## bidi-js
6
+
7
+ Copyright (c) 2021 Jason Johnston
8
+
9
+ MIT License
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
12
+ associated documentation files (the "Software"), to deal in the Software without restriction,
13
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
14
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all copies or
18
+ substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
21
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
23
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
24
+ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.