@pretable/stream-adapter 0.6.2 → 0.7.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.
Files changed (2) hide show
  1. package/LICENSE +19 -0
  2. package/package.json +1 -1
package/LICENSE CHANGED
@@ -19,3 +19,22 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
23
+ ---
24
+
25
+ Acknowledgements
26
+
27
+ @chenglou/pretext — MIT, Copyright (c) Pretext contributors
28
+ https://github.com/chenglou/pretext
29
+
30
+ Pretable's text layout predictor (`@pretable-internal/text-core`, together with
31
+ the canvas-backed measurer in `@pretable/react`) follows pretext's two-phase
32
+ design: measure each segment once, cache the result by (segment, font), and then
33
+ decide line breaks with pure arithmetic over those cached widths. Before that,
34
+ pretable modelled a whole font as a single number — pixels per character — and
35
+ wrapped by character count.
36
+
37
+ This is our own implementation against a different API, written independently
38
+ rather than adapted from pretext's source, so this acknowledgement is a courtesy
39
+ rather than a licence obligation. It is recorded because the idea is the load-
40
+ bearing part and it was not ours.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pretable/stream-adapter",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "Streaming row adapters for Pretable.",
5
5
  "license": "MIT",
6
6
  "repository": {