Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions types/dygraphs/dygraphs-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const d = new Dygraph(new HTMLDivElement(), "data", {
labelsSeparateLines: true,
legend: "always",
rangeSelectorForegroundStrokeColor: "white",
resizable: "both",
rollPeriod: 14,
series: {
y: {
Expand Down Expand Up @@ -233,6 +234,10 @@ d.setAnnotations([
event;
},
},
{
series: "sine wave",
xval: 20700,
},
]);

// $ExpectType Annotation[]
Expand Down
17 changes: 17 additions & 0 deletions types/dygraphs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,17 @@ export namespace dygraphs {
*/
rangeSelectorPlotStrokeColor?: string | null | undefined;

/**
* Whether to add a ResizeObserver to the container div ("passive") and additionally
* make it resizable ("horizontal", "vertical", "both"). In any case, if the container
* div has CSS "overflow:visible;" it will be changed to "overflow:hidden;" to make CSS
* resizing possible. Note that this is distinct from resizing the graph when the window
* size changes, which is always active; this feature adds user-resizable “handles” to
* the container div.
* @default no
*/
resizable?: "passive" | "horizontal" | "vertical" | "both" | "no" | undefined;

/**
* Number of pixels to leave blank at the right edge of the Dygraph. This makes it easier to
* highlight the right-most data point.
Expand Down Expand Up @@ -1100,6 +1111,12 @@ export namespace dygraphs {
*/
x?: number | string | undefined;

/**
* The numeric x value of the point, milliseconds since the epoch for a Date x axis.
* You must set either x or xval.
*/
xval?: number | undefined;

/** Text that will appear on the annotation's flag. */
shortText?: string | undefined;

Expand Down
2 changes: 1 addition & 1 deletion types/mailchimp__mailchimp_marketing/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ export namespace lists {

interface MemberLocation {
latitude: number;
logitude: number;
longitude: number;
}

interface FullMemberLocation extends MemberLocation {
Expand Down
2 changes: 2 additions & 0 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ declare namespace Office {
*/
function initialize(reason: InitializationReason): void;
/**
* **WARNING**: This API returns inaccurate values when used on desktop applications. Use `Office.context.requirements.isSetSupported` instead.
*
* Checks if the specified requirement set is supported by the Office application.
* @param name - Set name; e.g., "MatrixBindings".
* @param minVersion - The minimum required version; e.g., "1.4".
Expand Down
2 changes: 2 additions & 0 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ declare namespace Office {
*/
function initialize(reason: InitializationReason): void;
/**
* **WARNING**: This API returns inaccurate values when used on desktop applications. Use `Office.context.requirements.isSetSupported` instead.
*
* Checks if the specified requirement set is supported by the Office application.
* @param name - Set name; e.g., "MatrixBindings".
* @param minVersion - The minimum required version; e.g., "1.4".
Expand Down