@embedpdf/plugin-rotate 2.0.0 → 2.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/svelte/hooks/use-rotate.svelte.ts","../../src/svelte/components/Rotate.svelte"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { Rotation } from '@embedpdf/models';\nimport { RotatePlugin, initialDocumentState, RotateScope } from '@embedpdf/plugin-rotate';\n\n/**\n * Hook to get the raw rotate plugin instance.\n */\nexport const useRotatePlugin = () => usePlugin<RotatePlugin>(RotatePlugin.id);\n\n/**\n * Hook to get the rotate plugin's capability API.\n * This provides methods for rotating the document.\n */\nexport const useRotateCapability = () => useCapability<RotatePlugin>(RotatePlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UseRotateReturn {\n provides: RotateScope | null;\n rotation: Rotation;\n}\n\n/**\n * Hook that provides reactive rotation state and methods for a specific document.\n * @param getDocumentId Function that returns the document ID\n */\nexport const useRotate = (getDocumentId: () => string | null): UseRotateReturn => {\n const capability = useRotateCapability();\n\n let rotation = $state<Rotation>(initialDocumentState.rotation);\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n $effect(() => {\n const provides = capability.provides;\n const docId = documentId;\n\n if (!provides || !docId) {\n rotation = initialDocumentState.rotation;\n return;\n }\n\n const scope = provides.forDocument(docId);\n\n // Get initial state\n rotation = scope.getRotation();\n\n // Subscribe to rotation changes for this document\n return scope.onRotateChange((newRotation) => {\n rotation = newRotation;\n });\n });\n\n return {\n get provides() {\n return scopedProvides;\n },\n get rotation() {\n return rotation;\n },\n };\n};\n","<script lang=\"ts\">\n import type { Rotation } from '@embedpdf/models';\n import type { Snippet } from 'svelte';\n import type { HTMLAttributes } from 'svelte/elements';\n import { useDocumentState } from '@embedpdf/core/svelte';\n import { useRotatePlugin } from '../hooks';\n\n type RotateProps = HTMLAttributes<HTMLDivElement> & {\n documentId: string;\n pageIndex: number;\n rotation?: Rotation;\n scale?: number;\n children?: Snippet;\n class?: string;\n style?: string;\n };\n\n let {\n documentId,\n pageIndex,\n rotation: rotationOverride,\n scale: scaleOverride,\n children,\n class: propsClass,\n style: propsStyle,\n ...restProps\n }: RotateProps = $props();\n\n const rotatePlugin = useRotatePlugin();\n const documentState = useDocumentState(() => documentId);\n\n const page = $derived(documentState.current?.document?.pages?.[pageIndex]);\n const width = $derived(page?.size?.width ?? 0);\n const height = $derived(page?.size?.height ?? 0);\n\n const rotation = $derived(\n rotationOverride !== undefined ? rotationOverride : (documentState.current?.rotation ?? 0),\n );\n\n const scale = $derived(\n scaleOverride !== undefined ? scaleOverride : (documentState.current?.scale ?? 1),\n );\n\n const matrix = $derived(\n rotatePlugin.plugin\n ? rotatePlugin.plugin.getMatrixAsString({\n width: width * scale,\n height: height * scale,\n rotation: rotation,\n })\n : 'matrix(1, 0, 0, 1, 0, 0)',\n );\n</script>\n\n{#if page}\n <div\n class={propsClass}\n style:position=\"absolute\"\n style:transform-origin=\"0 0\"\n style:transform={matrix}\n style={propsStyle}\n {...restProps}\n >\n {@render children?.()}\n </div>\n{/if}\n"],"names":["useRotatePlugin","usePlugin","RotatePlugin","id","useRotateCapability","useCapability","restProps","$","rest_props","$$props","rotatePlugin","documentState","useDocumentState","documentId","page","_c","_b","_a","current","document","pages","pageIndex","width","size","height","rotation","scale","derived","matrix","plugin","getMatrixAsString","get","consequent","getDocumentId","capability","state","proxy","initialDocumentState","scopedProvides","provides","forDocument","user_effect","docId","scope","getRotation","onRotateChange","newRotation","set"],"mappings":"sgBAOaA,EAAA,IAAwBC,YAAwBC,EAAAA,aAAaC,IAM7DC,EAAA,IAA4BC,gBAA4BH,EAAAA,aAAaC,sFCY3EG,EAAQC,EAAAC,WAAAC,EAAA,0GAGP,MAAAC,EAAeV,IACfW,EAAgBC,EAAAA,iBAAgB,IAAAH,EAAAI,YAEhCC,2BAAgB,OAAA,OAAAC,EAAA,OAAAC,EAAA,OAAAC,EAAAN,EAAcO,cAAd,EAAAD,EAAuBE,eAAvB,EAAAH,EAAiCI,gBAAKX,EAAAY,aACtDC,wDAAiBR,aAAMS,eAAMD,QAAS,IACtCE,wDAAkBV,aAAMS,eAAMC,SAAU,IAExCC,mCACiB,2BAAgC,OAAAR,EAAAN,EAAcO,kBAASO,WAAY,IAGpFC,EAAKnB,EAAAoB,QAAA,WAAA,YACS,IADTlB,EAAAiB,MACkBjB,EAAAiB,OAAoB,OAAAT,EAAAN,EAAcO,kBAASQ,QAAS,IAG3EE,EAAMrB,EAAAoB,QAAA,IACVjB,EAAamB,OACTnB,EAAamB,OAAOC,kBAAiB,CACnCR,MAAKf,EAAAwB,IAAET,GAAKf,EAAAwB,IAAGL,GACfF,OAAMjB,EAAAwB,IAAEP,GAAMjB,EAAAwB,IAAGL,GACjBD,eAAUA,KAEZ,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/svelte/hooks/use-rotate.svelte.ts","../../src/svelte/components/Rotate.svelte"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { Rotation } from '@embedpdf/models';\nimport { RotatePlugin, initialDocumentState, RotateScope } from '@embedpdf/plugin-rotate';\n\n/**\n * Hook to get the raw rotate plugin instance.\n */\nexport const useRotatePlugin = () => usePlugin<RotatePlugin>(RotatePlugin.id);\n\n/**\n * Hook to get the rotate plugin's capability API.\n * This provides methods for rotating the document.\n */\nexport const useRotateCapability = () => useCapability<RotatePlugin>(RotatePlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UseRotateReturn {\n provides: RotateScope | null;\n rotation: Rotation;\n}\n\n/**\n * Hook that provides reactive rotation state and methods for a specific document.\n * @param getDocumentId Function that returns the document ID\n */\nexport const useRotate = (getDocumentId: () => string | null): UseRotateReturn => {\n const capability = useRotateCapability();\n\n let rotation = $state<Rotation>(initialDocumentState.rotation);\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n $effect(() => {\n const provides = capability.provides;\n const docId = documentId;\n\n if (!provides || !docId) {\n rotation = initialDocumentState.rotation;\n return;\n }\n\n const scope = provides.forDocument(docId);\n\n // Get initial state\n rotation = scope.getRotation();\n\n // Subscribe to rotation changes for this document\n return scope.onRotateChange((newRotation) => {\n rotation = newRotation;\n });\n });\n\n return {\n get provides() {\n return scopedProvides;\n },\n get rotation() {\n return rotation;\n },\n };\n};\n","<script lang=\"ts\">\n import type { Rotation } from '@embedpdf/models';\n import type { Snippet } from 'svelte';\n import type { HTMLAttributes } from 'svelte/elements';\n import { useDocumentState } from '@embedpdf/core/svelte';\n import { useRotatePlugin } from '../hooks';\n\n type RotateProps = HTMLAttributes<HTMLDivElement> & {\n documentId: string;\n pageIndex: number;\n rotation?: Rotation;\n scale?: number;\n children?: Snippet;\n class?: string;\n style?: string;\n };\n\n let {\n documentId,\n pageIndex,\n rotation: rotationOverride,\n scale: scaleOverride,\n children,\n class: propsClass,\n style: propsStyle,\n ...restProps\n }: RotateProps = $props();\n\n const rotatePlugin = useRotatePlugin();\n const documentState = useDocumentState(() => documentId);\n\n const page = $derived(documentState.current?.document?.pages?.[pageIndex]);\n const width = $derived(page?.size?.width ?? 0);\n const height = $derived(page?.size?.height ?? 0);\n\n const rotation = $derived(\n rotationOverride !== undefined ? rotationOverride : (documentState.current?.rotation ?? 0),\n );\n\n const scale = $derived(\n scaleOverride !== undefined ? scaleOverride : (documentState.current?.scale ?? 1),\n );\n\n const matrix = $derived(\n rotatePlugin.plugin\n ? rotatePlugin.plugin.getMatrixAsString({\n width: width * scale,\n height: height * scale,\n rotation: rotation,\n })\n : 'matrix(1, 0, 0, 1, 0, 0)',\n );\n</script>\n\n{#if page}\n <div\n class={propsClass}\n style:position=\"absolute\"\n style:transform-origin=\"0 0\"\n style:transform={matrix}\n style={propsStyle}\n {...restProps}\n >\n {@render children?.()}\n </div>\n{/if}\n"],"names":["useRotatePlugin","usePlugin","RotatePlugin","id","useRotateCapability","useCapability","restProps","$","rest_props","$$props","rotatePlugin","documentState","useDocumentState","documentId","page","_c","_b","_a","current","document","pages","pageIndex","width","size","height","rotation","scale","derived","matrix","plugin","getMatrixAsString","get","div","root_1","consequent","getDocumentId","capability","state","proxy","initialDocumentState","scopedProvides","provides","forDocument","user_effect","docId","scope","getRotation","onRotateChange","newRotation","set"],"mappings":"sgBAOaA,EAAA,IAAwBC,YAAwBC,EAAAA,aAAaC,IAM7DC,EAAA,IAA4BC,gBAA4BH,EAAAA,aAAaC,sFCY3EG,EAAQC,EAAAC,WAAAC,EAAA,0GAGP,MAAAC,EAAeV,IACfW,EAAgBC,EAAAA,iBAAgB,IAAAH,EAAAI,YAEhCC,2BAAgB,OAAA,OAAAC,EAAA,OAAAC,EAAA,OAAAC,EAAAN,EAAcO,cAAd,EAAAD,EAAuBE,eAAvB,EAAAH,EAAiCI,gBAAKX,EAAAY,aACtDC,wDAAiBR,aAAMS,eAAMD,QAAS,IACtCE,wDAAkBV,aAAMS,eAAMC,SAAU,IAExCC,mCACiB,2BAAgC,OAAAR,EAAAN,EAAcO,kBAASO,WAAY,IAGpFC,EAAKnB,EAAAoB,QAAA,WAAA,YACS,IADTlB,EAAAiB,MACkBjB,EAAAiB,OAAoB,OAAAT,EAAAN,EAAcO,kBAASQ,QAAS,IAG3EE,EAAMrB,EAAAoB,QAAA,IACVjB,EAAamB,OACTnB,EAAamB,OAAOC,kBAAiB,CACnCR,MAAKf,EAAAwB,IAAET,GAAKf,EAAAwB,IAAGL,GACfF,OAAMjB,EAAAwB,IAAEP,GAAMjB,EAAAwB,IAAGL,GACjBD,eAAUA,KAEZ,2EAKLO,EAAEC,uBAAFD,EAAE,KAAA,gCAMG1B,0EAFasB,qBAJlBI,+CAAAA,cAAAA,qBADElB,MAAIoB,0BAFT,oBD3B0BC,IAClB,MAAAC,EAAahC,IAEf,IAAAqB,EAAWlB,EAAA8B,MAAA9B,EAAA+B,MAAiBC,EAAAA,qBAAqBd,WAG/C,MAAAZ,YAAsBsB,GAGtBK,EAAAjC,EAAAoB,QAAA,IACJS,EAAWK,gBAAY5B,GAAauB,EAAWK,SAASC,kBAAY7B,IAAc,aAGpFN,EAAAoC,uBACQF,EAAWL,EAAWK,SACtBG,QAAQ/B,OAET4B,IAAaG,oBAChBnB,EAAWc,EAAAA,qBAAqBd,UAAA,GAI5B,MAAAoB,EAAQJ,EAASC,YAAYE,GAM5B,aAHPnB,EAAWoB,EAAMC,eAAA,GAGVD,EAAME,eAAgBC,IAC3BzC,EAAA0C,IAAAxB,EAAWuB,GAAA,QAKT,YAAAP,gBACKD,EACT,EACI,YAAAf,gBACKA,EACT"}
|
package/dist/svelte/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/svelte/hooks/use-rotate.svelte.ts","../../src/svelte/components/Rotate.svelte"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { Rotation } from '@embedpdf/models';\nimport { RotatePlugin, initialDocumentState, RotateScope } from '@embedpdf/plugin-rotate';\n\n/**\n * Hook to get the raw rotate plugin instance.\n */\nexport const useRotatePlugin = () => usePlugin<RotatePlugin>(RotatePlugin.id);\n\n/**\n * Hook to get the rotate plugin's capability API.\n * This provides methods for rotating the document.\n */\nexport const useRotateCapability = () => useCapability<RotatePlugin>(RotatePlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UseRotateReturn {\n provides: RotateScope | null;\n rotation: Rotation;\n}\n\n/**\n * Hook that provides reactive rotation state and methods for a specific document.\n * @param getDocumentId Function that returns the document ID\n */\nexport const useRotate = (getDocumentId: () => string | null): UseRotateReturn => {\n const capability = useRotateCapability();\n\n let rotation = $state<Rotation>(initialDocumentState.rotation);\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n $effect(() => {\n const provides = capability.provides;\n const docId = documentId;\n\n if (!provides || !docId) {\n rotation = initialDocumentState.rotation;\n return;\n }\n\n const scope = provides.forDocument(docId);\n\n // Get initial state\n rotation = scope.getRotation();\n\n // Subscribe to rotation changes for this document\n return scope.onRotateChange((newRotation) => {\n rotation = newRotation;\n });\n });\n\n return {\n get provides() {\n return scopedProvides;\n },\n get rotation() {\n return rotation;\n },\n };\n};\n","<script lang=\"ts\">\n import type { Rotation } from '@embedpdf/models';\n import type { Snippet } from 'svelte';\n import type { HTMLAttributes } from 'svelte/elements';\n import { useDocumentState } from '@embedpdf/core/svelte';\n import { useRotatePlugin } from '../hooks';\n\n type RotateProps = HTMLAttributes<HTMLDivElement> & {\n documentId: string;\n pageIndex: number;\n rotation?: Rotation;\n scale?: number;\n children?: Snippet;\n class?: string;\n style?: string;\n };\n\n let {\n documentId,\n pageIndex,\n rotation: rotationOverride,\n scale: scaleOverride,\n children,\n class: propsClass,\n style: propsStyle,\n ...restProps\n }: RotateProps = $props();\n\n const rotatePlugin = useRotatePlugin();\n const documentState = useDocumentState(() => documentId);\n\n const page = $derived(documentState.current?.document?.pages?.[pageIndex]);\n const width = $derived(page?.size?.width ?? 0);\n const height = $derived(page?.size?.height ?? 0);\n\n const rotation = $derived(\n rotationOverride !== undefined ? rotationOverride : (documentState.current?.rotation ?? 0),\n );\n\n const scale = $derived(\n scaleOverride !== undefined ? scaleOverride : (documentState.current?.scale ?? 1),\n );\n\n const matrix = $derived(\n rotatePlugin.plugin\n ? rotatePlugin.plugin.getMatrixAsString({\n width: width * scale,\n height: height * scale,\n rotation: rotation,\n })\n : 'matrix(1, 0, 0, 1, 0, 0)',\n );\n</script>\n\n{#if page}\n <div\n class={propsClass}\n style:position=\"absolute\"\n style:transform-origin=\"0 0\"\n style:transform={matrix}\n style={propsStyle}\n {...restProps}\n >\n {@render children?.()}\n </div>\n{/if}\n"],"names":[],"mappings":";;;;;AAOa,MAAA,kBAAA,MAAwB,UAAwB,aAAa,EAAE;AAM/D,MAAA,sBAAA,MAA4B,cAA4B,aAAa,EAAE;MAYvE,YAAA,CAAa,kBAAwD;AAC1E,QAAA,aAAa,oBAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/svelte/hooks/use-rotate.svelte.ts","../../src/svelte/components/Rotate.svelte"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { Rotation } from '@embedpdf/models';\nimport { RotatePlugin, initialDocumentState, RotateScope } from '@embedpdf/plugin-rotate';\n\n/**\n * Hook to get the raw rotate plugin instance.\n */\nexport const useRotatePlugin = () => usePlugin<RotatePlugin>(RotatePlugin.id);\n\n/**\n * Hook to get the rotate plugin's capability API.\n * This provides methods for rotating the document.\n */\nexport const useRotateCapability = () => useCapability<RotatePlugin>(RotatePlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UseRotateReturn {\n provides: RotateScope | null;\n rotation: Rotation;\n}\n\n/**\n * Hook that provides reactive rotation state and methods for a specific document.\n * @param getDocumentId Function that returns the document ID\n */\nexport const useRotate = (getDocumentId: () => string | null): UseRotateReturn => {\n const capability = useRotateCapability();\n\n let rotation = $state<Rotation>(initialDocumentState.rotation);\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n $effect(() => {\n const provides = capability.provides;\n const docId = documentId;\n\n if (!provides || !docId) {\n rotation = initialDocumentState.rotation;\n return;\n }\n\n const scope = provides.forDocument(docId);\n\n // Get initial state\n rotation = scope.getRotation();\n\n // Subscribe to rotation changes for this document\n return scope.onRotateChange((newRotation) => {\n rotation = newRotation;\n });\n });\n\n return {\n get provides() {\n return scopedProvides;\n },\n get rotation() {\n return rotation;\n },\n };\n};\n","<script lang=\"ts\">\n import type { Rotation } from '@embedpdf/models';\n import type { Snippet } from 'svelte';\n import type { HTMLAttributes } from 'svelte/elements';\n import { useDocumentState } from '@embedpdf/core/svelte';\n import { useRotatePlugin } from '../hooks';\n\n type RotateProps = HTMLAttributes<HTMLDivElement> & {\n documentId: string;\n pageIndex: number;\n rotation?: Rotation;\n scale?: number;\n children?: Snippet;\n class?: string;\n style?: string;\n };\n\n let {\n documentId,\n pageIndex,\n rotation: rotationOverride,\n scale: scaleOverride,\n children,\n class: propsClass,\n style: propsStyle,\n ...restProps\n }: RotateProps = $props();\n\n const rotatePlugin = useRotatePlugin();\n const documentState = useDocumentState(() => documentId);\n\n const page = $derived(documentState.current?.document?.pages?.[pageIndex]);\n const width = $derived(page?.size?.width ?? 0);\n const height = $derived(page?.size?.height ?? 0);\n\n const rotation = $derived(\n rotationOverride !== undefined ? rotationOverride : (documentState.current?.rotation ?? 0),\n );\n\n const scale = $derived(\n scaleOverride !== undefined ? scaleOverride : (documentState.current?.scale ?? 1),\n );\n\n const matrix = $derived(\n rotatePlugin.plugin\n ? rotatePlugin.plugin.getMatrixAsString({\n width: width * scale,\n height: height * scale,\n rotation: rotation,\n })\n : 'matrix(1, 0, 0, 1, 0, 0)',\n );\n</script>\n\n{#if page}\n <div\n class={propsClass}\n style:position=\"absolute\"\n style:transform-origin=\"0 0\"\n style:transform={matrix}\n style={propsStyle}\n {...restProps}\n >\n {@render children?.()}\n </div>\n{/if}\n"],"names":[],"mappings":";;;;;AAOa,MAAA,kBAAA,MAAwB,UAAwB,aAAa,EAAE;AAM/D,MAAA,sBAAA,MAA4B,cAA4B,aAAa,EAAE;MAYvE,YAAA,CAAa,kBAAwD;AAC1E,QAAA,aAAa,oBAAA;AAEf,MAAA,WAAW,EAAA,MAAA,EAAA,MAAiB,qBAAqB,QAAQ,CAAA;AAGvD,QAAA,uBAAsB,aAAA;AAGtB,QAAA,iBAAA,EAAA,QAAA,MACJ,WAAW,kBAAY,UAAA,IAAa,WAAW,SAAS,kBAAY,UAAU,CAAA,IAAI,IAAA;AAGpF,IAAA,kBAAc;UACN,WAAW,WAAW;AACtB,UAAA,cAAQ,UAAA;SAET,YAAA,CAAa,OAAO;YACvB,UAAW,qBAAqB,UAAA,IAAA;;IAElC;AAEM,UAAA,QAAQ,SAAS,YAAY,KAAK;UAGxC,UAAW,MAAM,YAAA,GAAA,IAAA;AAGV,WAAA,MAAM,eAAA,CAAgB,gBAAgB;AAC3C,QAAA,IAAA,UAAW,aAAA,IAAA;AAAA,IACb,CAAC;AAAA,EACH,CAAC;;IAGK,IAAA,WAAW;mBACN,cAAA;AAAA,IACT;AAAA,IACI,IAAA,WAAW;mBACN,QAAA;AAAA,IACT;AAAA;AAEJ;;mCClEA;;MAyBO,YAAQ,EAAA,WAAA,SAAA;AAAA;;;;;;;;;;;AAGP,QAAA,eAAe,gBAAe;AAC9B,QAAA,gBAAgB,iBAAgB,MAAA,QAAA,UAAA;AAEhC,QAAA;;AAAgB,2CAAc,YAAd,mBAAuB,aAAvB,mBAAiC,UAAjC,mBAAsC,QAAA;AAAA,GAAA;AACtD,QAAA;;8BAAiB,IAAI,yBAAE,4BAAM,UAAS;AAAA,GAAC;AACvC,QAAA;;8BAAkB,IAAI,yBAAE,4BAAM,WAAU;AAAA,GAAC;AAEzC,QAAA;;gCACiB,8BAAgC,mBAAc,YAAd,mBAAuB,aAAY;AAAA,GAAC;QAGrF,QAAK,EAAA,QAAA,MAAA;;AAAA,mBAAA,UACS,SAAS,QAAA,UAAoB,mBAAc,YAAd,mBAAuB,UAAS;AAAA,GAAC;QAG5E,SAAM,EAAA,QAAA,MACV,aAAa,SACT,aAAa,OAAO,kBAAiB;AAAA,IACnC,OAAK,EAAA,IAAE,KAAK,IAAA,EAAA,IAAG,KAAK;AAAA,IACpB,QAAM,EAAA,IAAE,MAAM,IAAA,EAAA,IAAG,KAAK;AAAA,IACtB,gBAAU,QAAQ;AAAA,OAEpB,0BAA0B;;;;;UAK/B,MAAE,OAAA;yBAAF,KAAE,OAAA;AAAA;;WAMG;AAAA;;;2BAFa,MAAM;AAAA;;2BAJxB,GAAE;;cAAF,GAAE;0BAAF,GAAE;AAAA;;gBADA,IAAI,EAAA,UAAA,UAAA;AAAA;;;;AAFT;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/plugin-rotate",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@embedpdf/models": "2.0.
|
|
37
|
+
"@embedpdf/models": "2.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/react": "^18.2.0",
|
|
41
41
|
"typescript": "^5.0.0",
|
|
42
42
|
"@embedpdf/build": "1.1.0",
|
|
43
|
-
"@embedpdf/core": "2.0.
|
|
43
|
+
"@embedpdf/core": "2.0.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"preact": "^10.26.4",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react-dom": ">=16.8.0",
|
|
49
49
|
"vue": ">=3.2.0",
|
|
50
50
|
"svelte": ">=5 <6",
|
|
51
|
-
"@embedpdf/core": "2.0.
|
|
51
|
+
"@embedpdf/core": "2.0.2"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|
|
54
54
|
"dist",
|