@edgepdf/viewer-js 0.1.0 → 0.3.2
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/LICENSE +10 -17
- package/README.md +3 -3
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/lib/coordinate-mapper.d.ts +4 -4
- package/dist/lib/coordinate-mapper.d.ts.map +1 -1
- package/dist/lib/marker-manager.d.ts +3 -3
- package/dist/lib/marker-manager.d.ts.map +1 -1
- package/package.json +6 -8
package/LICENSE
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
# EdgePDF License Agreement
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025
|
|
3
|
+
Copyright (c) 2025-present EdgeTech Studio. All rights reserved.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
EdgePDF is a commercial product. A free trial is available for evaluation and integration purposes. Please visit our pricing page to learn more about our licensing options.
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
copies or substantial portions of the Software.
|
|
7
|
+
## License Terms
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
9
|
+
Please refer to our website to read the EdgePDF Subscription Agreement:
|
|
22
10
|
|
|
11
|
+
**https://edgetech.studio/legal/subscription-agreement**
|
|
12
|
+
|
|
13
|
+
## Contact
|
|
14
|
+
|
|
15
|
+
For licensing inquiries, contact: licensing@edgetech.studio
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ yarn add @edgepdf/viewer-js
|
|
|
33
33
|
import { EdgePdfViewer } from '@edgepdf/viewer-js';
|
|
34
34
|
import type { ViewerConfig } from '@edgepdf/types';
|
|
35
35
|
|
|
36
|
-
// Get container
|
|
36
|
+
// Get container
|
|
37
37
|
const container = document.getElementById('map-container');
|
|
38
38
|
|
|
39
39
|
// Configure viewer
|
|
@@ -217,7 +217,7 @@ Creates a new marker from coordinates.
|
|
|
217
217
|
|
|
218
218
|
**Parameters:**
|
|
219
219
|
|
|
220
|
-
- `options.position?:
|
|
220
|
+
- `options.position?: ViewerCoords` - Map coordinates [y, x]
|
|
221
221
|
- `options.imageCoords?: ImageCoords` - Image pixel coordinates {x, y}
|
|
222
222
|
- `options.label?: string` - Marker label/tooltip text
|
|
223
223
|
- `options.description?: string` - Marker description
|
|
@@ -273,7 +273,7 @@ Updates a marker's properties.
|
|
|
273
273
|
|
|
274
274
|
**Returns:** `true` if marker was updated, `false` if not found
|
|
275
275
|
|
|
276
|
-
##### `updateMarkerPosition(id: string, position:
|
|
276
|
+
##### `updateMarkerPosition(id: string, position: ViewerCoords): boolean`
|
|
277
277
|
|
|
278
278
|
Updates a marker's position.
|
|
279
279
|
|
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,9 @@ export type { ZoomControlsPosition, ZoomControlsOptions, } from './lib/zoom-cont
|
|
|
9
9
|
export { MarkerManager } from './lib/marker-manager.js';
|
|
10
10
|
export type { CreateMarkerOptions } from './lib/marker-manager.js';
|
|
11
11
|
export { CDNManager } from './lib/cdn-manager.js';
|
|
12
|
-
export type { ImageInfo, TileConfig, ViewerConfig,
|
|
12
|
+
export type { ImageInfo, TileConfig, ViewerConfig, ViewerCoords,
|
|
13
|
+
/***
|
|
14
|
+
* @deprecated Use ViewerCoords instead of LeafletCoords for consistency with viewer terminology
|
|
15
|
+
*/
|
|
16
|
+
ViewerCoords as LeafletCoords, ImageCoords, Marker, MarkerData, MapOptions, ZoomConfig, ZoomState, CoordinateBounds, MarkerEventType, MarkerEvent, MarkerEditHandler, MarkerDeleteHandler, MarkerInteractionConfig, MarkerSelectionState, } from '@edgepdf/types';
|
|
13
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,YAAY,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AAEtB,cAAc,iBAAiB,CAAC;A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