@bubblydoo/photoshop-mcp 0.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.
- package/README.md +138 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7049 -0
- package/dist/index.js.map +1 -0
- package/dist-readmes/README.md +383 -0
- package/dist-runtime/runtime-code.cjs +17124 -0
- package/dist-runtime/runtime-code.d.cts +9 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/index.d.ts +16 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/all-types.d.ts +65 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Actions.d.ts +230 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Channel.d.ts +120 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/ColorSampler.d.ts +105 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Constants.d.ts +1648 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/CoreModules.d.ts +922 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/CountItem.d.ts +86 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Document.d.ts +931 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Guide.d.ts +105 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/HistoryState.d.ts +74 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/ImagingModule.d.ts +559 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Layer.d.ts +1073 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/LayerComp.d.ts +219 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Objects.d.ts +7 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/PathItem.d.ts +243 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/PathPoint.d.ts +78 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Photoshop.d.ts +317 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/Selection.d.ts +557 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/SubPathItem.d.ts +69 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/TextItem.d.ts +213 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/Channels.d.ts +81 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/ColorSamplers.d.ts +97 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/CountItems.d.ts +130 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/Documents.d.ts +95 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/Guides.d.ts +76 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/HistoryStates.d.ts +56 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/LayerComps.d.ts +92 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/Layers.d.ts +68 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/PathItems.d.ts +65 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/PathPoints.d.ts +50 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/SubPathItems.d.ts +50 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/collections/TextFonts.d.ts +43 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/Colors.d.ts +225 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/ConversionOptions.d.ts +213 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/ImagingBounds.d.ts +53 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/PathPointInfo.d.ts +84 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/SaveOptions.d.ts +376 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/SolidColor.d.ts +118 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/SubPathInfo.d.ts +47 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/TextFont.d.ts +49 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/objects/Tool.d.ts +23 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/Preferences.d.ts +121 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesBase.d.ts +9 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesCursors.d.ts +37 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesFileHandling.d.ts +58 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesGeneral.d.ts +77 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesGuidesGridsAndSlices.d.ts +51 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesHistory.d.ts +69 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesInterface.d.ts +46 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesPerformance.d.ts +42 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesTools.d.ts +44 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesTransparencyAndGamut.d.ts +38 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesType.d.ts +44 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/preferences/PreferencesUnitsAndRulers.d.ts +44 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/text/CharacterStyle.d.ts +254 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/text/ParagraphStyle.d.ts +114 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/text/TextWarpStyle.d.ts +48 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/ApplyImageTypes.d.ts +107 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/CalculationsTypes.d.ts +119 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/DocumentTypes.d.ts +80 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/LayerCompTypes.d.ts +91 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/LayerTypes.d.ts +153 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/SharedTypes.d.ts +6 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/dom/types/TextTypes.d.ts +218 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/util/colorTypes.d.ts +61 -0
- package/dist-schemas/@adobe-uxp-types/photoshop/src/internal/util/unit.d.ts +45 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/index.d.ts +21 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/all-types.d.ts +3 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/dialog.d.ts +26 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/entrypoints.d.ts +385 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/host.d.ts +28 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/os.d.ts +56 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/other.d.ts +7 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/shell.d.ts +54 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/storage.d.ts +1216 -0
- package/dist-schemas/@adobe-uxp-types/uxp/src/internal/versions.d.ts +18 -0
- package/dist-schemas/@bubblydoo/uxp-toolkit/dist/commands-library/index.d.ts +109 -0
- package/dist-schemas/@bubblydoo/uxp-toolkit/dist/index.d.ts +153 -0
- package/dist-schemas/@bubblydoo/uxp-toolkit/dist/psLayerRef-BJKcxKbm.d.ts +66 -0
- package/package.json +51 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import type * as Constants from './Constants';
|
|
2
|
+
import type { Document } from './Document';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single guide in the document.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/}
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```javascript
|
|
10
|
+
* // Create a vertical guide at 100px
|
|
11
|
+
* const doc = app.activeDocument;
|
|
12
|
+
* const guide = doc.guides.add(constants.Direction.VERTICAL, 100);
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```javascript
|
|
17
|
+
* // Access existing guides
|
|
18
|
+
* const doc = app.activeDocument;
|
|
19
|
+
* const firstGuide = doc.guides[0];
|
|
20
|
+
* console.log(`Guide at ${firstGuide.coordinate}px, direction: ${firstGuide.direction}`);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @minVersion 23.0
|
|
24
|
+
*/
|
|
25
|
+
export class Guide {
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
constructor(id: number, docId: number);
|
|
30
|
+
/**
|
|
31
|
+
* The class name of the referenced object: *"Guide"*.
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#typename}
|
|
34
|
+
* @minVersion 23.0
|
|
35
|
+
*/
|
|
36
|
+
get typename(): 'Guide';
|
|
37
|
+
/**
|
|
38
|
+
* For use with batchPlay operations. This guide ID, along with its document ID
|
|
39
|
+
* can be used to represent this guide for the lifetime of this document or the guide.
|
|
40
|
+
*
|
|
41
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#id}
|
|
42
|
+
* @minVersion 23.0
|
|
43
|
+
*/
|
|
44
|
+
get id(): number;
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the document of this guide.
|
|
47
|
+
*
|
|
48
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#docid}
|
|
49
|
+
* @minVersion 23.0
|
|
50
|
+
*/
|
|
51
|
+
get docId(): number;
|
|
52
|
+
/**
|
|
53
|
+
* Owner document of this guide.
|
|
54
|
+
*
|
|
55
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#parent}
|
|
56
|
+
* @minVersion 23.0
|
|
57
|
+
*/
|
|
58
|
+
get parent(): Document;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates whether the guide is vertical or horizontal.
|
|
61
|
+
*
|
|
62
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#direction}
|
|
63
|
+
* @minVersion 23.0
|
|
64
|
+
*/
|
|
65
|
+
get direction(): Constants.Direction;
|
|
66
|
+
set direction(direction: Constants.Direction);
|
|
67
|
+
/**
|
|
68
|
+
* Position of the guide measured from the ruler origin in pixels. The value can be a decimal.
|
|
69
|
+
*
|
|
70
|
+
* Note: the user can move the ruler origin which will affect the position value of the guides.
|
|
71
|
+
*
|
|
72
|
+
* ***Fixes in Photoshop 24.0:***
|
|
73
|
+
* - *Return correct value when resolution is not 72 PPI*
|
|
74
|
+
*
|
|
75
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#coordinate}
|
|
76
|
+
* @minVersion 23.0
|
|
77
|
+
*/
|
|
78
|
+
get coordinate(): number;
|
|
79
|
+
/**
|
|
80
|
+
* Position of the guide measured from the ruler origin in pixels. The value can be a decimal.
|
|
81
|
+
*
|
|
82
|
+
* Note: the user can move the ruler origin which will affect the position value of the guides.
|
|
83
|
+
*
|
|
84
|
+
* ***Fixes in Photoshop 24.0:***
|
|
85
|
+
* - *Sets correct value when resolution is not 72 PPI*
|
|
86
|
+
*
|
|
87
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#coordinate}
|
|
88
|
+
*/
|
|
89
|
+
set coordinate(coordinate: number);
|
|
90
|
+
/**
|
|
91
|
+
* Deletes the guide from the document.
|
|
92
|
+
*
|
|
93
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/guide/#delete}
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```javascript
|
|
97
|
+
* // Delete all guides in the document
|
|
98
|
+
* const doc = app.activeDocument;
|
|
99
|
+
* doc.guides.forEach(guide => guide.delete());
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* @minVersion 23.0
|
|
103
|
+
*/
|
|
104
|
+
delete(): void;
|
|
105
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Document } from './Document';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a single history state in the History panel.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/}
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```javascript
|
|
9
|
+
* // Access current history state
|
|
10
|
+
* const doc = app.activeDocument;
|
|
11
|
+
* const currentState = doc.activeHistoryState;
|
|
12
|
+
* console.log(`Current state: ${currentState.name}`);
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```javascript
|
|
17
|
+
* // List all history states
|
|
18
|
+
* const doc = app.activeDocument;
|
|
19
|
+
* doc.historyStates.forEach((state, index) => {
|
|
20
|
+
* console.log(`${index}: ${state.name} (snapshot: ${state.snapshot})`);
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @minVersion 22.5
|
|
25
|
+
*/
|
|
26
|
+
export class HistoryState {
|
|
27
|
+
/**
|
|
28
|
+
* @ignore
|
|
29
|
+
*/
|
|
30
|
+
constructor(id: number, docId: number);
|
|
31
|
+
/**
|
|
32
|
+
* The class name of the referenced object: *"HistoryState"*.
|
|
33
|
+
*
|
|
34
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/#typename}
|
|
35
|
+
* @minVersion 23.0
|
|
36
|
+
*/
|
|
37
|
+
get typename(): 'HistoryState';
|
|
38
|
+
/**
|
|
39
|
+
* For use with batchPlay operations. This history ID, along with its document ID
|
|
40
|
+
* can be used to represent this history state for the lifetime of this document.
|
|
41
|
+
*
|
|
42
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/#id}
|
|
43
|
+
* @minVersion 22.5
|
|
44
|
+
*/
|
|
45
|
+
get id(): number;
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the document of this history state.
|
|
48
|
+
*
|
|
49
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/#docid}
|
|
50
|
+
* @minVersion 22.5
|
|
51
|
+
*/
|
|
52
|
+
get docId(): number;
|
|
53
|
+
/**
|
|
54
|
+
* The name of this history state as it appears on history panel.
|
|
55
|
+
*
|
|
56
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/#name}
|
|
57
|
+
* @minVersion 22.5
|
|
58
|
+
*/
|
|
59
|
+
get name(): string;
|
|
60
|
+
/**
|
|
61
|
+
* Owner document of this history state.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/#parent}
|
|
64
|
+
* @minVersion 22.5
|
|
65
|
+
*/
|
|
66
|
+
get parent(): Document;
|
|
67
|
+
/**
|
|
68
|
+
* Whether this history state is a snapshot or an automatically generated history state.
|
|
69
|
+
*
|
|
70
|
+
* @see {@link https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/historystate/#snapshot}
|
|
71
|
+
* @minVersion 22.5
|
|
72
|
+
*/
|
|
73
|
+
get snapshot(): boolean;
|
|
74
|
+
}
|