@codemirror/view 6.17.1 → 6.18.1
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 +18 -0
- package/dist/index.cjs +326 -234
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +327 -235
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -802,6 +802,16 @@ declare class EditorView {
|
|
|
802
802
|
bottom: number;
|
|
803
803
|
};
|
|
804
804
|
/**
|
|
805
|
+
If the editor is transformed with CSS, this provides the scale
|
|
806
|
+
along the X axis. Otherwise, it will just be 1. Note that
|
|
807
|
+
transforms other than translation and scaling are not supported.
|
|
808
|
+
*/
|
|
809
|
+
get scaleX(): number;
|
|
810
|
+
/**
|
|
811
|
+
Provide the CSS transformed scale along the Y axis.
|
|
812
|
+
*/
|
|
813
|
+
get scaleY(): number;
|
|
814
|
+
/**
|
|
805
815
|
Find the text line or block widget at the given vertical
|
|
806
816
|
position (which is interpreted as relative to the [top of the
|
|
807
817
|
document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop)).
|
|
@@ -1653,6 +1663,9 @@ declare function tooltips(config?: {
|
|
|
1653
1663
|
On iOS, which at the time of writing still doesn't properly
|
|
1654
1664
|
support fixed positioning, the library always uses absolute
|
|
1655
1665
|
positioning.
|
|
1666
|
+
|
|
1667
|
+
If the tooltip parent element sits in a transformed element, the
|
|
1668
|
+
library also falls back to absolute positioning.
|
|
1656
1669
|
*/
|
|
1657
1670
|
position?: "fixed" | "absolute";
|
|
1658
1671
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -802,6 +802,16 @@ declare class EditorView {
|
|
|
802
802
|
bottom: number;
|
|
803
803
|
};
|
|
804
804
|
/**
|
|
805
|
+
If the editor is transformed with CSS, this provides the scale
|
|
806
|
+
along the X axis. Otherwise, it will just be 1. Note that
|
|
807
|
+
transforms other than translation and scaling are not supported.
|
|
808
|
+
*/
|
|
809
|
+
get scaleX(): number;
|
|
810
|
+
/**
|
|
811
|
+
Provide the CSS transformed scale along the Y axis.
|
|
812
|
+
*/
|
|
813
|
+
get scaleY(): number;
|
|
814
|
+
/**
|
|
805
815
|
Find the text line or block widget at the given vertical
|
|
806
816
|
position (which is interpreted as relative to the [top of the
|
|
807
817
|
document](https://codemirror.net/6/docs/ref/#view.EditorView.documentTop)).
|
|
@@ -1653,6 +1663,9 @@ declare function tooltips(config?: {
|
|
|
1653
1663
|
On iOS, which at the time of writing still doesn't properly
|
|
1654
1664
|
support fixed positioning, the library always uses absolute
|
|
1655
1665
|
positioning.
|
|
1666
|
+
|
|
1667
|
+
If the tooltip parent element sits in a transformed element, the
|
|
1668
|
+
library also falls back to absolute positioning.
|
|
1656
1669
|
*/
|
|
1657
1670
|
position?: "fixed" | "absolute";
|
|
1658
1671
|
/**
|