@orangecatai/adgen-canvas 0.0.7 → 0.0.8
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/dist/dev/{chunk-MW637LK5.js → chunk-FAXV62EG.js} +2 -2
- package/dist/dev/{chunk-2Q3FNCU4.js → chunk-LAGHQ2FH.js} +3 -3
- package/dist/dev/data/{image-L2UC5LX5.js → image-FJMUJMRD.js} +3 -3
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +180 -117
- package/dist/dev/index.js.map +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-XPV36KCI.js → chunk-7LYXIGC7.js} +2 -2
- package/dist/prod/{chunk-7AVPHWG7.js → chunk-B427J75A.js} +1 -1
- package/dist/prod/data/image-RPDJGGN2.js +1 -0
- package/dist/prod/index.js +35 -35
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/ai-chat/canvasTools.d.ts +0 -41
- package/package.json +1 -1
- package/dist/prod/data/image-6DWEFZH4.js +0 -1
- /package/dist/dev/{chunk-MW637LK5.js.map → chunk-FAXV62EG.js.map} +0 -0
- /package/dist/dev/{chunk-2Q3FNCU4.js.map → chunk-LAGHQ2FH.js.map} +0 -0
- /package/dist/dev/data/{image-L2UC5LX5.js.map → image-FJMUJMRD.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-B427J75A.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-B427J75A.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -436,47 +436,6 @@ export declare const BANNER_TOOLS: readonly [{
|
|
|
436
436
|
readonly additionalProperties: false;
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
}, {
|
|
440
|
-
readonly type: "function";
|
|
441
|
-
readonly function: {
|
|
442
|
-
readonly name: "generate_image";
|
|
443
|
-
readonly description: "Generate an image using AI (Gemini) and place it onto the canvas. Always call this for any photo or image content — even when the user has attached a reference image. The attached image is passed to Gemini as visual reference; Gemini generates the final output. Use referenceImageIndex to tell Gemini which user attachment to reference. IMPORTANT: your prompt must describe a purely visual scene — NO text, NO typography, NO words, NO captions, NO watermarks. All copy is handled by the HTML layer. A 'no text' safety suffix will be auto-appended, but you must also describe composition clearly (e.g. which side should be left open/empty for the HTML text).";
|
|
444
|
-
readonly parameters: {
|
|
445
|
-
readonly type: "object";
|
|
446
|
-
readonly properties: {
|
|
447
|
-
readonly frameId: {
|
|
448
|
-
readonly type: "string";
|
|
449
|
-
readonly description: "ID of the parent frame to insert the image into";
|
|
450
|
-
};
|
|
451
|
-
readonly prompt: {
|
|
452
|
-
readonly type: "string";
|
|
453
|
-
readonly description: "Detailed generation prompt. When using a reference image, describe what you want Gemini to produce — e.g. 'use this building as the subject, wide cinematic crop with open sky on the left for text overlay'.";
|
|
454
|
-
};
|
|
455
|
-
readonly x: {
|
|
456
|
-
readonly type: "number";
|
|
457
|
-
readonly description: "X position relative to the frame's top-left corner";
|
|
458
|
-
};
|
|
459
|
-
readonly y: {
|
|
460
|
-
readonly type: "number";
|
|
461
|
-
readonly description: "Y position relative to the frame's top-left corner";
|
|
462
|
-
};
|
|
463
|
-
readonly width: {
|
|
464
|
-
readonly type: "number";
|
|
465
|
-
readonly description: "Image width in pixels";
|
|
466
|
-
};
|
|
467
|
-
readonly height: {
|
|
468
|
-
readonly type: "number";
|
|
469
|
-
readonly description: "Image height in pixels";
|
|
470
|
-
};
|
|
471
|
-
readonly referenceImageIndex: {
|
|
472
|
-
readonly type: "number";
|
|
473
|
-
readonly description: "0-based index of the user's attached image to pass to Gemini as reference. Always use 0 when the user has attached an image.";
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
readonly required: readonly ["frameId", "prompt", "x", "y", "width", "height"];
|
|
477
|
-
readonly additionalProperties: false;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
439
|
}];
|
|
481
440
|
export declare function serializeElements(elements: readonly ExcalidrawElement[]): Record<string, unknown>[];
|
|
482
441
|
export type FrameInfo = {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as a,U as b,V as c}from"../chunk-XPV36KCI.js";import"../chunk-7AVPHWG7.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|